/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx58hLxR.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExd8hLxR.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx18hLxR.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExN8hA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx58hLxR.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExd8hLxR.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx18hLxR.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExN8hA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx58hLxR.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExd8hLxR.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx18hLxR.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExN8hA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx58hLxR.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExd8hLxR.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcEx18hLxR.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/v7-q5uCsoe9Lv5t7Meb31EcExN8hA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwtsZfrxE.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwv8ZfrxE.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwtMZfrxE.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwtcZfrxE.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwu8Zf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwtsZfrxE.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwv8ZfrxE.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwtMZfrxE.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwtcZfrxE.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/v12-Yq6W-LOTXCb04q32xlpwu8Zf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Портфолио Андрея — витрина работ */

:root {
  --bg: #0c0c0e;
  --bg-soft: #131316;
  --ink: #f4f1ea;
  --muted: #98938b;
  --line: rgba(244, 241, 234, .13);
  --accent: #ef4b31;
  --shell: min(1360px, calc(100% - 72px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Unbounded", "Golos Text", sans-serif;
  --sans: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

/* мягкое зерно поверх всей страницы */
body::after {
  position: fixed;
  z-index: 60;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.shell { width: var(--shell); margin-inline: auto; }
.mono { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--accent);
  content: "";
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 90;
  top: 14px;
  left: 14px;
  padding: 11px 16px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}

.skip:focus { transform: translateY(0); }

/* ---------- прелоадер ---------- */

.loader {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 36px 36px;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

.loader__word {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
}

.loader__count {
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-variant-numeric: tabular-nums;
}

.loader__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

/* ---------- курсор ---------- */

/* Системный курсор прячем только когда собственный реально включён */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [role="button"] { cursor: none; }

.cursor { display: none; }
body.has-cursor .cursor { display: block; }

.cursor__ring,
.cursor__dot,
.cursor__label {
  position: fixed;
  z-index: 95;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.cursor__ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.4px solid rgba(244, 241, 234, .5);
  border-radius: 50%;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(239, 75, 49, .9);
}

/* позицию двигает GSAP через transform, поэтому масштаб живёт на вложенном элементе */
.cursor__label { opacity: 1; }

.cursor__text {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  padding: 11px 20px;
  color: #170c09;
  background: var(--accent);
  border-radius: 999px;
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  box-shadow: 0 12px 34px -10px rgba(239, 75, 49, .95);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}

.cursor.is-active .cursor__ring,
.cursor.is-active .cursor__dot { opacity: 1; }

/* над ссылкой кольцо и точка уступают место подписи */
.cursor.is-hover .cursor__ring,
.cursor.is-hover .cursor__dot { opacity: 0; }

.cursor.is-hover .cursor__text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- шапка ---------- */

.header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(12, 12, 14, .78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.03em;
}

.brand em { color: var(--muted); font-style: normal; font-weight: 400; }

.nav { display: flex; gap: 30px; }

.nav a {
  position: relative;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  transition: color .3s var(--ease);
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .4s var(--ease);
  content: "";
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* кнопка Telegram: залитая акцентом капсула с бликом и мягким свечением */
.tg {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 24px;
  color: #1a0d0a;
  background: linear-gradient(135deg, #ff6a4d, var(--accent) 55%, #d63a22);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 26px -12px rgba(239, 75, 49, .9);
  transition: box-shadow .45s var(--ease), filter .45s var(--ease);
}

.tg__icon {
  width: 19px;
  height: 19px;
  transition: transform .5s var(--ease);
}

.tg__label { white-space: nowrap; letter-spacing: -.01em; }

.tg__shine {
  position: absolute;
  z-index: 1;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.tg:hover {
  filter: saturate(1.12) brightness(1.06);
  box-shadow: 0 16px 38px -12px rgba(239, 75, 49, 1);
}

.tg:hover .tg__icon { transform: translateX(3px) rotate(-12deg) scale(1.08); }

/* ---------- герой ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 150px 0 40px;
  overflow: clip; /* световой слой шире блока и иначе растянул бы страницу вбок */
}

/* Тёплое пятно света: отдельный слой, который двигается трансформом.
   Раньше это был градиент с координатами в переменных — он перерисовывался целиком на каждый кадр. */
.hero__glow {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(239, 75, 49, .19), transparent);
  transition: opacity .6s var(--ease);
  will-change: transform;
}

.hero.is-lit .hero__glow { opacity: 1; }

.hero__title {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 11.5vw, 11rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .92;
  text-wrap: balance;
}

.hero__title i { color: var(--accent); font-style: normal; }

/* буквы заголовка идут волной вслед за прокруткой */
.hero__title .char {
  display: inline-block;
  will-change: transform;
}

.line { display: block; overflow: hidden; }
.line > span { display: block; }
/* после вступительного выезда обрезка снимается, иначе волна срезала бы буквы */
.line.is-open { overflow: visible; }
.no-motion .line { overflow: visible; }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-top: clamp(46px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero__lead {
  max-width: 460px;
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__stats {
  display: flex;
  gap: clamp(30px, 5vw, 64px);
}

.stat__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- бегущая строка ---------- */

.ticker {
  display: flex;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.ticker__row {
  display: flex;
  flex-shrink: 0;
  gap: 46px;
  padding-right: 46px;
}

/* без JS строка едет на CSS-анимации, с GSAP её скорость зависит от прокрутки */
.no-motion .ticker__row { animation: ticker 34s linear infinite; }

.ticker span {
  display: flex;
  align-items: center;
  gap: 46px;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.ticker span::after {
  color: var(--accent);
  font-size: .7em;
  content: "◆";
}

@keyframes ticker {
  to { transform: translateX(-100%); }
}

/* ---------- секции ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.section__title {
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .96;
  text-wrap: balance;
}

.section__note {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- работы: строки со всплывающим превью ---------- */

.works { border-top: 1px solid var(--line); }

.work { border-bottom: 1px solid var(--line); }

.work__link {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(24px, 3vw, 38px) 0;
  transition: padding-left .5s var(--ease);
}

/* подложка строки: отдельный слой, чтобы наведение не перерисовывало текст */
.work__link::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--bleed, 24px) * -1);
  background: var(--bg-soft);
  border-radius: 14px;
  opacity: 0;
  transition: opacity .4s var(--ease);
  content: "";
}

.work__link:hover::before { opacity: 1; }
.work__link:hover { padding-left: clamp(14px, 1.8vw, 26px); }

.work__num { color: var(--accent); font-size: .82rem; }

.work__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
}

.work__desc {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.work__type {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.work__live {
  padding: 5px 10px;
  color: #170c09;
  background: var(--accent);
  border-radius: 999px;
  font-size: .6rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

/* миниатюра внутри строки нужна только там, где курсора нет */
.work__thumb { display: none; }

/* соседние строки приглушаются, пока курсор на одной из них */
.works:hover .work__link:not(:hover) .work__name,
.works:hover .work__link:not(:hover) .work__desc { opacity: .38; }

.work__name,
.work__desc { transition: opacity .4s var(--ease); }

/* ---------- превью, летящее за курсором ---------- */

.peek {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: clamp(280px, 26vw, 400px);
  aspect-ratio: 16 / 11;
  margin: -140px 0 0 -200px;
  overflow: hidden;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95);
}

.peek.is-open { opacity: 1; visibility: visible; }

.peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.peek img.is-shown { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .peek { display: none; }
}
/* ---------- подход ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.skill {
  padding: clamp(28px, 3vw, 42px);
  background: var(--bg);
  transition: background-color .4s var(--ease);
}

.skill:hover { background: var(--bg-soft); }

.skill__num {
  color: var(--accent);
  font-family: var(--display);
  font-size: .74rem;
}

.skill h3 {
  margin: 22px 0 12px;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -.035em;
}

.skill p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---------- контакты ---------- */

.contact { padding: clamp(80px, 11vw, 150px) 0 60px; }

.contact__title {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8.6vw, 8rem);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .94;
  text-wrap: balance;
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(38px, 5vw, 66px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

.contact__link:hover { color: var(--ink); background: var(--accent); }

.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.contact__alt {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}

.contact__alt:hover { color: var(--ink); border-color: var(--accent); }

.contact__note { max-width: 380px; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.contact__title .char { display: inline-block; will-change: transform; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

/* ---------- собственная полоса прокрутки ---------- */

/* системную прячем только там, где своя реально включена */
html.has-rail { scrollbar-width: none; }
html.has-rail::-webkit-scrollbar { width: 0; height: 0; }

.rail {
  position: fixed;
  z-index: 58;
  top: 0;
  right: 0;
  width: 14px;
  height: 100vh;
  display: none;
  opacity: .45;
  transition: opacity .35s var(--ease);
}

html.has-rail .rail { display: block; }
.rail:hover,
.rail.is-grabbing { opacity: 1; }

/* тонкая направляющая под ползунком */
.rail::before {
  position: absolute;
  top: 0;
  right: 6px;
  width: 2px;
  height: 100%;
  background: var(--line);
  content: "";
}

.rail__thumb {
  position: absolute;
  top: 0;
  right: 5px;
  width: 4px;
  background: var(--accent);
  border-radius: 999px;
  cursor: grab;
  transition: width .3s var(--ease), right .3s var(--ease);
}

.rail:hover .rail__thumb,
.rail.is-grabbing .rail__thumb { width: 6px; right: 4px; }
.rail.is-grabbing .rail__thumb { cursor: grabbing; }

@media (hover: none), (pointer: coarse) {
  html.has-rail .rail { display: none; }
  html.has-rail { scrollbar-width: auto; }
}

/* ---------- индикатор прокрутки ---------- */

.progress {
  position: fixed;
  z-index: 55;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- направления работы ---------- */

.skillset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(30px, 4.5vw, 52px);
  background: var(--line);
  border-block: 1px solid var(--line);
}

.skillset__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 2vw, 26px) clamp(16px, 2vw, 26px) clamp(20px, 2.4vw, 30px);
  background: var(--bg);
  overflow: hidden;
  transition: background-color .45s var(--ease);
}

/* подсветка держится за курсором внутри плитки */
.skillset__item::before {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 75, 49, .18), transparent 68%);
  transition: opacity .45s var(--ease);
  content: "";
}

.skillset__item:hover::before { opacity: 1; }

/* акцентная полоса выезжает снизу при наведении */
.skillset__item::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease);
  content: "";
}

.skillset__item:hover { background: var(--bg-soft); }
.skillset__item:hover::after { transform: scaleX(1); }

.skillset__num {
  color: var(--accent);
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .06em;
}

.skillset__name {
  font-family: var(--display);
  font-size: clamp(.98rem, 1.5vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.skillset__note {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- стрелка вниз ---------- */

.cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  margin-top: clamp(34px, 4.5vw, 56px);
  color: var(--muted);
  transition: color .4s var(--ease);
}

.cue__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .45s var(--ease), background-color .45s var(--ease);
}

.cue__ring::before {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: cuePulse 2.4s var(--ease) infinite;
  content: "";
}

.cue__ring svg {
  width: 20px;
  height: 20px;
  animation: cueArrow 2s ease-in-out infinite;
}

@keyframes cuePulse {
  0% { opacity: .55; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

@keyframes cueArrow {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}

.cue__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cue:hover { color: var(--ink); }
.cue:hover .cue__ring { border-color: var(--accent); background: rgba(239, 75, 49, .1); }

.cue.is-gone { opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }

/* ---------- знакомство ---------- */

.about { padding-bottom: clamp(60px, 8vw, 110px); }

/* Закреплённая сцена знакомства: сверху оставляем место под шапку,
   safe center не даёт контенту уползти под неё на низких экранах */
.about__stage {
  display: flex;
  align-items: center;
  align-items: safe center; /* фолбэк выше: старые браузеры проигнорируют safe */
  min-height: 100svh;
  padding: calc(76px + clamp(28px, 5vh, 64px)) 0 clamp(40px, 7vh, 90px);
}

/* ширину и центрирование задаёт .shell — своё width здесь его перебивало */

.about__meter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(30px, 4vw, 46px);
}

.about__meter[hidden] { display: none; }

.about__meter-track {
  position: relative;
  flex: 1;
  max-width: 320px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.about__meter-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.about__meter-label {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about__name {
  margin: 22px 0 clamp(28px, 4vw, 46px);
  font-family: var(--display);
  font-size: clamp(2.4rem, 7.4vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .96;
}

.about__name .char { display: inline-block; will-change: transform; }

.about__text {
  max-width: 1000px;
  perspective: 800px;
  font-size: clamp(1.15rem, 2.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.4;
  text-wrap: pretty;
}

/* слова выезжают и разворачиваются по мере прокрутки, вспыхивая акцентом */
.about__text .word {
  display: inline-block;
  color: rgba(244, 241, 234, .14);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.no-motion .about__text .word { color: var(--ink); }

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 6vw, 78px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.about__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--bg);
  transition: background-color .4s var(--ease);
}

.about__card:hover { background: var(--bg-soft); }
.about__card--safe { background: var(--bg-soft); }

.about__card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -.035em;
}

.about__card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

.about__link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 600;
}

.about__link i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.about__link:hover i { transform: translate(3px, -3px); }

/* ---------- услуги ---------- */

.services {
  border-top: 1px solid var(--line);
}

.service { border-bottom: 1px solid var(--line); }

.service a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 32px) clamp(4px, 1.4vw, 20px);
  transition: padding-left .45s var(--ease), background-color .45s var(--ease);
}

.service a:hover { padding-left: clamp(16px, 2.4vw, 34px); background: var(--bg-soft); }

.service__name {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -.04em;
}

.service__price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .4s var(--ease);
}

.service a:hover .service__price { color: var(--accent); }
.service__price i { font-style: normal; }

/* ---------- отзывы ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  margin: 0;
  padding: clamp(24px, 2.8vw, 34px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color .45s var(--ease), transform .45s var(--ease);
}

.review:hover { border-color: rgba(244, 241, 234, .26); transform: translateY(-4px); }
.review--wide { grid-column: span 2; }

.review blockquote {
  margin: 0;
  font-size: .98rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.review blockquote::before {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.1rem;
  content: "★★★★★";
  letter-spacing: .1em;
}

.review figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review__author { font-weight: 600; font-size: .88rem; }
.review__task { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

.reviews__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  font-size: .9rem;
  font-weight: 600;
}

.reviews__all i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.reviews__all:hover i { transform: translate(3px, -3px); }

/* ---------- появление ---------- */

[data-reveal] { opacity: 0; transform: translateY(34px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  :root { --shell: min(100% - 48px, 900px); }
  .skillset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__link { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr); }
  .work__type { grid-column: 2 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 980px) {
  .review--wide { grid-column: span 1; }
}

/* на невысоких окнах ужимаем знакомство, чтобы оно помещалось в экран целиком */
@media (max-height: 860px) {
  .about__name { font-size: clamp(2rem, 5.4vw, 4.4rem); margin-bottom: clamp(18px, 3vh, 30px); }
  .about__text { font-size: clamp(1.02rem, 1.9vw, 1.6rem); }
  .about__meter { margin-top: clamp(18px, 3vh, 30px); }
}

@media (max-height: 700px) {
  .about__stage { padding-top: calc(76px + clamp(20px, 3vh, 40px)); padding-bottom: clamp(28px, 4vh, 56px); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .section__head { grid-template-columns: 1fr; }
  .hero__bottom { grid-template-columns: 1fr; gap: 34px; }

  /* без курсора всплывающего превью не будет — показываем кадр прямо в строке */
  .work__link { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 16px; }
  .work__link:hover { padding-left: 0; }
  .work__type { grid-column: 2; justify-self: start; text-align: left; }
  .work__desc { grid-column: 2; }

  .work__thumb {
    display: block;
    grid-column: 1 / -1;
    margin-top: 6px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
  }

  .works:hover .work__link:not(:hover) .work__name,
  .works:hover .work__link:not(:hover) .work__desc { opacity: 1; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  .header__inner { min-height: 66px; }
  .hero { padding: 118px 0 32px; }
  .hero__stats { flex-wrap: wrap; gap: 26px 34px; }
  .loader { padding: 0 20px 24px; }
  .skillset { grid-template-columns: 1fr; }
  .tg { padding: 10px 16px 10px 12px; }
  .tg__label { font-size: .76rem; }
  .cue__ring { width: 48px; height: 48px; }
  .about__stage { min-height: auto; padding: calc(66px + clamp(26px, 7vw, 54px)) 0 clamp(40px, 9vw, 70px); }
  .service a { padding-inline: 0; }
  .service a:hover { padding-left: 10px; }
  .contact__actions { width: 100%; }
  .contact__link { width: 100%; justify-content: center; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker__row { animation: none; }
  .cursor { display: none; }
}
