/* Dobro Travel Boutique — сайт
   Палитра и компоненты повторяют анкету бота и CRM (tourism-crm-bot/static/styles.css).
   Тема переключается атрибутом data-theme на <html>. */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111213;
  --bg-alt: #151618;
  --card: #1A1B1D;
  --card-2: #202124;
  --text: #EFEFED;
  --body: #B5B9BE;
  --muted: #858B91;
  --line: #26282B;
  --track: #26282B;
  --seg: #1A1B1D;
  --ring-off: #3A3E42;
  --row-on: rgba(118, 200, 204, 0.08);
  --accent: #76C8CC;
  --brand: #76C8CC;
  --on-brand: #0F1C1D;
  --knob: #EFEFED;
  --error: #E5806F;
  --shadow: none;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .45);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(118, 200, 204, 0.22);
  --glow: rgba(118, 200, 204, .22);
  --nav-bg: rgba(17, 18, 19, .72);
}

:root[data-theme="light"] {
  color-scheme: only light;
  --bg: #F4F3EF;
  --bg-alt: #ECEAE4;
  --card: #FFFFFF;
  --card-2: #F8F7F4;
  --text: #151617;
  --body: #4A4F55;
  --muted: #6E747A;
  --line: #E5E3DE;
  --track: #E3E1DB;
  --seg: #EAE8E3;
  --ring-off: #C4C8CC;
  --row-on: rgba(118, 200, 204, 0.12);
  --accent: #2B8A8F;
  --knob: #FFFFFF;
  --error: #C2513F;
  --shadow: 0 1px 2px rgba(20, 22, 24, 0.04), 0 10px 30px rgba(20, 22, 24, 0.06);
  --shadow-lg: 0 30px 80px rgba(20, 22, 24, .14);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 20px rgba(43, 138, 143, 0.22);
  --glow: rgba(118, 200, 204, .35);
  --nav-bg: rgba(244, 243, 239, .78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s ease, color .25s ease;
}
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Типографика ---------- */
.display, .title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; letter-spacing: -.02em; }
.display em, .title em { font-style: italic; color: var(--accent); }
.display { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; }
.title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; }
.lead { margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--body); max-width: 520px; }
.subtitle { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--body);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(118,200,204,.55); } 70% { box-shadow: 0 0 0 10px rgba(118,200,204,0); } 100% { box-shadow: 0 0 0 0 rgba(118,200,204,0); } }

/* ---------- Бренд (как в шапке анкеты) ---------- */
.brand { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 600; letter-spacing: .12em; line-height: 1; }
.brand__sub { font-size: 9px; font-weight: 700; letter-spacing: .42em; color: var(--accent); }

/* ---------- Кнопки (из анкеты) ---------- */
.btn-next {
  height: 62px; border: 0; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, #84D1D4 0%, #6FC2C6 100%); color: var(--on-brand);
  font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 9px 0 26px;
  box-shadow: var(--btn-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.btn-next:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow), 0 16px 40px rgba(118, 200, 204, .3); }
.btn-next:hover .btn-next__icon svg { transform: translateX(3px); }
.btn-next:active { transform: scale(.985); }
.btn-next:disabled { opacity: .6; cursor: default; transform: none; }
.btn-next__icon { width: 44px; height: 44px; flex: none; border-radius: 13px; background: #0F1C1D; display: flex; align-items: center; justify-content: center; }
.btn-next__icon svg { transition: transform .2s ease; }

.btn-ghost {
  height: 62px; padding: 0 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text);
  box-shadow: var(--shadow); transition: border-color .2s ease, transform .2s ease;
}
.btn-ghost svg { color: var(--accent); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }

.btn-back {
  width: 58px; height: 58px; flex: none; border-radius: 18px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: border-color .2s ease;
}
.btn-back:hover { border-color: var(--brand); }
.btn-back:active { transform: scale(.97); }

.btn-pill {
  height: 42px; padding: 0 18px; border-radius: 14px; display: inline-flex; align-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px;
  box-shadow: var(--btn-shadow); transition: transform .2s ease;
}
.btn-pill:hover { transform: translateY(-1px); }

/* Переключатель темы (как в анкете) */
.theme-toggle {
  width: 56px; height: 32px; padding: 0; position: relative; cursor: pointer; flex: none;
  border-radius: 16px; border: 1px solid var(--line); background: var(--track);
}
.theme-toggle__knob {
  position: absolute; top: 3px; left: 27px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--knob); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: center; transition: left .2s ease;
}
[data-theme="light"] .theme-toggle__knob { left: 3px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Навигация ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav__burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 4px; background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn-next) { padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn-next { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 120px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--glow), transparent 62%); filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.1); } }
.hero__waves { position: absolute; left: 0; right: 0; bottom: 0; width: 200%; height: 160px; pointer-events: none; }
.hero__waves .w1 { fill: var(--brand); opacity: .06; animation: wave 18s linear infinite; }
.hero__waves .w2 { fill: var(--brand); opacity: .09; animation: wave 12s linear infinite reverse; }
@keyframes wave { to { transform: translateX(-50%); } }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.portrait { position: absolute; inset: 6%; }
.portrait__ring {
  position: absolute; inset: -6%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), transparent 30%, transparent 60%, var(--brand) 85%, var(--brand));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 14s linear infinite; opacity: .8;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait__img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 10px var(--card); }
/* фото из бота — круг на белом фоне: слегка увеличиваем, чтобы скрыть белые углы */
.portrait__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.09); }

.stars { color: #F2C46D; letter-spacing: 2px; font-size: 14px; }

/* ---------- Бегущая строка ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-alt); }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__group {
  display: flex; flex: none; align-items: center; justify-content: space-between;
  gap: 36px; min-width: 100vw; padding-right: 36px;
}
.marquee span { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-style: italic; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }
#how {
  background: linear-gradient(var(--steps-overlay), var(--steps-overlay)), url("img/maldives-shore.jpg") center 56% / cover no-repeat;
  --steps-overlay: rgba(244, 243, 239, .32);
}
:root[data-theme="dark"] #how { --steps-overlay: rgba(17, 18, 19, .4); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.section-head--center { align-items: center; text-align: center; }
.section-head--center .subtitle { max-width: 560px; }
.section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.section-head--row > div:first-child { display: flex; flex-direction: column; gap: 16px; }

/* Обо мне */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; align-items: start; }
.about .section-head { margin-bottom: 0; }
.letter { background: var(--card); box-shadow: var(--shadow); border-radius: 24px; padding: 32px 32px 26px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.letter p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
.letter__sign { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.letter__name { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--accent); }
.letter__brand { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }

.perks { grid-column: 1 / -1; list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease; }
.perk:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.perk__icon { width: 48px; height: 48px; border-radius: 15px; background: var(--row-on); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.perk h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.perk p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Шаги */
.steps { position: relative; }
.steps__bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 22px; }
.steps__bars i { height: 3px; border-radius: 3px; background: var(--track); position: relative; overflow: hidden; }
.steps__bars i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.steps.is-in .steps__bars i::after { transform: scaleX(1); }
.steps.is-in .steps__bars i:nth-child(2)::after { transition-delay: .25s; }
.steps.is-in .steps__bars i:nth-child(3)::after { transition-delay: .5s; }
.steps.is-in .steps__bars i:nth-child(4)::after { transition-delay: .75s; }
.steps.is-in .steps__bars i:nth-child(5)::after { transition-delay: 1s; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px 26px; box-shadow: var(--shadow); }
.step-card__n { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 38px; color: var(--accent); line-height: 1; }
.step-card h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 700; }
.step-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Сегменты / варианты (из анкеты) */
.opt { font-family: inherit; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--seg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.seg .opt { flex: 1; height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
.seg .opt:hover { color: var(--text); }
.seg .opt[aria-checked="true"], .seg .opt[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }

.list { background: var(--card); box-shadow: var(--shadow); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.list .opt {
  height: 56px; padding: 0 18px; border: 0; background: transparent; color: var(--body);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15.5px; font-weight: 500; text-align: left;
}
.list .opt + .opt { border-top: 1px solid var(--line); }
.list .opt:hover { background: var(--row-on); }
.list .opt[aria-checked="true"] { background: var(--row-on); color: var(--text); }
.radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--ring-off); display: flex; align-items: center; justify-content: center; }
.radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; transition: background .15s ease; }
.opt[aria-checked="true"] .radio { border-color: var(--brand); }
.opt[aria-checked="true"] .radio::after { background: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .opt { height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-size: 15px; font-weight: 600; }
.chips .opt:hover { border-color: var(--brand); }
.chips .opt[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Мини-подбор */
.match { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.match__intro { display: flex; flex-direction: column; gap: 20px; }
.match__trust { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.match__trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--body); }
.match__trust li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1C1D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.quiz { background: var(--bg); border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 22px; min-height: 520px; }
.progress__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.progress__meta b { color: var(--text); font-weight: 600; }
.progress__bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.progress__bars--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.progress__bar { height: 3px; border-radius: 3px; background: var(--track); transition: background .25s ease; }
.progress__bar.is-done { background: var(--brand); }
.quiz__step { display: none; flex-direction: column; gap: 24px; flex: 1; }
.quiz__step.is-active { display: flex; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.question { display: flex; flex-direction: column; gap: 12px; }
.question__label { padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.question.is-invalid .question__label { color: var(--error); }
.error-note { min-height: 18px; margin: 0; padding: 0 4px; font-size: 13px; color: var(--error); }
.quiz__footer { display: flex; gap: 10px; }
.quiz__footer .btn-next { flex: 1; }
.btn-next .icon-check { display: none; }
.btn-next.is-submit .icon-arrow { display: none; }
.btn-next.is-submit .icon-check { display: block; }

/* Поля контактов (как группа полей в анкете) */
.group { background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.field { padding: 13px 18px 12px; display: flex; flex-direction: column; gap: 4px; transition: background .15s ease; }
.field + .field { border-top: 1px solid var(--line); }
.field:focus-within { background: var(--row-on); }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); transition: color .15s ease; }
.field:focus-within label { color: var(--accent); }
.field input, .field textarea { width: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--text); font-family: inherit; font-size: 16px; font-weight: 500; }
.field input { height: 26px; }
.field textarea { resize: none; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--ring-off); }
.field.is-invalid label { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent-check { display: flex; align-items: flex-start; gap: 12px; padding: 0 4px; cursor: pointer; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.consent-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent-check input { position: absolute; opacity: 0; pointer-events: none; }
.consent-check__box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--ring-off); display: flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease; }
.consent-check input:checked + .consent-check__box { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1C1D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--brand); }
.consent-check input:focus-visible + .consent-check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-check.is-invalid { color: var(--error); }
.consent-check.is-invalid .consent-check__box { border-color: var(--error); }

.quiz__done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px 8px; animation: stepIn .3s ease; }
.quiz__done[hidden] { display: none; }
.quiz__done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.quiz__done .title { font-size: 34px; }
.quiz__done p { margin: 0; color: var(--body); line-height: 1.6; max-width: 380px; }

.budget { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 16px; box-shadow: var(--shadow); }
.budget__value { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 40px; font-weight: 500; margin-bottom: 18px; }
.budget input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--brand) var(--p, 20%), var(--track) var(--p, 20%)); }
.budget input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--knob); border: 6px solid var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.budget input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--knob); border: 6px solid var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.budget__scale { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }

.summary { background: var(--row-on); border: 1px dashed color-mix(in srgb, var(--brand) 50%, transparent); border-radius: 18px; padding: 16px 18px; font-size: 14px; line-height: 1.7; color: var(--body); }
.summary b { color: var(--text); }

/* Отзывы */
.carousel-nav { display: flex; gap: 10px; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.reviews::-webkit-scrollbar { display: none; }
.review { margin: 0; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; flex: 1; font-size: 16px; line-height: 1.7; color: var(--body); }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption b { display: block; font-size: 15px; }
.review figcaption small { font-size: 13px; color: var(--muted); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-style: italic; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.accordion { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 17px; font-weight: 700; transition: background .15s ease; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--row-on); }
.accordion details[open] summary { color: var(--accent); }
.accordion p { margin: 0; padding: 0 26px 24px; font-size: 15px; line-height: 1.7; color: var(--body); }
.plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--seg); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s ease; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }

/* Финальный CTA */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 34px; padding: 72px 64px 120px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  background: linear-gradient(180deg, #0A1F2B 0%, #10333F 38%, #1D5A63 62%, #2B7F80 100%); color: #EFEFED;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px rgba(10, 31, 43, .35); }
.cta-band .title em { color: #9FE0E2; }

/* Видео на фоне приглашения заполнить анкету */
.cta-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-scene__video { width: 100%; height: 100%; object-fit: cover; }
.cta-scene::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 24, 32, .78), rgba(8, 24, 32, .4)); }
.cta-band__copy { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.cta-band__copy p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(239, 239, 237, .75); }
.cta-band .btn-next { position: relative; }

/* Футер */
.footer { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-weight: 600; color: var(--body); transition: color .2s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__details { width: 100%; text-align: right; color: var(--body); font-size: 14px; line-height: 1.7; }
.footer__details p { margin: 0; }
.footer__details p + p { margin-top: 4px; }
.footer__details span { white-space: nowrap; }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; width: 100%; margin-top: -20px; font-size: 13px; color: var(--muted);
}
.footer__legal a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }

/* Плавающая кнопка (мобильные) */
.fab { display: none; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .55s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__grid, .about, .match, .faq { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin-top: 20px; }
  .about .letter { margin-top: 32px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .steps__bars { display: none; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .steps__list li:last-child { grid-column: 1 / -1; }
  .reviews { grid-auto-columns: calc((100% - 16px) / 2); }
  .faq .section-head { position: static; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav__inner { padding: 12px 16px; }
  .nav__cta { display: none; }
  .hero { padding: 110px 0 80px; }
  .hero__waves { height: 70px; }
  .hero__cta { flex-direction: column; }
  .hero__cta > * { width: 100%; justify-content: space-between; }
  .btn-ghost { justify-content: center; }
  .marquee span { font-size: 22px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .perks, .steps__list { grid-template-columns: 1fr; }
  .letter { padding: 24px 22px 20px; }
  .quiz { padding: 20px 16px; border-radius: 26px; min-height: 0; }
  .quiz__footer .btn-next { font-size: 16px; padding-left: 20px; gap: 10px; white-space: nowrap; }
  .reviews { grid-auto-columns: 88%; }
  .accordion summary { padding: 20px; font-size: 16px; }
  .accordion p { padding: 0 20px 20px; }
  .cta-band { padding: 40px 24px 96px; border-radius: 28px; }
  .cta-band .btn-next { width: 100%; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .fab {
    position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
    height: 58px; border-radius: 18px; padding: 0 8px 0 22px; display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, #84D1D4 0%, #6FC2C6 100%); color: var(--on-brand); font-weight: 700; font-size: 16px;
    box-shadow: var(--btn-shadow), 0 10px 30px rgba(0, 0, 0, .35);
    transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .fab .btn-next__icon { width: 42px; height: 42px; }
  .fab.is-visible { transform: none; }
}

.opt[role="checkbox"] .radio, .opt[role="checkbox"] .radio::after { border-radius: 4px; }

.review blockquote p { margin: 0; }
.review blockquote p + p, .review__more p { margin-top: 14px; }
.review__more summary { cursor: pointer; color: var(--accent); font-size: 14px; margin-top: 14px; }


.reviews { align-items: start; }

.review blockquote > p:first-child {
  height: 6.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
.review blockquote:has(.review__more[open]) > p:first-child { height: auto; display: block; }
.review__more summary { list-style: none; display: inline-block; padding: 6px 0; }
.review__more summary::-webkit-details-marker { display: none; }
.review__collapse, .review__more[open] .review__expand { display: none; }
.review__more[open] .review__collapse { display: inline; }

.faq .section-head { position: static; }
.question-form { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.question-form .btn-next { align-self: flex-start; }
.question-form__status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }

#quizContent { display: flex; flex: 1; flex-direction: column; gap: 22px; }

.faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.faq > .section-head { grid-column: 1 / -1; }
.faq .question-form { min-width: 0; }
.faq .question-form .btn-next { width: 100%; justify-content: center; }
@media (max-width: 1080px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
}

@media (min-width: 1081px) {
  .faq .question-form > .group, .faq > .accordion { min-height: 340px; }
  .faq .question-form > .group { display: grid; grid-template-rows: 1fr 1fr 1.6fr; }
  .faq > .accordion { display: flex; flex-direction: column; }
  .faq > .accordion > details { flex: 1; }
}

.faq > .faq__heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
.faq__heading-copy { display: flex; flex-direction: column; gap: 16px; }
.faq__portrait { width: 220px; aspect-ratio: 1; flex: none; overflow: hidden; border-radius: 50%; border: 6px solid var(--card); box-shadow: var(--shadow); position: relative; }
.faq__portrait img { position: absolute; width: 200%; max-width: none; height: auto; left: -62%; top: -78%; }
@media (min-width: 1081px) {
  .faq__portrait { margin-right: 60px; }
}
@media (max-width: 720px) {
  .faq > .faq__heading { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .faq__portrait { width: 180px; }
}


.cookie-notice {
  position: fixed; z-index: 100; bottom: max(20px, env(safe-area-inset-bottom)); left: 20px;
  width: min(520px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--card);
  color: var(--body); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.6;
}
.cookie-notice h2 { margin: 0 0 12px; font-size: 20px; color: var(--text); }
.cookie-notice p { margin: 0 0 12px; }
.cookie-notice a { color: var(--accent); text-decoration: underline; }
.cookie-notice__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-notice__actions .btn-next, .cookie-notice__actions .btn-ghost { min-height: 44px; padding: 12px 18px; font-size: 14px; }
.cookie-settings { padding: 0; border: 0; background: transparent; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) {
  .cookie-notice__actions > button { width: 100%; justify-content: center; }
}
