/* ============================================================================
   ARTEM BOLSHAKOV PRODUCTION — styles.css
   Премиальный тёмный B2B-стиль: абсолютный чёрный, холодный фиолетовый,
   тёмное стекло, тонкие границы, много воздуха.
   Чистый HTML/CSS/JS — без фреймворков и сборки.
   ============================================================================ */

/* ══════════════════════════════════════════════════ ТОКЕНЫ ══════════════ */
:root {
  /* Фон */
  --black:       #000000;
  --bg-1:        #050509;
  --bg-2:        #0B0D14;

  /* Фирменный акцент — холодный фиолетовый */
  --violet:      #7B4DFF;
  --violet-2:    #8A5CFF;
  --violet-text: #C3B4FF;

  /* Вторичный сине-фиолетовый */
  --blue:        #4E6BFF;
  --blue-2:      #7AA7FF;

  /* Текст */
  --text:        #F4F4F7;
  --text-muted:  #A7A8B2;
  --text-dim:    #74757F;

  /* Линии и стекло */
  --line:        rgba(244, 244, 247, .08);
  --line-strong: rgba(244, 244, 247, .14);
  --line-violet: rgba(138, 92, 255, .38);

  --glass:       linear-gradient(180deg, rgba(11, 13, 20, .72), rgba(5, 5, 9, .86));
  --glass-solid: linear-gradient(180deg, rgba(13, 15, 23, .96), rgba(5, 5, 9, .98));

  /* Тени / свечение */
  --glow-violet: 0 30px 80px -40px rgba(123, 77, 255, .75);
  --glow-btn:    0 12px 34px -14px rgba(123, 77, 255, .85);

  /* Радиусы */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;

  /* Сетка */
  --container: 1240px;
  --gutter:    24px;
  --header-h:  76px;

  /* Типографика */
  --font:        "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Движение */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ══════════════════════════════════════════════════ RESET ═══════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* clip, а не hidden: hidden делает body скролл-контейнером и ломает
   position: sticky у финального блока с картиной. */
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}
body.is-locked { overflow: hidden; }

img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--violet-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════ УТИЛИТЫ ════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(76px, 9vw, 130px);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(38px, 4.5vw, 62px);
}

.section-title {
  font-size: clamp(27px, 3.3vw, 44px);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 244, 247, .025);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 10px rgba(138, 92, 255, .9);
}

/* Акцент Playfair Display Italic — только точечно */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--violet-text);
  letter-spacing: -0.01em;
}

/* Мягкое фиолетовое свечение-подложка */
.section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════ СТЕКЛО ══════════════ */
/* Слоистая подложка + тонкая градиентная кромка — основа «стеклянности». */
.glass {
  position: relative;
  border-radius: var(--r-2xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .012) 38%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(15, 17, 26, .62) 0%, rgba(6, 7, 12, .8) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 44px 110px -60px rgba(0, 0, 0, .95),
    0 0 90px -60px rgba(123, 77, 255, .55);
}
/* Кромка: светлая сверху, уходящая в фиолетовый снизу */
.service-card,
.extra,
.artifact,
.review {
  /* обязательно: иначе ::after-кромка (inset: 0) уедет на .container */
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .042) 0%, rgba(255, 255, 255, .01) 36%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(14, 16, 25, .6) 0%, rgba(6, 7, 12, .78) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.glass::after,
.service-card::after,
.extra::after,
.artifact::after,
.review::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(168deg,
    rgba(255, 255, 255, .20) 0%,
    rgba(255, 255, 255, .05) 24%,
    rgba(255, 255, 255, .012) 52%,
    rgba(138, 92, 255, .16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
/* У карточек кромка тоньше, чем у крупных стеклянных панелей */
.service-card::after,
.extra::after,
.artifact::after,
.review::after {
  background: linear-gradient(168deg,
    rgba(255, 255, 255, .13) 0%,
    rgba(255, 255, 255, .035) 28%,
    rgba(255, 255, 255, .008) 56%,
    rgba(138, 92, 255, .12) 100%);
}
.service-card:hover::after,
.review:hover::after {
  background: linear-gradient(168deg,
    rgba(255, 255, 255, .22) 0%,
    rgba(255, 255, 255, .06) 26%,
    rgba(138, 92, 255, .1) 58%,
    rgba(138, 92, 255, .3) 100%);
}

/* ═══════════════════════════════════════════════ КНОПКИ ═════════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 15.5px; }

.btn--primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-2) 100%);
  color: #fff;
  box-shadow: var(--glow-btn);
}
/* Лёгкий блик по кнопке */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -16px rgba(123, 77, 255, .95); }
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01) 60%),
    rgba(10, 11, 18, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  color: var(--text);
}
.btn__icon { flex-shrink: 0; opacity: .9; }
.ui-icon { flex-shrink: 0; }
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-violet);
  background: rgba(123, 77, 255, .09);
}
.btn--ghost:active { transform: translateY(0); }

/* ════════════════════════════════════════════════ ФОН САЙТА ════════════ */
/* Фиксированный слой под всем контентом: звёзды видны на всех секциях. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop__glow {
  position: absolute;
  border-radius: 50%;
}
.backdrop__glow--a {
  top: -18vh; right: -12vw;
  width: 62vw; height: 62vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(123, 77, 255, .12) 0%, rgba(123, 77, 255, .05) 34%, transparent 72%);
}
.backdrop__glow--b {
  top: 34vh; left: -20vw;
  width: 58vw; height: 58vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(78, 107, 255, .09) 0%, rgba(78, 107, 255, .035) 36%, transparent 74%);
}
.backdrop__glow--c {
  bottom: -26vh; left: 32vw;
  width: 56vw; height: 56vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(138, 92, 255, .085) 0%, rgba(138, 92, 255, .03) 36%, transparent 74%);
}

/* Холст выше вьюпорта — при скролле мягко сдвигается (лёгкий параллакс). */
.starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 132vh;
  will-change: transform;
}

/* ══════════════════════════════════════════════ CONSTELLATION ═══════════ */
.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

/* ══════════════════════════════════ КОПИРУЕМЫЕ КОНТАКТЫ ═══════════════ */
/* Контакты — обычный выделяемый текст, а не ссылка; рядом кнопка копирования. */
.copy-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .022);
  transition: border-color .35s var(--ease);
}
.copy-row:hover { border-color: var(--line-strong); }
.copy-row__value {
  font-size: 14px;
  color: var(--text-muted);
  user-select: all;
  cursor: text;
}

.copy-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.copy-btn:hover { color: var(--violet-text); background: rgba(123, 77, 255, .18); }
.copy-btn .ui-icon {
  grid-area: 1 / 1;
  width: 15px;
  height: 15px;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.copy-btn .ui-icon--check { opacity: 0; transform: scale(.6); }
.copy-btn.is-done { color: var(--violet-text); background: rgba(123, 77, 255, .2); }
.copy-btn.is-done .ui-icon--copy { opacity: 0; transform: scale(.6); }
.copy-btn.is-done .ui-icon--check { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════ ШАПКА ══════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(3, 3, 6, .72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Брендовый блок — крупнее и увереннее */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  transition: opacity .3s var(--ease);
}
.brand:hover { opacity: .82; }

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(123, 77, 255, .45));
}
.brand__wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.brand__line { display: block; }
.brand--sm .brand__logo { width: 32px; height: 32px; }
.brand--sm .brand__wordmark {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--text-muted);
}
.brand--sm .brand__line { display: inline; }
.brand--sm .brand__line + .brand__line::before { content: " "; }

/* Навигация */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color .35s var(--ease), background-color .35s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(244, 244, 247, .045); }
.nav__link.is-current { color: var(--text); background: rgba(123, 77, 255, .12); }
.nav__foot { display: none; }

.header__cta { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* Бургер */
.burger {
  display: none;
  position: relative;
  z-index: 59;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .4s var(--ease), opacity .25s ease, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  /* ВАЖНО: visibility, а не только opacity. backdrop-filter в Chrome
     продолжает работать на полностью прозрачном элементе и подсвечивает
     границы композитных слоёв прямоугольными кромками по всей странице. */
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--ease), visibility .4s;
}
.nav__scrim.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ════════════════════════════════════════════════ HERO ═════════════════ */
.hero {
  position: relative;
  /* Непрозрачный чёрный: иначе почти-чёрный кадр видео перекрывает
     фоновые градиенты страницы и виден прямоугольником. Звёзды в hero
     рисует собственный холст секции. */
  background: var(--black);
  padding-top: calc(var(--header-h) + clamp(44px, 6vw, 86px));
  padding-bottom: clamp(60px, 7vw, 104px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 662px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1vw, 20px);
  min-height: min(76vh, 720px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 700px;
}

.hero__title {
  font-size: clamp(28px, 2.78vw, 41px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.033em;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.66;
  color: var(--text-muted);
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Направления */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 17px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 62%),
    rgba(10, 11, 18, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--text-muted);
  transition: color .35s var(--ease), border-color .35s var(--ease),
              background-color .35s var(--ease), transform .35s var(--ease);
}
.chip__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(138, 92, 255, .28);
  background: rgba(123, 77, 255, .16);
  color: var(--violet-text);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.chip__icon svg { width: 16px; height: 16px; }
.chip__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.chip:hover {
  color: var(--text);
  border-color: var(--line-violet);
  transform: translateY(-1px);
}
.chip:hover .chip__icon {
  background: rgba(123, 77, 255, .3);
  border-color: rgba(138, 92, 255, .48);
}

/* Волна */
.hero__media {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* Внутри кадра у волны свои поля, поэтому подтягиваем её к тексту,
     а справа выпускаем в поле контейнера — так объект крупнее без ущерба тексту. */
  margin-left: clamp(-60px, -3.4vw, -16px);
  margin-right: calc(var(--gutter) * -1 - 1vw);
}
.hero__wave {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 880 / 750;
}
/* Мягкое свечение — внутри той же группы, что и волна, чтобы screen-смешивание
   проходило по нему, а не перекрывало его чёрным прямоугольником видео. */
.hero__wave::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(123, 77, 255, .17) 0%,
              rgba(110, 90, 255, .06) 44%,
              transparent 70%);
  pointer-events: none;
}
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: screen;
  /* Растушёвка кромки кадра: иначе граница «чёрный кадр → фон страницы»
     читается прямоугольником. Волна до краёв не достаёт (запас ~9% по
     горизонтали и ~6% по вертикали), поэтому силуэт не задевается. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image:
    linear-gradient(to right,  transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hero__video {
  opacity: 0;
  transition: opacity .7s ease;
}
.hero__video.is-ready { opacity: 1; }
.hero__poster { transition: opacity .7s ease; }
.hero__poster.is-hidden { opacity: 0; }

/* ═══════════════════════════════════ ФОНОВОЕ ВИДЕО СЕКЦИИ ══════════════ */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  /* длинный fade: видео не должно «выскакивать» */
  transition: opacity 1.8s ease;
}
.section-bg.is-visible { opacity: 1; }

.section-bg__video,
.section-bg__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .56;
  /* растушёвка краёв, чтобы кадр не читался прямоугольником */
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image:
    linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
/* Затемнение под текстом — читаемость важнее картинки */
.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(64% 56% at 50% 44%, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .12) 62%, transparent 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .26), transparent 32%, transparent 68%, rgba(0, 0, 0, .26));
}

/* У отзывов фон идёт ровно по ширине блока с карточками и заканчивается
   вместе с ними. По высоте он тоже поджат к контенту: верхняя кромка
   опущена, чтобы фон не начинался задолго до заголовка.
   Пропорции кадра не трогаем — только кадрируем (cover). */
.reviews .section-bg {
  left: 50%;
  right: auto;
  width: min(calc(var(--container) - var(--gutter) * 2), calc(100% - var(--gutter) * 2));
  top: clamp(30px, 4.6vw, 66px);
  bottom: clamp(6px, 1vw, 14px);
  transform: translateX(-50%);
  border-radius: var(--r-2xl);
}
.reviews .section-bg__video,
.reviews .section-bg__poster { opacity: .64; }

/* ═══════════════════════════════════════════════ УСЛУГИ ════════════════ */
.services { overflow: hidden; }
.services::before {
  top: -6%;
  left: -12%;
  width: 40vw;
  height: 40vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(78, 107, 255, .085) 0%, rgba(78, 107, 255, .03) 38%, transparent 74%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.3vw, 20px);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .55s var(--ease), border-color .55s var(--ease),
              box-shadow .55s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-violet);
  box-shadow: var(--glow-violet);
}

/* Карточка услуги, а не карточка статьи: кадр широкий, но не настолько,
   чтобы изображение читалось обрезанным (2.2:1 показывает ~81% высоты
   исходного кадра 16:9). Четыре карточки — примерно один экран. */
.service-card__media {
  position: relative;
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
  background: var(--bg-2);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .8s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.025); }
/* Мягкая растушёвка изображения в тёмную часть карточки */
.service-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 9, .88) 78%, rgba(5, 5, 9, .97));
  pointer-events: none;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(17px, 1.5vw, 21px) clamp(18px, 1.6vw, 23px) clamp(18px, 1.6vw, 23px);
}
.service-card__title {
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.service-card__short {
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--text-muted);
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--violet-text);
}
.service-card__more svg { transition: transform .45s var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

/* --- Нестандартная задача --- */
.extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(24px, 2.6vw, 36px);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.extra__text { display: flex; flex-direction: column; gap: 9px; max-width: 62ch; }
.extra__title { font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -0.028em; }
.extra__desc { font-size: 15px; line-height: 1.62; color: var(--text-muted); }
.extra__cta { flex-shrink: 0; }

/* ════════════════════════════════════════════ ПОРТФОЛИО ════════════════ */
.portfolio { overflow: hidden; }
.portfolio::before {
  top: 24%;
  right: -14%;
  width: 42vw;
  height: 42vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(123, 77, 255, .095) 0%, rgba(123, 77, 255, .035) 38%, transparent 74%);
}

/* Фон избранных работ опущен чуть ниже карточек: нижняя часть веера
   проявляется под сеткой и вокруг кнопки «Все работы». Сам кадр, масштаб
   и яркость не меняются — слой только смещён. */
.portfolio .section-bg {
  top: clamp(44px, 6.5vw, 110px);
  bottom: calc(clamp(44px, 6.5vw, 110px) * -1);
}

/* Карточки работ — в portfolio.css (общие с каталогом) */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

/* ═══════════════════════════════════════════════ ОТЗЫВЫ ════════════════ */
/* Спокойная секция: без частиц и активного движения */

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}

.review {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: border-color .5s var(--ease);
}
.review:hover { border-color: var(--line-strong); }

/* Метка вида карточки. У характеристик она подсвечена фирменным цветом —
   отзыв и официальный документ должны читаться как одна система,
   но с разным акцентом. */
.review__label {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 244, 247, .03);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.review--doc .review__label {
  border-color: rgba(138, 92, 255, .3);
  background: rgba(123, 77, 255, .12);
  color: var(--violet-text);
}

/* Миниатюра документа: лёгкий WebP, сам PDF грузится только по клику.
   Превью намеренно невысокое — карточка компактнее, а отступы и текст
   не трогаются. Окно кадра держит логотип, шапку и заголовок документа. */
.review__doc {
  position: relative;
  display: block;
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #0B0D14;
  transition: border-color .4s var(--ease);
}
.review__doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* пропускаем пустое белое поле над логотипом */
  object-position: 50% 8.5%;
  /* белый лист на тёмной карточке бьёт по глазам — слегка приглушаем,
     на ховере возвращаем полную яркость */
  opacity: .88;
  transition: transform .7s var(--ease), opacity .4s var(--ease);
}
.review--doc:hover .review__doc { border-color: var(--line-violet); }
.review--doc:hover .review__doc img { transform: scale(1.025); opacity: 1; }
/* Мягкий сход вниз — чтобы страница читалась как продолжающаяся,
   а не как обрезанная картинка. */
.review__doc::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  /* сход короче, чем раньше: окно ниже, заголовок документа не гасим */
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 12, .82));
  pointer-events: none;
}

.review__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 13px;
}
.review__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s var(--ease);
}
.review__action--lead { color: var(--violet-text); }
.review__action:hover { color: var(--text); }
.review__action svg { transition: transform .4s var(--ease); }
.review__action:hover svg { transform: translateX(4px); }

.review__text {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text);
}
.review__quote {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 34px;
  line-height: .6;
  color: rgba(138, 92, 255, .5);
}
.review__author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* прижимаем подпись и действия к низу, чтобы карточки в ряду совпали */
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.review__name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; }
.review__role { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }

/* ═════════════════════════════════════════════ КОНТАКТЫ ════════════════ */
.contacts {
  position: relative;
  /* без overflow: hidden — оно ломает sticky у финального блока */
  padding-bottom: 0;
}
.contacts::before {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 34vw;
  max-width: 900px;
  max-height: 460px;
  background: radial-gradient(ellipse, rgba(123, 77, 255, .12) 0%, rgba(123, 77, 255, .045) 38%, transparent 74%);
}

/* ═══════════════════════════ ФИНАЛ: картина ═══════════════════════════ */
/* Последний блок уходит вверх, картина остаётся приклеенной и теряет
   расфокус. Вместо анимации filter: blur() (дорого на каждом кадре скролла)
   два слоя — заранее размытый и резкий — и между ними кросс-фейд opacity. */
.finale {
  --p: 0;
  position: relative;
  height: clamp(820px, 178vh, 1700px);
  margin-top: clamp(40px, 6vw, 96px);
}
.finale__stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
  padding-block: clamp(24px, 4vw, 48px);
  padding-inline: var(--gutter);
}
.finale__cta {
  min-height: 56px;
  padding: 0 34px;
  font-size: 16px;
  /* Видимость CTA намеренно НЕ завязана на прогресс скролла: если по любой
     причине он не обновится, главная кнопка не должна пропасть. */
}
.finale__art {
  position: relative;
  margin: 0;
  width: min(840px, 100%);
  opacity: calc(.3 + var(--p) * .7);
  transform: scale(calc(1.04 - var(--p) * .04));
}
.finale__art-img {
  width: 100%;
  height: auto;
}
.finale__art-img--blur {
  filter: blur(15px) saturate(.75) brightness(.82);
  opacity: calc(1 - var(--p));
}
.finale__art-img--sharp {
  position: absolute;
  inset: 0;
  opacity: var(--p);
}

.contacts__card {
  position: relative;
  padding: clamp(38px, 4.6vw, 72px) clamp(22px, 4vw, 60px) clamp(32px, 4vw, 56px);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  overflow: hidden;
}

.contacts__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.contacts__title {
  max-width: none;
  font-size: clamp(28px, 3.5vw, 48px);
  text-wrap: balance;
}
.contacts__subtitle {
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.64;
  color: var(--text-muted);
}

.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

/* Контакты текстом — выделяются и копируются */
.contacts__handles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contacts__rule {
  width: min(430px, 76%);
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.contacts__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color .3s var(--ease);
}
.contacts__more:hover { color: var(--text); }
.contacts__more svg { transition: transform .4s var(--ease); }
.contacts__more:hover svg { transform: translateX(4px); }

/* ════════════════════════════════════════════════ ФУТЕР ════════════════ */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-block: 30px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color .3s var(--ease);
}
.site-footer__link:hover { color: var(--violet-text); }
.site-footer__link .ui-icon,
.site-footer__link .btn__icon { width: 16px; height: 16px; opacity: .8; }
.site-footer__link:hover .ui-icon,
.site-footer__link:hover .btn__icon { opacity: 1; }

.site-footer__copy { font-size: 12.5px; color: var(--text-dim); }

/* ══════════════════════════════════════════════ OVERLAYS ═══════════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .34s ease;
}
.overlay.is-open { opacity: 1; }

.overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.overlay__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 880px);
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: var(--glass-solid);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 70px -40px rgba(123, 77, 255, .5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(.986);
  transition: opacity .38s ease, transform .5s var(--ease);
}
.overlay.is-open .overlay__panel { opacity: 1; transform: none; }
.overlay__panel--narrow { width: min(100%, 520px); }
.overlay__panel--contact { width: min(100%, 560px); }

.overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 9, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.overlay__close:hover { color: var(--text); border-color: var(--line-violet); background: rgba(123, 77, 255, .15); }

.overlay__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 92, 255, .42) transparent;
}
.overlay__scroll::-webkit-scrollbar { width: 8px; }
.overlay__scroll::-webkit-scrollbar-track { background: transparent; }
.overlay__scroll::-webkit-scrollbar-thumb {
  background: rgba(138, 92, 255, .38);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.overlay__scroll::-webkit-scrollbar-thumb:hover { background: rgba(138, 92, 255, .6); background-clip: content-box; }
.overlay__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 8px;
}

/* --- Модалка услуги --- */
.svc-modal__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
}
.svc-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-modal__media::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 14, .92) 74%, #08090E);
  pointer-events: none;
}

.svc-modal__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 38px) clamp(28px, 3vw, 40px);
  margin-top: -6%;
}
.svc-modal__title {
  font-size: clamp(21px, 2.1vw, 29px);
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.svc-modal__intro { display: flex; flex-direction: column; gap: 14px; }
.svc-modal__intro p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-muted);
}
.svc-modal__note {
  padding: 14px 18px;
  border-left: 2px solid var(--violet);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(123, 77, 255, .08);
  font-size: 14px;
  line-height: 1.62;
  color: var(--text);
}

.svc-modal__blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.svc-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(244, 244, 247, .022);
}
.svc-block__heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet-text);
  margin-bottom: 12px;
}
.svc-block__list { display: flex; flex-direction: column; gap: 9px; }
.svc-block__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.svc-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 1px;
  background: var(--violet-2);
}

/* --- Контактная панель --- */
.overlay__panel--contact {
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.cpanel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: clamp(32px, 3.4vw, 44px) clamp(22px, 3vw, 38px) clamp(18px, 2.2vw, 26px);
}
.cpanel__title {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.cpanel__text {
  font-size: 15px;
  line-height: 1.64;
  color: var(--text-muted);
  max-width: 42ch;
}

/* Контакты выписаны полностью и работают как ссылки */
.cpanel__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.cpanel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 8px;
}
.cpanel__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 11px 11px 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .006));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .35s var(--ease);
}
.cpanel__row:hover { border-color: var(--line-strong); }
.cpanel__row-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(138, 92, 255, .32);
  background: rgba(123, 77, 255, .16);
  color: var(--violet-text);
}
.cpanel__row-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cpanel__row-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cpanel__row-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.cpanel__row-value { user-select: all; cursor: text; }
.cpanel__row .copy-btn { margin-left: auto; }

/* Картина лежит внизу панели — полностью чёткая, без размытия */
.cpanel__art {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  opacity: 0;
  transition: opacity .9s ease;
}
.cpanel__art.is-loaded { opacity: 1; }
.cpanel__art-img {
  width: 100%;
  height: clamp(168px, 30vh, 380px);
  object-fit: cover;
  object-position: 50% 46%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 13%, #000 30%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 13%, #000 30%);
}

/* --- Панель «О нас» --- */
.about-panel__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(30px, 3.2vw, 42px) clamp(24px, 3vw, 38px);
}
.about-panel__logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(123, 77, 255, .5));
}
.about-panel__title {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.about-panel__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════ АНИМАЦИИ ═══════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition:
    opacity .8s var(--ease) var(--d, 0s),
    transform .8s var(--ease) var(--d, 0s),
    filter .8s var(--ease) var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Пословная анимация заголовков */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.42em);
  transition:
    opacity .75s var(--ease) var(--d, 0s),
    transform .75s var(--ease) var(--d, 0s);
}
.is-in .word { opacity: 1; transform: none; }
.word .accent { display: inline-block; }

/* ═════════════════════════════════════════ АДАПТИВ ═════════════════════ */

/* --- Планшет: волна остаётся справа, но компактнее --- */
@media (max-width: 1080px) {
  :root { --gutter: 22px; }

  .hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 26px;
    min-height: 0;
  }
  .hero__wave { max-width: 430px; }
  .hero__copy { gap: 22px; }

}

/* --- Мобильное меню --- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 58;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    width: min(340px, 84vw);
    padding: calc(var(--header-h) + 22px) 24px 32px;
    border-left: 1px solid var(--line);
    background: rgba(4, 4, 8, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(101%);
    transition: transform .5s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 13px 14px;
    border-radius: var(--r-sm);
    font-size: 16px;
    color: var(--text);
  }
  .nav__foot { display: block; }
  .nav__cta { width: 100%; }

  .header__cta { display: none; }
  .burger { display: block; }

  .brand__wordmark { font-size: 12px; }
  .brand__logo { width: 42px; height: 42px; }
}

/* --- Мобильная композиция --- */
@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 68px; }

  body { font-size: 15.5px; }

  .hero {
    padding-top: calc(var(--header-h) + 34px);
    padding-bottom: 20px;
  }

  /* Текст первым, волна ниже */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .hero__copy { max-width: none; gap: 20px; }
  .hero__title { font-size: clamp(28px, 8.2vw, 38px); line-height: 1.14; }

  .hero__media { margin-inline: calc(var(--gutter) * -1); }
  .hero__wave {
    max-width: none;
    opacity: .94;
  }

  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }

  .chips { gap: 7px; }
  .chip { font-size: 12.5px; padding: 7px 13px; }

  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .reviews__grid  { grid-template-columns: minmax(0, 1fr); }
  .portfolio__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .extra { flex-direction: column; align-items: stretch; text-align: left; }
  .extra__cta { width: 100%; }

  .section-title { max-width: none; }

  .contacts__card { border-radius: var(--r-xl); }
  .contacts__actions { width: 100%; flex-direction: column; }
  .contacts__actions .btn { width: 100%; }
  .contacts__handles { flex-direction: column; gap: 8px; width: 100%; }
  .copy-row { width: 100%; justify-content: space-between; }
  .finale { height: clamp(660px, 148vh, 1200px); }
  .review__doc { aspect-ratio: 2 / 1; }
  .finale__cta { width: 100%; max-width: 340px; }
  .site-footer__links { gap: 2px 18px; }
  .site-footer__link { min-height: 42px; font-size: 14px; }
  .chip { padding: 5px 14px 5px 5px; }
  .chip__icon { width: 26px; height: 26px; border-radius: 8px; }
  .chip__icon svg { width: 14px; height: 14px; }
  .chip__label { font-size: 10.5px; letter-spacing: .06em; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Панели — как bottom-sheet */
  .overlay { align-items: flex-end; padding: 0; }
  .overlay__panel {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-bottom: 0;
    transform: translateY(100%) scale(1);
  }
  .overlay.is-open .overlay__panel { transform: none; }

  .svc-modal__blocks { grid-template-columns: minmax(0, 1fr); }
  .svc-modal__body { margin-top: -8%; }

  .overlay__ctas { flex-direction: column; }
  .overlay__ctas .btn { width: 100%; }
}

@media (max-width: 400px) {
  .brand__wordmark { font-size: 10.5px; letter-spacing: .13em; }
  .brand__logo { width: 38px; height: 38px; }
}

/* ══════════════════════════════════ PREFERS-REDUCED-MOTION ═════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero__video { display: none; }
  .hero__poster { opacity: 1 !important; }
  .finale__art { opacity: 1; }
  .finale__art-img--blur { opacity: 0; }
  .finale__art-img--sharp { opacity: 1; }
}
