/* charter-quiz — conversion-first yacht charter landing */
:root {
  --navy: #071e33;
  --navy-2: #0b2c47;
  --ink: #14273a;
  --muted: #5c6f82;
  --line: #e3eaf1;
  --gold: #f2b135;
  --gold-dark: #8a5c00;
  --sea: #0e7d94;
  --bg: #f4f7fa;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(7, 30, 51, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .logo { font-family: 'DM Sans', sans-serif; }

/* ==================== topbar ==================== */
.topbar { background: var(--navy); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { color: #fff; font-weight: 700; letter-spacing: 3px; font-size: 15px; }
.topbar__trust { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.topbar__stars { color: var(--gold); letter-spacing: 2px; }
.topbar__note { color: rgba(255,255,255,0.75); }

/* ==================== hero ==================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0e3a5c 100%);
  color: #fff;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero__waves { position: absolute; inset: auto 0 0 0; height: 220px; pointer-events: none; }
.hero__waves svg { width: 100%; height: 100%; display: block; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.hero__eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #9fc3d8; font-weight: 600; }
.hero__title {
  margin-top: 14px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -1px;
  font-weight: 700;
}
.hero__accent { color: var(--gold); }
.hero__subtitle { margin-top: 18px; font-size: 17px; color: #cfe0ec; max-width: 480px; }
.hero__subtitle strong { color: #fff; }

.hero__bullets { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #dcebf4; }
.tick {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-right: 8px;
  border-radius: 50%;
  background: rgba(242,177,53,0.18);
  color: var(--gold);
  font-size: 12px; font-weight: 700;
}

.hero__cta {
  display: inline-block;
  margin-top: 28px;
  padding: 17px 34px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(242,177,53,0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.hero__cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.hero__cta--big { font-size: 18px; padding: 19px 44px; }
.hero__micro { margin-top: 14px; font-size: 13px; color: #9fc3d8; }

/* ==================== quiz card ==================== */
.quiz-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 22px;
  position: relative;
  z-index: 1;
}
.quiz-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.quiz-card__title { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 17px; }
.quiz-card__meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.quiz { display: flex; flex-direction: column; gap: 16px; }

.quiz__top { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.quiz__back {
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0;
}
.quiz__back:hover { color: var(--ink); }
.quiz__counter { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }

.quiz__progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.quiz__progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), #f7cf6e);
  border-radius: 3px;
  transition: width 0.35s ease;
}

.quiz__step { border: 0; display: flex; flex-direction: column; gap: 14px; }
.quiz__question { font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.3px; }
.quiz__question--sub { font-size: 16px; }
.quiz__hint { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.quiz__sub { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.quiz__options { display: flex; flex-wrap: wrap; gap: 9px; }
.quiz__options--column { flex-direction: column; }
.quiz__options--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.quiz__option {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px;
  font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--ink);
  background: #f7fafc;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.quiz__option:hover { border-color: var(--sea); background: #fff; }
.quiz__option--selected {
  border-color: var(--sea);
  background: #eafcff;
  box-shadow: 0 0 0 1px var(--sea);
}
.quiz__option-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.quiz__option-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.quiz__option-desc { font-size: 12px; color: var(--muted); font-weight: 400; }

.quiz__row { display: flex; gap: 10px; }
.quiz__row .field { flex: 1; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field__label { font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.field__input {
  padding: 13px 14px; font: inherit;
  border: 1.5px solid var(--line); border-radius: 11px;
  width: 100%; background: #f7fafc;
}
.field__input:focus { outline: none; border-color: var(--sea); background: #fff; }

/* recap of answers on contact step */
.recap {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 12px;
  background: #f2f8f5;
  border: 1px solid #d8ece2;
  border-radius: 11px;
}
.recap__chip {
  font-size: 12.5px; font-weight: 600;
  color: #1c5c46;
  background: #fff;
  border: 1px solid #cfe6da;
  border-radius: 999px;
  padding: 5px 11px;
}

.assure { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.quiz__error { color: #c0392b; font-size: 14px; font-weight: 500; }

.quiz__nav { display: flex; }
.quiz__next {
  flex: 1;
  padding: 16px;
  font: inherit; font-size: 16px; font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  border: 0; border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(242,177,53,0.3);
  transition: transform 0.15s, filter 0.15s;
}
.quiz__next:hover { transform: translateY(-1px); filter: brightness(1.05); }
.quiz__next:disabled { opacity: 0.6; cursor: default; transform: none; }

.quiz-card__benefit {
  text-align: center;
  font-size: 11.5px;
  color: #9aa9b7;
  margin-top: -4px;
}

/* success */
.success { text-align: center; padding: 18px 6px 10px; }
.success__icon { font-size: 44px; }
.success__title { font-size: 26px; margin-top: 10px; color: var(--navy); }
.success__text { margin-top: 8px; color: var(--muted); }
.success__steps {
  margin: 18px auto 0; max-width: 380px;
  text-align: left; font-size: 14px;
  display: flex; flex-direction: column; gap: 10px;
  padding-left: 20px;
}
.success__micro { margin-top: 14px; font-size: 12px; color: #9aa9b7; }

/* ==================== trust strip ==================== */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; padding: 26px 20px;
}
.trust__item { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.trust__item strong { color: var(--ink); font-size: 13.5px; }
.trust__icon { font-size: 22px; line-height: 1.2; }

/* ==================== how it works ==================== */
.how { padding: 72px 0; }
.section-title {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
}
.how__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-top: 42px;
}
.how__step {
  background: #fff; border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 6px 24px rgba(7,30,51,0.06);
}
.how__num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 17px;
}
.how__step h3 { margin-top: 14px; font-size: 18px; color: var(--navy); }
.how__step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.how__cta-wrap { text-align: center; margin-top: 40px; }

/* ==================== reviews ==================== */
.reviews { padding: 8px 0 72px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 42px; }
.review {
  background: #fff; border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 6px 24px rgba(7,30,51,0.06);
  font-size: 14.5px; color: var(--ink);
}
.review__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; font-size: 14px; }
.review footer { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ==================== faq ==================== */
.faq { padding: 0 0 72px; }
.faq__inner { max-width: 760px; }
.faq__item {
  background: #fff; border-radius: 12px;
  padding: 18px 22px; margin-top: 12px;
  box-shadow: 0 4px 16px rgba(7,30,51,0.05);
}
.faq__item:first-of-type { margin-top: 36px; }
.faq__item summary {
  font-weight: 600; font-size: 15.5px;
  cursor: pointer; color: var(--navy);
  list-style: none; position: relative; padding-right: 26px;
}
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 20px; color: var(--sea);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ==================== final CTA ==================== */
.final {
  background: linear-gradient(160deg, var(--navy) 0%, #0e3a5c 100%);
  color: #fff;
  padding: 72px 0;
}
.final__inner { text-align: center; }
.final__title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.final .hero__cta { margin-top: 30px; }

.footer { padding: 22px 0; background: var(--navy); color: rgba(255,255,255,0.55); font-size: 13px; }

/* ==================== responsive ==================== */
@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .how__grid, .reviews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .topbar__note { display: none; }
  .hero__cta { display: block; text-align: center; }
  .quiz-card { padding: 20px 16px 18px; margin: 0 -4px; }
  /* один вопрос — один экран (инвариант 11): каждый шаг влезает в 360×640 без скролла */
  .quiz { gap: 10px; }
  .quiz__step { gap: 10px; }
  .quiz-card__head { margin-bottom: 10px; }
  .quiz-card--final .quiz-card__head { display: none; }
  .quiz__options--grid .quiz__option { padding: 10px 9px; font-size: 13px; gap: 7px; }
  .quiz__options--grid .quiz__option-icon { font-size: 15px; }
  .quiz__options { gap: 7px; }
  .quiz__option { padding: 11px 13px; font-size: 14px; }
  .quiz__question { font-size: 19px; }
  .quiz__hint { font-size: 12.5px; }
  .field__input { padding: 10px 12px; }
  .recap { padding: 7px; gap: 5px; }
  .recap__chip { font-size: 11px; padding: 3px 8px; }
  .assure { gap: 3px; font-size: 11.5px; }
  .quiz__next { padding: 14px; }
  .quiz-card--final .quiz__question { font-size: 17px; }
  .field { gap: 3px; }
  .field__label { font-size: 11px; }
  /* бюджет: два инпута остаются в строку — экономия высоты */
  .quiz__row { gap: 8px; }
  .trust__grid { grid-template-columns: 1fr; gap: 14px; }
  .quiz-card__meta { flex-direction: column; gap: 2px; text-align: right; }
}
