:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #475467;
  --muted-2: #5D6675;
  --line: #D0D5DD;
  --line-2: #EAECF0;
  --accent: #0E7A55;
  --accent-dark: #0B6447;
  --accent-soft: #DDF1E8;
  --danger: #B42318;
  --radius: 12px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
a { color: var(--accent-dark); }
a:hover { color: #084A35; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.header { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 600 16px/1 var(--font); cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 -1px 0 rgba(0,0,0,.12); }
.wizard-nav .btn-primary { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-primary:disabled { background: #E4E7EC; border-color: #E4E7EC; color: var(--muted-2); box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link { background: none; border: 0; color: var(--muted); padding: 0 8px; min-height: 44px; }
.btn-link:hover { color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; }
.btn-block { width: 100%; }
.btn:focus-visible, .chip:focus-visible { outline: 3px solid rgba(14,122,85,.35); outline-offset: 2px; }

/* ---------- layout ---------- */
.main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "title title" "hero card" "perks card"; grid-template-rows: auto auto 1fr; column-gap: 64px; row-gap: 36px; align-items: start; }
.page-title { grid-area: title; margin: 16px 0 8px; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; max-width: 24ch; text-wrap: balance; }
.hero { grid-area: hero; min-width: 0; }
.perks { grid-area: perks; min-width: 0; }
.main > .card { grid-area: card; }
@media (max-width: 960px) {
  .main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "card" "hero" "perks"; grid-template-rows: none; row-gap: 28px; }
  .page-title { max-width: 18ch; }
  .page-title { margin: 0; }
}
.analyze { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #E4E7EC; }
.analyze-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.tags { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid #E4E7EC; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.tags svg { color: var(--accent); }
.perks { padding-top: 24px; border-top: 1px solid #E4E7EC; }
.perks h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.hero-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 460px; }
.features { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-dark); }
.feature-title { font-weight: 600; font-size: 16px; }
.feature-text { color: var(--muted); font-size: 15px; margin-top: 2px; max-width: 46ch; }

/* ---------- card ---------- */
.card { min-width: 0; background: var(--surface); border: 1px solid #E4E7EC; border-radius: 24px; padding: 40px; box-shadow: 0 1px 3px rgba(16,24,40,.05), 0 24px 48px -12px rgba(16,24,40,.12); }

.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.stepper li { display: flex; flex-direction: column; gap: 8px; }
.stepper .bar { height: 6px; border-radius: 3px; background: #E4E7EC; transition: background .2s; }
.stepper .name { font-size: 13px; line-height: 1.2; font-weight: 500; color: #667085; }
.stepper li.is-done .bar, .stepper li.current .bar { background: var(--accent); }
.stepper li.current .name { color: var(--ink); font-weight: 600; }

.step { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.step h2 { margin: 6px 0 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.step-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- form controls ---------- */
.lbl { display: block; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.lbl .opt { font-weight: 400; color: var(--muted-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.field { width: 100%; min-height: 48px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #FCFCFD; transition: border-color .15s, box-shadow .15s, background .15s; font: 400 16px/1.45 var(--font); color: var(--ink); }
.field::placeholder { color: #7A8494; }
.field:hover { border-color: #98A2B3; }
.field:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14,122,85,.15); }
.field.invalid { border-color: var(--danger); }
textarea.field { min-height: 104px; resize: vertical; }
.field + .field { margin-top: 10px; }
.hint { font-size: 13px; line-height: 1.4; color: var(--muted-2); margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 15px/1 var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); background: #F6FBF9; }
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }


/* ---------- wizard nav ---------- */
.wizard-nav { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.need { margin-left: auto; font-size: 14px; color: var(--muted-2); }

/* ---------- registration ---------- */
.reg { display: flex; flex-wrap: wrap; gap: 28px; }
.reg-info { flex: 1 1 240px; min-width: 0; }
.reg-form { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sections { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sections li { display: flex; align-items: center; gap: 10px; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-dark); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: #667085; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.form-error { padding: 10px 12px; border-radius: 10px; background: #FEF3F2; color: var(--danger); font-size: 14px; }
.switch { text-align: center; font-size: 14px; color: var(--muted); }
.switch button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; cursor: pointer; }

/* ---------- done ---------- */
.done { padding: 48px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-dark); }
.done h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.done p { margin: 0; max-width: 420px; color: var(--muted); font-size: 16px; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cabinet ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
.status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #FEF0C7; color: #93370D; }
.status.ready { background: var(--accent-soft); color: var(--accent-dark); }
.status.error { background: #FEF3F2; color: var(--danger); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 32px; text-align: center; color: var(--muted); }

@media (max-width: 640px) {
  .header { padding: 16px; }
  .main { padding: 8px 16px 48px; gap: 32px; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .step h2 { font-size: 25px; }
  .wizard-nav .btn-primary { flex: 1; }
  .stepper .name { visibility: hidden; white-space: nowrap; font-size: 13px; }
  .stepper li.current .name { visibility: visible; }
  .stepper li:last-child.current .name { text-align: right; direction: rtl; }
  .hero-lead { font-size: 16px; }
  .need { margin-left: 0; width: 100%; }
  .nav .btn-link { display: none; }
  .page { padding: 16px 16px 48px; }
}

/* ---------- polish ---------- */
textarea.field-lg { min-height: 260px; font-size: 16px; line-height: 1.55; }
@media (max-width: 640px) { textarea.field-lg { min-height: 300px; } }
.step:not([hidden]) { animation: stepIn .28s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step:not([hidden]) { animation: none; } }

.chip[aria-pressed="true"]::before {
  content: ""; width: 14px; height: 14px; margin-left: -4px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--accent-dark); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); font-size: 16px; line-height: 1; }
.more[open] summary::before { content: "−"; }
.more summary:hover { color: #084A35; }
.more .field { margin-top: 8px; }

.need:empty { display: none; }
.legal { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted-2); text-align: center; }

/* ---------- вход ---------- */
.auth-page { min-height: calc(100vh - 84px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid #E4E7EC; border-radius: 24px; padding: 36px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(16,24,40,.06); }
.auth-card h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.auth-fields { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.text-btn { background: none; border: 0; padding: 0; margin-bottom: 8px; font: 500 14px var(--font); color: var(--accent-dark); cursor: pointer; }
.text-btn:hover { text-decoration: underline; }
.form-ok { padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; }
@media (max-width: 640px) { .auth-page { padding-top: 16px; } .auth-card { padding: 24px; border-radius: 20px; } }

/* ---------- язык и подвал ---------- */
.lang-switch { display: inline-flex; padding: 3px; background: #E9ECF0; border-radius: 10px; }
.lang-switch button { min-width: 40px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.lang-switch button:focus-visible { outline: 3px solid rgba(14,122,85,.35); outline-offset: 1px; }
.footer { max-width: 1240px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted-2); border-top: 1px solid #E4E7EC; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) { .footer { padding: 20px 16px 32px; } }

/* =========================================================
   Главная страница (body.landing) — другие страницы не трогает
   ========================================================= */
.landing { background: #F4F6F5; }
.landing .main { padding-top: 24px; row-gap: 32px; }

/* Заголовок: триггер «за 4 минуты» выделен зелёным маркером */
.landing .page-title { margin: 20px 0 4px; }
.landing .page-title .hl { position: relative; white-space: nowrap; color: var(--accent-dark); }
.landing .page-title .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .04em; height: .26em; z-index: -1;
  background: #BDEBD6; border-radius: 4px;
}
.landing .page-title { position: relative; z-index: 0; }

/* Лид: крупнее и контрастнее, ключевая фраза жирная */
.landing .hero-lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.landing .hero-lead strong { color: var(--ink); font-weight: 700; }

/* «Что мы проанализируем» — отдельная белая плашка с галочками */
.landing .analyze { margin-top: 28px; padding: 22px 24px 24px; border: 1px solid #E1E7E4; border-radius: 20px; background: var(--surface); }
.landing .analyze-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.landing .tags { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.landing .tags li { padding: 0; border: 0; background: none; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.landing .tags li svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; }

/* «Что будет в кабинете» — список с крупными иконками */
.landing .perks { padding-top: 0; border-top: 0; }
.landing .perks h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.landing .features { margin-top: 18px; gap: 0; }
.landing .feature { gap: 16px; padding: 16px 0; border-top: 1px solid #E1E7E4; }
.landing .feature:first-child { border-top: 0; padding-top: 4px; }
.landing .feature-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #7CE0B5; }
.landing .feature-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.landing .feature-text { font-size: 15px; line-height: 1.5; }

/* Анкета — главный элемент: зелёная кромка и мягкая глубокая тень */
.landing .main > .card { position: relative; border: 1px solid #DCE5E0; padding: 36px 40px 40px; box-shadow: 0 2px 4px rgba(16,24,40,.04), 0 32px 64px -24px rgba(11,100,71,.28); }
.landing .main > .card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 24px 24px 0 0; background: var(--accent); }
.landing .stepper { margin-bottom: 24px; }
.landing .stepper li { gap: 0; }
.landing .stepper .bar { height: 5px; }
.landing .eyebrow { font-size: 13px; letter-spacing: .01em; }
.landing .lbl { font-size: 15px; color: var(--ink); }
.landing .field-lg { border-color: #C9D2CD; }
.landing .wizard-nav .btn-primary { box-shadow: 0 8px 20px -8px rgba(11,100,71,.6); }
.landing .wizard-nav .btn-primary:disabled { box-shadow: none; }

@media (max-width: 960px) {
  .landing .main { row-gap: 24px; }
  .landing .page-title { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .landing .main > .card { padding: 26px 18px 22px; }
  .landing .hero-lead { font-size: 17px; }
  .landing .analyze { padding: 18px; }
  .landing .tags { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- логотип Planfounder ---------- */
.logo-text { letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); }

/* ---------- страна и город (шаг 1) ---------- */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.loc-lbl { display: block; font-size: 13px; line-height: 22px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.loc-input { position: relative; }
.loc-input .field { padding-left: 42px; }
.loc-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
select.field { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.city-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.city-pop:empty { display: none; }
.city-pop-label { font-size: 13px; color: var(--muted-2); margin-right: 2px; }
.city-chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 14px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.city-chip:hover { border-color: var(--accent); background: #F6FBF9; }
.city-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.city-chip:focus-visible { outline: 3px solid rgba(14,122,85,.35); outline-offset: 2px; }
@media (max-width: 520px) { .loc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- выбор языка в подвале ---------- */
.footer { align-items: center; }
.lang-menu { position: relative; order: 99; margin-left: auto; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; }
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-btn:focus-visible { outline: 3px solid rgba(14,122,85,.35); outline-offset: 2px; }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-chev { transition: transform .15s; }
.lang-list { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid #E4E7EC; border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(16,24,40,.18); }
.lang-list button { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: 500 14px var(--font); color: var(--ink-2); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.lang-list button:hover, .lang-list button:focus-visible { background: #F2F4F7; outline: none; }
.lang-list button[aria-checked="true"] { color: var(--accent-dark); font-weight: 600; }
.lang-list button[aria-checked="true"]::after { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.loc-input .field.no-icon { padding-left: 14px; }

/* ---------- переключатель «Nur online» над полем города ---------- */
.loc-lbl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; min-height: 22px; }
.loc-lbl-row .loc-lbl { margin-bottom: 0; }
.online-mini { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; border: 0; background: none; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.online-mini:hover { color: var(--accent-dark); }
.online-mini:focus-visible { outline: 3px solid rgba(14,122,85,.35); outline-offset: 3px; border-radius: 6px; }
.online-switch { flex: none; position: relative; width: 30px; height: 18px; border-radius: 999px; background: #D0D5DD; transition: background .15s; }
.online-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.25); transition: transform .15s; }
.online-mini[aria-pressed="true"] { color: var(--accent-dark); font-weight: 600; }
.online-mini[aria-pressed="true"] .online-switch { background: var(--accent); }
.online-mini[aria-pressed="true"] .online-switch::after { transform: translateX(12px); }
.loc-field.is-off .loc-input { opacity: .45; }
.loc-field.is-off .field { cursor: not-allowed; background: #F2F4F7; }
@media (prefers-reduced-motion: reduce) { .online-switch, .online-switch::after { transition: none; } }

/* ---------- юридические страницы (Impressum, Datenschutz, AGB) ---------- */
.legal-page { max-width: 780px; margin: 0 auto; padding: 32px 24px 72px; }
.legal-page h1 { margin: 8px 0 6px; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.legal-page .legal-stand { margin: 0 0 32px; font-size: 14px; color: var(--muted-2); }
.legal-card { background: var(--surface); border: 1px solid #E4E7EC; border-radius: 20px; padding: 36px 40px; }
.legal-card h2 { margin: 32px 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { margin: 20px 0 6px; font-size: 16px; }
.legal-card p, .legal-card li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-card p { margin: 0 0 12px; }
.legal-card ul { margin: 0 0 12px; padding-left: 22px; }
.legal-card address { font-style: normal; font-size: 15.5px; line-height: 1.7; color: var(--ink); margin-bottom: 12px; }
.legal-card mark.todo { background: #FEF0C7; color: #7A2E0E; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.legal-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.legal-nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.legal-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) { .legal-page { padding: 16px 16px 48px; } .legal-card { padding: 24px 20px; border-radius: 16px; } }

/* ---------- бюджет (шаг 3) ---------- */
.budget { margin-top: 4px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.budget .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.budget .chip { justify-content: center; border-radius: 12px; min-height: 46px; padding: 0 10px; white-space: nowrap; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.budget .chip[data-id="custom"] { grid-column: span 2; border-style: dashed; color: var(--accent-dark); }
.budget .chip[data-id="custom"]:not([aria-pressed="true"])::before { content: ""; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.budget .chip[data-id="custom"][aria-pressed="true"] { border-style: solid; color: #fff; }
.budget-custom { position: relative; margin-top: 10px; }
.budget-custom .field { padding-right: 44px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; min-height: 56px; }
.budget-cur { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--muted); pointer-events: none; }
.budget-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.budget-hint svg { flex: none; color: var(--accent); }
@media (max-width: 560px) { .budget .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
