/* STUDIO TSOY — сайт v1.0
   Визуальная система — по брендбуку интерфейса («БРЕНДБУК STUDIO TSOY / BRANDBOOK.md»):
   подложка #020617, действие — бирюза #00D5BE, навигация и доверие — золото #C59D7D,
   карточки — полупрозрачные панели с рамкой slate-800, данные — моноширинным.
   Правило: одна акцентная идея на экран, один главный призыв, светлой темы нет. */

:root {
  /* Палитра */
  --bg: #020617;
  --surface: rgba(15, 23, 42, 0.55);
  --surface-2: rgba(30, 41, 59, 0.45);
  --teal: #00d5be;
  --teal-hover: #2dd4bf;
  --on-teal: #071545;
  --gold: #c59d7d;
  --gold-light: #e8cfa9;
  --gold-deep: #a37654;
  --indigo: #818cf8;
  --indigo-light: #a5b4fc;
  --text: #eff2ff;
  --muted: #9fb3e0;
  --danger: #ff5a6e;
  --slate-800: #1e293b;
  --border: var(--slate-800);
  --border-soft: rgba(30, 41, 59, 0.85);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Шкала отступов: 4 8 12 16 24 32 48 64 */
  --s-3xs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-3xl: 64px;

  --container: 1200px;
  --header-h: 72px;

  --font: "Segoe UI", "Segoe UI Web (West European)", system-ui, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Фоновое свечение: только радиальные градиенты, без blur и mix-blend-mode */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

body::before {
  width: 1100px;
  height: 1100px;
  top: -520px;
  right: -320px;
  background: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.14), rgba(129, 140, 248, 0) 62%);
  animation: breathe 16s ease-in-out infinite alternate;
}

body::after {
  width: 900px;
  height: 900px;
  bottom: -480px;
  left: -300px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 213, 190, 0.1), rgba(0, 213, 190, 0) 64%);
  animation: breathe 16s ease-in-out infinite alternate-reverse;
}

@keyframes breathe {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
}

main,
.header,
.footer {
  position: relative;
  z-index: 1;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.15em;
}

li + li {
  margin-top: 8px;
}

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

::selection {
  background: var(--teal);
  color: var(--on-teal);
}

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

/* ---------- Утилиты ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--on-teal);
  padding: 12px 18px;
  font: 600 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0 0 var(--r-md) 0;
}

.skip:focus {
  left: 0;
}

.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;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
  line-height: 1.55;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}

/* Акцентная строка заголовка: индиго → бирюза. Одна на страницу. */
.grad {
  background: linear-gradient(96deg, var(--indigo) 0%, var(--indigo-light) 42%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Контейнер и секции ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(64px, 8vw, 96px);
  position: relative;
}

.section--tight {
  padding-block: var(--s-2xl);
}

.section--surface {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0));
  border-block: 1px solid var(--border-soft);
}

.section__head {
  max-width: 760px;
  margin-bottom: var(--s-xl);
}

.eyebrow {
  display: block;
  margin-bottom: var(--s-sm);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.h1 {
  font-size: clamp(30px, 4.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.16;
}

.h3 {
  font-size: 20px;
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid var(--border-soft);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 207, 169, 0.05), transparent 70%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand__name {
  display: grid;
  font-family: Georgia, "Times New Roman", "PT Serif", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.02;
}

.brand__line1 {
  color: var(--text);
}

.brand__line2 {
  color: var(--gold);
}

.brand__tag {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-left: auto;
}

.nav__link {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.header__phone {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--teal);
  text-decoration: none;
}

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}

.burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--teal);
  color: var(--on-teal);
  box-shadow: 0 10px 24px rgba(0, 213, 190, 0.18);
}

.btn--primary:hover {
  background: var(--teal-hover);
  color: var(--on-teal);
}

/* Кнопка навигации: тёмная с золотой рамкой. Одна на экран — в шапке. */
.header__cta {
  background: var(--bg);
  color: var(--gold-light);
  border-color: rgba(197, 157, 125, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.header__cta:hover {
  color: var(--bg);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(197, 157, 125, 0.45);
  color: var(--text);
}

.btn--link {
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--teal);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.btn--link:hover {
  transform: none;
  text-decoration: underline;
}

.btn--wide {
  width: 100%;
  min-height: 48px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* Первый экран: кольцо из брендбука + свет, который следует за курсором.
   Эффект — только фон, текст всегда сверху. */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero__ring {
  position: absolute;
  top: -6%;
  right: -4%;
  width: clamp(340px, 46vw, 660px);
  height: auto;
  opacity: 0.72;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 88%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 88%);
  filter: drop-shadow(0 0 60px rgba(232, 207, 169, 0.18));
  animation: ring-turn 120s linear infinite;
}

@keyframes ring-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Свет за курсором: радиальный градиент, позиция — из переменных --mx/--my */
.hero__glow::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    420px 420px at var(--mx, 70%) var(--my, 30%),
    rgba(232, 207, 169, 0.16),
    transparent 68%
  );
  transition: opacity 0.4s;
}

.hero__sub {
  margin-top: var(--s-md);
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
}

.hero__note {
  margin-top: var(--s-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .btn-row {
  margin-top: var(--s-lg);
}

.hero__aside {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}

.hero__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px 200px at 88% -12%, rgba(197, 157, 125, 0.12), transparent 70%);
}

.hero__aside-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-sm);
}

.hero__aside-foot {
  margin-top: var(--s-md);
  padding-top: var(--s-md);
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Чек-лист ---------- */

.checklist {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}

.checklist li + li {
  margin-top: 10px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- Цифры-доказательства ---------- */

.proof {
  border-block: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0));
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-lg);
  padding-block: var(--s-xl);
}

.proof__item {
  position: relative;
  padding-left: var(--s-md);
}

.proof__item + .proof__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-deep), transparent);
}

.proof__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.proof__label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Сетки ---------- */

.grid {
  display: grid;
  gap: var(--s-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-xl);
  align-items: start;
}

/* ---------- Карточки ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.25s, box-shadow 0.35s;
}

/* 3D-подъём: наклон следует за курсором (переменные ставит app.js).
   Мягкий вариант — для карточек в одном ряду. */
.card--tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--zoom, 1));
}

.card--tilt:hover {
  --lift: -10px;
  --zoom: 1.015;
  border-color: rgba(197, 157, 125, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card--tilt-soft:hover {
  --lift: -5px;
  --zoom: 1.008;
}

/* Блик, едущий за курсором */
.card--tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(240px 160px at var(--mx, 50%) var(--my, 0%), rgba(232, 207, 169, 0.14), transparent 70%);
}

.card--tilt:hover::after {
  opacity: 1;
}

.card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.card__title {
  font-size: 19px;
  line-height: 1.25;
}

.card__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.card__list {
  color: var(--muted);
  font-size: 15px;
  padding-left: 1.1em;
}

.card__list li::marker {
  color: var(--gold);
}

.card__foot {
  margin-top: auto;
  padding-top: var(--s-sm);
  font-size: 14px;
}

.card--accent {
  background: linear-gradient(180deg, rgba(197, 157, 125, 0.1), rgba(15, 23, 42, 0.5));
  border-color: rgba(197, 157, 125, 0.45);
}

.card--edge::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s-lg);
  bottom: var(--s-lg);
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
}

/* ---------- Шаги ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-lg);
}

.step {
  position: relative;
  padding-top: var(--s-md);
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 157, 125, 0.35), transparent 85%);
}

.step:last-child::after {
  display: none;
}

.step__num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 8px;
}

.step__title {
  font-size: 18px;
  margin-bottom: 6px;
}

.step__text {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Таблица ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 620px;
}

.table th,
.table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(2, 6, 23, 0.6);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  vertical-align: top;
}

.table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.table thead th:first-child {
  color: var(--gold);
}

.table .cell-muted {
  color: var(--muted);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Кейсы ---------- */

.case {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.case__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.case__name {
  font-size: 19px;
  font-weight: 700;
}

.case__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(197, 157, 125, 0.4);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  white-space: nowrap;
}

.case__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md) var(--s-xl);
  padding-block: var(--s-xs);
  border-block: 1px solid var(--border-soft);
}

.case__metric {
  min-width: 0;
}

.case__metric b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.case__metric span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.case__text {
  color: var(--muted);
  font-size: 15px;
}

.case__link {
  margin-top: auto;
  padding-top: var(--s-xs);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- Цитата ---------- */

.quote {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s-lg);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
}

.quote__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(197, 157, 125, 0.5);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold-light);
  background: rgba(197, 157, 125, 0.08);
}

.quote blockquote {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.quote figcaption {
  margin-top: var(--s-md);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Способы решения ---------- */

.solution {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.solution__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.solution__title {
  font-size: 20px;
  margin-bottom: var(--s-xs);
}

.solution__text {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: var(--s-md);
}

.solution ul {
  font-size: 15px;
  color: var(--text);
}

.solution li::marker {
  color: var(--gold);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: var(--s-sm);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: background-color 0.2s, border-color 0.2s;
}

.faq details[open] {
  background: var(--surface-2);
  border-color: rgba(197, 157, 125, 0.45);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  font-size: 16px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq__answer {
  margin-top: var(--s-sm);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Форма ---------- */

.form-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--s-xl);
  align-items: start;
}

.form-side {
  position: relative;
}

.form {
  display: grid;
  gap: var(--s-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--slate-800);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 213, 190, 0.16);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field__error {
  display: none;
  color: var(--danger);
  font-size: 13px;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--danger);
}

.field--error .field__error {
  display: block;
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.consent a {
  color: var(--muted);
  text-decoration: underline;
}

.form__note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.form__status {
  display: none;
  font-size: 14px;
  color: var(--danger);
}

.form__status:not([hidden]) {
  display: block;
}

.form__status--error {
  color: var(--danger);
}

.form__success {
  background: var(--surface);
  border: 1px solid rgba(197, 157, 125, 0.45);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
}

.form__success:not([hidden]) {
  display: grid;
  gap: var(--s-md);
}

.form__success h3 {
  font-size: 20px;
}

.form__success p {
  color: var(--muted);
  font-size: 15px;
}

.form__success .btn {
  justify-self: start;
}

/* ---------- Призыв ---------- */

.cta {
  position: relative;
  background: linear-gradient(120deg, rgba(197, 157, 125, 0.12), rgba(15, 23, 42, 0.6) 55%);
  border: 1px solid rgba(197, 157, 125, 0.35);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: var(--s-md);
}

.cta__title {
  font-size: clamp(22px, 2.6vw, 28px);
}

.cta__text {
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Ссылки-карточки ---------- */

.link-card {
  position: relative;
  display: grid;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.link-card:hover {
  background: var(--surface-2);
  border-color: rgba(0, 213, 190, 0.45);
  text-decoration: none;
  transform: translateY(-2px);
}

.link-card__title {
  font-weight: 600;
  font-size: 16px;
}

.link-card__note {
  color: var(--muted);
  font-size: 14px;
}

.link-card__arrow {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- Заголовок страницы ---------- */

.page-head {
  padding-block: clamp(40px, 6vw, 72px) var(--s-xl);
  border-bottom: 1px solid var(--border-soft);
}

.page-head .lead {
  margin-top: var(--s-md);
  max-width: 66ch;
}

.page-head .btn-row {
  margin-top: var(--s-lg);
}

/* ---------- Крошки ---------- */

.crumbs {
  padding-block: var(--s-md);
  border-bottom: 1px solid var(--border-soft);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--gold-deep);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--text);
}

/* ---------- Документы ---------- */

.doc {
  max-width: 820px;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--s-2xl);
  align-items: start;
}

.doc h2 {
  font-size: 22px;
  margin-top: var(--s-xl);
  margin-bottom: var(--s-sm);
}

.doc h3 {
  font-size: 17px;
  margin-top: var(--s-lg);
  margin-bottom: var(--s-xs);
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.doc p {
  margin-bottom: var(--s-sm);
}

.doc strong {
  color: var(--text);
}

.doc-or {
  margin-block: 8px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.doc-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--s-md);
}

.doc-aside .card {
  padding: 18px;
}

.doc-aside h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.doc-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.doc-aside li + li {
  margin-top: 8px;
}

/* ---------- Подвал ---------- */

.footer {
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(2, 6, 23, 1));
  padding-block: var(--s-2xl) var(--s-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-xl);
}

.footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-sm);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer__about {
  margin-top: var(--s-md);
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
}

.footer .brand__mark {
  width: 32px;
  height: 32px;
}

.footer__bottom {
  margin-top: var(--s-xl);
  padding-top: var(--s-md);
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer__req {
  color: var(--muted);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: var(--s-xl);
  }

  .doc-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__grid,
  .split,
  .form-block {
    grid-template-columns: 1fr;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header__phone {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid var(--border);
    padding: var(--s-sm) 20px var(--s-lg);
  }

  .nav--open {
    display: flex;
  }

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 16px;
  }

  .nav .header__cta {
    display: inline-flex;
    margin-top: var(--s-md);
    align-self: start;
  }

  .card--tilt {
    transform: none;
  }
}

@media (max-width: 660px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .steps {
    grid-template-columns: 1fr;
  }

  .proof__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-md);
  }

  .proof__item:nth-child(odd) {
    padding-left: 0;
  }

  .proof__item:nth-child(odd)::before {
    display: none;
  }

  .quote {
    grid-template-columns: 1fr;
    padding: var(--s-lg);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s-lg);
  }

  .table {
    min-width: 520px;
  }

  .doc-aside {
    grid-template-columns: 1fr;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .hero__ring {
    top: -6%;
    right: -30%;
    width: 300px;
    opacity: 0.3;
  }
}

/* ---------- Служебное ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .card--tilt {
    transform: none !important;
  }

  .hero__ring {
    animation: none;
    opacity: 0.35;
  }

  .hero__glow::after {
    display: none;
  }
}

/* Если градиентный текст нельзя отрисовать — вернуть обычный цвет,
   иначе строка исчезнет (печать, режим высокой контрастности). */
@media print {
  .grad {
    color: #000;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

@media (forced-colors: active) {
  .grad {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: CanvasText;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after,
  .header,
  .footer,
  .form,
  .cta {
    display: none;
  }

  .card,
  .case,
  .faq details,
  .table-wrap {
    border-color: #ccc;
    background: #fff;
  }
}
