/* ============================================================================
   Websait-52 — вариант 3 «неоновая студия»
   Тёмная студийная тема: почти чёрный фон, кислотный лайм, тонкая сетка.
   Без внешних зависимостей: только локальный Manrope и системный моноширинный.
   Слои файла: 1 шрифты · 2 токены тем · 3 база · 4 утилиты · 5 шапка
   6 первый экран · 7 бегущая строка · 8 bento · 9 услуги · 10 пакеты
   11 залипающие шаги · 12 лента работ · 13 почему я · 14 вопросы
   15 контакты · 16 подвал · 17 мобильная панель · 18 просмотрщик
   19 анимации · 20 медиазапросы и доступность
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Шрифты */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------- 2. Токены тем
   Тёмная тема — состояние по умолчанию, поэтому она работает и без JavaScript.
   Светлая включается атрибутом data-theme="light", который ставит script.js
   (или ранний инлайн-скрипт в <head> — чтобы не было вспышки).               */

:root {
  color-scheme: dark;

  --bg: #08090c;
  --bg-2: #0d0f13;
  --panel: #101319;
  --panel-2: #14181f;
  --panel-3: #1a1f27;
  --line: #1e232b;
  --line-2: #2b323c;
  --fg: #eef1f4;
  --fg-soft: #a7aeb8;
  --fg-dim: #6f7783;
  --accent: #c6ff3d;
  --accent-2: #9bdb1f;
  --accent-ink: #08090c;
  --accent-fg: #c6ff3d;
  --on-accent: #08090c;
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    0 18px 50px -22px color-mix(in srgb, var(--accent) 45%, transparent);
  --shadow: 0 20px 60px -30px rgba(0, 0, 0, .9);

  --wrap: 1340px;
  --pad: clamp(18px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;

  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;

  /* Шаг сетки для «линейки дизайнера» */
  --grid: 56px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f5f2;
  --bg-2: #eceee8;
  --panel: #ffffff;
  --panel-2: #f8f9f5;
  --panel-3: #eef1e8;
  --line: #dcdfd5;
  --line-2: #c4c9ba;
  --fg: #0b0d10;
  --fg-soft: #4d545c;
  --fg-dim: #6f7680;
  --accent: #c6ff3d;
  --accent-2: #a9e627;
  --accent-ink: #08090c;
  --accent-fg: #3f6a00;
  --on-accent: #08090c;
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 55%, transparent),
    0 18px 45px -26px color-mix(in srgb, var(--accent-2) 65%, transparent);
  --shadow: 0 22px 50px -34px rgba(20, 26, 12, .45);
}

/* ------------------------------------------------------------------ 3. База */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(1.75rem, 4.4vw, 3.35rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.5rem); letter-spacing: -0.025em; }
h4 { font-size: 1.05rem; }

p { margin: 0; }

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

s { color: var(--fg-dim); text-decoration-thickness: 1px; }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- 4. Утилиты */
.v3-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--fg-dim);
}

.v3-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.v3-skip:focus { left: 10px; top: 10px; }

.v3-section {
  position: relative;
  padding-block: clamp(56px, 7vw, 120px);
  border-top: 1px solid var(--line);
}

/* Длинные секции не рендерятся, пока не подъедут к экрану */
.v3-cv { content-visibility: auto; contain-intrinsic-size: auto 1400px; }

.v3-section-alt {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--panel) 55%, transparent) 0%,
      transparent 40%),
    var(--bg-2);
}

.v3-head-block {
  max-width: 900px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.v3-head-block h2 { margin-block: 14px 18px; }

.v3-head-block h2 span,
.v3-sticky-aside h2 span,
.v3-contact-info h2 span {
  color: var(--fg-dim);
  font-weight: 600;
}

.v3-num { color: var(--accent-fg); }

.v3-lead {
  color: var(--fg-soft);
  font-size: clamp(15px, 1.1vw, 18px);
  max-width: 62ch;
}

.v3-tag { color: var(--fg-dim); }

.v3-note {
  margin-top: clamp(24px, 3vw, 40px);
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--fg-soft);
  max-width: 78ch;
}

.v3-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--fg-soft);
}

.v3-list li {
  position: relative;
  padding-left: 26px;
}

.v3-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(.85);
}

.v3-list-cross li::before {
  width: 12px;
  height: 12px;
  border: 0;
  transform: none;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--fg-dim) calc(50% - 1px), var(--fg-dim) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom left, transparent calc(50% - 1px), var(--fg-dim) calc(50% - 1px), var(--fg-dim) calc(50% + 1px), transparent calc(50% + 1px));
  top: .42em;
}

/* ---------------------------------------------------------------- 5. Шапка */
.v3-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

.v3-head.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}

.v3-head-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 68px;
  padding-block: 10px;
}

.v3-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.v3-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--accent-fg);
  flex: none;
}

.v3-brand-name {
  font-weight: 800;
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.v3-brand-name b { color: var(--accent-fg); }

.v3-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  min-width: 0;
  justify-content: center;
}

.v3-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.v3-nav a:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.v3-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.v3-head-phone {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.v3-head-phone:hover { color: var(--accent-fg); }

/* Переключатель темы */
.v3-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.v3-theme:hover { border-color: var(--accent); }

.v3-theme-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--fg-soft);
  flex: none;
}

.v3-theme-icon::after {
  content: "";
  position: absolute;
  inset: -2px 0 0 5px;
  border-radius: 50%;
  background: var(--panel);
  transition: opacity .25s ease, transform .25s ease;
}

:root[data-theme="light"] .v3-theme-icon { border-color: var(--fg); }
:root[data-theme="light"] .v3-theme-icon::after { opacity: 0; transform: translateX(-4px); }

.v3-theme-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.v3-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
}

.v3-burger i {
  display: block;
  height: 2px;
  background: var(--fg);
  transition: transform .25s ease, opacity .25s ease;
}

.menu-open .v3-burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .v3-burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- 6. Кнопки */
.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.v3-btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--glow);
}
.v3-btn-accent:hover { background: color-mix(in srgb, var(--accent) 82%, #ffffff); }

.v3-btn-ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--fg);
}
.v3-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-fg);
}

.v3-btn-sm { min-height: 42px; padding: 9px 18px; font-size: 12.5px; }
.v3-btn-wide { width: 100%; }

/* Магнитная кнопка: сдвиг задаёт script.js через переменные */
.v3-btn-magnet {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  will-change: transform;
  transition: background .22s ease, box-shadow .22s ease, transform .18s ease;
}

/* ---------------------------------------------------------- 7. Первый экран */
.v3-hero {
  position: relative;
  padding-block: clamp(52px, 8vw, 118px) clamp(40px, 5vw, 72px);
  overflow: hidden;
  /* тонкая сетка «как в редакторе» */
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: center top;
}

.v3-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 78% 0%,
      color-mix(in srgb, var(--accent) 12%, transparent) 0%,
      transparent 62%),
    linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}

.v3-hero-grid-lines { position: absolute; inset: 0; pointer-events: none; }

.v3-hero-inner { position: relative; z-index: 1; }

.v3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  color: var(--fg-soft);
  max-width: 100%;
}

.v3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.v3-hero-title {
  margin-block: clamp(20px, 3vw, 34px) clamp(18px, 2.4vw, 28px);
  max-width: 19ch;
  text-transform: none;
}

.v3-hero-title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, var(--fg)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.v3-hero-lead {
  max-width: 58ch;
  color: var(--fg-soft);
  font-size: clamp(16px, 1.25vw, 20px);
}

.v3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 40px);
}

.v3-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(28px, 3.4vw, 46px);
  color: var(--fg-dim);
}

.v3-hero-facts b {
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: -.01em;
  margin-right: 6px;
}

/* Живые счётчики */
.v3-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
}

.v3-stat {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--bg);
}

.v3-stat-value {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--accent-fg);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.v3-stat span { color: var(--fg-soft); font-size: 14px; }

/* -------------------------------------------------------- 8. Бегущая строка */
.v3-marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.v3-marquee-track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  width: max-content;
  animation: v3-scroll 58s linear infinite;
}

.v3-marquee:hover .v3-marquee-track,
.v3-marquee.is-paused .v3-marquee-track { animation-play-state: paused; }

.v3-marquee-list {
  display: flex;
  align-items: center;
  flex: none;
}

.v3-marquee-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg-soft);
  white-space: nowrap;
}

.v3-marquee-list li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@keyframes v3-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.v3-marquee-toggle {
  position: relative;
  z-index: 1;
  flex: none;
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.v3-marquee-toggle:hover { border-color: var(--accent); color: var(--accent-fg); }

/* --------------------------------------------------------- 9. Bento-плитки */
.v3-bento {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.v3-bento-aud {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "t1 t1 t1 t2 t2 t2"
    "t3 t3 t3 t4 t4 t4";
}

.v3-bento-aud .v3-tile-1 { grid-area: t1; }
.v3-bento-aud .v3-tile-2 { grid-area: t2; }
.v3-bento-aud .v3-tile-3 { grid-area: t3; }
.v3-bento-aud .v3-tile-4 { grid-area: t4; }

.v3-bento-why {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "w1 w1 w1 w2 w2 w2"
    "w3 w3 w4 w4 w4 w4"
    "w5 w5 w5 w5 w6 w6";
}

.v3-bento-why .v3-tile-1 { grid-area: w1; }
.v3-bento-why .v3-tile-2 { grid-area: w2; }
.v3-bento-why .v3-tile-3 { grid-area: w3; }
.v3-bento-why .v3-tile-4 { grid-area: w4; }
.v3-bento-why .v3-tile-5 { grid-area: w5; }
.v3-bento-why .v3-tile-6 { grid-area: w6; }

.v3-tile {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 36px);
  background: var(--panel);
  transition: background .25s ease;
}

.v3-tile h3 { margin-top: 2px; }

.v3-tile-text { color: var(--fg-soft); }

.v3-tile .v3-list { margin-top: auto; padding-top: 14px; }

.v3-tile::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.v3-tile:hover { background: var(--panel-2); }
.v3-tile:hover::after { transform: scaleX(1); }

@container (min-width: 620px) {
  .v3-tile .v3-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
}

.v3-tile-5 h3 { font-size: clamp(1.2rem, 2.4vw, 2rem); }

/* ------------------------------------------------------- 10. Услуги, пакеты */
.v3-svc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.v3-svc-group {
  padding: clamp(20px, 2.6vw, 38px);
  background: var(--bg-2);
  min-width: 0;
}

.v3-svc-group-wide { grid-column: 1 / -1; }

.v3-svc-group-head { margin-bottom: 22px; }
.v3-svc-group-head h3 { margin-block: 10px 10px; color: var(--accent-fg); }
.v3-svc-group-head p:last-child { color: var(--fg-soft); max-width: 60ch; }

.v3-svc-list { display: grid; gap: 0; min-width: 0; }

.v3-svc-list-double { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 0 40px; }

.v3-svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 20px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.v3-svc-name { font-weight: 700; letter-spacing: -.015em; }

.v3-svc-price {
  color: var(--accent-fg);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.v3-svc-note {
  grid-column: 1 / -1;
  color: var(--fg-soft);
  font-size: 14.5px;
  max-width: 74ch;
}

.v3-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.v3-pack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.v3-pack h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
.v3-pack .v3-list { margin-bottom: 6px; }

.v3-pack-best {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    var(--panel-2);
  box-shadow: var(--glow);
}

.v3-pack-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg-dim);
}

.v3-pack-best .v3-pack-badge {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.v3-pack-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}

.v3-pack-price strong {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--accent-fg);
}

.v3-pack-term { margin-bottom: 8px; }

/* --------------------------------------------------- 11. Залипающие шаги */
.v3-sticky-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.v3-sticky-aside {
  position: sticky;
  top: 104px;
  align-self: start;
  min-width: 0;
}

.v3-sticky-aside h2 { margin-block: 14px 18px; }

.v3-aside-meta {
  display: grid;
  gap: 8px;
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.v3-aside-meta p:not(.mono) { color: var(--fg-soft); margin-bottom: 12px; }

.v3-steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 0;
}

.v3-step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--bg-2);
  transition: background .3s ease;
}

.v3-step-num { color: var(--fg-dim); transition: color .3s ease; }

.v3-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s ease;
}

.v3-step.is-active { background: var(--panel-2); }
.v3-step.is-active::before { transform: scaleY(1); }
.v3-step.is-active .v3-step-num { color: var(--accent-fg); }
.v3-step p:last-child { color: var(--fg-soft); max-width: 60ch; }

/* --------------------------------------------------- 12. Лента работ */
.v3-ribbon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.v3-ribbon-nav { display: flex; gap: 8px; }

.v3-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.v3-arrow:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.v3-arrow[disabled] { opacity: .4; cursor: default; }
.v3-arrow[disabled]:hover { border-color: var(--line-2); background: var(--panel); color: var(--fg); }

.v3-ribbon-status { color: var(--fg-dim); font-variant-numeric: tabular-nums; }

.v3-ribbon {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(84vw, 380px), 1fr);
  grid-template-columns: none;
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.v3-ribbon > .v3-work { scroll-snap-align: start; min-width: 0; }

.v3-work {
  padding: 0;
  min-width: 0;
}

.v3-work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.v3-work-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.v3-work-open img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform .5s ease;
}

.v3-work-open:hover img { transform: scale(1.03); }

.v3-work-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.v3-work-open:hover .v3-work-zoom,
.v3-work-open:focus-visible .v3-work-zoom { opacity: 1; transform: translateY(0); }

.v3-work-body {
  display: grid;
  gap: 8px;
  padding: clamp(16px, 1.8vw, 26px);
}

.v3-work-body p:last-child { color: var(--fg-soft); font-size: 14.5px; }

.v3-ribbon::-webkit-scrollbar { height: 8px; }
.v3-ribbon::-webkit-scrollbar-track { background: var(--line); }
.v3-ribbon::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }

/* Микроинтеракции — только там, где есть настоящий курсор */
@media (hover: hover) and (pointer: fine) {
  .v3-work-card:hover {
    border-color: var(--line-2);
    box-shadow: var(--shadow);
    transform: translate3d(0, -4px, 0);
  }
  .v3-pack:hover {
    border-color: var(--accent);
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow);
  }
  .v3-tile:hover { transform: none; }
}

/* --------------------------------------------------------- 13. Почему я */
.v3-compare {
  margin-top: clamp(26px, 3.4vw, 46px);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(18px, 2.4vw, 32px);
}

.v3-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.v3-compare-cell { padding: clamp(16px, 2vw, 26px); background: var(--bg-2); min-width: 0; }
.v3-compare-mine { background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }

/* ----------------------------------------------------------- 14. Вопросы */
.v3-faq {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.v3-faq-item { background: var(--bg); }

.v3-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(16px, 1.9vw, 24px) clamp(16px, 2.2vw, 32px);
  font-weight: 700;
  font-size: clamp(15px, 1.35vw, 18px);
  letter-spacing: -.02em;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease, color .2s ease;
}

.v3-faq-item summary::-webkit-details-marker { display: none; }
.v3-faq-item summary:hover { background: var(--panel); color: var(--accent-fg); }

.v3-faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.v3-faq-icon::before,
.v3-faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}

.v3-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.v3-faq-item[open] .v3-faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.v3-faq-body {
  padding: 0 clamp(16px, 2.2vw, 32px) clamp(18px, 2.2vw, 28px);
  max-width: 88ch;
}

.v3-faq-body p { color: var(--fg-soft); }

/* ---------------------------------------------------------- 15. Контакты */
.v3-contact {
  background:
    radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--bg-2);
}

.v3-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}

.v3-contact-info { min-width: 0; }
.v3-contact-info h2 { margin-block: 14px 18px; }

.v3-contact-list {
  display: grid;
  gap: 1px;
  margin-top: clamp(22px, 3vw, 34px);
  background: var(--line);
  border: 1px solid var(--line);
}

.v3-contact-list li {
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr);
  gap: 10px 18px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--panel);
  min-width: 0;
}

.v3-contact-list a {
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.v3-contact-list a:hover { color: var(--accent-fg); }

.v3-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.v3-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.v3-form-title { color: var(--accent-fg); }
.v3-form-hint { color: var(--fg-soft); font-size: 14.5px; }

.v3-field { display: grid; gap: 8px; }
.v3-field > span { font-size: 13px; font-weight: 700; color: var(--fg-soft); }

.v3-field input,
.v3-field select,
.v3-field textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.v3-field textarea { resize: vertical; min-height: 96px; }

.v3-field input:hover,
.v3-field select:hover,
.v3-field textarea:hover { border-color: var(--fg-dim); }

.v3-field input:focus-visible,
.v3-field select:focus-visible,
.v3-field textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

.v3-field input.invalid,
.v3-field select.invalid { border-color: #ff6b6b; }

.v3-form-status { min-height: 22px; font-size: 14px; color: var(--fg-soft); }

.v3-form:has(.invalid) .v3-form-status { color: #ff8a8a; }
.v3-form.is-sent .v3-form-status { color: var(--accent-fg); }

/* ------------------------------------------------------------ 16. Подвал */
.v3-foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(34px, 4vw, 64px) 0;
}

.v3-foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 48px);
  padding-bottom: clamp(26px, 3vw, 44px);
}

.v3-foot-brand p { margin-top: 12px; color: var(--fg-soft); font-size: 14.5px; max-width: 46ch; }

.v3-foot-nav { display: grid; gap: 8px; align-content: start; }

.v3-foot-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-soft);
  width: fit-content;
}
.v3-foot-nav a:hover { color: var(--accent-fg); }

.v3-foot-contacts { display: grid; gap: 8px; align-content: start; }
.v3-foot-contacts a { text-decoration: none; font-weight: 600; width: fit-content; }
.v3-foot-contacts a:hover { color: var(--accent-fg); }

.v3-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 13px;
}

/* -------------------------------------------------- 17. Мобильная панель */
.mobile-bar {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.v3-mobile-btn {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.v3-mobile-btn:first-child { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* --------------------------------------------------- 18. Просмотрщик */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
  background: color-mix(in srgb, #050609 92%, transparent);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: min(1200px, 100%);
  max-height: 100%;
  justify-items: center;
}

.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.lb-figure figcaption { color: var(--fg-soft); text-align: center; }

.lb-close,
.lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--fg);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.lb-close:hover,
.lb-nav:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.lb-close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); width: 46px; height: 46px; font-size: 24px; }
.lb-nav { top: 50%; width: 52px; height: 52px; font-size: 26px; transform: translateY(-50%); }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }

/* -------------------------------------------------------- 19. Анимации
   Появление блоков: scroll-driven animations там, где они есть, и класс
   .is-visible из IntersectionObserver — как основной фолбэк.             */

.v3-reveal { opacity: 1; }

@supports (animation-timeline: view()) {
  .v3-reveal {
    animation: v3-fade linear both;
    animation-timeline: view();
    animation-range: entry 4% cover 26%;
  }
}

.v3-reveal.is-visible { animation: v3-fade .7s ease both; }

@keyframes v3-fade {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------- 20. Экран, доступность */
@media (max-width: 1080px) {
  .v3-head-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .v3-nav {
    grid-column: 1 / -1;
    order: 3;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-block: 10px 16px;
  }
  .menu-open .v3-nav { display: flex; }
  .v3-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .v3-burger { display: flex; }
  .v3-sticky-grid { grid-template-columns: minmax(0, 1fr); }
  .v3-sticky-aside { position: static; }
  .v3-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .v3-bento-aud,
  .v3-bento-why {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }
  .v3-bento-aud .v3-tile,
  .v3-bento-why .v3-tile { grid-area: auto; }
  .v3-foot-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 82px; }
  .v3-foot { padding-bottom: 12px; }
  .v3-head-phone { display: none; }
  .v3-hero { background-size: 34px 34px; }
  .v3-ribbon { grid-auto-columns: minmax(min(86vw, 330px), 1fr); }
  .v3-ribbon-head { justify-content: flex-start; }
  .v3-marquee-toggle { display: none; }
  .v3-marquee-list li { font-size: 12px; }
  .lb-nav { width: 44px; height: 44px; }
}

/* На широком экране лента показывает 2–3 карточки в ряд */
@media (min-width: 1000px) {
  .v3-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr); }
}

@media (min-width: 1500px) {
  .v3-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .v3-contact-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .v3-btn { width: 100%; }
  .v3-head-actions .v3-btn { width: auto; }
}

/* Уважение к настройке «меньше движения» */
@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;
  }
  .v3-marquee-track { animation: none; transform: none; }
  .v3-reveal { opacity: 1; transform: none; animation: none !important; }
}

@media print {
  .v3-head, .mobile-bar, .v3-marquee-toggle, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
