/* =========================================================
   Голд-Бизнес — стили лендинга
   Mobile-first. Один свой шрифт (Manrope, assets/fonts), без внешних зависимостей.
   Цвета меняются в :root.
   ========================================================= */
/* ---------- Шрифт: Manrope (свой файл, кириллица + латиница, вариативный 400–800, ~24 КБ) ----------
   ascent/descent-override подобраны так, что заглавные буквы стоят точно по центру строки:
   (ascent − descent) = высота заглавных 0.72 em, сумма = родные 1.366 em. Поэтому текст в кнопках и плашках
   одинаково ровный в Windows, macOS, Android и iOS. Лицензия — SIL OFL 1.1, assets/fonts/OFL.txt. */
@font-face {
  font-family: "Manrope"; src: url("../fonts/manrope-cyr-lat.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  ascent-override: 104.3%; descent-override: 32.3%; line-gap-override: 0%;
}
/* Запасной шрифт на время загрузки: системный Arial, подогнанный под ширину и вертикальные метрики Manrope (без скачка вёрстки) */
@font-face {
  font-family: "Manrope Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 101%; ascent-override: 103.43%; descent-override: 31.82%; line-gap-override: 0%;
}

:root {
  --bg: #0e0f11;
  --bg-alt: #131518;
  --surface: #181b1f;
  --surface-2: #1f2328;
  --line: rgba(255, 255, 255, .08);
  --line-gold: rgba(214, 178, 94, .35);
  --text: #eeeae3;
  --muted: #aaa59c;
  --gold: #d6b25e;
  --gold-light: #ecd08f;
  --gold-dark: #9d7b31;
  --gold-grad: linear-gradient(135deg, #f1d796 0%, #d6b25e 45%, #b48d3c 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --container: 1440px;
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.2vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff; }
ul, ol { margin: 0; padding: 0; }
[role="list"], .site-nav ul, .footer-nav ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }
.text-gold {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: var(--gold); -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px;
  margin: 0 0 14px; color: var(--gold-light);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 22px; height: 1px; margin-top: calc(.5lh - .5px); background: var(--gold); } /* центр первой строки = центр заглавных */

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--gold-grad); color: #17130a; box-shadow: 0 10px 30px -12px rgba(214, 178, 94, .7); }
.btn-gold:hover { color: #17130a; transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(214, 178, 94, .85); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-gold); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); background: rgba(214, 178, 94, .08); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
/* Надпись и иконка в кнопках: надпись — отдельный блок (для text-box), иконка — фиксированного размера, без baseline-трюков.
   Иконка опускается к центру строчных букв: на половину разницы высоты заглавных (cap) и строчных (ex) текущего шрифта. */
.btn-label { display: block; min-width: 0; }
.btn svg { display: block; width: 18px; height: 18px; flex: none; }
.btn svg, .va-q svg, .va-timer svg { transform: translateY(calc((1cap - 1ex) / 2)); }
/* Иконки и маркеры у обычного текста (списки, плашки, FAQ): flex align-items: baseline ставит низ иконки на базовую линию
   первой строки, затем translateY(50% − 0.5ex) поднимает её центр к центру строчных. Не зависит ни от шрифта, ни от округления строк. */
/* Прогрессивное улучшение: где браузер умеет обрезать строку по заглавным и базовой линии — центрирование не зависит от шрифта вовсе */
@supports (text-box: trim-both cap alphabetic) {
  .btn-label, .header-call-num, .va-time, .va-q span, .va-ai-name, .contacts li > div, .step-num, .faq-item summary h3 { text-box: trim-both cap alphabetic; }
}
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 17, .82);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; border-radius: 6px; text-decoration: none; }
.logo-img { display: block; width: auto; height: 36px; } /* логотип: курсор + слиток, assets/img/logo.svg (294×64) */
@media (max-width: 399px) { .logo-img { height: 32px; } .header-inner > .btn-sm { padding-inline: 12px; } } /* 360–399px: место для кнопок справа */
@media (min-width: 960px) { .logo-img { height: 40px; } }
.header-inner > .btn-sm { white-space: nowrap; }
.site-footer .logo-img { height: 34px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Телефон в шапке: на мобильных — компактная кнопка рядом с меню, на десктопе — рядом с CTA */
.header-call {
  order: 2; margin-left: auto; margin-right: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; min-width: 46px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line-gold); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.header-call:hover { color: var(--gold-light); border-color: var(--gold); }
.header-call svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.nav-toggle { order: 3; }
@media (max-width: 429px) {
  .header-call { padding: 0; }
  .header-call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.site-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px; display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; }
.site-nav a:not(.btn) { display: block; padding: 14px 4px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a:not(.btn):hover { color: var(--gold-light); }
.nav-cta { margin-top: 16px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(214, 178, 94, .18), transparent 70%); z-index: -1; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-points { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px 16px; font-size: .95rem; color: var(--text); }
.hero-points li { display: flex; align-items: baseline; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--gold); flex: none; transform: translateY(calc(50% - .5ex)); }

.hero-visual { position: relative; max-width: 640px; width: 100%; margin: 0 auto; padding: 18px 0 26px; }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 860px; margin-bottom: 36px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 70ch; }
.note { margin-top: 20px; color: var(--muted); font-size: .9rem; max-width: 75ch; }

/* Коротко о нас */
.section-about { padding-top: 0; }
.about-card {
  background: linear-gradient(180deg, rgba(214, 178, 94, .07), rgba(214, 178, 94, 0) 60%), var(--surface);
  border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 28px 22px;
}
.about-card h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.about-lead { font-size: 1.08rem; max-width: 75ch; }
.facts { display: grid; gap: 0; margin: 20px 0 0; }
.facts div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--gold-light); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; color: var(--text); }

/* Цены */
.price-grid { display: grid; gap: 18px; }
.price-img { width: calc(100% + 24px); max-width: none; height: auto; margin: -12px -12px 18px; border-radius: 12px; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.price-card:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 12px; color: var(--gold-light); line-height: 1.1; }
.price-from { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-included {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(214, 178, 94, .1); border: 1px solid var(--line-gold); color: var(--gold-light); font-size: .9rem; font-weight: 650; line-height: 1.35;
}
.price-included svg { width: 16px; height: 16px; flex: none; transform: translateY(calc(50% - .5ex)); }
.price-desc { color: var(--muted); font-size: .97rem; }
.price-list { list-style: none; margin: 4px 0 24px; display: grid; gap: 8px; font-size: .95rem; }
.price-list li { display: flex; align-items: baseline; gap: 10px; }
.price-list li::before { /* галочка из двух рамок: низ рамки на базовой линии, центр «чернил» (на 1.76px ниже центра рамки) — на центре строчных */
  content: ""; flex: none; width: 12px; height: 7px; margin-left: 2px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(calc(50% - .5ex - 1.76px)) rotate(-45deg);
}
.price-card .btn { margin-top: auto; }

/* Что входит */
.feature-grid { display: grid; gap: 16px; }
.feature { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 22px; }
.feature-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 18px; }
.feature .card-head, .feature p { padding: 0 6px; }
.feature-icon, .why-icon {
  width: 46px; height: 46px; padding: 11px; border-radius: 12px; flex: none;
  color: var(--gold-light); background: rgba(214, 178, 94, .1); border: 1px solid var(--line-gold);
}
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.feature p, .why p { color: var(--muted); margin: 0; font-size: .97rem; }
.define { margin-top: 32px; padding: 26px 22px; border-radius: var(--radius); border: 1px dashed var(--line-gold); }
.define h3 { font-size: 1.3rem; }
.define-grid { display: grid; gap: 12px 32px; }
.define-grid p { margin: 0; color: var(--muted); }
.define-grid strong, .define-note strong { color: var(--text); }
.define-note { padding-right: max(0px, calc(100% - 75ch)); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.lead strong, .section-sub strong { color: var(--text); font-weight: 650; }

/* Этапы */
.steps { list-style: none; display: grid; gap: 16px; }
.step { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { /* цифры (высота = заглавные) ровно по центру круга: строка высотой 1cap и отступ (44px − 1cap) / 2 */
  display: block; width: 46px; height: 46px; flex: none; border-radius: 50%; text-align: center;
  padding-top: calc((44px - 1cap) / 2); line-height: 1cap;
  border: 1px solid var(--gold); color: var(--gold-light); font-weight: 800; font-size: .95rem;
}
.step p { margin: 0; color: var(--muted); font-size: .97rem; max-width: 70ch; }

/* Почему мы */
.why-grid { display: grid; gap: 16px; }
.why { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }


/* Видео */
.video-card { margin: 0 0 32px; background: var(--surface); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.promo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #0e0f11; }

/* Кейсы — реальные проекты */
.case-grid { display: grid; gap: 20px; max-width: 680px; margin-inline: auto; }
.case-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.case-card:hover { border-color: var(--line-gold); }
.case-media { position: relative; display: block; line-height: 0; background: #101114; overflow: hidden; }
.case-media img { width: 100%; height: auto; transition: transform .35s ease; }
.case-media:hover img { transform: scale(1.025); }
.case-media:focus-visible { outline-offset: -3px; }
.case-zoom { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 15, 17, .78); border: 1px solid var(--line-gold); color: var(--gold-light); }
.case-zoom svg { width: 18px; height: 18px; }
.case-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 24px; }
.case-niche { margin: 0 0 8px; color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case-body h3 { margin: 0; }
.case-host { margin: 4px 0 14px; color: var(--muted); font-size: .9rem; }
.case-desc { margin: 0 0 16px; color: var(--text); font-size: .98rem; line-height: 1.55; }
.case-list { list-style: none; padding: 16px 0 0; margin: 0 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; line-height: 1.45; display: grid; gap: 8px; }
.case-list li { display: flex; align-items: baseline; gap: 11px; }
.case-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-radius: 2px; background: var(--gold); transform: translateY(calc(50% - .5ex)) rotate(45deg); }
.case-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.case-actions .btn { flex: 1 1 auto; white-space: nowrap; }

/* Лайтбокс-галерея */
.lightbox { width: min(1240px, 94vw); max-width: none; max-height: 94vh; padding: 0; overflow: hidden; border: 1px solid var(--line-gold); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.lightbox::backdrop { background: rgba(5, 6, 7, .86); }
.lightbox-figure { margin: 0; }
.lightbox-img { background: #101114; }
.lightbox-img img { display: block; width: 100%; height: auto; max-height: calc(94vh - 70px); object-fit: contain; }
.lightbox-img img.is-tall { width: auto; margin-inline: auto; max-width: 100%; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px 14px; color: var(--muted); font-size: .92rem; }
.lightbox-count { flex: none; color: var(--gold-light); font-weight: 700; font-variant-numeric: tabular-nums; }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 1; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-gold); background: rgba(14, 15, 17, .85); color: var(--text); cursor: pointer;
}
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-close { right: 10px; top: 10px; }
.lightbox-nav { top: calc(50% - 40px); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- Hero-анимация «Сайт собирается на глазах» (движение — assets/js/hero.js) ---------- */
.hero-visual.va { max-width: 620px; padding: 8px 0 12px; }
.va-stage { --va-row: 6.2cqw; position: relative; aspect-ratio: 600 / 520; container-type: inline-size; font-size: 2.1cqw; line-height: 1.35; }
.va-stage b, .va-stage i { display: block; }
.va-glow { position: absolute; inset: 8% 4% 10% 14%; background: radial-gradient(closest-side, rgba(214,178,94,.36), transparent 78%); filter: blur(6px); }
.va-browser { position: absolute; left: 0; top: 7%; width: 84%; height: 66%; border-radius: 2.2cqw; background: #15181c; border: 1px solid rgba(214,178,94,.32); box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.75); overflow: hidden; transform-origin: 30% 30%; }
.va-bar { display: flex; align-items: center; gap: .9cqw; height: 6.4cqw; padding: 0 2cqw; background: #1c2025; border-bottom: 1px solid rgba(255,255,255,.06); }
.va-bar i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #3a3f46; }
.va-url { margin-left: 2cqw; padding: .5cqw 2.4cqw; border-radius: 99px; background: #0f1113; color: #aaa59c; font-size: max(11px, 1.8cqw); }
.va-body { position: absolute; inset: 6.4cqw 0 0 0; }
.p-head { left: 4%; top: 4%; width: 92%; height: 9%; }
.p-hero { left: 4%; top: 17%; width: 92%; height: 37%; }
.p-c1, .p-c2, .p-c3 { top: 58%; width: 28.6%; height: 19%; }
.p-c1 { left: 4%; } .p-c2 { left: 35.7%; } .p-c3 { left: 67.4%; }
.p-form { left: 4%; top: 81%; width: 92%; height: 13%; }
.va-slot { position: absolute; border: 1px dashed rgba(214,178,94,.28); border-radius: 1.2cqw; }
.va-block { position: absolute; border-radius: 1.2cqw; background: #1f2328; border: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 1.6cqw; padding: 0 2cqw; will-change: transform, opacity; }
.va-block::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px rgba(236,208,143,.9), 0 0 3cqw rgba(214,178,94,.55); opacity: var(--flash, 0); pointer-events: none; }
.k-logo { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: linear-gradient(135deg,#f1d796,#b48d3c); flex: none; } /* условный логотип «вашего сайта» (не знак Голд-Бизнес) */
.k-line { height: 1.1cqw; border-radius: 1cqw; background: #3a3f46; }
.k-line.dim { background: #2c3036; }
.w18 { width: 18%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; }
.k-nav { display: flex; gap: 1.4cqw; margin-left: auto; } .k-nav b { width: 5cqw; height: 1cqw; border-radius: 1cqw; background: #3a3f46; }
.k-pill { width: 9cqw; height: 3cqw; border-radius: 99px; background: linear-gradient(135deg,#f1d796,#b48d3c); flex: none; }
.p-hero.va-block { align-items: stretch; padding: 2cqw; gap: 2.4cqw; }
.k-col { flex: 1.1; display: flex; flex-direction: column; justify-content: center; gap: 1.1cqw; }
.k-h { height: 2.2cqw; width: 92%; border-radius: 1cqw; background: #e9e4da; }
.k-h.gold { background: linear-gradient(90deg,#f1d796,#c9a14a); }
.k-btn { width: 13cqw; height: 3.4cqw; border-radius: 99px; background: linear-gradient(135deg,#f1d796,#b48d3c); margin-top: .6cqw; flex: none; }
.k-art { flex: 1; border-radius: 1cqw; background: linear-gradient(160deg,#262a30,#16191d); border: 1px solid rgba(214,178,94,.25); overflow: hidden; display: flex; align-items: flex-end; }
.k-art svg { width: 100%; height: 70%; }
.p-c1.va-block, .p-c2.va-block, .p-c3.va-block { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1cqw; }
.k-ico { width: 3.2cqw; height: 3.2cqw; border-radius: .8cqw; background: rgba(214,178,94,.25); border: 1px solid rgba(214,178,94,.55); }
.k-input { flex: 1; height: 3.6cqw; border-radius: .8cqw; background: #121417; border: 1px solid rgba(255,255,255,.08); }
.p-form .k-btn { margin: 0; }
.va-timer { position: absolute; top: 0; right: 9%; display: flex; align-items: center; gap: 1cqw; padding: 1.1cqw 2cqw; border-radius: 99px; background: #1b1e22; border: 1px solid rgba(214,178,94,.5); color: #ecd08f; font-weight: 800; font-size: max(11px, 2.3cqw); font-variant-numeric: tabular-nums; box-shadow: 0 2cqw 4cqw -2cqw rgba(0,0,0,.7); z-index: 3; }
.va-timer svg { width: 2.8cqw; height: 2.8cqw; }
.va-timer.is-done { background: linear-gradient(135deg,#f1d796,#d6b25e 50%,#b48d3c); color: #17130a; border-color: transparent; }
.va-search { position: absolute; left: 3%; top: 53%; width: 56%; padding: 2cqw; border-radius: 2cqw; background: rgba(24,27,31,.96); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.85); z-index: 2; }
.va-q { display: flex; align-items: center; gap: 1.2cqw; height: 5.4cqw; padding: 0 1.8cqw; border-radius: 99px; background: #0f1113; border: 1px solid rgba(255,255,255,.1); color: #eeeae3; font-size: max(11px, 2cqw); white-space: nowrap; overflow: hidden; }
.va-q svg { width: 2.4cqw; height: 2.4cqw; color: #ecd08f; flex: none; }
.va-results { list-style: none; position: relative; height: calc(var(--va-row) * 4); margin: 1.2cqw 0 0; padding: 0; }
.va-results li { position: absolute; left: 0; right: 0; top: 0; height: 5.6cqw; display: flex; flex-direction: column; justify-content: center; gap: .9cqw; padding: 0 1.4cqw; border-radius: 1.2cqw; will-change: transform; }
.va-results .r-other { transform: translateY(calc(var(--pos, 0) * var(--va-row))); }
.r-other[data-i="0"] { --pos: 1; } .r-other[data-i="1"] { --pos: 2; } .r-other[data-i="2"] { --pos: 3; } /* финальный кадр без JS */
.va-results .r-ours { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.4cqw; background: linear-gradient(90deg, rgba(214,178,94,.2), rgba(214,178,94,.06)); border: 1px solid rgba(214,178,94,.55); transform: translateY(calc(var(--pos, 0) * var(--va-row))); z-index: 1; }
.r-mark { width: 3.4cqw; height: 3.4cqw; flex: none; } /* знак-фавиконка сайта в строке выдачи (inline SVG) */
.r-txt { display: grid; line-height: 1.2; min-width: 0; }
.r-txt strong { color: #ecd08f; font-size: max(11px, 2cqw); }
.r-txt small { color: #aaa59c; font-size: max(11px, 1.6cqw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-ai { position: absolute; right: 0; top: 61%; width: 50%; padding: 2cqw 2.2cqw; border-radius: 2.4cqw 2.4cqw .6cqw 2.4cqw; background: linear-gradient(160deg,#23262b,#191c20); border: 1px solid rgba(214,178,94,.45); box-shadow: 0 4cqw 8cqw -3cqw rgba(0,0,0,.85), 0 0 5cqw -2cqw rgba(214,178,94,.35); z-index: 3; }
.va-ai-head { display: flex; align-items: center; gap: 1cqw; color: #ecd08f; font-weight: 800; font-size: max(11px, 1.9cqw); letter-spacing: .02em; }
.va-ai-ava { flex: none; transform: translateY(calc((1cap - 1ex) / 2)); width: 3.4cqw; height: 3.4cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(214,178,94,.18); border: 1px solid rgba(214,178,94,.6); }
.va-ai-ava svg { width: 2cqw; height: 2cqw; }
.va-ai-q { margin: 1.2cqw 0 1cqw; padding: .8cqw 1.4cqw; border-radius: 1.2cqw; background: #121417; color: #aaa59c; font-size: max(11px, 1.8cqw); display: inline-block; }
.va-ai-a { margin: 0; color: #eeeae3; font-size: max(11px, 2cqw); min-height: 8.4cqw; }
.va-dots { display: none; gap: .7cqw; padding-top: 1cqw; } .va-dots i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #ecd08f; }
.va-caret { display: none; width: .25cqw; height: 2.2cqw; background: #ecd08f; vertical-align: -.3cqw; margin-left: .2cqw; }
.va-stage.is-typing .va-caret { display: inline-block; }
.va-stage.is-thinking .va-dots { display: flex; }
.va-stage.is-static .va-caret { display: none; }
@container (max-width: 560px) { .r-txt small { display: none; } } /* узкая сцена: в строке выдачи только домен */
@media (max-width: 959px) { .hero-visual.va { max-width: 560px; } }
/* Телефон: упрощённая раскладка — крупнее блоки, текст не мельче 11px */
@media (max-width: 767px) {
  .hero-visual.va { max-width: 440px; padding: 0 0 8px; }
  .va-stage { --va-row: 9cqw; aspect-ratio: 350 / 520; }
  .va-glow { inset: 6% 0 8% 0; }
  .va-browser { left: 0; top: 9%; width: 100%; height: 43%; border-radius: 3.4cqw; }
  .va-bar { height: 9cqw; gap: 1.6cqw; padding: 0 3cqw; } .va-bar i { width: 2.2cqw; height: 2.2cqw; }
  .va-body { inset: 9cqw 0 0 0; }
  .va-url { margin-left: 2cqw; padding: .4em 1em; }
  .va-block, .va-slot { border-radius: 2cqw; }
  .va-block { gap: 2.4cqw; padding: 0 3cqw; }
  .k-logo { width: 3.6cqw; height: 3.6cqw; } .k-line { height: 1.8cqw; } .k-nav { display: none; } .k-pill { width: 14cqw; height: 4.6cqw; margin-left: auto; }
  .p-hero.va-block { padding: 2.6cqw 3cqw; gap: 3cqw; } .k-col { gap: 1.4cqw; } .k-h { height: 2.6cqw; } .k-btn { width: 18cqw; height: 4.6cqw; }
  .p-hero .k-h.w70, .p-hero .k-line { display: none; }
  .k-ico { width: 5cqw; height: 5cqw; border-radius: 1.2cqw; } .p-c1 .k-line.w55, .p-c2 .k-line.w55, .p-c3 .k-line.w55 { display: none; }
  .k-input { height: 5.4cqw; } .p-form .k-input + .k-input { display: none; }
  .va-timer { top: 0; right: 0; padding: .5em 1em; gap: .45em; } .va-timer svg { width: 1.2em; height: 1.2em; }
  .va-search { left: 0; top: 47%; width: 84%; padding: 3cqw; border-radius: 3.4cqw; }
  .va-q { height: 10cqw; gap: 2cqw; padding: 0 3cqw; } .va-q svg { width: 4cqw; height: 4cqw; }
  .va-results { margin-top: 2cqw; } .va-results li { height: 8.2cqw; padding: 0 2.4cqw; gap: 1.6cqw; border-radius: 2cqw; }
  .va-results .k-line { height: 1.8cqw; } .va-results .k-line.dim { display: none; }
  .r-mark { width: 5cqw; height: 5cqw; } .r-txt small { display: none; }
  .va-ai { top: 74%; width: 86%; padding: 3cqw 3.4cqw; border-radius: 4cqw 4cqw 1cqw 4cqw; }
  .va-ai-head { gap: .5em; } .va-ai-ava { width: 1.9em; height: 1.9em; } .va-ai-ava svg { width: 1.1em; height: 1.1em; }
  .va-ai-q { margin: .6em 0 .5em; padding: .35em .8em; border-radius: .8em; }
  .va-ai-a { min-height: 4.2em; line-height: 1.4; }
  .va-dots { gap: .4em; padding-top: .5em; } .va-dots i { width: .5em; height: .5em; }
  .va-caret { width: 2px; height: 1.1em; }
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--line-gold); }
.faq-item summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; font-weight: 650; }
@supports (text-box: trim-both cap alphabetic) { .faq-item summary { padding-block: 21.5px; } } /* вопрос обрезан по заглавным: высота как раньше, поля сверху и снизу равны при любом шрифте */
.faq-item summary::after { /* шеврон у первой строки вопроса: низ рамки на базовой линии, центр «чернил» (±2.83px от центра рамки) — на центре строчных */
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; font-size: 1.05rem;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(calc(50% - .5ex - 2.83px)) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(calc(50% - .5ex + 2.83px)) rotate(-135deg); }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* Контакты и форма */
.section-contact { background: radial-gradient(ellipse at 15% 0%, rgba(214, 178, 94, .1), transparent 55%), var(--bg); }
.contact-grid { display: grid; gap: 36px; }
.contacts { display: grid; gap: 14px; margin-top: 24px; }
.contacts li { display: flex; gap: 14px; align-items: center; }
.contacts svg { width: 44px; height: 44px; padding: 11px; flex: none; border-radius: 12px; color: var(--gold-light); background: rgba(214, 178, 94, .1); border: 1px solid var(--line-gold); }
.contacts li > div { line-height: 1.5; }
.contacts-label { display: block; font-size: .8rem; line-height: 1.7; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; } /* поля над заглавными и под базовой линией равны — плитка-иконка по центру */
.contacts a, .contacts span:not(.contacts-label) { font-weight: 650; color: var(--text); word-break: break-word; }
.contacts a:hover { color: var(--gold-light); }

.form-card { background: var(--surface); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
.form-title { font-size: 1.3rem; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--gold-light); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid #343a42; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8a857d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 178, 94, .25); }
.field input[aria-invalid="true"] { border-color: #e07a6b; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(224, 122, 107, .25); }
.opt { margin-left: 4px; font-weight: 400; font-size: .82rem; color: var(--muted); }
.field-error { margin: 0; color: #f0a497; font-size: .85rem; line-height: 1.4; }
.field-error[hidden] { display: none; }
.hint { color: var(--muted); font-size: .85rem; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.field-check label { font-weight: 400; font-size: .88rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-size: .95rem; }
.form-status.is-ok { color: #9bd8a6; }
.form-status.is-error { color: #f0a497; }
.form-fallback { margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-gold); background: rgba(214, 178, 94, .06); }
.form-fallback[hidden] { display: none; }
.form-fallback-title { margin: 0 0 6px; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.form-fallback-title:focus { outline: none; }
.form-fallback-text { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.form-fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-fallback-actions .btn { flex: 1 1 200px; gap: 8px; padding-inline: 16px; }
.form-fallback-actions svg { width: 18px; height: 18px; flex: none; }
.form-fallback-copy { margin: 12px 0 8px; font-size: .9rem; color: var(--muted); }
.form-fallback-copy.is-ok { color: #9bd8a6; }
.form-fallback-request { width: 100%; min-height: 0; resize: vertical; font: inherit; font-size: .88rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: #0b0c0e; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand p { color: var(--muted); font-size: .93rem; margin-top: 12px; max-width: 34em; }
.footer-contacts a { color: var(--text); font-weight: 650; text-decoration: none; }
.footer-contacts a:hover { color: var(--gold-light); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .footer-note { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Простые внутренние страницы (политика, спасибо, 404) */
.page { padding: 56px 0 72px; min-height: 60vh; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 1.2em; margin-bottom: 1em; }
.page-center { text-align: center; display: grid; place-items: center; align-content: center; }

/* ---------- Планшеты ---------- */
@media (min-width: 640px) {
  .container { padding: 0 28px; }
  .price-grid, .feature-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .about-card { padding: 36px; }
  .form-card { padding: 32px; }
  .define-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-points { grid-template-columns: 1fr 1fr; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 28px; padding: 0; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 26px; }
  .site-nav a:not(.btn) { padding: 6px 0; border: 0; font-size: .97rem; color: var(--muted); }
  .site-nav a:not(.btn):hover { color: var(--text); }
  .nav-cta { margin: 0; width: auto; }
  .site-nav { margin-left: auto; }
  .header-call { order: 0; margin: 0 0 0 16px; height: 42px; border-color: transparent; background: none; padding: 0 4px; font-size: .97rem; }
  .header-call:hover { border-color: transparent; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-points { grid-template-columns: repeat(2, max-content); column-gap: 32px; }
  .section { padding: 96px 0; }
  .section-about { padding-top: 0; }
  .feature-grid, .why-grid, .case-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { max-width: none; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .video-card { margin-bottom: 40px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .footer-inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-nav ul { justify-content: flex-end; }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---------- Широкие экраны (контейнер 1440px) ---------- */
@media (min-width: 1280px) {
  .container { padding: 0 40px; }
  .container-narrow { padding: 0 28px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .process-top { display: grid; grid-template-columns: 1fr 1.55fr; gap: 56px; align-items: center; margin-bottom: 40px; }
  .process-top .section-head, .process-top .video-card { margin-bottom: 0; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step:last-child:nth-child(odd) { grid-column: auto; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .price-grid { gap: 22px; }
  .feature-grid, .why-grid, .case-grid { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 960–1199px: в шапке не хватает места на номер — показываем только иконку */
@media (min-width: 960px) and (max-width: 1199px) {
  .site-nav ul { gap: 20px; }
  .header-call { min-width: 42px; border-color: var(--line-gold); padding: 0; }
  .header-call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
