/* Шрифт заголовков: Manrope (OFL), свой хостинг, вариативный 500–800 */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format("woff2"); 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; }

:root {
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Сильная кривая для входа/выхода и откликов (стандарты Эмиля Ковальски) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Одна семья серых — нейтрально-холодная (раньше тёплый фон смешивался с холодным текстом) */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #18181b;
  --muted: #5d5d66;
  --border: #e4e4e7;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eceafd;
  --on-accent: #ffffff;
  /* Правило радиусов: кнопки и плашки — пилюли, карточки и панели — 16 px, крупные блоки — 24 px, поля — 10 px */
  /* Скругления: 999px — кнопки и метки, --radius-sm — поля и мелкие плашки, --radius — карточки и картинки, --radius-lg — крупные блоки */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 8px 24px rgba(20, 20, 30, .06);
  --shadow-lg: 0 2px 6px rgba(20, 20, 30, .06), 0 24px 60px -18px rgba(20, 20, 40, .28);
  --success: #16a34a;
  --danger: #dc2626;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --surface: #1a1a1f;
    --surface-2: #202026;
    --text: #f1f0f4;
    --muted: #a3a1ad;
    --border: #2d2d35;
    --accent: #8b85ff;
    --accent-hover: #a29dff;
    --accent-soft: #25234a;
    --on-accent: #111114;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px -18px rgba(0, 0, 0, .7);
    --success: #4ade80;
    --danger: #f87171;
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Телефон: без серой/синей вспышки при касании (отклик даём своими :active), без раздувания шрифта в ландшафте */
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--accent);
  caret-color: var(--accent);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
/* Касание: клик без задержки двойного тапа; подписи кнопок не выделяются долгим нажатием */
a, button, summary, label, [role="button"] { touch-action: manipulation; }
.btn, .nav-toggle, .modal-close, summary, .opt span { -webkit-user-select: none; user-select: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.15rem; font-weight: 700; }
/* Без «висячих» слов в заголовках и последних строках абзацев */
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* Ссылка «Перейти к содержимому» — видна только при переходе клавишей Tab */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg); font-weight: 600; transition: top 150ms var(--ease-out);
}
.skip-link:focus { top: 12px; color: var(--bg); }
.nowrap { white-space: nowrap; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.logo .sep { color: var(--accent); font-weight: 500; margin: 0 .35em; }
.logo .dig { font-weight: 600; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn-primary { color: var(--on-accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 44px; height: 44px; cursor: pointer; color: var(--text);
  transition: transform 120ms var(--ease-out);
}
.nav-toggle:active { transform: scale(.94); }
.nav-toggle svg { margin: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
/* Отклик на нажатие — сразу при касании, на любом устройстве */
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms ease;
}
/* Двигаются и реагируют только карточки, которые можно нажать (ссылки и всплывающие формы) */
a.card:active, .card-action:active { transform: scale(.985); transition-duration: 100ms; }
.card p { color: var(--muted); margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .price { margin-top: 16px; font-weight: 700; color: var(--text); }
.card .price small { font-weight: 400; color: var(--muted); }

.list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-50%);
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 16px;
}

/* Portfolio */
.work { padding: 0; overflow: hidden; }
.work-thumb { aspect-ratio: 16 / 10; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.work-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); margin: 0 6px 6px 0;
}
.notice {
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px 20px;
  color: var(--muted); font-size: .92rem; background: var(--surface);
}

/* Pricing */
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 4px; }
.plan .btn { margin-top: auto; }
.plan .list { margin-bottom: 24px; }

/* CTA */
.cta {
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
}
.cta h2 { margin-bottom: 12px; }
.cta p { opacity: .9; max-width: 520px; margin: 0 auto 28px; }
.cta .btn { background: var(--on-accent); color: var(--accent); }

/* FAQ */
details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0 22px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; }
/* Плавное раскрытие ответа (там, где браузер умеет анимировать height: auto) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { height: 0; overflow: clip; transition: height 240ms var(--ease-out), content-visibility 240ms allow-discrete; }
  details[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) { details::details-content { transition: none; } }
}
@keyframes menu-in { from { opacity: 0; translate: 0 -6px; } }

/* Forms */
.form { display: grid; gap: 16px; }
label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  /* Не меньше 16 px: иначе iPhone увеличивает страницу при вводе (поля вложены в label с .9rem) */
  font-size: max(16px, 1rem); font-weight: 400;
}
textarea { min-height: 130px; resize: vertical; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.form-status { font-size: .92rem; color: var(--muted); min-height: 1.4em; }
/* Успешная отправка — редкое событие, поэтому с отметкой и коротким появлением */
.form-status.is-success {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--text); font-weight: 600;
  animation: success-in 260ms var(--ease-out);
}
.form-status.is-success svg { color: var(--success); flex: none; }
@keyframes success-in { from { opacity: 0; scale: .96; } }
/* Цены — табличными цифрами, чтобы суммы не «прыгали» */
.plan .amount, .calc-price, .stack-total .big, .stack-price { font-variant-numeric: tabular-nums; }

/* Page title */
.page-title { padding: 64px 0 24px; }
.page-title p { color: var(--muted); font-size: 1.15rem; max-width: 620px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
/* Высота ссылок 44 px — удобно попадать пальцем */
.footer-links a { color: var(--muted); display: inline-block; padding: 12px 0; }

/* Появление при прокрутке. Только при работающем JS (класс .js ставится в <head>), иначе контент виден сразу.
   Анимируется свойство translate, а не transform, — подъём карточки при наведении не конфликтует с появлением. */
.js .reveal { opacity: 0; }
.js .reveal.visible { opacity: 1; animation: reveal-in 420ms var(--ease-out) both; }
@keyframes reveal-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
/* Карточки в ряду появляются лесенкой, а не все разом */
.js :is(.grid, .steps-line) > .reveal.visible:nth-child(2) { animation-delay: 60ms; }
.js :is(.grid, .steps-line) > .reveal.visible:nth-child(3) { animation-delay: 120ms; }
.js :is(.grid, .steps-line) > .reveal.visible:nth-child(n+4) { animation-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  /* Мягче, а не ноль: остаётся проявление, без движения */
  .js .reveal.visible { animation: reveal-fade 200ms ease-out both; }
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 56px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; animation: menu-in 180ms var(--ease-out); }
  .nav-links li { padding: 10px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta { padding: 40px 22px; }
}

/* Blog */
.post-card { display: block; color: inherit; }
.post-card h3 { margin-top: 8px; }
.post-meta { color: var(--muted); font-size: .88rem; }
.post h2 { font-size: 1.4rem; margin-top: 1.8em; }
.post p, .post li { color: var(--muted); font-size: 1.05rem; }
.post ul { padding-left: 1.2em; }
.post .cta h2 { margin-top: 0; }
.post .cta p { color: inherit; }

/* Portfolio images */
.work-thumb { position: relative; overflow: hidden; }
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .95rem; }

/* Honeypot-поле для защиты от ботов */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Кликабельные карточки и всплывающая форма заявки */
.card-action { cursor: pointer; }
.card-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-cta { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: .95rem; }

.modal {
  width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(10, 10, 16, .6); }
/* Окно заявки появляется (220 мс), уходит быстрее (150 мс); без поддержки allow-discrete — просто без анимации */
.modal {
  opacity: 1; transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.modal:not([open]) { opacity: 0; transform: scale(.96); transition-duration: 150ms; }
@starting-style { .modal[open] { opacity: 0; transform: scale(.96); } }
.modal::backdrop { transition: background-color 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
.modal:not([open])::backdrop { background-color: rgba(10, 10, 16, 0); }
@starting-style { .modal[open]::backdrop { background-color: rgba(10, 10, 16, 0); } }
@media (prefers-reduced-motion: reduce) { .modal, .modal:not([open]) { transform: none; } }
.modal h2 { margin: 0 0 6px; font-size: 1.4rem; }
.modal > .muted { margin: 0 0 18px; }
.modal-close {
  position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.modal-close:active { transform: scale(.92); }
.plan .tag { align-self: flex-start; margin: 2px 0 8px; }

.requisites { display: inline-block; margin-top: 6px; font-size: .86rem; }

/* Первый экран: ссылка на Telegram под кнопками */
.hero-note { margin: 16px 0 0; font-size: .95rem; }
.hero-note a { color: var(--muted); border-bottom: 1px dashed var(--border); }

/* Финальный блок: две кнопки */
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .btn.btn-outline { background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); }

/* Блок «Бесплатный разбор сайта» */
.audit {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.audit h2 { margin: 6px 0 10px; }
.audit p { margin: 0; color: var(--muted); max-width: 640px; }
@media (max-width: 720px) { .audit { grid-template-columns: 1fr; padding: 24px; } }

/* Закреплённая кнопка на телефоне */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  /* Две кнопки одинаковой ширины, панель у нижнего края экрана (с учётом «чёлки» и полоски жестов) */
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    padding: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
    box-shadow: var(--shadow); transform: translateY(calc(100% + 24px));
    /* Спрятанная панель недоступна и для Tab: visibility выключается после ухода вниз */
    visibility: hidden; transition: transform 260ms var(--ease-out), visibility 0s linear 260ms;
  }
  .sticky-cta.show { transform: none; visibility: visible; transition: transform 260ms var(--ease-out), visibility 0s; }
  .sticky-cta .btn { min-width: 0; padding: 12px 10px; font-size: .95rem; white-space: nowrap; }
  .has-sticky-cta { padding-bottom: 84px; }
}
@media (max-width: 359px) { .sticky-cta .btn { font-size: .88rem; } }
/* Полная подпись «Рассчитать стоимость», где помещается; на узких экранах — «Рассчитать» */
.sticky-cta .lbl-short { display: none; }
@media (max-width: 399px) { .sticky-cta .lbl-long { display: none; } .sticky-cta .lbl-short { display: inline; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

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

/* Согласие на обработку персональных данных */
.form label.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); font-weight: 400; }
.form label.consent input { width: auto; flex: none; margin-top: 3px; }
.form label.consent a { text-decoration: underline; }
/* Ссылка на политику — отдельно от согласия (152-ФЗ, ст. 9: согласие оформляется отдельно от иных документов) */
.form .form-legal { margin: -8px 0 0; font-size: .8rem; color: var(--muted); }
.form .form-legal a { text-decoration: underline; }

/* Кейсы */

.plan .plan-note { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }

/* ===================== Главная: продающая версия ===================== */
section[id] { scroll-margin-top: 84px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.small { font-size: .88rem; }

/* Первый экран */
.hero-v2 {
  background:
    radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
    var(--bg);
}
.hero-v2 h1 { max-width: 640px; }
.hero-v2 h1 em { font-style: normal; color: var(--accent); }
/* Вторая строка заголовка — механика (Telegram) мельче главного обещания, чтобы заголовок читался быстрее */
.hero-v2 h1 .h1-sub { display: block; margin-top: .3em; font-size: .6em; line-height: 1.25; letter-spacing: -.01em; }
/* Полоса доверия сразу под первым экраном (раньше — плашки с цветными точками внутри экрана) */
.trust-bar { background: var(--surface); border-block: 1px solid var(--border); }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 18px; margin: 0 auto; }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.trust-list svg { color: var(--accent); flex: none; }
@media (max-width: 720px) {
  .trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-block: 16px; }
  .trust-list li { font-size: .88rem; align-items: flex-start; }
  .trust-list svg { margin-top: 2px; }
}

.hero-side { min-width: 0; margin: 0; }
.hero-visual { position: relative; padding: 18px 10px 40px 26px; }
.hero-demo-note { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
.browser {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.5deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; display: block; background: var(--border); }
.browser-bar i:nth-child(1) { background: #ff5f56; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #27c93f; }
.browser-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); background: var(--surface); padding: 3px 12px; border-radius: 999px; }
.browser img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* Сообщение бота о заявке (текст как в functions/api/lead.js, отрисовано в 3x) поверх снимка сайта */
.tg-shot {
  position: absolute; left: 0; bottom: 0; width: min(290px, 72%); height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: pop-in 420ms var(--ease-out) 300ms both;
}
@keyframes pop-in { from { opacity: 0; translate: 0 14px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .tg-shot { animation: reveal-fade 200ms ease-out 200ms both; } }

/* ---------- Первый экран оживает (js/hero-fx.js только для мыши) ----------
   Заголовок проявляется по словам, затем «приходит» заявка в Telegram с сигналом,
   макет браузера наклоняется за курсором, кнопки тянутся к курсору, по главной пробегает блик.
   Всё на opacity/transform/filter, без 3D-движка: первый экран не тяжелеет. */
.js .h1-words .w { display: inline-block; animation: word-in 520ms var(--ease-out) calc(var(--i) * 55ms) both; }
@keyframes word-in { from { opacity: 0; translate: 0 .35em; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
/* «Telegram» подсвечивается последним */
.js .hero-v2 h1 em { background: linear-gradient(90deg, var(--accent) 0 40%, color-mix(in srgb, var(--accent) 35%, #fff) 50%, var(--accent) 60% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: em-shine 1.1s ease-in-out 700ms both; }
@keyframes em-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Заявка прилетает после заголовка, с лёгким перелётом, потом мягко покачивается */
.tg-shot { z-index: 2; animation: tg-in 640ms cubic-bezier(.34, 1.56, .64, 1) 750ms both, tg-float 6s ease-in-out 1.6s infinite; }
@keyframes tg-in { from { opacity: 0; translate: -18px 26px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes tg-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
/* Сигнал «новая заявка»: два расходящихся контура вокруг сообщения */
.tg-ping { position: absolute; left: 0; bottom: 0; z-index: 1; width: min(290px, 72%); aspect-ratio: 394 / 225; border-radius: var(--radius); pointer-events: none; }
.tg-ping::before, .tg-ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: tg-ping 1.2s var(--ease-out) 1.25s both; }
.tg-ping::after { animation-delay: 1.55s; }
@keyframes tg-ping { 0% { opacity: 0; scale: 1; } 12% { opacity: .7; scale: 1; } 100% { opacity: 0; scale: 1.12; } }
/* Пока макет не на экране, анимации стоят на старте (класс ставит js/hero-fx.js) */
.tg-wait .tg-shot, .tg-wait .tg-ping::before, .tg-wait .tg-ping::after { animation-play-state: paused; }

/* Макет браузера: объём и блик стекла за курсором */
.browser { position: relative; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-1.5deg); transition: transform 700ms var(--ease-out); }
.browser.is-tilting { transition-duration: 160ms; }
.browser::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 60%); }
.browser.is-tilting::after { opacity: 1; }

/* Кнопки: притяжение к курсору и блик по главной (при загрузке и наведении) */
.hero-actions .btn.magnetic { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out), translate 300ms var(--ease-out); }
.hero-actions .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.hero-actions .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; translate: -120% 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); animation: btn-sheen 900ms ease-in-out 1.5s both; }
@keyframes btn-sheen { from { translate: -120% 0; } to { translate: 120% 0; } }
@media (hover: hover) { .hero-actions .btn-primary:hover::after { animation: btn-sheen 800ms ease-in-out both; } }

@media (prefers-reduced-motion: reduce) {
  .js .h1-words .w { animation: reveal-fade 200ms ease-out both; }
  .js .hero-v2 h1 em { animation: none; background-position: 0 0; }
  .tg-shot { animation: reveal-fade 200ms ease-out 200ms both; }
  .tg-ping { display: none; }
  .hero-actions .btn-primary::after { animation: none; }
}

/* Почему сайты не приносят заявки: строки «проблема → решение» вместо ряда карточек */
.pain-rows { border-top: 1px solid var(--border); }
.pain-row { display: grid; grid-template-columns: minmax(200px, .75fr) 1.25fr; gap: 10px 48px; padding: 28px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.pain-row h3 { margin: 0 0 6px; }
.pain-row p { margin: 0; color: var(--muted); }
.pain-q { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; font-style: italic; color: var(--text); margin: 0; }
@media (max-width: 720px) { .pain-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; } }

/* Пакет: сайт + бонусы */
.stack { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.stack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stack-item {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.stack-item .icon { margin: 0; }
.stack-item h3 { font-size: 1.02rem; margin: 0 0 2px; }
.stack-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.stack-price { text-align: right; white-space: nowrap; }
.stack-price s { display: block; color: var(--muted); font-size: .84rem; }
.stack-price b { color: var(--success); font-size: 1.05rem; }
.stack-total { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-lg); padding: 32px; position: sticky; top: 92px; }
.stack-total .eyebrow { color: inherit; opacity: .85; }
.stack-total .big { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 2px 0 12px; }
.stack-total p { opacity: .92; }
.stack-total .btn { background: var(--on-accent); color: var(--accent); margin-top: 6px; }

/* Тарифы: подарки к тарифу */
.plan-gifts { margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: .88rem; }
.plan-gifts b { display: block; color: var(--accent); margin-bottom: 4px; }
.plan-gifts span { display: block; color: var(--text); }
/* Другие услуги — одной строкой с разделителями, а не третьим рядом одинаковых карточек */
.also-list { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.also-item { position: relative; padding: 22px 48px 22px 24px; cursor: pointer; transition: background-color 150ms ease; }
.also-item + .also-item { border-left: 1px solid var(--border); }
.also-item h3 { font-size: 1.02rem; margin: 0 0 6px; }
.also-item p { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.also-item .price { font-weight: 700; margin: 0; color: var(--text); }
.also-item .price small { font-weight: 400; color: var(--muted); font-size: .88rem; }
.also-item::after { content: "→"; position: absolute; top: 22px; right: 22px; color: var(--accent); font-weight: 600; }
.also-item:active { background: var(--surface-2); }
.also-item:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 900px) {
  .also-list { grid-template-columns: 1fr; }
  .also-item + .also-item { border-left: 0; border-top: 1px solid var(--border); }
}

/* Рекомендуемый тариф — выделен цветом (инверсия), а не только рамкой */
.plan.featured { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .amount { color: var(--bg); }
.plan.featured .muted, .plan.featured .list li, .plan.featured .plan-note { color: color-mix(in srgb, var(--bg) 74%, var(--text)); }
.plan.featured .list li::before { border-color: currentColor; }
.plan.featured .plan-gifts { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.plan.featured .plan-gifts b, .plan.featured .plan-gifts span { color: var(--bg); }
.plan.featured .tag { background: var(--accent); color: var(--on-accent); }
/* Плашка «Популярное» в углу — цены и списки трёх тарифов начинаются на одной высоте */
.plan { position: relative; }
.plan > .tag { position: absolute; top: 26px; right: 24px; margin: 0; }
.b2b-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px;
  margin-top: 20px; padding: 22px 26px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface);
}
.b2b-strip p { margin: 0; color: var(--muted); max-width: 680px; }
.b2b-strip strong { color: var(--text); }

/* Калькулятор */
.calc { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.calc-intro .list { margin-top: 18px; }
.calc-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.calc-progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
/* Прогресс через transform (GPU), а не width */
.calc-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(.25); transform-origin: left; transition: transform 260ms var(--ease-out); }
.calc-steplabel { font-size: .82rem; color: var(--muted); margin: 0 0 18px; }
.calc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-step legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; padding: 0; }
/* Смена шага калькулятора — короткий сдвиг с проявлением, а не мгновенная подмена */
.calc-step:not([hidden]) { animation: step-in 220ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; translate: 10px 0; } }
@media (prefers-reduced-motion: reduce) { .calc-step:not([hidden]) { animation: reveal-fade 150ms ease-out; } }
.calc-step legend small { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; font-weight: 400; }
.opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.opt span {
  display: grid; gap: 2px; height: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color 150ms ease, background-color 150ms ease, transform 120ms var(--ease-out);
}
.opt b { font-weight: 600; font-size: .98rem; color: var(--text); }
.opt small { color: var(--muted); font-size: .84rem; }
.opt:active span { transform: scale(.98); transition-duration: 80ms; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
/* Нечётный последний вариант — на всю ширину, чтобы сетка оставалась симметричной */
.opts > .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-nav { display: flex; gap: 12px; margin-top: 22px; }
.calc-nav [data-calc-next] { margin-left: auto; }
.calc-label { margin: 0; color: var(--muted); font-size: .9rem; }
.calc-price { font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 6px; }
.calc-time { margin: 0 0 14px; font-weight: 600; }
.calc-gifts { margin: 0 0 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); }
.calc-gifts b { color: var(--accent); }
.calc-gifts .list { margin-top: 8px; }
.calc-gifts .list li { color: var(--text); }
.calc-note { font-size: .86rem; color: var(--muted); margin: 12px 0 18px; }
.calc-lead { border-top: 1px solid var(--border); padding-top: 20px; }
.calc-lead h3 { margin-bottom: 4px; }
.calc-lead > p { color: var(--muted); font-size: .92rem; }

/* Гарантии */
.guarantee { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.guarantee .icon { margin: 0; }
.guarantee h3 { font-size: 1.02rem; margin: 0 0 4px; }
.guarantee p { font-size: .93rem; }
.legal-line { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* Кто делает сайт */
.me { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.me img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-lg); }
.me-facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.me-facts li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .88rem; }

/* Мелкие отступы вместо встроенных style */
.section.section-tight { padding-top: 8px; }
.works-more { margin-top: 24px; }
.me-more { margin-top: 18px; }

/* FAQ на главной */
.faq-wrap { max-width: 820px; }

@media (max-width: 900px) {
  .stack, .calc { grid-template-columns: 1fr; }
  .stack-total { position: static; }
  .hero-side { max-width: 560px; }
}
@media (max-width: 720px) {
  .me { grid-template-columns: 1fr; gap: 20px; }
  .me img { width: 140px; height: 140px; }
  .hero-visual { padding: 18px 4px 46px 12px; }
}
@media (max-width: 520px) {
  .opts { grid-template-columns: 1fr; }
  .calc-box { padding: 20px; }
  .stack-item { grid-template-columns: 1fr auto; }
  .stack-item .icon { display: none; }
  .btn-lg { width: 100%; }
}

/* Карточки-ссылки (страница 404) */
.card-link { display: block; color: var(--text); }
.card-link .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; }

/* ===================== v1.1: этапы, гарантии, работы ===================== */
/* Этапы — линия с номерами вместо сетки карточек */
.steps-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
/* Линия от центра первого кружка до центра последнего: 4 колонки с промежутком 28 px */
.steps-line::before { content: ""; position: absolute; top: 17px; left: 18px; right: calc((100% - 84px) / 4 - 18px); height: 2px; background: var(--border); }
.steps-line .step::before { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.steps-line .step h3 { margin-bottom: 6px; }
.steps-line .step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .steps-line { grid-template-columns: repeat(2, 1fr); }
  .steps-line::before { display: none; }
}
@media (max-width: 720px) {
  .steps-line { grid-template-columns: 1fr; gap: 22px; }
  .steps-line::before { display: block; top: 18px; bottom: 18px; left: 17px; right: auto; width: 2px; height: auto; }
  .steps-line .step { padding-left: 56px; }
  .steps-line .step::before { position: absolute; left: 0; top: 0; margin: 0; }
}
/* Гарантии — список с тонкими линиями вместо карточек */
.guarantees-list { gap: 28px 36px; }
.guarantees-list .guarantee { padding-top: 22px; border-top: 1px solid var(--border); }
/* Работы на главной: одна строка о задаче */
.work-task { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Отклик текстовых ссылок на касание */
.nav-links a:not(.btn):active, .footer-links a:active { opacity: .6; }

/* ===== Наведение — только для мыши и тачпада: на телефоне :hover «залипает» после касания ===== */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--accent-hover); }
  .nav-links a:hover { color: var(--text); }
  .nav-links a.btn-primary:hover { color: var(--on-accent); }
  .nav-toggle:hover { border-color: var(--accent); }
  .btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .cta .btn:hover { color: var(--accent-hover); }
  .cta .btn.btn-outline:hover { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
  .stack-total .btn:hover { color: var(--accent-hover); }
  a.card:hover, .card-action:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
  .post-card:hover { color: inherit; }
  .card-link:hover { color: var(--text); }
  .footer-links a:hover { color: var(--accent); }
  .modal-close:hover { color: var(--text); background: var(--surface-2); }
  .hero-note a:hover { color: var(--accent); border-color: var(--accent); }
  .opt:hover span { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
  .also-item:hover { background: var(--surface-2); }
  .skip-link:hover { color: var(--bg); }
}

/* Отступы и ширины вместо inline-стилей */
.section.tight-top { padding-top: 32px; }
.section.flush-top { padding-top: 0; }
.container.measure { max-width: 780px; }
.container.measure-text { max-width: 720px; }
.mt-16 { margin-top: 16px; }
.mt-28 { margin-top: 28px; }
.mt-40 { margin-top: 40px; }

/* «О нас»: принципы строками (заголовок слева, пояснение справа) вместо трёх одинаковых карточек */
.principle-rows { display: grid; max-width: 860px; }
.principle-row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 8px 32px; padding: 22px 0; }
.principle-row + .principle-row { border-top: 1px solid var(--border); }
.principle-row h3 { margin: 0; font-size: 1.1rem; }
.principle-row p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .principle-row { grid-template-columns: 1fr; } }

/* Невидимая метка для показа нижней панели на телефоне (см. main.js) */
.sticky-sentinel { position: absolute; top: 420px; left: 0; width: 1px; height: 1px; pointer-events: none; visibility: hidden; }

/* Портфолио одним списком: первая работа — широкая карточка; последняя растягивается, только когда колонок три (13 работ = 5 полных рядов) */
.works-all .work-wide { grid-column: span 2; }
.works-all .work-wide-end { grid-column: span 2; }
@media (min-width: 901px) {
  .works-all :is(.work-wide, .work-wide-end) { display: grid; grid-template-columns: 1.5fr 1fr; }
  .works-all :is(.work-wide, .work-wide-end) .work-thumb { aspect-ratio: auto; height: 100%; }
  .works-all :is(.work-wide, .work-wide-end) .work-thumb img { object-position: left top; }
  .works-all :is(.work-wide, .work-wide-end) .work-body { align-self: center; }
}
@media (max-width: 900px) { .works-all .work-wide-end { grid-column: auto; } }
@media (max-width: 720px) { .works-all .work-wide { grid-column: auto; } }

/* Интеграции: группы каналов чипами в одной карточке */
.integrations { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; display: grid; gap: 22px; }
.integr-group { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 10px 24px; align-items: center; }
.integr-group h3 { margin: 0; font-size: 1rem; }
.integr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.integr-list li { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; }
.integr-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; text-wrap: pretty; }
@media (max-width: 720px) {
  .integrations { padding: 22px 20px; }
  .integr-group { grid-template-columns: 1fr; }
}

/* Предложение «первая страница бесплатно» в блоке бонусов */
.free-page { margin-bottom: 24px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); }
.free-page h3 { margin: 0 0 6px; }
.free-page p { margin: 0; color: var(--muted); max-width: 640px; text-wrap: pretty; }
@media (max-width: 720px) { .free-page { padding: 22px 20px; } }

/* ---------- Тёмная зона внизу главной: страница уходит в глубину, дальше живёт 3D ----------
   Внутри .deep те же токены, только тёмные, поэтому гарантии, FAQ и финал перекрашиваются сами.
   Холст закреплён (sticky) только в пределах зоны и проявляется с блока #wow (js/scene3d.js). */
:root { --page-bg: var(--bg); --fade-h: clamp(110px, 16vh, 190px); }
.deep, .deep-footer {
  --bg: #07070a; --surface: #121219; --surface-2: #0d0d13; --text: #f2f1f7; --muted: #a6a3b5; --border: rgba(255, 255, 255, .1);
  --accent: #8b85ff; --accent-hover: #a29dff; --accent-soft: rgba(139, 133, 255, .16); --on-accent: #0b0b10;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4); --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px -18px rgba(0, 0, 0, .8);
  color: var(--text); color-scheme: dark;
}
.deep { position: relative; background: linear-gradient(to bottom, var(--page-bg) 0, var(--bg) var(--fade-h)); }
.deep-footer { background: var(--bg); margin-top: 0; }
.deep-fade { height: var(--fade-h); }
.deep-stage { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; z-index: 0; pointer-events: none; }
.deep-canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.deep > section, .deep > .deep-fade { position: relative; z-index: 1; }
.deep .section.alt { background: transparent; }
.deep details, .deep .audit { background: rgba(18, 18, 25, .84); }
/* Объект встаёт на место знака студии, картинка остаётся запасной */
.deep-3d .deep .me img { visibility: hidden; }

.deep-bridge { margin: 28px 0 0; text-align: center; }
.deep-bridge a { color: var(--accent); font-weight: 600; border-bottom: 1px dashed currentColor; }

/* Добивка: текст и место под объект */
.wow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; min-height: 72vh; }
.wow h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.wow-lead { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 18px 0 0; text-shadow: 0 2px 16px rgba(7, 7, 10, .9); }
.wow-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.wow-points li { position: relative; padding-left: 22px; }
.wow-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #5ec8ff, #8b7bff); box-shadow: 0 0 10px #8b7bff; }
.wow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.wow-price { color: var(--muted); font-size: .95rem; }
.wow-stage { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }

/* Финал: полное погружение, объект над заголовком */
.deep-final { min-height: 100vh; display: flex; align-items: center; }
.deep-final > .container { width: 100%; }
.deep .cta { background: transparent; color: var(--text); padding: 0 0 16px; }
.deep .cta p { text-shadow: 0 2px 16px rgba(7, 7, 10, .95); }
.deep .cta .btn { background: var(--text); color: var(--bg); }
.deep .cta .btn.btn-outline { background: rgba(7, 7, 10, .5); color: var(--text); }
.final-stage { width: min(62vw, 300px); max-width: 100%; aspect-ratio: 1; margin: 0 auto 8px; }

/* Без WebGL: статичная стеклянная сфера на тех же местах */
.no-webgl .deep .wow-stage, .no-webgl .deep .final-stage { border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 22%), radial-gradient(circle at 65% 70%, rgba(94, 200, 255, .45), transparent 45%), radial-gradient(circle at 40% 60%, rgba(139, 123, 255, .8), rgba(139, 123, 255, .12) 62%, transparent 70%);
  box-shadow: 0 0 120px rgba(139, 123, 255, .35); }

@media (max-width: 900px) {
  .wow { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  /* На телефоне сразу заголовок, объект под текстом: переход короче одного экрана */
  .wow-stage { width: min(64vw, 260px); }
  .deep-wow { padding-top: 16px; }
}

/* ---------- Жидкое стекло: шапка, панель на телефоне, второстепенные кнопки, тёмная зона ----------
   Только CSS: размытие того, что под элементом, светлая кромка сверху и тень внутри снизу.
   Ставим точечно (крупные площади стеклом не покрываем), главная кнопка остаётся сплошной — у неё только кромка. */
:root {
  --glass-tint: rgba(255, 255, 255, .5);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 2px rgba(20, 20, 40, .08), 0 6px 20px -10px rgba(40, 30, 110, .35);
  --glass-blur: blur(14px) saturate(180%);
}
@media (prefers-color-scheme: dark) {
  :root { --glass-tint: rgba(28, 28, 36, .45); --glass-edge: rgba(255, 255, 255, .14);
    --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 2px rgba(0, 0, 0, .35), 0 8px 24px -10px rgba(0, 0, 0, .6); }
}
.deep, .deep-footer { --glass-tint: rgba(22, 22, 32, .38); --glass-edge: rgba(255, 255, 255, .16);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 3px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .7); }

/* Фиолетовая плашка призыва на внутренних страницах: стекло светлое и почти прозрачное */
.cta { --glass-tint: rgba(255, 255, 255, .14); --glass-edge: rgba(255, 255, 255, .42); }
.deep .cta { --glass-tint: rgba(22, 22, 32, .38); --glass-edge: rgba(255, 255, 255, .16); }

/* Шапка: контент проплывает под ней и размывается */
.site-header { background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--glass-edge) 60%, transparent); }

/* Стеклянная кнопка */
.btn-ghost, .cta .btn.btn-outline, .deep .cta .btn.btn-outline {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--glass-tint); border-color: var(--glass-edge); box-shadow: var(--glass-rim);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
/* Блик на верхней половине стекла */
.btn-ghost::before, .cta .btn.btn-outline::before { content: ""; position: absolute; inset: 1px 1px 50% 1px; z-index: -1; border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); opacity: .6; pointer-events: none; transition: opacity 200ms ease; }
.deep .btn-ghost::before, .deep .cta .btn.btn-outline::before, .deep-footer .btn-ghost::before { opacity: .22; }
@media (prefers-color-scheme: dark) { .btn-ghost::before, .cta .btn.btn-outline::before { opacity: .2; } }
/* Главная кнопка: сплошной цвет, но со стеклянной кромкой */
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 6px rgba(0, 0, 0, .18), 0 8px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
/* Нажатие: стекло «продавливается» */
.btn-ghost:active, .cta .btn.btn-outline:active { box-shadow: inset 0 2px 6px rgba(20, 20, 40, .15), inset 0 -1px 0 var(--glass-edge); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: color-mix(in srgb, var(--glass-tint) 70%, var(--accent-soft)); }
  .btn-ghost:hover::before, .cta .btn.btn-outline:hover::before { opacity: 1; }
  .deep .btn-ghost:hover::before, .deep .cta .btn.btn-outline:hover::before { opacity: .35; }
}

/* Панель на телефоне: стеклянная пилюля над контентом */
@media (max-width: 720px) {
  .sticky-cta { background: var(--glass-tint); border-color: var(--glass-edge); box-shadow: var(--glass-rim), var(--shadow);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  .sticky-cta .btn-ghost { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* За кнопками первого экрана — мягкое переливающееся свечение, чтобы стеклу было что преломлять */
/* Свечение шире кнопок: обрезаем по краю первого экрана, иначе на телефоне страница становится шире экрана */
.hero-v2 { overflow: hidden; overflow: clip; }
.hero-actions { position: relative; isolation: isolate; }
.hero-actions::before { content: ""; position: absolute; z-index: -1; inset: -40px -60px; pointer-events: none;
  background: radial-gradient(closest-side at 30% 55%, color-mix(in srgb, var(--accent) 28%, transparent), transparent),
              radial-gradient(closest-side at 72% 45%, rgba(94, 200, 255, .28), transparent),
              radial-gradient(closest-side at 55% 70%, rgba(255, 123, 213, .18), transparent);
  animation: glass-glow 9s ease-in-out infinite alternate; }
@keyframes glass-glow { from { translate: -14px 0; scale: 1; } to { translate: 18px -6px; scale: 1.08; } }
@media (prefers-reduced-motion: reduce) { .hero-actions::before { animation: none; } }

/* Без поддержки размытия: стекло становится плотнее, чтобы текст читался */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .sticky-cta, .btn-ghost, .cta .btn.btn-outline { background: var(--surface); }
}

/* ---------- Подпись в конце главной: реквизиты ИП как на визитке ----------
   Крупный тонкий знак, мелкие разреженные подписи, цифры моноширинные. Цвета приглушённые, без ярких акцентов. */
.deep-footer { border-top: 0; margin-top: 0; padding: 0 0 28px; }
.sign { position: relative; padding-block: 72px 40px; text-align: center; }
.sign::before { content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); }
/* Знак студии: буквы собираются из размытия, по слову проходит блик, чёрточка «дышит», снизу отражение на «стекле»,
   за знаком свет, который на компьютере следует за курсором (js/hero-fx.js), на телефоне дрейфует сам */
.sign-stage { position: relative; display: inline-block; isolation: isolate; }
.sign-glow { position: absolute; z-index: -1; left: var(--gx, 50%); top: var(--gy, 50%); width: 70%; aspect-ratio: 2 / 1; translate: -50% -50%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 123, 255, .34), rgba(94, 200, 255, .1) 55%, transparent); filter: blur(10px); opacity: 0; transition: opacity 1.2s ease, left 600ms var(--ease-out), top 600ms var(--ease-out); }
.sign.in .sign-glow { opacity: 1; }
@media (hover: none) { .sign.in .sign-glow { animation: sign-drift 9s ease-in-out infinite alternate; } }
@keyframes sign-drift { from { left: 35%; top: 45%; } to { left: 65%; top: 60%; } }
.sign-mark { position: relative; margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 9vw, 5.2rem); line-height: 1.2; letter-spacing: -.035em;
  -webkit-box-reflect: below -.1em linear-gradient(transparent 68%, rgba(255, 255, 255, .14)); }
.sign-letters { display: inline-block; }
.sign-mark .ch, .sign-mark .bar { display: inline-block; padding-bottom: .12em; margin-bottom: -.12em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.sign-mark .ch { background-image: linear-gradient(180deg, #f4f3fa 20%, rgba(244, 243, 250, .4)); }
.sign-mark .bar { margin-inline: .14em; font-weight: 200; background-image: linear-gradient(180deg, #b7b3ff, rgba(139, 133, 255, .45)); }
.js .sign-mark .ch, .js .sign-mark .bar { opacity: 0; filter: blur(10px); translate: 0 .25em; }
.sign.in .sign-mark .ch, .sign.in .sign-mark .bar { animation: sign-in 900ms var(--ease-out) calc(var(--i) * 55ms) both; }
.sign.in .sign-mark .bar { animation: sign-in 900ms var(--ease-out) calc(var(--i) * 55ms) both, bar-breathe 3.2s ease-in-out 1.6s infinite; }
@keyframes sign-in { from { opacity: 0; filter: blur(10px); translate: 0 .25em; } to { opacity: 1; filter: blur(0); translate: 0 0; } }
@keyframes bar-breathe { 0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 rgba(139, 133, 255, 0)); } 50% { opacity: .55; filter: drop-shadow(0 0 10px rgba(139, 133, 255, .9)); } }
/* Блик: копия букв поверх знака, по ней проходит светлая полоса — сначала после сборки, потом раз в 7 секунд */
.sign-shine { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .9) 50%, transparent 60%) 150% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; }
.sign-shine .ch, .sign-shine .bar { background: none; color: transparent; opacity: 1 !important; filter: none !important; translate: none !important; animation: none !important; }
.sign.in .sign-shine { opacity: 1; animation: sign-shine 7s ease-in-out 1.5s infinite; }
@keyframes sign-shine { 0% { background-position: 150% 0; } 22%, 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) {
  .sign.in .sign-mark .ch, .sign.in .sign-mark .bar { animation: reveal-fade 300ms ease-out both; }
  .sign.in .sign-glow { animation: none; }
  .sign-shine { display: none; }
}
.sign-tag { margin: clamp(26px, 3.4vw, 46px) 0 0; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(242, 241, 247, .42); }
.sign-req { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 0; margin: 44px auto 0; padding: 0; max-width: 860px; }
.sign-req > div { padding: 0 32px; min-width: 0; }
.sign-req > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.sign-req dt { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(242, 241, 247, .36); }
.sign-req dd { margin: 8px 0 0; font-size: 1.02rem; font-weight: 400; letter-spacing: .02em; color: rgba(242, 241, 247, .78); font-variant-numeric: tabular-nums; }
.sign-check { display: inline-block; margin-top: 30px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(162, 157, 255, .75);
  padding: 9px 18px; border: 1px solid rgba(162, 157, 255, .22); border-radius: 999px; transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .sign-check:hover { color: #c9c6ff; border-color: rgba(162, 157, 255, .5); background: rgba(139, 133, 255, .08); } }
.deep-footer .footer-grid { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .84rem; color: rgba(242, 241, 247, .4); align-items: center; }
.deep-footer .footer-links a { color: rgba(242, 241, 247, .5); }
@media (max-width: 720px) {
  .sign { padding-block: 56px 32px; }
  .sign-req { flex-direction: column; gap: 18px; margin-top: 34px; }
  .sign-req > div { padding: 0; }
  .sign-req > div + div { border-left: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); width: min(240px, 100%); margin: 0 auto; }
  .deep-footer .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .deep-footer .footer-links { justify-content: center; }
}

/* Телефон: гарантии и «кто делает» ближе друг к другу (реквизиты теперь только в подписи внизу) */
@media (max-width: 720px) {
  .deep #guarantees { padding-bottom: 20px; }
  .deep [data-scene="who"] { padding-top: 8px; }
  .deep .me { gap: 12px; }
}
