/* ============================================================
   Куплю квартиру 123 — Перунова Алина
   Стили лендинга. Без внешних зависимостей.
   ============================================================ */

/* -------- Токены -------- */
:root {
  --ink: #0B0B0C;
  --ink-2: #0E0E10;
  --surface: #141416;
  --surface-2: #19191C;
  --surface-3: #202024;
  --line: rgba(242, 239, 231, .10);
  --line-strong: rgba(242, 239, 231, .18);
  --text: #F2EFE7;
  --muted: #A6A197;
  --muted-2: #948F85;
  --gold: #C9A46A;
  --gold-light: #E6C891;
  --gold-dark: #A8874F;
  --danger: #E58C7C;

  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", "Inter", system-ui, -apple-system, Arial, sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 74px;
}

/* -------- Сброс -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(201, 164, 106, .35); color: #fff; }
[hidden] { display: none !important; }

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

.sr-only {
  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 {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--gold); color: #14100A; padding: 10px 16px; border-radius: 6px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

/* -------- Типографика -------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 106, .14);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.1vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.9vw, 46px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.25; }
.accent, .h1-accent { color: var(--gold-light); font-style: italic; font-weight: 500; }
.lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.section-sub { margin-top: 14px; color: var(--muted); max-width: 56ch; text-wrap: pretty; }

/* -------- Кнопки -------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #16110A;
  border-color: transparent;
  box-shadow: 0 10px 24px -14px rgba(201, 164, 106, .9);
}
.btn-primary:hover { box-shadow: 0 16px 34px -14px rgba(201, 164, 106, .95); filter: brightness(1.04); }
.btn-ghost {
  background: rgba(242, 239, 231, .03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(201, 164, 106, .55); color: var(--gold-light); background: rgba(201, 164, 106, .06); }
.btn-lg { --btn-h: 56px; padding: 0 28px; font-size: 15.5px; }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* -------- Хедер -------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(11, 11, 12, .55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, .9);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(201, 164, 106, .55); border-radius: 50%;
  font-family: var(--font-display); font-size: 16px; color: var(--gold-light);
  letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .01em;
}
.brand-name em { font-style: normal; color: var(--gold); }
.brand-sub {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative; font-size: 14px; color: var(--muted);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--gold); transition: right .28s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.header-phone:hover { color: var(--gold-light); }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 8px;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------- Герой -------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto 40%; height: 780px; z-index: 0;
  background:
    radial-gradient(48% 52% at 62% 38%, rgba(201, 164, 106, .16), transparent 70%),
    radial-gradient(40% 40% at 30% 20%, rgba(126, 92, 44, .12), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px; align-items: center;
}
.hero-copy { max-width: 580px; }
.hero h1 { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-points {
  display: grid; gap: 10px; margin-top: 32px;
  font-size: 14.5px; color: var(--muted);
}
.hero-points li { display: flex; align-items: flex-start; gap: 10px; }
.hero-points svg {
  width: 17px; height: 17px; flex: none; margin-top: 4px;
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.hero-media { position: relative; justify-self: end; width: 100%; max-width: 470px; }
.hero-photo {
  position: relative; margin: 0;
  aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden;
  background: #101012;
  box-shadow:
    0 50px 90px -50px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(201, 164, 106, .22),
    0 0 90px -30px rgba(201, 164, 106, .18);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 70px 14px rgba(11, 11, 12, .75);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 55% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 9, .82));
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 8px;
  background: rgba(12, 12, 13, .55);
  border: 1px solid rgba(242, 239, 231, .14);
  backdrop-filter: blur(8px);
}
.photo-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.photo-role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.hero-badge {
  position: absolute; right: 18px; top: -14px;
  display: flex; gap: 0; align-items: center;
  padding: 9px 6px; border-radius: 999px;
  background: rgba(16, 16, 18, .92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -18px #000;
}
.hero-badge span {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 0 11px; border-right: 1px solid var(--line);
}
.hero-badge span:last-child { border-right: 0; }

/* -------- Бегущая строка городов -------- */
.ribbon {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  padding: 15px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-track {
  display: flex; width: max-content; gap: 0;
  animation: ribbon 46s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span {
  display: inline-flex; align-items: center;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-2);
  padding: 0 22px; position: relative; white-space: nowrap;
}
.ribbon span::after {
  content: ""; position: absolute; right: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(201, 164, 106, .55);
}
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------- Секции -------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { margin-top: 18px; }
.section-head-left { margin-bottom: 0; }

/* -------- Услуги -------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 28px 26px 30px;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 60% at 10% 0%, rgba(201, 164, 106, .10), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover { border-color: rgba(201, 164, 106, .38); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid rgba(201, 164, 106, .35); border-radius: 50%;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 21px; height: 21px; fill: none; stroke: var(--gold-light);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* -------- Этапы -------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.steps li {
  padding: 30px 26px 0 0;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.steps li::before {
  content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}
.step-num {
  display: block; font-family: var(--font-display); font-size: 34px; line-height: 1;
  color: rgba(201, 164, 106, .55); margin-bottom: 14px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.55; padding-right: 6px; }

/* -------- Опрос -------- */
.quiz-section {
  background:
    radial-gradient(70% 55% at 78% 8%, rgba(201, 164, 106, .10), transparent 65%),
    var(--ink);
  border-top: 1px solid var(--line);
}
.quiz-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 508px);
  gap: 68px; align-items: start;
}
.quiz-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.quiz-intro h2 { margin-top: 18px; }
.quiz-intro > p { margin-top: 16px; color: var(--muted); max-width: 46ch; }

.quiz-get { display: grid; gap: 16px; margin-top: 34px; }
.quiz-get li { display: flex; gap: 14px; align-items: flex-start; }
.quiz-get li > span {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(201, 164, 106, .45); color: var(--gold-light);
  font-size: 12.5px; font-weight: 700;
}
.quiz-get strong { display: block; font-size: 15px; font-weight: 600; }
.quiz-get small { display: block; font-size: 13px; color: var(--muted-2); margin-top: 1px; }

.quiz-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 34px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(242, 239, 231, .02);
}
.quiz-note svg {
  width: 20px; height: 20px; flex: none; margin-top: 2px;
  fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round;
}
.quiz-note p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.quiz-card {
  position: relative;
  padding: 28px 30px 26px;
  min-height: 540px;
  background: linear-gradient(180deg, #17171A, #111113);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 40px 90px -50px #000, inset 0 1px 0 rgba(255, 255, 255, .04);
}
.quiz-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.quiz-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.quiz-step-label { margin-top: 6px; font-size: 13px; color: var(--muted); }
.quiz-time {
  flex: none; font-size: 11.5px; letter-spacing: .08em; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}

.progress { height: 3px; border-radius: 3px; background: rgba(242, 239, 231, .09); overflow: hidden; }
.progress-fill {
  display: block; height: 100%; width: 33.333%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: inherit; transition: width .45s var(--ease);
}

.step { border: 0; padding: 24px 0 0; margin: 0; animation: stepIn .38s var(--ease) both; }
.step[hidden] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 22px; }
.field-label {
  display: block; font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 11px; letter-spacing: .005em;
}
.field-hint { font-weight: 400; font-size: 12px; color: var(--muted-2); margin-left: 4px; }
.field-hint::before { content: "·"; margin-right: 5px; color: var(--muted-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex; align-items: center;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(242, 239, 231, .02);
  font-size: 13.5px; color: #D8D3C8; line-height: 1.2;
  transition: all .2s var(--ease); user-select: none;
}
.chip:hover span { border-color: rgba(201, 164, 106, .5); color: var(--text); }
.chip input:checked + span,
.chip.is-checked span {
  border-color: var(--gold);
  background: rgba(201, 164, 106, .14);
  color: #F7EBD6;
  box-shadow: 0 0 0 1px rgba(201, 164, 106, .28) inset;
}
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip input:checked + span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-light); margin-right: 7px;
}

.input {
  display: block; width: 100%; height: 50px;
  padding: 0 14px;
  background: #0F0F11;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.input::placeholder { color: #827C72; }
.input:hover { border-color: rgba(242, 239, 231, .26); }
.input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 106, .14);
  background: #101012;
}
.textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input-other { margin-top: 10px; animation: stepIn .3s var(--ease) both; }

.field-error {
  margin-top: 8px; font-size: 12.5px; color: var(--danger);
  display: flex; align-items: center; gap: 6px;
}
.field-error::before { content: "!"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: rgba(229, 140, 124, .16); font-size: 10px; font-weight: 800; }
.is-invalid .input { border-color: rgba(229, 140, 124, .65); }
.is-invalid .chip span { border-color: rgba(229, 140, 124, .4); }

/* согласие */
.consent { margin-top: 4px; }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: none; width: 19px; height: 19px; margin-top: 2px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  background: #0F0F11; position: relative;
  transition: all .2s var(--ease);
}
.check-box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 6px; height: 11px;
  border: solid #14100A; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.4); opacity: 0; transition: all .18s var(--ease);
}
.check input:checked + .check-box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.check-text a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  margin: 4px 0 0; padding: 12px 14px;
  border: 1px solid rgba(229, 140, 124, .35); border-radius: var(--radius-sm);
  background: rgba(229, 140, 124, .08);
  font-size: 13px; color: #F0B3A7; line-height: 1.5;
}
.form-alert a { text-decoration: underline; color: #fff; }

.quiz-actions { display: flex; gap: 10px; margin-top: 22px; }
.quiz-actions .btn { flex: 1; }
.quiz-actions #btnBack { flex: 0 0 auto; min-width: 100px; }
.btn-submit { position: relative; overflow: hidden; }
.spinner {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(20, 16, 10, .3); border-top-color: #16110A;
  display: none; animation: spin .7s linear infinite;
}
.btn-submit.is-loading .btn-label { opacity: 0; }
.btn-submit.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.quiz-legal { margin-top: 16px; font-size: 11px; line-height: 1.5; color: var(--muted-2); }
.quiz-legal + noscript { display: block; }

.noscript {
  margin-top: 18px; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px;
}

/* успех */
.quiz-success { text-align: center; padding: 24px 6px 8px; animation: stepIn .45s var(--ease) both; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(201, 164, 106, .12); border: 1px solid rgba(201, 164, 106, .55);
}
.success-icon svg {
  width: 28px; height: 28px; fill: none; stroke: var(--gold-light);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.quiz-success h3 { font-size: 27px; margin-bottom: 12px; }
.quiz-success p { font-size: 14.5px; color: var(--muted); max-width: 42ch; margin: 0 auto; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 16px; }
.success-note { font-size: 12.5px; color: var(--muted-2); }
.success-note a { color: var(--gold-light); }

/* -------- Обо мне -------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 72px; align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%; height: auto; border-radius: 3px;
  filter: saturate(.98);
  box-shadow: 0 40px 80px -50px #000;
}
.about-frame {
  position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(201, 164, 106, .3); border-radius: 3px;
  pointer-events: none;
}
.about-copy h2 { margin-top: 16px; }
.about-role {
  margin-top: 6px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.about-copy p { margin-top: 16px; color: var(--muted); max-width: 54ch; }
.about-sign {
  margin-top: 26px; font-family: var(--font-display); font-style: italic;
  font-size: 30px; color: var(--gold-light); line-height: 1;
}
.about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* -------- FAQ -------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.faq-grid .section-head .btn { margin-top: 26px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 600; color: var(--text);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 22px; font-weight: 300; color: var(--gold);
  transition: transform .25s var(--ease); line-height: 1;
}
.faq details[open] summary { color: var(--gold-light); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 40px 24px 4px; font-size: 14.5px; color: var(--muted); line-height: 1.65;
  animation: stepIn .3s var(--ease) both;
}

/* -------- Контакты -------- */
.contacts { border-top: 1px solid var(--line); background: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
  min-width: 0;
}
.contact-card:hover { border-color: rgba(201, 164, 106, .45); transform: translateY(-3px); background: var(--surface-2); }
.contact-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(201, 164, 106, .35); margin-bottom: 16px;
}
.contact-icon svg {
  width: 18px; height: 18px; fill: none; stroke: var(--gold-light);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.contact-value {
  margin-top: 6px; font-size: 15.5px; font-weight: 600; line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-hint { margin-top: 6px; font-size: 11.5px; color: var(--muted-2); overflow-wrap: anywhere; }

/* -------- Футер -------- */
.site-footer { border-top: 1px solid var(--line); background: #08080A; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 21px; }
.footer-brand p { margin-top: 12px; font-size: 13.5px; color: var(--muted-2); max-width: 40ch; line-height: 1.6; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--gold-light); }
.footer-contacts a { color: var(--muted); overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted-2);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-legal a:hover { color: var(--gold-light); }
.footer-requisites {
  flex: 1 0 100%; order: -1;
  font-size: 12px; color: var(--muted-2); letter-spacing: .01em;
}

/* -------- Мобильная панель -------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, .92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar-btn {
  flex: 1; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  background: rgba(242, 239, 231, .04);
}
.mobile-bar-btn svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.mobile-bar-btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #16110A; border-color: transparent;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { gap: 44px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .quiz-grid { gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .faq-grid { gap: 48px; }
  .nav { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* на мобильных — плотный фон без backdrop-filter:
     иначе фиксированное меню внутри размытого хедера просвечивает */
  .site-header, .site-header.is-scrolled {
    background: #0A0A0B;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px;
    background: #0A0A0B;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px #000;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .header-actions .btn { display: none; }

  .hero { padding-top: calc(var(--header-h) + 26px); padding-bottom: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(30px, 8.2vw, 40px); margin-top: 16px; }
  .lead { margin-top: 16px; font-size: 15.5px; }
  .hero-cta { margin-top: 26px; gap: 10px; }
  .hero-cta .btn-lg { --btn-h: 52px; font-size: 15px; }
  .hero-points { margin-top: 26px; gap: 8px; font-size: 13.5px; }
  .hero-media { justify-self: center; max-width: 370px; margin-top: 4px; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-copy { max-width: none; }

  .quiz-grid { grid-template-columns: 1fr; gap: 36px; }
  .quiz-intro { position: static; }
  .quiz-card { padding: 24px 20px 22px; min-height: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 380px; }
  .about-frame { inset: 14px -14px -14px 14px; }

  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  .site-footer { padding-bottom: 90px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 22px 0 22px 0; border-top: 0; border-left: 1px solid var(--line-strong); padding-left: 22px; }
  .steps li::before { top: 26px; left: -3px; }
  .steps li:last-child { padding-bottom: 0; }
  .step-num { font-size: 26px; margin-bottom: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-badge { display: none; }
  .quiz-actions { flex-wrap: wrap; }
  .quiz-actions #btnBack { order: 2; flex: 1 1 100%; min-width: 0; }
  .section-head { margin-bottom: 36px; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .chip span { padding: 9px 13px; font-size: 13px; }
  .quiz-card { border-radius: 12px; }
  .faq summary { font-size: 15.5px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
}

/* -------- Документы (политика, 404) -------- */
.doc-body { padding-top: var(--header-h); }
.doc { padding: 64px 0 88px; }
.doc-container { max-width: 820px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 16px; }
.doc-meta { margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.doc h2 {
  font-size: 24px; margin: 40px 0 12px; padding-top: 4px;
  color: var(--text); letter-spacing: -.005em;
}
.doc p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; }
.doc li {
  position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.65; color: var(--muted);
}
.doc li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
.requisites {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 22px;
  margin-top: 18px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(242, 239, 231, .025);
}
.requisites > div { display: contents; }
.requisites dt {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); padding-top: 3px;
}
.requisites dd { margin: 0; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.requisites dd a { color: var(--gold-light); }
@media (max-width: 640px) {
  .requisites { grid-template-columns: 1fr; gap: 2px; padding: 16px 18px; }
  .requisites dt { margin-top: 10px; }
  .requisites > div:first-child dt:first-child { margin-top: 0; }
}
.doc-back { margin-top: 44px; }
.doc-404 { text-align: center; padding: 90px 0; }
.doc-404 .code {
  font-family: var(--font-display); font-size: clamp(72px, 14vw, 150px);
  line-height: 1; color: rgba(201, 164, 106, .35);
}
.doc-404 h1 { margin-top: 8px; }
.doc-404 p { max-width: 46ch; margin: 16px auto 0; color: var(--muted); }
.doc-404 .btn { margin-top: 28px; }

/* -------- Доступность / анимации -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ribbon-track { animation: none; }
}

@media print {
  .site-header, .mobile-bar, .hero-glow, .ribbon, .quiz-card, .hero-badge { display: none !important; }
  body { background: #fff; color: #111; }
}

