/* ==========================================================================
   Royest — lead page
   Palette: accent #4B4F46 · ink #14181A · surface #FFFFFF
   ========================================================================== */

/* ---------- Fonts: SF Pro Display (drop .woff2 files into assets/fonts) ---------- */
@font-face {
  font-family: "SF Pro Display";
  src: local("SF Pro Display"), local("SFProDisplay-Regular"),
       url("fonts/SF-Pro-Display-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: local("SF Pro Display Medium"), local("SFProDisplay-Medium"),
       url("fonts/SF-Pro-Display-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: local("SF Pro Display Semibold"), local("SFProDisplay-Semibold"),
       url("fonts/SF-Pro-Display-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: local("SF Pro Display Bold"), local("SFProDisplay-Bold"),
       url("fonts/SF-Pro-Display-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --accent: #4B4F46;
  --accent-strong: #3A3D36;
  --accent-6: rgba(75, 79, 70, 0.06);
  --accent-10: rgba(75, 79, 70, 0.10);
  --accent-16: rgba(75, 79, 70, 0.16);
  --accent-28: rgba(75, 79, 70, 0.28);
  --accent-45: rgba(75, 79, 70, 0.45);

  --ink: #14181A;
  --ink-72: rgba(20, 24, 26, 0.72);
  --ink-56: rgba(20, 24, 26, 0.56);
  --ink-40: rgba(20, 24, 26, 0.40);
  --ink-26: rgba(20, 24, 26, 0.26);
  --line: rgba(20, 24, 26, 0.10);
  --line-soft: rgba(20, 24, 26, 0.06);

  --surface: #FFFFFF;
  --surface-soft: #F7F7F6;
  --surface-softer: #FBFBFA;
  --page-bg: #FFFFFF;
  --on-accent: #FFFFFF;
  --seg-active: #FFFFFF;
  --option-bg: #FFFFFF;

  --danger: #C2402F;
  --success: #2F7A4C;

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow-card: 0 1px 2px rgba(20, 24, 26, 0.04), 0 12px 40px -12px rgba(20, 24, 26, 0.12);
  --ring: 0 0 0 4px var(--accent-16);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t-base: 260ms;

  color-scheme: light;
}

/* ---------- Night theme ---------- */
:root[data-theme="dark"] {
  --accent: #A9AEA2;
  --accent-strong: #C3C7BD;
  --accent-6: rgba(169, 174, 162, 0.08);
  --accent-10: rgba(169, 174, 162, 0.12);
  --accent-16: rgba(169, 174, 162, 0.18);
  --accent-28: rgba(169, 174, 162, 0.30);
  --accent-45: rgba(169, 174, 162, 0.50);

  --ink: #F2F3F1;
  --ink-72: rgba(242, 243, 241, 0.72);
  --ink-56: rgba(242, 243, 241, 0.56);
  --ink-40: rgba(242, 243, 241, 0.40);
  --ink-26: rgba(242, 243, 241, 0.26);
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);

  --surface: #1B2023;
  --surface-soft: #222829;
  --surface-softer: #1F2427;
  --page-bg: #14181A;
  --on-accent: #14181A;
  --seg-active: rgba(255, 255, 255, 0.12);
  --option-bg: #20262A;

  --danger: #E3705F;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 48px -12px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
b, strong { font-weight: 600; }

[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 36px;
  border-radius: 8px;
}
.brand__logo {
  display: block;
  height: 36px;
  width: auto;
}
.brand__logo--night { display: none; }
:root[data-theme="dark"] .brand__logo--day { display: none; }
:root[data-theme="dark"] .brand__logo--night { display: block; }

/* theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-6);
  color: var(--ink-72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.theme-toggle:hover { background: var(--accent-10); color: var(--ink); }
.theme-toggle__icon { grid-area: 1 / 1; transition: opacity var(--t-fast) var(--ease), transform var(--t-base) var(--ease); }
.theme-toggle__icon--sun { opacity: 0; transform: rotate(-40deg) scale(0.6); }
:root[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(40deg) scale(0.6); }
:root[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; transform: none; }

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* phone — same pill as the language / theme buttons, just wider */
.topbar__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent-6);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.topbar__phone:hover { background: var(--accent-10); }
.topbar__phone-icon { display: none; flex: none; }

/* language toggle — one round button, click cycles uz → ru → en */
.lang-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast) var(--ease);
}
.lang-toggle:hover { background: var(--accent-10); }
.lang-toggle:active .lang-toggle__flag.is-active { transform: scale(0.92); }
.lang-toggle__flag {
  grid-area: 1 / 1;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-base) var(--ease);
}
.lang-toggle__flag.is-active { opacity: 1; transform: none; }

/* ---------- Page ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ---------- Card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 40px;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.card__head { margin-bottom: 28px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-56);
  max-width: 44ch;
}

/* ---------- Progress ---------- */
.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.progress__track {
  flex: 1;
  display: flex;
  gap: 6px;
}
.progress__seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background var(--t-base) var(--ease);
}
.progress__seg.is-done { background: var(--accent); }
.progress__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.progress__label b { color: var(--ink); font-weight: 600; }
.progress__sep { margin: 0 3px; }

/* ---------- Steps ---------- */
.steps { position: relative; }

.step { display: none; }
.step.is-active { display: block; animation: step-in var(--t-base) var(--ease) both; }
.steps[data-dir="back"] .step.is-active { animation-name: step-in-back; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes step-in-back {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: none; }
}

.question {
  display: block;
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
}

/* ---------- Options ---------- */
.options {
  display: grid;
  gap: 10px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 14px 18px 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--option-bg);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.option__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.option__label {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: var(--ink);
}
.option__hint {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-40);
}

.option__radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-26);
  background: var(--surface);
  flex: none;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

@media (hover: hover) {
  .option:hover { border-color: var(--accent-45); background: var(--surface-softer); }
  .option:hover .option__radio { border-color: var(--accent-45); }
}
.option:active { transform: scale(0.992); }

.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-6);
}
.option input:checked ~ .option__radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3.5px var(--surface);
}
.option input:focus-visible ~ .option__radio { box-shadow: var(--ring), inset 0 0 0 3.5px var(--surface); }
.option:has(input:focus-visible) { border-color: var(--accent); }

/* ---------- Summary (contact step) ---------- */
.done {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.done__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  flex: none;
}
.done__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.done__title { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; }
.done__text { margin: 0; font-size: 14px; line-height: 18px; color: var(--ink-40); }

.summary {
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.summary__row:last-child { border-bottom: 0; }
.summary__row:hover { background: var(--surface-soft); }
.summary__row:focus-visible { box-shadow: inset var(--ring); border-radius: 0; }
.summary__key { flex: none; font-size: 14.5px; color: var(--ink-56); font-weight: 400; white-space: nowrap; }
.summary__val {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}
.summary__val::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-26);
  border-bottom: 1.5px solid var(--ink-26);
  transform: rotate(-45deg);
  flex: none;
  margin-left: 2px;
}

.question--contact {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 18px;
}

/* ---------- Fields ---------- */
.field { margin-bottom: 14px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-72);
}
.field__optional {
  margin-left: 6px;
  font-weight: 400;
  color: var(--ink-40);
}
.field__error {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--danger);
}

.input,
.phone {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input {
  padding: 0 18px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}
.input::placeholder, .phone__input::placeholder { color: var(--ink-26); font-weight: 400; }
.input:focus, .phone:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.input:focus-visible, .phone__input:focus, .phone__input:focus-visible { outline: none; }

.phone__prefix {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 16px;
  height: 100%;
  min-height: 54px;
  border-right: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.phone__flag { border-radius: 3px; flex: none; }
.phone__input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.field.is-invalid .phone { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194, 64, 47, 0.12); }

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

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.006em;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); }

.btn--secondary { background: var(--accent-10); color: var(--accent); }
.btn--secondary:hover { background: var(--accent-16); }

.btn--ghost {
  min-height: 40px;
  padding: 0 12px 0 8px;
  background: transparent;
  color: var(--ink-56);
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
}
.btn--ghost:hover { background: var(--accent-6); color: var(--ink); }

/* loading state */
.btn__spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--on-accent) 35%, transparent);
  border-top-color: var(--on-accent);
  opacity: 0;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: 0.9; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.consent {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-40);
  text-align: center;
}
.consent a { color: var(--ink-56); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }

.form-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(194, 64, 47, 0.08);
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

/* ---------- Success ---------- */
.success {
  text-align: center;
  padding: 12px 0 4px;
}
.success__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  animation: pop 420ms var(--ease) both;
}
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  to   { transform: scale(1); }
}
.success__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.success__text {
  margin: 0 auto 24px;
  max-width: 38ch;
  font-size: 16px;
  color: var(--ink-56);
}
.success__redirect {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-40);
}
.success__redirect a { color: var(--ink-56); text-decoration: underline; text-underline-offset: 2px; }
.success__redirect a:hover { color: var(--ink); }

/* ---------- Document page (privacy.html) ---------- */
.page--doc { max-width: 720px; }
.doc { padding: 44px 48px 40px; }
.doc__title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.doc__meta { margin: 0 0 26px; font-size: 14px; color: var(--ink-40); }
.doc p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--ink-72); }
.doc h2 {
  margin: 30px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: var(--ink-72); }
.doc li b { color: var(--ink); }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-26); }
.doc a:hover { text-decoration-color: var(--ink); }
.doc__placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(194, 64, 47, 0.10);
  color: var(--danger);
  font-weight: 500;
}
.doc__back { margin-top: 30px; text-decoration: none !important; }

/* ---------- Card footer ---------- */
.card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-top: 22px;
}
.card__note {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-40);
  text-align: right;
}

/* ---------- Trust / footer ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-40);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-45);
}

.footer {
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-26);
}

/* ---------- Responsive ---------- */

/* Tablets: a little more room for the card */
@media (min-width: 768px) {
  .page { max-width: 640px; }
  .page--doc { max-width: 760px; }
}

/* Large desktops: scale the card up slightly so it does not look lost */
@media (min-width: 1440px) {
  .topbar { padding-top: 22px; padding-bottom: 22px; }
  .page { max-width: 680px; padding-top: 32px; }
  .page--doc { max-width: 800px; }
  .card { padding: 48px; }
  .title { font-size: 34px; }
  .lead { font-size: 17px; }
  .question { font-size: 22px; }
  .option { min-height: 66px; }
  .option__label { font-size: 18px; }
  .doc__title { font-size: 34px; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { padding: 12px 16px; gap: 8px; }
  .topbar__right { gap: 6px; }
  .brand__logo { height: 26px; }
  .theme-toggle, .lang-toggle { width: 36px; height: 36px; }
  .topbar__phone { width: 36px; height: 36px; padding: 0; }
  .topbar__phone-icon { display: block; }
  .topbar__phone-text { display: none; }
  .page { padding: 8px 12px 28px; }
  .card { padding: 26px 20px 22px; border-radius: 24px; }
  .doc { padding: 28px 20px 26px; }
  .doc__title { font-size: 26px; }
  .card__head { margin-bottom: 22px; }
  .title { font-size: 26px; }
  .lead { font-size: 15px; }
  .question { font-size: 19px; }
  .option { min-height: 58px; padding: 13px 16px 13px 18px; border-radius: 16px; }
  .option__label { font-size: 16px; }
  .success__title { font-size: 24px; }
  .trust { gap: 6px 16px; font-size: 13px; }
  .card__actions { margin-top: 18px; }
}

/* Small phones (iPhone SE, compact Androids) */
@media (max-width: 380px) {
  .topbar { padding: 10px 12px; }
  .topbar__right { gap: 5px; }
  .theme-toggle, .lang-toggle { width: 34px; height: 34px; border-radius: 9px; }
  .topbar__phone { width: 34px; height: 34px; border-radius: 9px; }
  .page { padding: 6px 10px 24px; }
  .card { padding: 22px 16px 20px; border-radius: 22px; }
  .doc { padding: 24px 16px 22px; }
  .title { font-size: 24px; }
  .doc__title { font-size: 24px; }
  .question { font-size: 18px; }
  .question--contact { font-size: 17px; }
  .option { min-height: 54px; padding: 12px 14px 12px 16px; }
  .summary__row { padding: 12px 14px; }
  .summary__key { font-size: 14px; }
  .summary__val { font-size: 15px; }
  .phone__prefix { padding: 0 10px 0 12px; gap: 7px; font-size: 16px; }
  .phone__input { padding: 0 12px; font-size: 17px; letter-spacing: 0.01em; }
  .btn { font-size: 16px; }
  .consent { font-size: 12px; }
}

/* Very narrow screens (folded phones): hide the phone pill, keep the number on the success screen */
@media (max-width: 340px) {
  .brand__logo { height: 24px; }
  .phone__flag { display: none; }
}

/* Phones in landscape: tighter vertical rhythm so the question fits on screen */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { padding-top: 8px; padding-bottom: 8px; }
  .page { padding-top: 4px; padding-bottom: 16px; }
  .card { padding-top: 22px; padding-bottom: 18px; }
  .card__head { margin-bottom: 14px; }
  .lead { display: none; }
  .progress { margin-bottom: 16px; }
  .options { gap: 8px; }
  .option { min-height: 50px; padding-top: 10px; padding-bottom: 10px; }
  .trust { margin-top: 14px; }
}

/* Touch devices: no sticky hover states */
@media (hover: none) {
  .btn--primary:hover { background: var(--accent); }
  .btn--secondary:hover { background: var(--accent-10); }
  .btn--ghost:hover { background: transparent; color: var(--ink-56); }
  .summary__row:hover { background: transparent; }
  .theme-toggle:hover, .lang-toggle:hover, .topbar__phone:hover { background: var(--accent-6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
