/* Оформление сайта. Цвета, шрифт и скругления меняются в блоке :root */

@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-ruble-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+20BD;
}

:root {
  --bg: #F4F2EC;
  --surface: #FFFDF8;
  --surface-2: #EBE7DC;
  --line: #DCD6C8;
  --line-strong: #BEB7A6;
  --text: #1B211E;
  --muted: #565449;
  --accent: #2F4A3A;
  --accent-hover: #24392C;
  --accent-soft: #E1E9DF;
  --on-accent: #F8F6F0;
  --money: #7E5313;
  --danger: #A8291C;
  --shadow: 0 1px 2px rgba(27, 33, 30, .06), 0 8px 24px -6px rgba(27, 33, 30, .12);
  --shadow-lg: 0 2px 6px rgba(27, 33, 30, .08), 0 24px 60px -12px rgba(27, 33, 30, .28);
  --backdrop: rgba(18, 23, 20, .52);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --surface: #1A1F1C;
    --surface-2: #232A26;
    --line: #2F3732;
    --line-strong: #46504A;
    --text: #EDEBE4;
    --muted: #AAA89D;
    --accent: #9CC5A8;
    --accent-hover: #B3D4BC;
    --accent-soft: #233229;
    --on-accent: #0E1511;
    --money: #E6B467;
    --danger: #F0907F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -6px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px -12px rgba(0, 0, 0, .6);
    --backdrop: rgba(0, 0, 0, .62);
    color-scheme: dark;
  }
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-strong) transparent; }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--accent); accent-color: var(--accent);
}
::selection { background: var(--accent-soft); color: var(--text); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.25rem + 3.4vw, 3.5rem); line-height: 1.06; font-weight: 680; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; font-weight: 650; letter-spacing: -0.018em; }
p { text-wrap: pretty; }
svg.ico { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--surface); }
.section h2 { margin-bottom: 24px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 17px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition-property: transform, background-color, color, box-shadow; transition-duration: 160ms; transition-timing-function: var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn .ico { transition: transform 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { background: var(--accent-hover); }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn:hover .ico { transform: translateX(3px); }
}
.btn.loading { pointer-events: none; color: transparent; position: relative; }
.btn.loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--on-accent); border-right-color: transparent; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 150ms var(--ease), transform 160ms var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--surface-2); } }

/* ---------- плашка «кто мы» ---------- */
.notice { background: var(--accent-soft); color: var(--text); font-size: 14px; line-height: 1.45; }
.notice-row { display: flex; gap: 10px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.notice .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.notice p { margin: 0; max-width: 80ch; }
.note { margin: -8px 0 16px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.purpose { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- первый экран ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
  .hero-copy { position: sticky; top: 48px; padding-top: 8px; }
}
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--muted); margin: 20px 0 0; max-width: 34em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 15px; margin: 20px 0 0; }
.hero-quiz {
  background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow);
}
.hero-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hero-q { font-size: 21px; font-weight: 640; line-height: 1.25; letter-spacing: -0.012em; padding: 0; margin-bottom: 16px; }
div.hero-quiz { background: none; box-shadow: none; padding: 0; }

/* появление первого экрана, один раз */
.enter { animation: rise 640ms var(--ease) both; }
.hero-copy .lead { animation-delay: 70ms; }
.hero-copy .meta { animation-delay: 130ms; }
.hero-quiz.enter { animation-delay: 190ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- варианты ответа ---------- */
.choices { display: grid; gap: 8px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.two .choice { padding: 12px 14px; }
.choices.two .tick { display: none; }
.choices.two .choice:has(input:checked) .choice-text { font-weight: 600; color: var(--accent); }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px;
  padding: 12px 14px 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition-property: border-color, background-color, transform; transition-duration: 150ms; transition-timing-function: var(--ease);
}
.choice:active { transform: scale(0.98); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice-text { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; }
.choice-text small { display: block; margin-top: 3px; color: var(--money); font-size: 14px; font-variant-numeric: tabular-nums; }
.tick {
  width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: var(--on-accent);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.tick svg { width: 14px; height: 14px; opacity: 0; transform: scale(.25); filter: blur(4px);
  transition: opacity 260ms cubic-bezier(0.2, 0, 0, 1), transform 260ms cubic-bezier(0.2, 0, 0, 1), filter 260ms cubic-bezier(0.2, 0, 0, 1); }
.choice:has(input[type="checkbox"]) .tick { border-radius: 7px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:checked) .tick { background: var(--accent); border-color: var(--accent); }
.choice:has(input:checked) .tick svg { opacity: 1; transform: none; filter: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: var(--line-strong); } }
.choices.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.pills .choice { min-height: 46px; padding: 8px 14px; border-radius: 999px; }
.choices.pills .tick { width: 18px; height: 18px; }
.choices.pills .tick svg { width: 12px; height: 12px; }
.group-label { margin: 14px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* ---------- вакансии ---------- */
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.count { color: var(--muted); font-size: 18px; font-variant-numeric: tabular-nums; }
.vac-tools { display: grid; gap: 12px; margin-bottom: 12px; }
.search { position: relative; display: block; max-width: 460px; }
.search .ico { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input, .step-search {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text); font: 16px var(--font); transition: border-color 150ms var(--ease);
}
.step-search { padding-left: 18px; margin-bottom: 12px; }
.search input:focus, .step-search:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; scroll-padding: 20px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); font: 500 15px var(--font); cursor: pointer; white-space: nowrap;
  transition-property: background-color, border-color, color, transform; transition-duration: 150ms; transition-timing-function: var(--ease);
}
.chip span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 2px; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { border-color: var(--line-strong); } }

.vac-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vac { border-bottom: 1px solid var(--line); }
.vac-head {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t c" "m c";
  align-items: center; column-gap: 16px; row-gap: 2px; padding: 16px 4px; border: 0; background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vac-title { grid-area: t; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.vac-head .money { grid-area: m; }
.vac-head .chev { grid-area: c; color: var(--muted); transition: transform 240ms var(--ease); }
.vac.open .chev { transform: rotate(180deg); }
@media (min-width: 720px) {
  .vac-head { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t m c"; padding: 18px 8px; }
}
@media (hover: hover) and (pointer: fine) { .vac-head:hover .vac-title { color: var(--accent); } }
.money { color: var(--money); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vac-body {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows 260ms var(--ease), visibility 0s linear 260ms;
}
.vac.open .vac-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 260ms var(--ease); }
.vac-inner { min-height: 0; overflow: hidden; padding: 0 4px; }
.vac.open .vac-inner { padding-bottom: 20px; }
.vac-inner p { margin: 0 0 12px; color: var(--muted); max-width: 62ch; }
.ticks, .cond-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ticks li, .cond-list li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico, .cond-list .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.empty { padding: 32px 0; text-align: center; color: var(--muted); }

.cond-list { gap: 14px 32px; margin: 0; }
@media (min-width: 720px) { .cond-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cond-list li { font-size: 18px; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 760px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: baseline; font-size: 18px; }
.steps li::before { content: counter(s); font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }

.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 18px 4px;
  font-weight: 600; font-size: 18px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--muted); transition: transform 240ms var(--ease); }
.faq[open] summary .chev { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 4px 20px; color: var(--muted); max-width: 64ch; }

.final .muted { margin-top: 18px; }

/* ---------- нижняя кнопка на телефоне ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 280ms var(--ease);
}
.dock.on { transform: none; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- анкета ---------- */
dialog.sheet {
  padding: 0; margin: 0; border: 0; background: transparent; color: var(--text);
  width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden;
}
dialog.sheet::backdrop { background: var(--backdrop); opacity: 0; transition: opacity 240ms var(--ease); }
dialog.sheet.in::backdrop { opacity: 1; }
.sheet-box {
  position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg);
  transform: translateY(100%); transition: transform 340ms var(--ease-drawer);
}
dialog.in .sheet-box { transform: none; }
@media (min-width: 720px) {
  .sheet-box {
    inset: auto; left: 50%; top: 50%; width: min(620px, calc(100% - 48px)); height: auto; max-height: min(860px, calc(100dvh - 48px)); min-height: min(600px, calc(100dvh - 48px));
    border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden;
    transform: translate(-50%, calc(-50% + 16px)) scale(.98); opacity: 0;
    transition: transform 280ms var(--ease), opacity 200ms var(--ease);
  }
  dialog.in .sheet-box { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 4px; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress-bar { height: 100%; width: 100%; background: var(--accent); border-radius: 99px; transform-origin: left; transform: scaleX(.02); transition: transform 380ms var(--ease); }
.left { margin: 2px 0 0; padding: 0 24px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; }
@media (min-width: 720px) { .sheet-body { padding: 22px 32px 28px; } }
.sheet-body fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-head { margin-bottom: 18px; }
.step-head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; }
.step-hint { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.sheet-foot { padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
@media (min-width: 720px) { .sheet-foot { padding: 14px 32px 20px; } }
.sheet-foot .btn[hidden] { display: none; }
.sheet-foot:has(> .btn[hidden]):has(> .quiz-error:empty):has(> .foot-extra:empty) { display: none; }
.foot-extra:not(:empty) { margin-bottom: 12px; }
@media (max-width: 719px) { .sheet-box { min-height: 100%; } }
.quiz-error { margin: 0; min-height: 0; color: var(--danger); font-size: 15px; font-weight: 500; }
.quiz-error:not(:empty) { margin-bottom: 10px; }

.field { display: block; margin: 0 0 16px; border: 0; padding: 0; }
.label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; padding: 0; }
.field input, .sheet-body textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--text); font: 17px/1.4 var(--font); transition: border-color 150ms var(--ease);
}
.sheet-body textarea { resize: vertical; min-height: 120px; }
.field input:focus, .sheet-body textarea:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input::placeholder, textarea::placeholder, .search input::placeholder, .step-search::placeholder { color: var(--muted); opacity: .75; }

.review { margin: 0 0 20px; border-top: 1px solid var(--line); }
.review-row {
  display: block; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms var(--ease);
}
.review-row dt { font-size: 13px; color: var(--muted); line-height: 1.35; }
.review-row dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .review-row:hover { background: var(--surface); } }
.consents { display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; color: var(--on-accent); transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.check-box svg { width: 15px; height: 15px; opacity: 0; transform: scale(.25); filter: blur(4px); transition: opacity 240ms cubic-bezier(0.2, 0, 0, 1), transform 240ms cubic-bezier(0.2, 0, 0, 1), filter 240ms cubic-bezier(0.2, 0, 0, 1); }
.check:has(input:checked) .check-box { background: var(--accent); border-color: var(--accent); }
.check:has(input:checked) .check-box svg { opacity: 1; transform: none; filter: none; }
.check:has(input:focus-visible) .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- страницы «Спасибо» и политика ---------- */
.page { min-height: 72vh; display: flex; align-items: center; padding: 64px 0; }
.page h1 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.8rem); }
.page .lead { margin-left: auto; margin-right: auto; }
.page .btn { margin-top: 28px; }
.done {
  width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; margin: 0 auto 28px; animation: pop 520ms var(--ease) both;
}
.done svg { width: 44px; height: 44px; }
.done path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 420ms 220ms var(--ease) forwards; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.policy { white-space: pre-line; margin: 24px 0 0; max-width: 70ch; }

.footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 16px; }
.footer-note { margin: 0; max-width: 70ch; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-org, .footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.footer a { color: var(--muted); }
.footer a.btn-max, .btn-max { background: #7B4DFF; color: #fff; text-decoration: none; }
@media (hover: hover) { .btn-max:hover { background: #6A3CEE; } }
.footer .btn-max { min-height: 40px; padding: 0 16px; font-size: 14px; }
.page .btn-max + .btn { margin-left: 8px; }
@media (max-width: 899px) { body.has-dock .footer { padding-bottom: 100px; } }

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .chips { margin: 0 -16px; padding: 2px 16px 6px; }
  .hero-quiz { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .sheet-box, .dock, .vac-body, .progress-bar, .chev, .tick svg, .check-box svg { transition-property: opacity, background-color, border-color, color !important; }
  .sheet-box { transform: none !important; }
  @media (min-width: 720px) { .sheet-box { transform: translate(-50%, -50%) !important; } }
}
