/* ==========================================================================
   Центр списания кредитов и долгов — стили лендинга
   Палитра: authority navy + trust gold, кремовый акцент из логотипа
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Основная палитра */
  --navy-900: #0b1b3d;
  --navy-800: #12275c;
  --navy-700: #1e3a8a;
  --navy-600: #1e40af;
  --navy-100: #e3ebfb;
  --navy-50:  #f1f5fe;

  --gold-700: #9a4207;  /* тёмный — для текста-подписей на светлом фоне (AA) */
  --gold-600: #c0530a;  /* акцент/кнопки — чуть ярче прежнего, белый текст проходит AA */
  --gold-500: #ef7614;  /* прогресс-бар, декоративные акценты — ярче */
  --gold-400: #ffab33;  /* акцент в hero на тёмном фоне */
  --gold-100: #fef3c7;

  --cream:    #faf5ea;
  --cream-dk: #f2e9d5;

  --bg:       #f8fafc;
  --surface:  #ffffff;
  --ink:      #0f172a;
  --muted:    #475569;
  --muted-lt: #64748b;
  --line:     #e2e8f0;
  --line-dk:  #cbd5e1;

  --success:  #047857;
  --danger:   #b91c1c;

  /* Типографика */
  --font-head: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'PT Serif', Georgia, serif;

  /* Радиусы и тени */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --sh-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .06);
  --sh-lg: 0 12px 24px -8px rgba(15, 23, 42, .12), 0 4px 8px -4px rgba(15, 23, 42, .06);
  --sh-xl: 0 24px 48px -12px rgba(11, 27, 61, .18);

  /* Прочее */
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Шкала z-index */
  --z-base: 1;
  --z-sticky: 10;
  --z-header: 20;
  --z-float: 30;
  --z-modal: 50;
}

/* --------------------------------------------------------------------------
   2. Сброс и база
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* Атрибут hidden должен побеждать любые правила display у классов
   (иначе .btn с display:inline-flex продолжает показывать скрытые кнопки) */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1rem; }

/* Видимый фокус для клавиатурной навигации */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ссылка «пропустить к содержимому» — скрыта, но проявляется при табуляции */
.skip-link:focus-visible {
  position: fixed; top: 12px; left: 12px;
  z-index: var(--z-modal);
  width: auto; height: auto;
  margin: 0; padding: 14px 22px;
  overflow: visible; clip: auto; white-space: normal;
  font-family: var(--font-head); font-weight: 700;
  color: #fff; background: var(--navy-800);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
}

/* --------------------------------------------------------------------------
   3. Раскладка
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy-900); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }
.section--navy .section-head p { color: #c7d2e8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}
.section--navy .eyebrow { color: var(--gold-400); }
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   4. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
  background: var(--gold-600); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(180, 83, 9, .5);
}
.btn--primary:hover { background: var(--gold-700); color: #fff; box-shadow: 0 6px 20px -4px rgba(180, 83, 9, .6); }

.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }

.btn--ghost {
  background: transparent; color: var(--navy-700);
  border-color: var(--line-dk);
}
.btn--ghost:hover { background: var(--navy-50); border-color: var(--navy-700); color: var(--navy-700); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .06); color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.btn--lg { min-height: 60px; padding: 18px 36px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* --------------------------------------------------------------------------
   5. Шапка
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.header.is-scrolled { box-shadow: var(--sh-md); }

.header__inner {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: nowrap;
  min-height: var(--header-h);
  max-width: 100%;              /* шапка во всю ширину экрана */
  padding-inline: 50px;         /* отступ пунктов от края — 50px */
}

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img {
  width: auto; height: 62px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--cream);
  border: 1px solid var(--cream-dk);
}
.logo__text {
  font-family: var(--font-head);
  font-weight: 800; font-size: .9375rem; line-height: 1.2;
  color: var(--navy-800); letter-spacing: -.01em;
}
.logo__text span { display: block; font-weight: 500; font-size: .75rem; color: var(--muted-lt); letter-spacing: 0; }

.nav { display: flex; flex-wrap: nowrap; gap: 24px; margin-left: auto; }
.nav a {
  font-size: .9375rem; font-weight: 500; color: var(--muted);
  position: relative; padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold-500);
  transition: width .2s var(--ease);
}
.nav a:hover { color: var(--navy-800); }
.nav a:hover::after { width: 100%; }

.header__contact { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone {
  font-family: var(--font-head); font-weight: 800; font-size: 1.0625rem;
  color: var(--navy-800); white-space: nowrap;
}
.header__phone:hover { color: var(--gold-600); }

.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-dk);
  border-radius: var(--r-sm); cursor: pointer;
  margin-left: auto;
}
.burger svg { width: 24px; height: 24px; stroke: var(--navy-800); }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 480px at 82% 8%, rgba(245, 158, 11, .14), transparent 65%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 55%, #1a3272 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: var(--z-base); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}
.hero__lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: #ccd7ee; max-width: 56ch; margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero__badge {
  display: flex; align-items: center; gap: 9px;
  font-size: .9375rem; font-weight: 500; color: #dbe4f5;
}
.hero__badge svg { width: 20px; height: 20px; stroke: var(--gold-400); flex-shrink: 0; }

/* Карточка «первый шаг» в hero */
.hero__card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-xl);
}
.hero__card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.hero__card > p { color: #c2cfe8; font-size: .9375rem; margin-bottom: 20px; }
.hero__card-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.hero__card-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .9375rem; color: #e2e8f5;
}
.hero__card-list svg { width: 20px; height: 20px; stroke: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.hero__card-note {
  font-size: .8125rem; color: #a8b8d6; text-align: center;
  margin: 14px 0 0;
}

/* --------------------------------------------------------------------------
   7. Полоса цифр
   -------------------------------------------------------------------------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(32px, 4vw, 48px) 0;
}
.stat { padding: 8px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1; color: var(--navy-700);
  letter-spacing: -.03em; margin-bottom: 8px;
}
.stat__num small { font-size: .5em; font-weight: 700; color: var(--gold-600); }
.stat__label { font-size: .9375rem; color: var(--muted); line-height: 1.45; }

/* --------------------------------------------------------------------------
   8. Карточки услуг
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.service {
  display: flex; flex-direction: column;
  position: relative;
  padding-top: 32px;
}
.service:hover { border-color: var(--navy-100); box-shadow: var(--sh-lg); }
.service__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--navy-50);
  margin-bottom: 18px;
}
.service__icon svg { width: 28px; height: 28px; stroke: var(--navy-700); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .9375rem; margin-bottom: 20px; }
.service__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  min-height: 44px; /* удобная область нажатия на телефоне */
  font-family: var(--font-head); font-weight: 700; font-size: .9375rem;
  color: var(--gold-700); background: none; border: 0; padding: 10px 0;
  cursor: pointer;
}
.service__link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.service__link:hover { color: var(--gold-600); }
.service__link:hover svg { transform: translateX(4px); }
.service__tag {
  position: absolute; top: -1px; right: 20px;
  font-family: var(--font-head); font-size: .6875rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--gold-600);
  padding: 5px 12px; border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* --------------------------------------------------------------------------
   9. «Жизнь после банкротства»
   -------------------------------------------------------------------------- */
.benefit {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.benefit:hover { background: rgba(255, 255, 255, .09); border-color: rgba(245, 158, 11, .45); }
.benefit__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: rgba(245, 158, 11, .16);
  margin-bottom: 18px;
}
.benefit__icon svg { width: 26px; height: 26px; stroke: var(--gold-400); }
.benefit h3 { font-size: 1.125rem; margin-bottom: 8px; }
.benefit p { color: #bccae2; font-size: .9375rem; margin: 0; }

/* --------------------------------------------------------------------------
   10. Квиз
   -------------------------------------------------------------------------- */
.quiz-wrap {
  max-width: 860px; margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}

.quiz__top {
  padding: 24px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--navy-50);
}
.quiz__meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 12px;
  font-family: var(--font-head); font-size: .875rem; font-weight: 700;
  color: var(--navy-800);
}
.quiz__meta span:last-child { color: var(--gold-700); }
.quiz__bar { height: 8px; background: var(--navy-100); border-radius: 99px; overflow: hidden; }
.quiz__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 99px;
  transition: width .35s var(--ease);
}

.quiz__body { padding: clamp(24px, 4vw, 40px); }

/* Шаги — это fieldset, поэтому снимаем браузерные рамку и отступы,
   иначе содержимое шага оказывается уже остальной формы */
.quiz-step {
  display: none;
  margin: 0; padding: 0;
  border: 0; min-width: 0;
}
.quiz-step.is-active { display: block; animation: stepIn .3s var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Вопрос — это legend, приводим его к поведению обычного заголовка */
.quiz-step__q {
  display: block; width: 100%;
  float: left; /* убирает особенности отрисовки legend в некоторых браузерах */
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.25; letter-spacing: -.02em;
  margin: 0 0 6px; padding: 0;
}
.quiz-step__q + * { clear: both; }
.quiz-step__hint { color: var(--muted-lt); font-size: .9375rem; margin-bottom: 24px; }

.opts { display: grid; gap: 12px; margin-bottom: 28px; }
.opts--2 { grid-template-columns: repeat(2, 1fr); }

.opt {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
  padding: 14px 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 1rem; font-weight: 500;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.opt:hover { border-color: var(--navy-600); background: var(--navy-50); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__mark {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border: 2px solid var(--line-dk);
  background: var(--surface);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.opt__mark--radio { border-radius: 50%; }
.opt__mark--check { border-radius: 6px; }
.opt__mark svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; transition: opacity .15s var(--ease); }

.opt input:checked ~ .opt__mark { border-color: var(--gold-600); background: var(--gold-600); }
.opt input:checked ~ .opt__mark svg { opacity: 1; }
.opt:has(input:checked) { border-color: var(--gold-600); background: #fffbf3; }
.opt input:focus-visible ~ .opt__mark { outline: 3px solid var(--gold-500); outline-offset: 3px; }

.quiz__nav { display: flex; gap: 12px; align-items: center; }
.quiz__nav .btn--primary { margin-left: auto; }
.quiz__error {
  display: none;
  align-items: center; gap: 8px;
  color: var(--danger); font-size: .9375rem; font-weight: 500;
  margin-bottom: 16px;
}
.quiz__error.is-visible { display: flex; }
.quiz__error svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   11. Формы
   -------------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: .875rem;
  color: var(--ink); margin-bottom: 8px;
}
.field label .req { color: var(--danger); }

.input {
  width: 100%; min-height: 56px;
  padding: 14px 16px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder { color: #94a3b8; }
.input:hover { border-color: var(--line-dk); }
.input:focus {
  outline: 0; border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, .12);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__err { display: none; color: var(--danger); font-size: .8125rem; margin: 6px 0 0; }
.field__err.is-visible { display: block; }

/* Способ связи — чипы */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 18px;
  border: 2px solid var(--line); border-radius: 99px;
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.chip svg { width: 18px; height: 18px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:hover { border-color: var(--navy-600); }
.chip:has(input:checked) { border-color: var(--gold-600); background: var(--gold-600); color: #fff; }
.chip input:focus-visible ~ span { outline: 3px solid var(--gold-500); outline-offset: 6px; border-radius: 4px; }

/* Согласие */
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .8125rem; line-height: 1.55; color: var(--muted);
  cursor: pointer; margin: 4px 0 20px;
}
.consent input {
  flex-shrink: 0;
  width: 22px; height: 22px; margin: 1px 0 0;
  accent-color: var(--gold-600);
  cursor: pointer;
}
.consent a { text-decoration: underline; }

/* Ловушка для ботов — скрыта от людей и скринридеров */
.honeypot {
  position: absolute !important;
  left: -9999px; width: 1px; height: 1px; opacity: 0;
  pointer-events: none;
}

/* Состояния отправки */
.form-status { display: none; margin-top: 16px; font-size: .9375rem; font-weight: 500; }
.form-status.is-visible { display: block; }
.form-status--err { color: var(--danger); }

.btn__spinner { display: none; width: 20px; height: 20px; }
.btn.is-loading .btn__spinner { display: block; animation: spin .7s linear infinite; }
.btn.is-loading .btn__label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Экран «спасибо» */
.quiz-done { display: none; text-align: center; padding: clamp(24px, 4vw, 48px) 0; }
.quiz-done.is-active { display: block; animation: stepIn .35s var(--ease); }
.quiz-done__icon {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin: 0 auto 24px;
  border-radius: 50%; background: #ecfdf5;
}
.quiz-done__icon svg { width: 44px; height: 44px; stroke: var(--success); stroke-width: 2.5; }
.quiz-done p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.quiz-done__contacts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* --------------------------------------------------------------------------
   12. Кейсы
   -------------------------------------------------------------------------- */
.case {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.case:hover { box-shadow: var(--sh-lg); }
.case__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case__no {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: var(--cream-dk); line-height: 1;
}
.case__title {
  font-family: var(--font-head); font-weight: 800; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-700); margin: 0;
}
.case p { font-size: .9375rem; color: var(--muted); margin: 0; }
.case__result {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: .875rem;
  color: var(--success);
}
.case__result svg { width: 18px; height: 18px; flex-shrink: 0; }

.cases__more { text-align: center; margin-top: 36px; }
.case.is-hidden { display: none; }

/* Список тем сложных дел (вместо витрины кейсов) */
.topics {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 940px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
.topic {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 1.0625rem; line-height: 1.5; font-weight: 500;
  color: var(--ink);
}
.topic svg {
  width: 26px; height: 26px; flex-shrink: 0; margin-top: 1px;
  stroke: var(--gold-600);
}
.cases__note {
  max-width: 720px; margin: 32px auto 0; text-align: center;
}
.cases__note p {
  font-size: .9375rem; color: var(--muted); margin: 0;
}
@media (max-width: 760px) {
  .topics { grid-template-columns: 1fr; gap: 14px; max-width: 520px; }
}

/* --------------------------------------------------------------------------
   13. 5 шагов
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step__num {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy-700); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.75rem;
  box-shadow: 0 0 0 8px var(--navy-50);
}
.step:nth-child(5) .step__num { background: var(--gold-600); box-shadow: 0 0 0 8px var(--gold-100); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; max-width: 60ch; }
.step__body { padding-top: 10px; }

/* --------------------------------------------------------------------------
   14. Основатель
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.founder__photo { position: relative; }
.founder__photo img {
  width: 100%; height: auto;      /* height:auto перебивает HTML-хинт height и убирает растяжение */
  object-fit: contain;
  border-radius: var(--r-xl);
  background: var(--cream);
  box-shadow: var(--sh-lg);
}
.founder__photo::before {
  content: ''; position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold-400);
  border-radius: var(--r-xl);
  z-index: -1;
}
.founder blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.55; font-style: italic;
  color: var(--ink);
  margin: 0 0 24px; padding-left: 24px;
  border-left: 3px solid var(--gold-500);
}
.founder__name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  margin-bottom: 4px;
}
.founder__role { color: var(--muted); font-size: .9375rem; margin-bottom: 24px; }
.founder__facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.founder__facts li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.founder__facts svg { width: 20px; height: 20px; stroke: var(--gold-600); flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--navy-100); box-shadow: var(--sh-md); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy-700); }
.faq summary svg {
  width: 24px; height: 24px; flex-shrink: 0; stroke: var(--gold-600);
  transition: transform .25s var(--ease);
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 22px; color: var(--muted); }
.faq__answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Финальный CTA
   -------------------------------------------------------------------------- */
.cta-final {
  background:
    radial-gradient(700px 400px at 15% 15%, rgba(245, 158, 11, .16), transparent 60%),
    linear-gradient(140deg, var(--navy-800), var(--navy-900));
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.cta-final h2 { color: #fff; }
.cta-final > div > p { color: #c7d2e8; }
.cta-final__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.cta-final__list li { display: flex; gap: 12px; align-items: flex-start; color: #dbe4f5; font-size: .9375rem; }
.cta-final__list svg { width: 20px; height: 20px; stroke: var(--gold-400); flex-shrink: 0; margin-top: 2px; }

.form-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--sh-xl);
}
.form-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .875rem; margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   17. Подвал
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-900); color: #b9c6de; padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer h4 {
  font-size: .8125rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer a { color: #b9c6de; font-size: .9375rem; }
.footer ul a { display: inline-block; padding: 10px 0; } /* область нажатия 44px */
.footer a:hover { color: var(--gold-400); }
.footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__logo img { width: auto; height: 52px; border-radius: 10px; object-fit: contain; background: var(--cream); }
.footer__logo strong { font-family: var(--font-head); font-size: .9375rem; color: #fff; line-height: 1.3; }
.footer__about { font-size: .875rem; line-height: 1.6; }
.footer__phone {
  display: inline-block;
  min-height: 44px; padding: 9px 0;
  font-family: var(--font-head); font-weight: 800; font-size: 1.125rem;
  color: #fff !important;
}
.footer__phone:hover { color: var(--gold-400) !important; }

.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s var(--ease);
}
.socials a:hover { background: var(--gold-600); }
.socials svg { width: 22px; height: 22px; fill: #fff; }

.footer__legal {
  padding-top: 24px;
  font-size: .8125rem; line-height: 1.7; color: #8798b8;
  display: grid; gap: 10px;
}
.footer__legal p { margin: 0; }

/* Ссылки на правовые документы в подвале */
.footer__docs {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding-bottom: 6px;
}
.footer__docs a {
  position: relative;
  color: #cdd8ee; font-size: .875rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .3);
}
.footer__docs a:hover { color: var(--gold-400); text-decoration-color: var(--gold-400); }
.footer__docs a + a::before {
  content: ''; position: absolute; left: -15px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: #4a5b7a; transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   18. Плавающие элементы
   -------------------------------------------------------------------------- */
.float-msg {
  position: fixed; right: 20px; bottom: 20px;
  z-index: var(--z-float);
  display: flex; flex-direction: column-reverse; gap: 12px;
  align-items: center;
}
.float-msg__toggle {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border: 0; border-radius: 50%;
  background: var(--gold-600); color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(180, 83, 9, .6);
  transition: background-color .2s var(--ease);
}
.float-msg__toggle:hover { background: var(--gold-700); }
.float-msg__toggle svg { width: 28px; height: 28px; }
.float-msg__toggle .icon-close { display: none; }
.float-msg__toggle[aria-expanded="true"] .icon-open { display: none; }
.float-msg__toggle[aria-expanded="true"] .icon-close { display: block; }

.float-msg__list {
  display: none;
  flex-direction: column; gap: 10px;
}
.float-msg__list.is-open { display: flex; }
.float-msg__list a {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--sh-lg);
  transition: transform .2s var(--ease);
}
.float-msg__list a:hover { transform: translateY(-3px); }
.float-msg__list svg { width: 26px; height: 26px; }

/* Липкая полоса CTA на мобильных */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-float);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  gap: 10px;
}
.mobile-cta .btn { flex: 1; min-height: 50px; padding: 12px 16px; font-size: .9375rem; }

/* --------------------------------------------------------------------------
   18b. Уведомление о файлах cookie
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px;
  z-index: var(--z-modal);
  width: min(520px, calc(100% - 40px));
  opacity: 0; transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.cookie__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
}
.cookie__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--cream);
  color: var(--gold-600);
}
.cookie__icon svg { width: 24px; height: 24px; }
.cookie__text {
  margin: 0; align-self: center;
  font-size: .875rem; line-height: 1.5; color: var(--muted);
}
.cookie__text a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 2px;
}
.cookie__actions .btn { min-height: 46px; padding: 10px 22px; font-size: .9375rem; }

@media (max-width: 640px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie__inner { padding: 18px; }
  .cookie__actions .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   19. Анимация появления
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* --------------------------------------------------------------------------
   20. Адаптив
   -------------------------------------------------------------------------- */
/* На средних экранах уменьшаем отступ, чтобы всё влезло в одну строку */
@media (max-width: 1320px) {
  .header__inner { padding-inline: 32px; gap: 18px; }
  .nav { gap: 18px; }
}

@media (max-width: 1080px) {
  .header__inner { padding-inline: 20px; }
  .nav { display: none; }
  .burger { display: flex; }
  .header__contact { display: none; }

  /* Мобильное меню */
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 12px 20px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    margin-left: 0;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav.is-open a:last-child { border-bottom: 0; }
  .nav.is-open a::after { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 560px; }
  .cta-final { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 340px; }
  .founder__photo::before { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat { padding-left: 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .opts--2 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn--auto { width: auto; }
  .hero__actions .btn { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step__num { width: 56px; height: 56px; font-size: 1.375rem; box-shadow: 0 0 0 6px var(--navy-50); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .quiz__nav { flex-direction: column-reverse; }
  .quiz__nav .btn--primary { margin-left: 0; }
  .float-msg { bottom: 16px; right: 16px; }
  .float-msg__toggle { width: 54px; height: 54px; }
  .mobile-cta { display: none; }
  .case { padding: 22px; }
  .quiz-done__contacts .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   21. Визуальные усиления и анимации
   -------------------------------------------------------------------------- */

/* Индикатор прочтения страницы */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  box-shadow: 0 0 10px rgba(245, 158, 11, .5);
  transition: width .1s linear;
}

/* Плавающие подсветки в hero */
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(64px); opacity: .5; z-index: 0; pointer-events: none;
}
.hero__orb--1 {
  width: 320px; height: 320px; top: -70px; right: 6%;
  background: radial-gradient(circle, var(--gold-500), transparent 70%);
  animation: orbFloat1 15s ease-in-out infinite;
}
.hero__orb--2 {
  width: 260px; height: 260px; bottom: -60px; left: -40px;
  background: radial-gradient(circle, #2a4ba0, transparent 70%);
  animation: orbFloat2 19s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%, 100% { transform: none; } 50% { transform: translate(-28px, 26px); } }
@keyframes orbFloat2 { 0%, 100% { transform: none; } 50% { transform: translate(26px, -20px); } }

/* Появление hero на загрузке */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .eyebrow   { animation: fadeUp .6s .00s both var(--ease); }
.hero h1         { animation: fadeUp .6s .08s both var(--ease); }
.hero__lead      { animation: fadeUp .6s .16s both var(--ease); }
.hero__actions   { animation: fadeUp .6s .24s both var(--ease); }
.hero__badges    { animation: fadeUp .6s .32s both var(--ease); }
.hero__card      { animation: fadeUp .7s .30s both var(--ease); }

/* Бегущая лента результатов */
.ribbon {
  position: relative; overflow: hidden;
  background: var(--navy-800);
  border-block: 1px solid rgba(255, 255, 255, .08);
}
.ribbon::before, .ribbon::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ribbon::before { left: 0;  background: linear-gradient(90deg, var(--navy-800), transparent); }
.ribbon::after  { right: 0; background: linear-gradient(270deg, var(--navy-800), transparent); }
.ribbon__track {
  display: flex; width: max-content;
  animation: marquee 40s linear infinite;
}
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 0; margin-inline: 22px;
  color: #dbe4f5; font-family: var(--font-head); font-weight: 700; font-size: .9375rem;
  white-space: nowrap;
}
.ribbon__item svg { width: 18px; height: 18px; stroke: var(--gold-400); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Наведение — подъём карточек */
.service, .benefit {
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), transform .25s var(--ease);
}
.service:hover, .case:hover, .benefit:hover { transform: translateY(-5px); }

/* Оживление иконок услуг */
.service__icon, .service__icon svg { transition: background-color .25s var(--ease), stroke .25s var(--ease); }
.service:hover .service__icon { background: var(--gold-100); }
.service:hover .service__icon svg { stroke: var(--gold-600); }

/* Блик на главной кнопке */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn--primary:hover::after { left: 140%; }
.btn--primary > * { position: relative; z-index: 1; }

/* Пульс у главного бейджа услуги */
.service__tag { animation: tagPulse 2.6s ease-in-out infinite; }
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 83, 10, .5); }
  50%      { box-shadow: 0 0 0 6px rgba(192, 83, 10, 0); }
}

/* Числа-счётчики — ровное выравнивание при анимации */
.stat__num { font-variant-numeric: tabular-nums; }

/* Плавное раскрытие FAQ */
.faq details[open] .faq__answer { animation: faqIn .28s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Фирменный солнечный мотив (из логотипа) как фон секций */
.section--motif { position: relative; overflow: hidden; }
.section--motif > .container { position: relative; z-index: 1; }
.sun-motif {
  position: absolute; z-index: 0; pointer-events: none;
  width: 480px; height: 480px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--gold-500) 0 .7deg, transparent .7deg 8deg);
  -webkit-mask: radial-gradient(circle, transparent 20%, #000 33%, #000 46%, transparent 68%);
          mask: radial-gradient(circle, transparent 20%, #000 33%, #000 46%, transparent 68%);
  opacity: .12;
  animation: spin360 140s linear infinite;
}
.section--navy .sun-motif, .cta-final .sun-motif { opacity: .16; }
.sun-motif--tr { top: -150px; right: -120px; }
.sun-motif--bl { bottom: -170px; left: -150px; }
@keyframes spin360 { to { transform: rotate(360deg); } }

.cta-final { position: relative; overflow: hidden; }
.cta-final > div { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .sun-motif { width: 320px; height: 320px; }
  .sun-motif--tr { top: -110px; right: -100px; }
  .hero__orb { filter: blur(50px); opacity: .4; }
  .ribbon__item { font-size: .875rem; margin-inline: 16px; }
}

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .ribbon__track, .sun-motif, .hero__orb, .service__tag { animation: none !important; }
  .hero .eyebrow, .hero h1, .hero__lead, .hero__actions, .hero__badges, .hero__card { animation: none !important; }
  .btn--primary::after { display: none; }
}

/* --------------------------------------------------------------------------
   22. Печать
   -------------------------------------------------------------------------- */
@media print {
  .header, .float-msg, .mobile-cta, .quiz-wrap, .form-card, .scroll-progress, .ribbon { display: none !important; }
  body { background: #fff; }
}
