/* ==========================================================================
   [НАЗВАНИЕ СТУДИИ] — стили лендинга
   --------------------------------------------------------------------------
   Структура файла:
     01. Токены (цвета, шрифты, отступы)
     02. Сброс и база
     03. Типографика
     04. Утилиты и раскладка
     05. Кнопки, ссылки, формы
     06. Шапка и навигация
     07. Первый экран (кинетическая типографика, canvas, бегущая строка)
     08. Секции: услуги, работы, процесс, цены, фильтр, о студии
     09. FAQ, заявка, подвал, липкая панель
     10. Адаптивность (планшет, десктоп, широкие экраны)
     11. Доступность и предпочтения пользователя (reduced-motion, печать)
   --------------------------------------------------------------------------
   Мобильный подход: базовые стили — для телефона, дальше @media (min-width).
   Точки перелома: 480 / 640 / 768 / 1024 / 1280 / 1600.
   ========================================================================== */

/* ============================ 01. ТОКЕНЫ ============================ */
:root {
  /* Цвет: тёмный премиум + неоновые акценты */
  --bg: #08090d;
  --bg-soft: #0b0d13;
  --surface: #11131b;
  --surface-2: #161a24;
  --line: rgba(255, 255, 255, 0.09);
  /* Границы полей и кнопок — единственный признак элемента управления,
     поэтому контраст не ниже 3:1 (WCAG 1.4.11) */
  --line-strong: rgba(255, 255, 255, 0.4);
  --text: #edeff5;
  --text-muted: #a4acbd;
  --text-dim: #7b8498;
  --accent: #c8ff4d;        /* кислотный лайм — главный CTA */
  --accent-ink: #0a0c07;    /* текст на акценте */
  --accent-2: #4de1ff;      /* циан — градиенты и детали */
  --accent-3: #7c5cff;      /* фиолет — глубина */
  --danger: #ff6f6f;

  /* Шрифты */
  --font-display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Кегли: тянутся вместе с экраном, без скачков */
  --fs-h1: clamp(2.3rem, 1.15rem + 5.4vw, 5.5rem);
  --fs-h2: clamp(1.7rem, 1.1rem + 2.5vw, 2.85rem);
  --fs-h3: clamp(1.12rem, 1rem + 0.55vw, 1.4rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.35vw, 1.16rem);
  --fs-body: clamp(0.97rem, 0.93rem + 0.2vw, 1.05rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  /* Ритм и радиусы */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 8.5vw, 140px);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 62px;

  /* Тени и свечения */
  --shadow-card: 0 18px 50px -28px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================ 02. СБРОС И БАЗА ============================ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Отступ под липкую шапку при переходе по анкорам */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Фоновый шум: убирает «пластиковость» тёмного фона */
  background-image:
    radial-gradient(120% 80% at 12% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(90% 70% at 100% 0%, rgba(77, 225, 255, 0.09), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll;
}

img, svg, canvas, video { display: block; max-width: 100%; }
svg { height: auto; }

/* Атрибут hidden должен побеждать любые display из компонентов */
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Видимый только при клавиатурной навигации */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-200%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Полоса прогресса чтения */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* ============================ 03. ТИПОГРАФИКА ============================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  /* Unbounded — широкий шрифт: длинные слова («Демонстрационные») на узких
     экранах не влезают в строку. Переносы по правилам языка (html lang="ru")
     плюс аварийный перенос по буквам, чтобы не появлялось горизонтальной прокрутки. */
  hyphens: auto;
  overflow-wrap: break-word;
}

p { text-wrap: pretty; }

a { color: inherit; }

strong { font-weight: 700; color: var(--text); }

/* ============================ 04. УТИЛИТЫ И РАСКЛАДКА ============================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 920px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 40%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}
.section--form { padding-bottom: calc(var(--section-y) + 20px); }

.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 56px); }

.section__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section__title { font-size: var(--fs-h2); }

.section__lead {
  margin-top: 18px;
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 62ch;
}

.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-card);
}

.note {
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  display: grid;
  gap: 10px;
}
.note p { max-width: 92ch; }
.note a { color: var(--accent); }
.note--tight { margin-top: 16px; }
.note__warn { color: #ffd479; }

/* ============================ 05. КНОПКИ, ССЫЛКИ, ФОРМЫ ============================ */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.2s linear;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--primary {
  --btn-bg: linear-gradient(120deg, var(--accent) 0%, #a8f03a 45%, var(--accent) 100%);
  --btn-fg: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 12px 34px -16px rgba(200, 255, 77, 0.7);
}
.btn--primary:hover { box-shadow: 0 18px 42px -16px rgba(200, 255, 77, 0.85); }

.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }

.btn--sm { min-height: 44px; padding: 10px 18px; }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Индикатор загрузки внутри кнопки */
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.is-loading .btn__spinner { display: block; }
.is-loading .btn__text { opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px; /* цель нажатия ≥ 24 px (WCAG 2.5.8) */
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  cursor: pointer;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover::after { transform: translateX(2px); }

/* --- Поля формы --- */
.field { display: grid; gap: 8px; margin-bottom: 16px; border: 0; padding: 0; }
.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  padding: 0;
}
.field__req { color: var(--accent); }

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(8, 9, 13, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* ≥16px — iOS не зумит страницу при фокусе */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  appearance: none;
}
.field__input::placeholder { color: var(--text-dim); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.28); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.16);
  background: rgba(8, 9, 13, 0.95);
}

.field__textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23a4acbd' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.field__select option { background: var(--surface-2); color: var(--text); }

.field__hint-sm { font-size: var(--fs-xs); color: var(--text-dim); }
.field__error { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }
.field__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Состояние ошибки у поля */
.field.is-invalid .field__input,
.checkbox.is-invalid .checkbox__box { border-color: var(--danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px rgba(255, 111, 111, 0.16); }

/* Сегментированный переключатель канала связи (на трёх radio-инпутах) */
.field--segmented { margin-bottom: 16px; }
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.6);
}
.segmented__input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.segmented__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  user-select: none;
}
.segmented__label:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.segmented__input:checked + .segmented__label {
  background: var(--accent);
  color: var(--accent-ink);
}
.segmented__input:focus-visible + .segmented__label {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Чекбокс согласия */
.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox__input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.checkbox__box {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(8, 9, 13, 0.7);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.checkbox__box::after {
  content: "";
  display: block;
  width: 6px;
  height: 11px;
  margin: 3px auto 0;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.18s var(--ease);
}
.checkbox__input:checked + .checkbox__box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox__input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox__input:focus-visible + .checkbox__box { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.checkbox__text a { color: var(--accent); }

/* Ловушка для ботов: уводим за пределы экрана, но не прячем через display:none */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Формы --- */
.form { display: block; }
.form--mini { border-radius: var(--radius-lg); }
.form__head { margin-bottom: 18px; }
.form__title { font-size: var(--fs-h3); margin-bottom: 6px; }
.form__hint { font-size: var(--fs-sm); color: var(--text-muted); }
.form__row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.form__note { margin-top: 14px; font-size: var(--fs-xs); color: var(--text-dim); }

.form__status {
  margin-top: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: none;
}
.form__status.is-ok,
.form__status.is-error,
.form__status.is-pending { display: block; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: var(--danger); }
.form__status.is-pending { color: var(--text-muted); }

.form__fallback {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 111, 111, 0.06);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: grid;
  gap: 12px;
}
.form__fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Блок подтверждения отправки: работает и через CSS :target (без JS) */
.sent {
  display: none;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(200, 255, 77, 0.4);
  border-radius: var(--radius);
  background: rgba(200, 255, 77, 0.07);
}
.sent:target,
.sent.is-sent { display: flex; }
.sent__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.sent__title { font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.sent__text { font-size: var(--fs-sm); color: var(--text-muted); }
.sent__text a { color: var(--accent); }

/* ============================ 06. ШАПКА ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: rgba(8, 9, 13, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 13, 0.92);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--header-h);
  padding-block: 6px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: 0 1 auto;
  min-width: 0;
}
.logo__mark { color: var(--accent); display: grid; place-items: center; }
.logo__mark svg { width: 28px; height: 28px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.72rem, 2.9vw, 0.95rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Навигация: на телефоне — горизонтальная прокручиваемая полоса.
   Работает без JavaScript. */
.nav {
  order: 3;
  flex: 1 0 100%;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav__list {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0 0 2px;
  width: max-content;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__link.is-active { color: var(--accent); border-color: rgba(200, 255, 77, 0.35); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header__contact { display: none; text-decoration: none; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.header__contact-label { display: block; font-size: var(--fs-xs); color: var(--text-dim); }
.header__contact-value {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  max-width: 13ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header__contact:hover .header__contact-value { color: var(--accent); }
.header__actions .btn { min-height: 42px; padding: 10px 16px; }

/* ============================ 07. ПЕРВЫЙ ЭКРАН ============================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(36px, 7vh, 84px) 0;
  /* overflow-x: clip (а не hidden!) обрезает свечения по бокам, но НЕ создаёт
     скролл-контейнер — иначе липкая мини-форма ниже перестаёт работать. */
  overflow-x: clip;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 20%, transparent 78%);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  z-index: -2;
  height: 80vh;
  background:
    radial-gradient(45% 45% at 22% 30%, rgba(200, 255, 77, 0.16), transparent 65%),
    radial-gradient(45% 45% at 78% 18%, rgba(77, 225, 255, 0.14), transparent 65%),
    radial-gradient(60% 55% at 50% 90%, rgba(124, 92, 255, 0.16), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Прожектор под курсором: позиция приходит из main.js через CSS-переменные */
.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(200, 255, 77, 0.09), transparent 70%);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.hero.has-pointer .hero__spotlight { opacity: 1; }

.hero__inner { width: 100%; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 30px);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}

/* Кинетическая типографика: каждая строка выезжает из-под маски */
.hero__title {
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: clamp(22px, 3.4vw, 40px);
  max-width: 20ch;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__title .line__inner {
  display: block;
  transform: translateY(105%);
  animation: lineUp 0.95s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) .line__inner { animation-delay: 0.08s; }
.hero__title .line:nth-child(2) .line__inner { animation-delay: 0.2s; }
.hero__title .line:nth-child(3) .line__inner { animation-delay: 0.32s; }
@keyframes lineUp { to { transform: translateY(0); } }

.line--accent .line__inner {
  background: linear-gradient(100deg, var(--accent) 10%, #eaffb0 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.82em;
  margin-left: 0.06em;
  background: var(--accent);
  vertical-align: -0.06em;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__grid { display: grid; gap: clamp(26px, 4vw, 46px); }
.hero__lead { min-width: 0; }

.hero__sub {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 58ch;
}

.hero__points {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.hero__points li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.hero__form-wrap { min-width: 0; }

/* Бегущая строка компетенций */
.ticker {
  position: relative;
  margin-top: clamp(34px, 5vw, 62px);
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerMove 38s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.4vw, 0.88rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker__sep { color: var(--accent); }
@keyframes tickerMove { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ============================ 08. СЕКЦИИ ============================ */
.service { display: flex; flex-direction: column; gap: 12px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.service:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.service__num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--accent);
}
.service__title { font-size: var(--fs-h3); }
.service__text { color: var(--text-muted); font-size: var(--fs-sm); }
.service__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* --- Работы: абстрактные демо-макеты --- */
.case { display: flex; flex-direction: column; gap: 12px; }
.case__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(90% 80% at 20% 0%, rgba(200, 255, 77, 0.12), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(124, 92, 255, 0.16), transparent 60%),
    #0a0c11;
  overflow: hidden;
}
/* Палитры концептов: у каждой сферы своя температура, чтобы три карточки
   не сливались в одну. Бьюти — тёплый лайм, барбершоп — холодный циан,
   стоматология — спокойный фиолетово-синий. */
.case__preview--beauty {
  background:
    radial-gradient(90% 80% at 20% 0%, rgba(200, 255, 77, 0.16), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(124, 92, 255, 0.18), transparent 60%),
    #0a0c11;
}
.case__preview--barber {
  background:
    radial-gradient(90% 80% at 78% 0%, rgba(77, 225, 255, 0.18), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(255, 214, 102, 0.12), transparent 60%),
    #0a0c11;
}
.case__preview--dental {
  background:
    radial-gradient(90% 80% at 50% -10%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(90% 80% at 100% 100%, rgba(77, 225, 255, 0.14), transparent 60%),
    #0a0c11;
}
.case__preview--landing {
  background:
    radial-gradient(90% 80% at 20% 0%, rgba(200, 255, 77, 0.12), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(124, 92, 255, 0.16), transparent 60%),
    #0a0c11;
}
.case__preview--shop {
  background:
    radial-gradient(90% 80% at 80% 0%, rgba(77, 225, 255, 0.14), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(200, 255, 77, 0.1), transparent 60%),
    #0a0c11;
}
.case__preview--corp {
  background:
    radial-gradient(90% 80% at 50% -10%, rgba(124, 92, 255, 0.2), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(77, 225, 255, 0.1), transparent 60%),
    #0a0c11;
}
.case__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.82);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  backdrop-filter: blur(6px);
}
.case__title { font-size: var(--fs-h3); }
.case__text { font-size: var(--fs-sm); color: var(--text-muted); }
.case__meta { font-size: var(--fs-xs); color: var(--text-dim); }
.case__meta a { color: var(--accent); }

/* Скелетон-макет внутри превью */
.mock {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 7, 10, 0.72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mock__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.mock__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.mock__bar span:first-child { background: rgba(200, 255, 77, 0.55); }
.mock__body { flex: 1; display: grid; gap: 10px; padding: 12px; align-content: start; min-height: 0; }
.mock__hero { display: grid; gap: 8px; justify-items: start; }
.mock__line,
.mock__cell,
.mock__tile {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05));
}
.mock__line { width: 100%; height: 8px; }
.mock__line--xl { width: 78%; height: 14px; }
.mock__line--lg { width: 56%; height: 10px; }
.mock__line--sm { width: 64%; }
.mock__btn { width: 34%; height: 16px; border-radius: 999px; background: rgba(200, 255, 77, 0.75); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__row--tight { grid-template-columns: repeat(2, 1fr); }
.mock__cell { height: 34px; }
.mock__cell--sm { height: 22px; }
.mock__cell--tall { height: 52px; }
/* Сетка плиток каталога: ряды делят доступную высоту, поэтому макет
   не обрезается ни на одной ширине карточки */
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.mock__tile { min-height: 0; border-radius: 8px; }
.mock__list { display: grid; gap: 7px; margin-top: 4px; }

/* --- Процесс --- */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-block: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 255, 77, 0.65);
  letter-spacing: 0.02em;
}
.steps__title {
  font-size: var(--fs-h3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.steps__time {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  padding: 3px 10px;
  border: 1px solid rgba(200, 255, 77, 0.3);
  border-radius: 999px;
  white-space: nowrap;
}
.steps__body p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 72ch; }

/* --- Тарифы --- */
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan--featured {
  border-color: rgba(200, 255, 77, 0.45);
  box-shadow: 0 24px 60px -30px rgba(200, 255, 77, 0.5);
  background: linear-gradient(180deg, rgba(200, 255, 77, 0.07), rgba(255, 255, 255, 0.012)), var(--surface);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: clamp(18px, 2.4vw, 28px);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(200, 255, 77, 0.9);
}
.plan__title { font-size: var(--fs-h3); }
.plan__desc { font-size: var(--fs-sm); color: var(--text-muted); }
.plan__price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.plan__from { font-size: var(--fs-xs); font-weight: 500; color: var(--text-dim); margin-right: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.plan__cur { font-size: 0.6em; color: var(--text-muted); }
.plan__time { font-size: var(--fs-xs); color: var(--text-dim); }
.plan__list { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 9px; }
.plan__list li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* --- Фильтр «с кем сработаемся» --- */
.list-card { display: grid; gap: 14px; }
.list-card__title {
  font-size: var(--fs-h3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.list-card--yes .list-card__title span { color: var(--accent); }
.list-card--no .list-card__title span { color: var(--danger); }
.list-card__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.list-card__list li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.list-card__list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.list-card--yes .list-card__list li::before { content: "→"; color: var(--accent); }
.list-card--no .list-card__list li::before { content: "—"; color: var(--text-dim); }

/* --- О студии --- */
.about { margin-top: clamp(16px, 2vw, 22px); }
.about__grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.about__title { font-size: var(--fs-h3); margin-bottom: 12px; }
.about__text { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 12px; max-width: 60ch; }
.about__rules { list-style: none; padding: 0; display: grid; gap: 12px; align-content: start; }
.about__rules li {
  padding-left: 18px;
  border-left: 2px solid rgba(200, 255, 77, 0.4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ============================ 09. FAQ, ЗАЯВКА, ПОДВАЛ ============================ */
.faq { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.faq__item[open] { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 2vw, 22px);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 5px auto;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.25s var(--ease);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__icon { color: var(--accent); border-color: rgba(200, 255, 77, 0.5); }
.faq__item[open] .faq__icon::after { transform: translateY(-50%) rotate(0); }
.faq__body { overflow: hidden; }
.faq__inner { padding: 0 clamp(16px, 2vw, 22px) 20px; }
.faq__inner p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 74ch; }

/* Плавное раскрытие в браузерах с поддержкой ::details-content */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    block-size: 0;
    opacity: 0;
    overflow: hidden;
    transition: block-size 0.36s var(--ease), opacity 0.3s var(--ease), content-visibility 0.36s allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; opacity: 1; }
}

/* --- Заявка --- */
.lead-grid { display: grid; gap: clamp(26px, 4vw, 52px); }
.lead-grid__note { margin-top: 20px; font-size: var(--fs-xs); color: var(--text-dim); max-width: 46ch; }

.contacts { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 16px; }
.contacts__item { display: grid; gap: 2px; }
.contacts__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.contacts__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.15rem);
  text-decoration: none;
  color: var(--text);
  word-break: break-word;
}
a.contacts__value:hover { color: var(--accent); }

/* --- Подвал --- */
.footer {
  padding-block: clamp(40px, 6vw, 76px) 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer__grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.footer__brand .logo { margin-bottom: 14px; }
.footer__col { min-width: 0; }
.footer__made { max-width: 46ch; }
.footer__text { font-size: var(--fs-sm); color: var(--text-muted); max-width: 38ch; }
.footer__title {
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer__list { list-style: none; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); }
.footer__list a { color: var(--text-muted); text-decoration: none; }
.footer__list a:hover { color: var(--accent); }
.footer__list span { color: var(--text-dim); }
.footer__bottom {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* На телефоне и планшете под подвалом оставляем место под липкую панель,
   чтобы она не перекрывала юридические строки. */
@media (max-width: 1023px) {
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* --- Липкая панель на мобильных --- */
.mobile-bar {
  position: fixed;
  z-index: 110;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(8, 9, 13, 0.86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease), visibility 0s linear;
}
.mobile-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}
.mobile-bar__btn--primary {
  background: linear-gradient(120deg, var(--accent), #a8f03a);
  color: var(--accent-ink);
  border-color: transparent;
}
.mobile-bar__icon { display: grid; place-items: center; }
/* Панель прячется у блока заявки. visibility переключается с задержкой,
   чтобы скрытые ссылки не ловили фокус с клавиатуры (WCAG 2.4.7). */
.mobile-bar.is-hidden {
  transform: translateY(120%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

/* --- Текстовые страницы-документы (privacy.html, 404.html) --- */
.doc { margin-top: clamp(18px, 2.4vw, 28px); }
.doc h2 {
  font-size: var(--fs-h3);
  margin-top: clamp(22px, 2.6vw, 30px);
  margin-bottom: 8px;
}
.doc h2:first-child { margin-top: 0; }
.doc p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 10px; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
}
.doc a { color: var(--accent); }

/* --- Кнопка «наверх» --- */
.to-top {
  position: fixed;
  z-index: 105;
  right: var(--gutter);
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(17, 19, 27, 0.9);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.to-top:hover { transform: translateY(-3px); color: var(--accent); border-color: rgba(200, 255, 77, 0.45); }

/* --- Появление блоков при скролле ---
   Скрываем только если JavaScript включился (html.js ставит boot.js):
   без JS контент виден всегда. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible { will-change: auto; }

/* ============================ 10. АДАПТИВНОСТЬ ============================ */
@media (min-width: 480px) {
  .hero__title { max-width: 22ch; }
  .form__row { gap: 0 16px; }
}

/* Очень узкие экраны (320–400 px): заголовки в Unbounded нужно уменьшить,
   иначе даже с переносами строка не помещается */
@media (max-width: 400px) {
  :root {
    --fs-h1: clamp(1.95rem, 1rem + 5vw, 2.4rem);
    --fs-h2: clamp(1.42rem, 1rem + 2.4vw, 1.8rem);
  }
  .section__title { font-size: var(--fs-h2); }
}

@media (min-width: 640px) {
  .sent { padding: 22px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }

  /* Липкая панель действий остаётся и на планшетах: там первый экран
     складывается в столбик, и быстрая кнопка особенно нужна. */
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }

  .nav {
    order: 0;
    flex: 0 1 auto;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .nav__list { padding: 0; }
  /* Контакт в шапке показываем только на широких экранах: с ним шапка
     перестаёт помещаться и наезжает на кнопку. */
  .header__contact { display: none; }

  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .steps__item { grid-template-columns: 72px 1fr; gap: 24px; }
  .footer__bottom { align-items: center; }
}

@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  .to-top { bottom: 28px; }
  .hero { padding-block: clamp(40px, 8vh, 96px) 0; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(330px, 400px); align-items: start; }
  .hero__form-wrap { position: sticky; top: calc(var(--header-h) + 24px); }

  /* Три колонки в сетках фиксируем, чтобы карточки не «прыгали» */
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .lead-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .lead-grid__aside { position: sticky; top: calc(var(--header-h) + 32px); }

  .about__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .steps__item { grid-template-columns: 96px 1fr; }
}

@media (min-width: 1400px) {
  /* Контакт в шапке показываем только там, где он точно помещается */
  .header__contact { display: block; }
  .header__actions { min-width: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) 420px; gap: 56px; }
}

/* Короткие экраны ноутбуков (900–1000 px по высоте): первый экран обязан
   вмещать мини-форму целиком вместе с кнопкой, поэтому ужимаем отступы и кегль. */
@media (min-width: 1024px) and (max-height: 940px) {
  :root { --fs-h1: clamp(2.3rem, 1.1rem + 3.4vw, 3.85rem); }
  .hero { padding-block: clamp(12px, 2.2vh, 34px) 0; }
  .hero__eyebrow { margin-bottom: clamp(10px, 1.6vw, 16px); padding: 6px 13px; }
  .hero__title { margin-bottom: clamp(14px, 1.8vw, 22px); line-height: 0.95; }
  .form--mini { padding: clamp(14px, 1.6vw, 20px); }
  .form__head { margin-bottom: 12px; }
  .field { margin-bottom: 10px; }
  .checkbox { margin-bottom: 12px; }
  .form__note { margin-top: 10px; }
  .btn--lg, .form--mini .btn { min-height: 50px; }
}

@media (min-width: 1600px) {
  .container { max-width: 1360px; }
  :root { --fs-h1: clamp(3rem, 1.4rem + 4.2vw, 6rem); }
}

/* Планшет в портретной ориентации и низкие экраны: не режем первый экран */
@media (max-height: 720px) and (min-width: 1024px) {
  .hero { min-height: auto; padding-block: 48px 0; }
}

/* ============================ 11. ДОСТУПНОСТЬ И ПРЕДПОЧТЕНИЯ ============================ */
@media (hover: none) {
  .hero__spotlight { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__title .line__inner { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__cursor { animation: none; }
}

/* Пользователь просит больше контраста */
@media (prefers-contrast: more) {
  :root {
    --text-muted: #c9cfdb;
    --text-dim: #a9b1c1;
    --line: rgba(255, 255, 255, 0.22);
    --line-strong: rgba(255, 255, 255, 0.4);
  }
  .field__input { background: #05060a; }
}

@media print {
  :root {
    /* На белой бумаге полупрозрачные оттенки нечитаемы — берём плотные цвета */
    --bg: #fff;
    --bg-soft: #fff;
    --surface: #fff;
    --text: #111;
    --text-muted: #303030;
    --text-dim: #444;
    --line: #bbb;
    --line-strong: #999;
    --accent: #3d5c00;
    --accent-ink: #fff;
  }
  .header, .mobile-bar, .to-top, .hero__canvas, .hero__glow, .hero__spotlight,
  .ticker, .scroll-progress, .hero__form-wrap, .lead-grid__form { display: none !important; }
  body { background: #fff; color: #111; padding: 0; }
  .section, .hero { padding-block: 16px; border: 0; }
  .card, .note { border-color: #ccc; background: #fff; box-shadow: none; }
  .note__warn { color: #7a4b00; }
  .list-card--yes .list-card__title span,
  .service__num, .section__eyebrow, .steps__time, .plan__from { color: #3d5c00; }
  a { text-decoration: underline; }
}

/* ---------------------------------------------------------------------------
   Портфолио-концепты: макеты внутри карточек.
   Раньше серые полоски почти сливались с фоном и карточки читались как пустые.
   Здесь поднимаем контраст и даём каждой сфере свой акцент: он используется
   в кнопке, заголовке макета и первой точке «браузера».
   --------------------------------------------------------------------------- */
.case__preview--beauty { --mock-accent: #c8ff4d; }
.case__preview--barber { --mock-accent: #4de1ff; }
.case__preview--dental { --mock-accent: #b18cff; }

.mock { background: rgba(9, 11, 16, 0.9); border-color: rgba(255, 255, 255, 0.16); }
.mock__bar { padding: 9px 11px; }
.mock__bar span { background: rgba(255, 255, 255, 0.28); }
.mock__bar span:first-child { background: var(--mock-accent, var(--accent)); }

.mock__line,
.mock__cell,
.mock__tile {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16));
}
.mock__line { height: 9px; }
.mock__line--xl { height: 17px; width: 82%; }
.mock__line--lg { height: 12px; width: 62%; }
.mock__line--sm { width: 70%; }

.mock__cell,
.mock__tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mock__cell { height: 36px; }
.mock__cell--tall { height: 56px; }
.mock__btn {
  width: 40%;
  height: 19px;
  background: var(--mock-accent, var(--accent));
  box-shadow: 0 8px 18px -8px var(--mock-accent, var(--accent));
}