:root {
  --bg: #342b40;
  --bg-03: #3c3149;
  --bg-07: #453956;
  --bg-10: #4d3f5f;
  --primary: #6161af;
  --primary-dark: #494992;
  --primary-text: #ffffff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.16);
  --radius: 8px;
  --btn-radius: 8px;
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

button, input { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
a { color: #c0b6ce; }

.hidden { display: none !important; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  background: var(--primary);
  color: var(--primary-text);
  border-radius: var(--btn-radius);
  font-size: 17px;
  font-weight: 500;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled,
.btn-primary.is-inactive {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.btn-wide { width: 100%; }

.btn-back {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-07);
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
}
.btn-back:disabled { opacity: 0.35; cursor: default; }

/* ---- start ---- */
.start {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}
.start__video,
.start__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.start__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.start__inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 120px;
  max-width: 760px;
  margin: 0 auto;
}
.start__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.start__bullets {
  list-style: none;
  margin-bottom: 28px;
}
.start__bullets li {
  margin: 6px 0;
  font-size: 18px;
}
.start__cta { min-width: 320px; margin-bottom: 28px; }
.start__bonus-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}
.bonus-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1b1b1b;
  border-radius: 10px;
  padding: 8px 12px 8px 8px;
  min-width: 280px;
  max-width: 360px;
  text-align: left;
  position: relative;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.bonus-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 70% 35%;
  border-radius: 6px;
  flex-shrink: 0;
}
.bonus-card span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.bonus-card .lock {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  color: #8a8a8a;
}
.start__foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 56px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #2a2235;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.cookie button {
  background: #3a3348;
  padding: 8px 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---- quiz ---- */
.quiz {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 280px;
  background: var(--bg);
}
.quiz__main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 48px 56px 24px;
}
.quiz__q {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 28px;
  max-width: 720px;
}
.answers {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.answers.cols-2 { grid-template-columns: 1fr 1fr; }
.answer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  text-align: left;
  font-size: 16px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.answer:hover { border-color: rgba(97,97,175,0.7); }
.answer.is-selected {
  border-color: var(--primary);
  background: rgba(97,97,175,0.12);
}
.radio {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.answer.is-selected .radio {
  border-color: var(--primary);
}
.answer.is-selected .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.quiz__nav {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
}
.progress {
  flex: 1;
  max-width: 420px;
}
.progress__pct {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}
.progress__bar {
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: visible;
  position: relative;
}
.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7a7ad4, var(--primary));
  border-radius: 99px;
  transition: width 0.35s ease;
}
.progress__knob {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary);
  transform: translateY(-50%);
  transition: left 0.35s ease;
}
.quiz__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.enter-hint {
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 8px;
}

.quiz__side {
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}
.quiz__side .bonus-card { width: 100%; min-width: 0; }

/* ---- form / thanks ---- */
.split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split__media {
  background: #111 center/cover no-repeat;
}
.split__media--book {
  background-size: contain;
  background-position: center;
}
.split__panel {
  background: var(--bg);
  padding: 64px 56px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.split__title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 28px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.control {
  position: relative;
}
.control svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.45);
}
.control input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-03);
  color: #fff;
  font-size: 16px;
  outline: none;
}
.control input:focus { border-color: var(--primary); }
.control input::placeholder { color: rgba(255,255,255,0.35); }

.messenger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 16px;
  border-radius: 8px;
  background: var(--bg-10);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}
.messenger-link .dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2aa3e6;
}
.dot.wa { background: #25d366; }
.dot.tg { background: #2aa3e6; }
.dot.max { background: #7b61ff; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.agree input { margin-top: 3px; accent-color: var(--primary); }

.split__bottom {
  margin-top: auto;
  padding-top: 24px;
}

.thanks-text {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.bonus-card.unlocked .lock { display: none; }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 16, 28, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__box {
  width: min(420px, 100%);
  background: #fff;
  color: #1b1b1b;
  border-radius: 12px;
  padding: 24px;
}
.modal__box h3 { margin-bottom: 16px; font-size: 20px; }
.m-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #1b1b1b;
}
.m-item:hover { border-color: #cfcfcf; background: #fafafa; }
.m-item.is-on { border-color: var(--primary); background: #f3f3fb; }
.modal__close {
  margin-top: 8px;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

@media (max-width: 900px) {
  .quiz { grid-template-columns: 1fr; }
  .quiz__side { display: none; }
  .quiz__main { padding: 28px 18px 18px; }
  .answers.cols-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 220px; }
  .split__panel { padding: 28px 18px 20px; }
  .start__foot { display: none; }
  .start {
    display: flex;
    flex-direction: column;
    background: var(--bg);
  }
  .start__video, .start__poster {
    position: relative;
    height: 38vh;
    min-height: 220px;
  }
  .start__overlay { display: none; }
  .start__inner {
    min-height: 0;
    align-items: flex-start;
    text-align: left;
    padding: 20px 18px 110px;
  }
  .start__cta { width: 100%; min-width: 0; }
  .start__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
  }
  .start__head img { width: 28px; height: 28px; }
}
@media (min-width: 901px) {
  .start__head { display: none; }
}
