/* ===== SIXCAT — стили (по макету Figma «SixCat / Website») ===== */
:root {
  --bg: #000;
  --text: #e5e5e5;
  --text-80: rgba(229, 229, 229, .8);
  --text-66: rgba(229, 229, 229, .66);
  --text-60: rgba(229, 229, 229, .6);
  --red: #d5232b;
  --red-2: #e8343c;
  --card: #171717;
  --card-2: #1e1e1e;
  --line: rgba(232, 232, 232, .32);
  --container: 1760px;   /* максимальная ширина контента — контент тянется до этой ширины */
  --pad: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wave-ease: cubic-bezier(.4, 0, .6, 1);
  --press-scale: .985;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section, #statistics { scroll-margin-top: 110px; } /* чтобы шапка не перекрывала блок при переходе по меню */
body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.red { color: var(--red); }
.flip { transform: scaleX(-1); }
.yellow { color: #efcb71; }
.muted { opacity: .8; }

/* Подпись с иконкой «точки» */
.eyebrow { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; line-height: 24px; letter-spacing: -.01em; color: var(--text-80); }
.eyebrow svg { flex: none; }

.divider { height: 1px; background: linear-gradient(90deg, #171717, #3a3a3a 50%, #171717); box-shadow: 0 .5px 1px #171717; }

/* ---------- Кнопки hero (как на Framer) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 18px;
  font-size: 16px; font-weight: 500; letter-spacing: -.02em; line-height: 1; white-space: nowrap;
  transition: transform .3s var(--ease), filter .3s, background-color .3s, color .3s;
}
/* Стрелка: две одинаковые в ряд, окошко показывает одну. При наведении обе едут вправо на (ширина + 8px). */
.arrow { --arrow: 20px; display: inline-flex; flex: none; gap: 8px; width: var(--arrow); height: var(--arrow); overflow: hidden; }
.cases__more .arrow, .form__send .arrow { --arrow: 24px; }
.arrow svg { flex: none; width: var(--arrow); height: var(--arrow); transform: translateX(calc(-1 * (var(--arrow) + 8px))); transition: transform .9s var(--ease); }
.btn:hover .arrow svg, .cases__more:hover .arrow svg, .form__send:not(:disabled):hover .arrow svg, .case__hover > span:hover .arrow svg { transform: none; }
.btn--white { background: #fff; color: #000; }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.12); background: transparent; }


/* ---------- «Волна» как на Framer: при наведении капля разрастается и заливает кнопку ---------- */
.btn, .btn--wave, .nav__cta { position: relative; overflow: hidden; isolation: isolate; }
.btn__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: inherit; transition: color .25s ease; }
.btn:hover .btn__label, .btn--wave:not(:disabled):hover .btn__label, .nav__cta:hover .btn__label { transition: color .25s ease .05s; }
.wave {
  position: absolute; z-index: 0; left: -84px; top: -100px; width: 132px; height: 123px; pointer-events: none;
  background: var(--wave, var(--red));
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath transform='translate(0 0.18)' d='M5 3.523C5.078 3.523 5.155 3.525 5.233 3.528 5.873 1.483 7.765 0 10 0c2.761 0 5 2.264 5 5.057 0 2.793-2.239 5.057-5 5.057-.078 0-.155-.002-.233-.006C9.127 12.154 7.235 13.636 5 13.636c-2.761 0-5-2.264-5-5.056 0-2.793 2.239-5.057 5-5.057Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath transform='translate(0 0.18)' d='M5 3.523C5.078 3.523 5.155 3.525 5.233 3.528 5.873 1.483 7.765 0 10 0c2.761 0 5 2.264 5 5.057 0 2.793-2.239 5.057-5 5.057-.078 0-.155-.002-.233-.006C9.127 12.154 7.235 13.636 5 13.636c-2.761 0-5-2.264-5-5.056 0-2.793 2.239-5.057 5-5.057Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  /* обратный ход с той же скоростью, что и заливка. Волна намного больше кнопки, и первая часть хода не видна:
     отрицательная задержка пропускает её, поэтому заливка начинает уходить сразу, без паузы */
  transition: top .6s var(--wave-ease) -.26s, width .6s var(--wave-ease) -.26s, height .6s var(--wave-ease) -.26s;
}
.btn:hover .wave, .btn--wave:not(:disabled):hover .wave, .nav__cta:hover .wave { transition: top .6s var(--wave-ease), width .6s var(--wave-ease), height .6s var(--wave-ease); }
/* Нажатое состояние */
.btn:active, .cases__more:active, .form__send:not(:disabled):active, .nav__cta:active, .case:hover .case__hover > span:active { transform: scale(var(--press-scale)); filter: brightness(.88); transition: transform .08s, filter .08s; }
.btn:hover .wave, .btn--wave:not(:disabled):hover .wave, .nav__cta:hover .wave { top: -595px; width: 834px; height: 796px; }
.nav__cta { --wave: #e5e5e5; }
.nav__cta:hover .btn__label { color: #000; }
.btn--white { --wave: var(--red); }
.btn--white:hover .btn__label { color: #fff; }
.btn--ghost { --wave: #fff; }
.btn--ghost:hover .btn__label { color: #000; }
.cases__more { --wave: var(--red); }
.cases__more:hover .btn__label { color: #fff; }
.form__send { --wave: var(--red); }
.form__send:not(:disabled):hover .btn__label { color: #fff; }
.form__send:disabled .wave { display: none; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 32px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav__inner {
  /* вверху страницы — широкая прозрачная панель (лого слева, меню по центру, кнопка справа).
     Крайние колонки равны, поэтому меню всегда ровно по центру, и в пилюле, и во время анимации. */
  pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 6px 0;
  width: min(var(--container), calc(100vw - 2 * var(--pad)));
  border-radius: 72px; background: rgba(255,255,255,0); box-shadow: 0 0 0 1px rgba(36,36,36,0);
  transition: width 1.1s var(--ease), padding 1.1s var(--ease), background-color .8s, box-shadow .8s, backdrop-filter .8s;
}
/* после скролла — плавно сжимается в круглую «пилюлю» */
.nav.is-scrolled .nav__inner {
  width: min(var(--pill-w, 793px), calc(100vw - 32px)); padding: 6px;
  background: linear-gradient(180deg, rgba(42,42,42,.88) 0%, rgba(18,18,18,.92) 100%);
  box-shadow: 0 0 0 1px #262626, inset 0 1px 0 rgba(255,255,255,.06), 0 12px 32px rgba(0,0,0,.35);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.nav__logo { display: flex; align-items: center; height: 44px; padding: 0 16px; justify-self: start; }
.nav__cta { justify-self: end; }
.nav__inner > *, .nav__links a { flex-shrink: 0; white-space: nowrap; }
.nav__logo img { width: 72px; height: 24px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 12px 14px; border-radius: 999px; font-size: 14px; line-height: 20px; color: var(--text-60); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav__cta {
  display: flex; align-items: center; gap: 6px; margin: -1px; padding: 11.5px 17.5px 11.5px 9.5px; border-radius: 9999px;
  background: var(--red);
  font-size: 14px; line-height: 20px; color: var(--text); transition: background-color 0s .06s, transform .3s var(--ease), filter .3s;
}
/* Кот: как стрелка — окошко 24px и две копии в ряд, сдвиг = ширина кота 19px + 8px */
.nav__cat { display: flex; align-items: center; gap: 8px; width: 24px; height: 24px; padding-left: 2.5px; flex: none; overflow: hidden; }
.nav__cat svg { flex: none; overflow: visible; transform: translateX(-27px); transition: transform .9s var(--ease); }
.nav__cta:hover .nav__cat svg { transform: none; }
.nav__cta::before { content: ""; position: absolute; z-index: -1; inset: 1px; border: .5px solid rgba(255,255,255,.4); border-radius: inherit; pointer-events: none; }
.nav__cta:hover { background: #e5e5e5; transition: background-color 0s .3s, transform .3s var(--ease), filter .3s; }

/* ---------- HERO ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 166px 24px 48px; }
.hero__title { margin-top: 12px; max-width: 736px; font-size: clamp(40px, 4.45vw, 64px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.hero__text { margin-top: 24px; max-width: 448px; font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: var(--text-66); }
.hero__btns { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__divider { width: min(700px, 90vw); margin-top: 48px; }
.hero__logos { margin-top: 48px; width: 604px; height: auto; }

/* ---------- CASES ---------- */
.cases { padding: 48px var(--pad) 0; }
.cases__wrap { position: relative; max-width: var(--container); margin: 0 auto; aspect-ratio: 1280 / 1965; overflow: hidden; } /* высота растёт вместе с шириной */
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.cases__col { display: flex; flex-direction: column; gap: 16px; }
.case { position: relative; display: block; }
.case__media {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; background: #111;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.case__zoom { position: absolute; inset: 0; transition: transform .8s var(--ease); will-change: transform; } /* приближение на обёртке — одинаково для картинок и видео */
.case__media img, .case__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__media.tall { aspect-ratio: 417 / 553; }
.case__media.mid { aspect-ratio: 417 / 340; }
.case__media.short { aspect-ratio: 417 / 304; }
.case:hover .case__zoom { transform: scale(1.04); }
.case__hover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .35s var(--ease); }
.case__hover > span { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 24px; background: #fff; color: #000; font-weight: 500; transform: translateY(10px); transition: transform .45s var(--ease), filter .3s; }
.case:hover .case__hover { opacity: 1; }
.case:hover .case__hover > span { transform: none; }
.case__info { display: flex; gap: 12px; align-items: flex-start; padding: 12px; }
.case__text { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; letter-spacing: -.01em; }
.case__text b, .case__text h3 { display: block; font-size: inherit; line-height: inherit; font-weight: 500; }
.case__text span { display: block; color: var(--text-60); }
.case__tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tag { padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,.14); font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-80); white-space: nowrap; }

.cases__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 520px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 23.5%, rgba(0,0,0,.96) 72.6%, #000 100%);
  pointer-events: none;
}
.cases__more {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 20px 24px; border-radius: 20px;
  background: #fff; color: #080808; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -.01em;
  transition: transform .3s var(--ease), filter .3s, background-color .2s;
}

/* ---------- СТРАНИЦА CASES ---------- */
.cases-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 166px 24px 0; }
.cases-hero h1 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.cases-hero p { max-width: 520px; font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: var(--text-66); }
.cases-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: flex-start; gap: 4px; height: 44px; padding: 12px 18px; border-radius: 999px;
  font-size: 15px; line-height: 20px; color: var(--text-80); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip:hover { background: rgba(255,255,255,.08); color: var(--text); }
.chip.is-active { background: var(--text); color: #000; box-shadow: none; }
.cases-page { padding: 48px var(--pad) 92px; }
.cases-page .cases__grid { max-width: var(--container); margin: 0 auto; }
.cases-empty { grid-column: 1 / -1; padding: 96px 0; text-align: center; font-size: 18px; color: var(--text-66); }
.case--enter { animation: caseIn .6s var(--ease) both; }
@keyframes caseIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- POP-UP ---------- */
.popup { width: min(500px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 32px; background: #000; color: var(--text); }
.popup[open] { animation: popupIn .45s var(--ease) both; }
.popup::backdrop { background: rgba(0,0,0,.6); }
.popup__body { display: flex; flex-direction: column; align-items: center; padding: 56px 40px; text-align: center; }
.popup__cat { color: var(--red); }
.popup h2 { margin-top: 32px; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.popup p { max-width: 300px; margin-top: 12px; text-wrap: balance; font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: var(--text-66); }
.popup__close { width: 100%; justify-content: center; margin-top: 48px; }
@keyframes popupIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- STATS ---------- */
.stats {
  /* по макету карточка шире сетки кейсов: 1376px, отступ 32px от краёв */
  width: min(calc(var(--container) + 96px), calc(100% + 2 * var(--pad) - 64px)); position: relative; left: 50%; translate: -50% 0; z-index: 4;
  padding: 64px 56px 56px; border-radius: 40px; background: var(--card);
}
.stats__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.stats__head h2 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.stats__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { height: 380px; padding: 28px; border-radius: 24px; background: var(--card-2); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.stat img { width: 120px; height: 120px; transition: transform 1.2s var(--ease); }
.stat:hover img { transform: rotate(45deg) scale(1.05); }
.stat__value { font-size: clamp(44px, 4.45vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; }
.stat p { margin-top: 8px; font-size: 20px; letter-spacing: -.01em; color: rgba(229,229,229,.7); }

/* ---------- REVIEWS + SERVICES ---------- */
.services { max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding: 184px var(--pad) 92px; display: grid; grid-template-columns: 413px 1fr; gap: 249px; align-items: start; }
.reviews { padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.reviews__bar { position: relative; height: 1px; background: #171717; }
.reviews__progress { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: #fff; }
/* полоса плавно заполняется → переключение на следующий отзыв */
.reviews__progress.is-running { animation: reviewFill var(--review-time, 7s) linear forwards; }
.reviews:hover .reviews__progress.is-running { animation-play-state: paused; }
@keyframes reviewFill { from { width: 0; } to { width: 100%; } }
.reviews__top { display: flex; justify-content: space-between; align-items: center; }
.reviews__count { font-size: 16px; line-height: 1.1; letter-spacing: .01em; color: rgba(229,229,229,.52); }
.reviews__count b { font-weight: 400; color: var(--text); }
.reviews__count i { font-style: normal; }
.reviews__arrows { display: flex; gap: 4px; }
.reviews__arrows button { display: grid; color: var(--text); opacity: .5; transition: opacity .2s; }
.reviews__arrows button:last-child { opacity: 1; }
.reviews__arrows button:hover { opacity: 1; }
.reviews__arrows button:active { opacity: .6; transition: none; }
.reviews__track { position: relative; margin-top: 20px; min-height: 266px; }
.review { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 40px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.review.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.review__quote { font-size: 18px; line-height: 24px; }
.review__author { display: flex; gap: 16px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #222; flex: none; }
.review__author b { display: block; font-size: 16px; font-weight: 500; line-height: 24px; }
.review__author span { display: block; font-size: 14px; line-height: 20px; opacity: .72; }

.services__list { position: relative; }
.services__list ul { margin-top: 24px; }
.service { font-size: clamp(36px, 4.2vw, 60px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; color: var(--text); cursor: default; }
.service + .service { margin-top: 12px; }
.service.reveal.is-in { opacity: .3; transition: opacity .35s var(--ease), transform .9s var(--ease); }
.service.reveal.is-in.is-active { opacity: 1; }
.services__img {
  position: absolute; right: 0; top: 0; z-index: 2; width: 254px; height: 290px; object-fit: cover;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: #222;
  opacity: 0; transition: transform .6s var(--ease), opacity .35s var(--ease); pointer-events: none;
}
.services__img.is-visible { opacity: 1; }

/* ---------- CLIENTS ---------- */
.clients { position: relative; overflow-x: clip; padding: 92px max(var(--pad), calc((100% - var(--container)) / 2)); display: grid; grid-template-columns: 1fr 738px; gap: 40px; }
.clients__bg { position: absolute; left: -230px; top: 70px; width: 981px; max-width: none; height: auto; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.clients__label { position: relative; z-index: 1; align-self: start; padding-top: 48px; }
.clients__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
.clients__grid::before, .clients__grid::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: #171717; box-shadow: 0 .5px 1px #171717; }
.clients__grid::before { top: 211px; }
.clients__grid::after { top: 422px; }
.client { height: 211px; display: flex; flex-direction: column; align-items: center; padding: 0 0 20px; }
.client img { width: 170px; height: 172px; max-width: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.client:hover img { transform: translateY(-4px) scale(1.04); }
.client span { font-size: 16px; font-weight: 500; line-height: 1.1; letter-spacing: .01em; opacity: .3; transition: opacity .3s; }
.client:hover span { opacity: 1; }
.client--more { justify-content: flex-start; padding-top: 59px; gap: 12px; }
.client--more span { opacity: 1; color: var(--red); text-align: center; max-width: 124px; }

/* ---------- CONTACT ---------- */
.contact { position: relative; overflow: hidden; padding: 92px max(var(--pad), calc((100% - var(--container)) / 2)) 48px; min-height: 963px; }
.contact__left { position: relative; z-index: 2; width: 736px; max-width: 100%; padding-top: 92px; display: flex; flex-direction: column; gap: 48px; }
.contact__head { display: flex; flex-direction: column; gap: 16px; }
.contact__head h2 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; outline: none;
  font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: var(--text); transition: border-color .25s;
}
.field::placeholder { color: rgba(229,229,229,.64); }
.field:hover { border-bottom-color: rgba(232,232,232,.5); }
.field:focus, .field:focus-within { border-bottom-color: var(--text); }
.field.is-invalid { border-bottom-color: var(--red); }
.field--select { position: relative; display: flex; align-items: center; padding: 0; }
.field--select select { appearance: none; -webkit-appearance: none; width: 100%; padding: 12px 32px 12px 0; border: 0; background: none; outline: none; font-size: 18px; line-height: 1.5; color: var(--text); cursor: pointer; }
.field--select select option { color: #000; }
.field--select svg { position: absolute; right: 0; pointer-events: none; color: rgba(232,232,232,.5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__bottom { margin-top: 24px; display: flex; gap: 20px; align-items: center; }
.form__send {
  display: inline-flex; align-items: center; gap: 10px; padding: 20px 72px; border-radius: 20px;
  font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
  background: #e5e5e5; color: #000; transition: background-color .3s, color .3s, transform .3s var(--ease), filter .3s;
}
.form__send:disabled { background: rgba(229,229,229,.08); color: rgba(229,229,229,.32); cursor: not-allowed; }
.form__note { width: 257px; font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: var(--text-80); }
.form__status { min-height: 24px; font-size: 16px; color: var(--text-80); }
.form__status.err { color: var(--red-2); }
/* кот: как в макете — круг 984px, уходит за правый край экрана */
.contact__cat { --cat: min(984px, 68vw); position: absolute; z-index: 1; top: 62px; right: calc(var(--cat) * -0.243); width: var(--cat); height: var(--cat); max-width: none; pointer-events: none; }
.contact__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 181px; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0), #000); pointer-events: none; }

/* ---------- FOOTER ---------- */
.footer { background: #000; display: flex; flex-direction: column; align-items: center; gap: 72px; overflow: hidden; }
.footer__top { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 32px var(--pad); color: var(--text-80); }
.footer__center { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: #e8e8e8; }
.footer__center p { max-width: 400px; font-size: 24px; font-weight: 500; line-height: 1.4; color: var(--text); }
.footer__wordmark { width: calc(100% - 2 * var(--pad)); max-width: none; height: auto; } /* от левого до правого края, как строка с копирайтом */
.footer__bottom {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 32px var(--pad) 48px; font-family: "Stack Sans Headline", var(--font); font-size: 16px; line-height: 1.1;
}
.footer__social { display: flex; gap: 32px; }
.footer__social a { display: inline-flex; gap: 8px; align-items: center; color: var(--text-66); letter-spacing: .01em; transition: color .2s; }
.footer__social a svg { color: #979797; transition: color .2s; }
.footer__social a span { text-decoration: underline; text-underline-offset: 3px; }
.footer__social a:hover, .footer__social a:hover svg { color: #fff; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { :root { --press-scale: 1; } .reveal { opacity: 1; transform: none; transition: none; } .popup[open] { animation: none; } html { scroll-behavior: auto; } .arrow svg, .nav__cat svg { transition: none; } }

/* =================== АДАПТИВ =================== */
@media (max-width: 1280px) {
  :root { --pad: 40px; }
  .services { grid-template-columns: 340px 1fr; gap: 72px; }
  .clients { grid-template-columns: 1fr; }
  .clients__grid { max-width: 738px; width: 100%; margin: 0 auto; }
  .clients__label { padding-top: 0; justify-self: center; }
}
@media (max-width: 1100px) {
  .cases__wrap { aspect-ratio: auto; height: 1500px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .services__img { display: none; }
  .contact__cat { display: none; }
  .contact { min-height: 0; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { display: flex; justify-content: space-between; gap: 8px; }
  .cases__grid { grid-template-columns: 1fr 1fr; }
  .cases__col { display: contents; }
  .case__media.tall, .case__media.mid, .case__media.short { aspect-ratio: 4 / 4.2; }
  .services { grid-template-columns: 1fr; gap: 56px; padding-top: 120px; }
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__grid::before, .clients__grid::after { display: none; }
  .client { border-bottom: 1px solid #171717; }
}
@media (max-width: 600px) {
  .popup__body { padding: 48px 24px; }
  .cases-hero { padding-top: 120px; }
  .cases-page { padding-top: 32px; padding-bottom: 64px; }
  .chip { height: 40px; padding: 10px 14px; font-size: 14px; }
  :root { --pad: 16px; }
  .nav { top: 12px; }
  .nav__logo { padding: 0 10px; }
  .nav__cta { font-size: 13px; padding: 9.5px 13.5px 9.5px 7.5px; }
  .hero { padding: 120px 16px 40px; }
  .hero__text { font-size: 16px; }
  .hero__logos { width: 100%; margin-top: 32px; }
  .hero__divider { margin-top: 32px; }
  .cases { padding-top: 24px; }
  .cases__wrap { height: 1300px; }
  .cases__grid { grid-template-columns: 1fr; gap: 12px; }
  .case__media.tall, .case__media.mid, .case__media.short { aspect-ratio: 4 / 3.4; }
  .cases__fade { height: 360px; }
  .stats { width: calc(100% + 2 * var(--pad) - 16px); padding: 40px 16px 16px; border-radius: 28px; }
  .stats__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .stat { height: 260px; padding: 24px; }
  .stat img { width: 88px; height: 88px; }
  .eyebrow { font-size: 15px; }
  .service + .service { margin-top: 6px; }
  .clients { padding-top: 64px; padding-bottom: 64px; }
  .client { height: 170px; }
  .client img { height: 130px; }
  .contact { padding-top: 40px; }
  .contact__left { padding-top: 0; gap: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .form__bottom { flex-direction: column; align-items: flex-start; }
  .form__send { width: 100%; justify-content: center; }
  .form__note { width: auto; font-size: 15px; }
  .footer { gap: 48px; }
  .footer__center p { font-size: 20px; padding: 0 16px; }
  .footer__bottom { flex-direction: column; text-align: center; font-size: 14px; }
  .footer__social { gap: 18px; }
}
