/* Standalone foundations extracted from the existing Samara quiz. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  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;
}

:root {
  --surface-soft: #f1f4f9;
  --text: #182234;
  --text-soft: #5d687a;
  --text-muted: #667285;
  --border: #dbe3ee;
  --accent: #f05a28;
  --accent-action: #bd3e13;
  --accent-action-hover: #a9340e;
  --success: #18794e;
  --danger: #b42318;
  --shadow-sm: 0 8px 20px rgba(24, 34, 52, 0.06);
  --radius: 18px;
  --font-ui: Manrope, Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  position: relative;
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 18px; max-width: 760px; font-size: clamp(36px, 3.4vw, 48px); line-height: 1.03; letter-spacing: 0; font-weight: 900; }
h2 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: 0; font-weight: 900; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-action);
  outline-offset: 3px;
}

.btn {
  min-height: 58px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent-action);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(189, 62, 19, 0.20);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-action-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .62; cursor: wait; transform: none; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-soft); color: var(--text); }

.lead-form { display: grid; gap: 10px; margin-top: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: inherit; font-size: 13px; font-weight: 800; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.input:focus { border-color: var(--accent-action); box-shadow: 0 0 0 4px rgba(189, 62, 19, .14); }
.error-text { min-height: 16px; color: var(--danger); font-size: 12px; font-weight: 800; }
.field-error .input { border-color: var(--danger); }
.form-status { min-height: 20px; font-size: 13px; font-weight: 800; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.consent-note { margin-top: -4px; color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.consent-note a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.isolated-quiz-page { width: 100%; height: 100vh; overflow: hidden; background: #fff; }
.isolated-quiz-page main {
  width: 100%;
  height: 100vh;
  display: grid;
  align-items: center;
  padding: 0;
  overflow-x: hidden;
}
.quiz-landing {
  width: min(1180px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.quiz-landing .lead-form { min-width: 0; max-width: 100%; }
.quiz-landing-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}
.quiz-landing-brand img { flex: 0 1 auto; width: 190px; height: auto; filter: brightness(0) invert(1); }
.quiz-landing-brand span { color: rgba(255,255,255,.86); font-weight: 900; white-space: nowrap; }
.quiz-traffic {
  width: 100vw;
  max-width: none;
  height: 100vh;
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 0;
  background: #fff;
  box-shadow: none;
}
.quiz-landing-free.quiz-traffic { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.quiz-landing-free .quiz-landing-stage { padding-inline: clamp(34px, 4vw, 64px); }
.quiz-landing-visual { height: 100vh; min-height: 0; overflow: hidden; background: #f05a28; }
.quiz-landing-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.quiz-landing-stage {
  position: relative;
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(16px, 2.4vh, 24px) clamp(34px, 5vw, 82px) clamp(14px, 2.2vh, 22px);
  border-left: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.quiz-landing-brand-dark { margin: 0; justify-content: flex-start; color: var(--text); }
.quiz-landing-brand-dark img { width: 68px; filter: none; }
.quiz-landing-brand-dark span { color: var(--text); font-size: 15px; font-weight: 700; }
.quiz-intro {
  align-self: center;
  margin-top: 0;
  padding-bottom: clamp(44px, 10vh, 86px);
  max-width: 560px;
  display: grid;
  align-content: center;
  min-height: 0;
}
.quiz-intro h1 { margin: 0; max-width: 560px; font-size: clamp(30px, 2.85vw, 42px); line-height: 1.12; }
.quiz-hero-list {
  margin: clamp(14px, 2.2vh, 22px) 0 0;
  padding-left: 28px;
  color: #686f79;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 900;
}
.quiz-start-btn {
  width: min(360px, 100%);
  min-height: 54px;
  margin-top: clamp(14px, 2vh, 20px);
  border-radius: 999px;
  font-size: 20px;
}
.quiz-landing-free .quiz-intro { width: 100%; max-width: 600px; }
.quiz-landing-free .quiz-intro h1 { max-width: 600px; font-size: clamp(34px, 2.6vw, 44px); line-height: 1.1; }
.quiz-landing-free .quiz-hero-list { max-width: 560px; color: #5d6470; }
.quiz-landing-free .quiz-landing-footer { left: clamp(34px, 4vw, 64px); right: clamp(34px, 4vw, 64px); }
.quiz-bonuses { margin-top: clamp(18px, 3vh, 26px); }
.quiz-bonuses p { color: var(--text); font-size: 18px; letter-spacing: .04em; }
.quiz-bonuses div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.quiz-bonuses span {
  min-height: 68px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #d6d6d6;
  color: #68748b;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(24,34,52,.14);
}
.quiz-landing-free .quiz-bonuses-marquiz { margin-top: clamp(14px, 2.2vh, 20px); }
.quiz-landing-free .quiz-bonuses-marquiz > p { color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.quiz-landing-free .quiz-bonuses-marquiz > div { gap: 8px; margin-top: 8px; }
.quiz-landing-free .quiz-bonuses-marquiz .quiz-bonus-card {
  position: relative;
  min-height: 72px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 12px 9px 8px;
  border: 1px solid #e4e6e9;
  border-radius: 10px;
  background: #f0f1f3;
  color: #30343a;
  box-shadow: none;
}
.quiz-landing-free .quiz-bonuses-marquiz .quiz-bonus-card img { width: 40px; height: 40px; object-fit: contain; }
.quiz-landing-free .quiz-bonuses-marquiz .quiz-bonus-card strong { font-size: 13px; line-height: 1.25; text-align: center; }
.quiz-landing-free .quiz-bonuses-marquiz .quiz-bonus-card i {
  position: absolute;
  top: -9px;
  right: 5px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #74787f;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}
.quiz-landing-footer {
  position: absolute;
  left: clamp(34px, 5vw, 82px);
  right: clamp(34px, 5vw, 82px);
  bottom: clamp(16px, 2.6vh, 24px);
  margin-top: 0;
  color: var(--text-soft);
}
.quiz-landing-footer strong { display: block; color: var(--text); font-size: 17px; }
.quiz-landing-footer span { display: block; margin-top: 2px; font-size: 12px; }
.quiz-terms-link { display: inline-block; margin-top: 6px; color: var(--text-muted); font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.quiz-terms-link:hover { color: var(--accent-action); }
.quiz-traffic.is-quiz-active { grid-template-columns: 1fr; }
.quiz-traffic.is-quiz-active .quiz-landing-visual { display: none; }
.quiz-traffic.is-quiz-active .quiz-landing-stage {
  width: 100vw;
  height: 100vh;
  padding: clamp(24px, 4vh, 40px) clamp(80px, 12vw, 220px) clamp(18px, 3vh, 28px);
  border-left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.quiz-traffic.is-quiz-active .quiz-landing-brand { display: none; }

/* The policy is local to this site; no shared homepage header is needed. */
.legal-page main { max-width: 900px; margin: 0 auto; padding: 40px 28px 64px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-header img { width: 160px; height: auto; }
.legal-header a { color: var(--accent-action); font-size: 14px; font-weight: 700; }
.legal-content { padding-top: 32px; overflow-wrap: anywhere; }
.legal-content h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
.legal-content h2 { margin-top: 28px; font-size: 21px; line-height: 1.35; }
.legal-content p, .legal-content ul, .legal-content ol { margin: 16px 0 0; color: var(--text-soft); }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: var(--accent-action); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1060px) {
  .quiz-landing { grid-template-columns: 1fr; }
  .quiz-traffic { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .quiz-landing-free.quiz-traffic { grid-template-columns: 1fr; }
  .quiz-landing-visual { min-height: 260px; max-height: 380px; height: 34vh; }
  .quiz-landing-stage { height: auto; min-height: 66vh; border-left: 0; padding: 22px 28px 42px; overflow: visible; }
  .quiz-traffic.is-quiz-active .quiz-landing-stage { width: 100%; padding: 34px 42px 28px; overflow-y: auto; }
}
@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .btn { width: 100%; min-height: 56px; white-space: normal; text-align: center; }
  body.isolated-quiz-page { height: auto; min-height: 100svh; padding-bottom: 0; overflow-x: hidden; overflow-y: auto; }
  .isolated-quiz-page { width: 100%; height: auto; min-height: 100svh; max-width: 100vw; overflow-x: hidden; overflow-y: auto; background: #fff; }
  .isolated-quiz-page main { display: block; height: auto; min-height: 100svh; width: 100%; max-width: 100vw; padding: 0; align-items: start; overflow: visible; }
  .quiz-landing { display: block; width: 100%; max-width: 100%; margin: 0; }
  .quiz-traffic { height: auto; min-height: 100svh; box-shadow: none; background: #fff; overflow: visible; }
  .quiz-traffic.is-quiz-active { height: auto; min-height: 100svh; }
  .quiz-landing-visual { height: 64px; min-height: 64px; max-height: 64px; border-bottom: 1px solid var(--border); }
  .quiz-landing-visual img { object-position: center top; }
  .quiz-landing-free .quiz-landing-visual { height: min(42svh, 360px); min-height: 260px; max-height: 360px; }
  .quiz-landing-free .quiz-landing-visual img { object-position: center 46%; }
  .quiz-landing-free .quiz-landing-stage { min-height: calc(100svh - min(42svh, 360px)); }
  .quiz-landing-stage { height: auto; min-height: calc(100svh - 64px); display: block; padding: 16px 24px 18px; overflow: visible; }
  .quiz-traffic.is-quiz-active .quiz-landing-stage { width: 100%; height: auto; min-height: 100svh; padding: 16px 16px 18px; overflow-y: auto; }
  .quiz-landing-brand-dark { justify-content: flex-start; gap: 16px; margin-bottom: 22px; }
  .quiz-landing-brand-dark img { width: 48px; }
  .quiz-landing-brand-dark span { display: block; white-space: normal; font-size: 13px; }
  .quiz-intro { max-width: none; }
  .quiz-intro h1 { max-width: 100%; font-size: 28px; line-height: 1.14; }
  .quiz-landing-free .quiz-intro h1 { font-size: clamp(27px, 8vw, 34px); }
  .quiz-hero-list { margin-top: 16px; padding-left: 22px; font-size: 16px; line-height: 1.28; }
  .quiz-start-btn { width: 100%; min-height: 54px; margin-top: 16px; border-radius: 24px; font-size: 18px; }
  .quiz-bonuses { margin-top: 18px; }
  .quiz-bonuses p { font-size: 16px; }
  .quiz-bonuses div { gap: 10px; }
  .quiz-bonuses span { min-height: 58px; grid-template-columns: 38px 1fr; padding: 8px; font-size: 12px; }
  .quiz-landing-free .quiz-bonuses-marquiz { margin-top: 16px; }
  .quiz-landing-free .quiz-bonuses-marquiz > p { font-size: 13px; }
  .quiz-landing-free .quiz-bonuses-marquiz > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
  .quiz-landing-free .quiz-bonuses-marquiz .quiz-bonus-card { min-height: 66px; grid-template-columns: 34px minmax(0, 1fr); gap: 5px; padding: 7px 8px 7px 6px; font-size: 11px; }
  .quiz-landing-free .quiz-bonuses-marquiz .quiz-bonus-card img { width: 34px; height: 34px; }
  .quiz-landing-free .quiz-bonuses-marquiz .quiz-bonus-card strong { font-size: 11px; }
  .quiz-landing-footer { position: static; margin-top: 14px; }
  .quiz-terms-link { margin-top: 4px; }
  .quiz-landing-brand { margin-bottom: 22px; }
  .quiz-landing-brand img { width: 132px; }
  .quiz-landing-brand span { display: none; }
  .quiz-landing-free .quiz-landing-brand-dark span { display: block; }
  .legal-page main { padding: 24px 20px 40px; }
  .legal-header { align-items: flex-start; gap: 16px; }
  .legal-header img { width: 128px; }
  .legal-content { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
