/* lux-quiz: механика kitUP в лакшери-исполнении —
   глубокий тёмно-синий, шампань-золото, Cormorant Garamond + Jost */
:root {
  --bg: #0e1620;
  --bg-soft: #131d2a;
  --ink: #f2ede3;
  --muted: #97a1ad;
  --gold: #c9a96a;
  --gold-soft: rgba(201, 169, 106, 0.35);
  --hairline: rgba(201, 169, 106, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  background:
    radial-gradient(120% 90% at 50% 0%, #17222f 0%, var(--bg) 55%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

em { font-style: italic; color: var(--gold); }

/* ---- шапка ---- */
.top { padding: 26px 20px 6px; text-align: center; }

/* Back: из подвопроса — к родительскому списку, иначе — на шаг назад */
.back {
  position: fixed;
  top: 20px; left: 10px;
  z-index: 30;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.back:hover { opacity: 1; }

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--ink);
}
.logo__sub {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.progress { max-width: 300px; margin: 18px auto 0; }
.progress__track {
  position: relative;
  height: 1px;
  background: var(--hairline);
}
.progress__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--gold);
  transition: width 0.5s ease;
}
.progress__dot {
  position: absolute; top: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--gold-soft);
  transition: background 0.3s, border-color 0.3s;
}
.progress__dot[data-mile="0"] { left: 2%; }
.progress__dot[data-mile="1"] { left: 34%; }
.progress__dot[data-mile="2"] { left: 66%; }
.progress__dot[data-mile="3"] { left: 98%; }
.progress__dot--done { background: var(--gold); border-color: var(--gold); }
.progress__label {
  margin-top: 12px;
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ---- сцена ---- */
.stage {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 20px 150px;
  position: relative;
}

.screen { display: none; animation: rise 0.45s ease; }
.screen--active { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.screen__title {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.screen__quote {
  margin: 18px auto 0;
  max-width: 400px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.screen__hint {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ---- соц-доказательство: тонкие линии, serif-цифры ---- */
.proof {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.proof__item {
  padding: 22px 8px;
  text-align: center;
}
.proof__item + .proof__item { border-left: 1px solid var(--hairline); }
.proof__item b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--gold);
}
.proof__item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- опции: тонкая золотая линия, свечение при выборе ---- */
.options {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-align: left;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 15px 20px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.option:hover { border-color: var(--gold); transform: translateY(-1px); }
.option--selected {
  border-color: var(--gold);
  background: rgba(201, 169, 106, 0.10);
  box-shadow: 0 0 24px rgba(201, 169, 106, 0.15);
}
.option__emoji { font-size: 20px; line-height: 1; min-width: 26px; text-align: center; }
.option::after {
  content: '›';
  margin-left: auto;
  color: var(--gold-soft);
  font-size: 18px;
  transition: color 0.25s, transform 0.25s;
}
.option:hover::after { color: var(--gold); transform: translateX(2px); }

/* 12 стран — сетка 2 колонки, чтобы шаг влезал в один экран (инвариант 11) */
.options--countries {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---- даты и контакт ---- */
.dates-box, .contact-box {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dates-box input, .contact-box input {
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 15px 20px;
  width: 100%;
  color-scheme: dark;
}
.dates-box input::placeholder, .contact-box input::placeholder { color: #5d6874; }
.dates-box input:focus, .contact-box input:focus {
  outline: none;
  border-color: var(--gold);
}

.fine {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- интерлюдия ---- */
.plan-bar {
  margin: 34px auto 0;
  max-width: 300px;
  height: 1px;
  background: var(--hairline);
}
.plan-bar__fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.3s linear;
  box-shadow: 0 0 12px rgba(201, 169, 106, 0.6);
}

.error {
  position: fixed;
  left: 50%; bottom: 128px;
  transform: translateX(-50%);
  background: var(--bg-soft);
  border: 1px solid rgba(224, 49, 49, 0.5);
  color: #e89b9b;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 20;
  white-space: nowrap;
}

/* ---- фиксированный низ: золотая CTA ---- */
.bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, rgba(14, 22, 32, 0), var(--bg) 45%);
}
.cta {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #10151c;
  background: linear-gradient(120deg, #d9bc82, var(--gold) 60%, #b08f52);
  border: 0;
  border-radius: 3px;
  padding: 17px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 28px rgba(201, 169, 106, 0.25);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(201, 169, 106, 0.35); }
.cta:disabled { opacity: 0.45; box-shadow: none; cursor: default; }

.bottom__links {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: #5d6874;
}
.bottom__links a { color: inherit; text-decoration: none; }
.bottom__links a:hover { color: var(--gold); }

/* календарь ядра — тёмная тема в тон */
.sr-cal__field {
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 15px 20px;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.sr-cal__field:hover { border-color: var(--gold); }

@media (min-width: 700px) {
  .screen__title { font-size: 40px; }
}

/* ---- компакт для мобильных: каждый шаг влезает в 360×640 без прокрутки ---- */
@media (max-width: 480px) {
  .top { padding: 12px 16px 0; }
  .logo { font-size: 17px; letter-spacing: 5px; }
  .logo__sub { margin-top: 2px; font-size: 9px; letter-spacing: 2.5px; }
  .progress { margin: 10px auto 0; max-width: 250px; }
  .progress__label { margin-top: 7px; font-size: 10px; letter-spacing: 3px; }
  .back { top: 10px; left: 2px; }

  .stage { padding: 14px 16px 110px; }
  .screen__title { font-size: 24px; }
  .screen__quote { margin-top: 10px; font-size: 13px; line-height: 1.55; }
  .screen__hint { margin-top: 8px; font-size: 11px; }

  .proof { margin-top: 20px; }
  .proof__item { padding: 12px 6px; }
  .proof__item b { font-size: 22px; }
  .proof__item small { font-size: 9px; }

  .options { margin-top: 14px; gap: 8px; }
  .option { padding: 10px 12px; font-size: 13px; gap: 10px; }
  .option__emoji { font-size: 15px; min-width: 20px; }
  .options--countries .option { padding: 9px 10px; font-size: 12.5px; gap: 7px; }
  .options--countries .option::after { content: none; }
  .options--countries .option__emoji { min-width: 18px; }

  .dates-box, .contact-box { margin-top: 14px; gap: 8px; }
  .dates-box input, .contact-box input { padding: 11px 14px; font-size: 14px; }
  .sr-cal__field { padding: 11px 14px; font-size: 14px; }
  .fine { margin-top: 10px; font-size: 10px; letter-spacing: 1px; }
  .plan-bar { margin-top: 20px; }

  .error {
    bottom: 88px;
    white-space: normal;
    width: max-content;
    max-width: calc(100vw - 32px);
    text-align: center;
  }

  .bottom { padding: 10px 16px 8px; }
  .cta { padding: 12px; font-size: 12px; letter-spacing: 2.5px; }
  .bottom__links { margin-top: 6px; font-size: 9px; }
}
