/* ============ ШРИФТЫ GILROY ============ */
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Regular-BGIKGzAk.woff2') format('woff2'),
       url('fonts/Regular-CnbBW3eK.woff') format('woff'),
       url('fonts/Regular-Drm-eTQQ.ttf') format('truetype'),
       url('fonts/Regular-CwfQy20h.eot');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Medium-B0L0cBlt.woff2') format('woff2'),
       url('fonts/Medium-BJbunviy.woff') format('woff'),
       url('fonts/Medium-Dj-JnWNf.ttf') format('truetype'),
       url('fonts/Medium-CtukZtlU.eot');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/SemiBold2-fQv7AVbs.woff2') format('woff2'),
       url('fonts/SemiBold-B1Xhmv-w.woff') format('woff'),
       url('fonts/SemiBold-C7gT_OK_.ttf') format('truetype'),
       url('fonts/SemiBold-CVNQPh30.eot');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/SemiBold2-fQv7AVbs.woff2') format('woff2'),
       url('fonts/SemiBold-B1Xhmv-w.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============ БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #0a1522;
  --card: #10202f;
  --ink: #eef2f6;
  --petrol: #c9a54f;
  --tint: #1a2c40;
  --brass: #c9a54f;
  --on-accent: #0a1522;
  --muted: #9aa9b8;
  --line: #243548;
  --err: #ff7a66;
  --r: 14px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Gilroy', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.screen { min-height: 100svh; }
.screen[hidden] { display: none !important; }

/* ============ ШАПКА ============ */
.top {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.25rem var(--pad);
}
.top__logo { width: 2.75rem; height: 2.75rem; background: #fff; border-radius: 50%; object-fit: cover; }
.top__name { font-weight: 600; font-size: 1rem; letter-spacing: .01em; }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .75rem 2.25rem;
  border: 0;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background-color .15s, transform .15s;
}
.btn--primary { background: var(--petrol); color: var(--on-accent); position: relative; }
.btn--primary:hover:not(:disabled) { background: #e0be6a; }
.btn--primary:active:not(:disabled) { transform: translateY(1px); }
.btn--submit { width: 100%; margin-top: .5rem; }
.btn--submit:disabled { opacity: .65; cursor: not-allowed; }
.btn__spinner {
  position: absolute; right: 1.25rem;
  width: 1.25rem; height: 1.25rem;
  border: 2px solid rgba(10,21,34,.3);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* шевроны вместо стрелок-символов */
.chev {
  display: inline-block;
  width: .6rem; height: .6rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: .25rem;
}
.chev--l { transform: rotate(-135deg); margin: 0 0 0 .25rem; }

/* ============ СТАРТ ============ */
.screen--start { display: flex; flex-direction: column; }

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 1rem var(--pad) 3rem;
}
.stage__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.hero__title {
  font-size: clamp(1.875rem, 3.2vw, 2.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero__text { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; max-width: 30rem; }

.band {
  width: 100%;
  aspect-ratio: 1672 / 941;
  border-radius: 20px;
  background: #0b1626 url('hand.jpg') center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line);
}

.facts {
  list-style: none;
  display: grid;
  gap: .625rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  width: 100%;
}
.facts li { position: relative; padding-left: 1.5rem; color: var(--ink); font-weight: 500; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--brass);
}

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; padding-bottom: 2rem; }
  .band { order: -1; border-radius: 16px; }
}

/* ============ ВОПРОСЫ ============ */
.screen--quiz { display: flex; flex-direction: column; }

.quiz__progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 5px; background: var(--line); z-index: 10;
}
.quiz__progress-bar { height: 100%; width: 0; background: var(--brass); transition: width .35s ease; }

.quiz__wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem var(--pad) 0;
}
.quiz__body { flex: 1; padding-bottom: 2rem; }

.quiz__question-title {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
  max-width: 24ch;
}

.quiz__options { display: grid; gap: .75rem; }

.option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow .15s, background-color .15s, border-color .15s;
}
.option:hover { box-shadow: 0 0 0 1px var(--petrol); }
.option.is-selected { background: var(--tint); border-color: var(--petrol); box-shadow: none; }

.option__radio {
  flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  border: 2px solid #4a5d73;
  position: relative;
  transition: background-color .15s, border-color .15s;
}
.option.is-selected .option__radio { background: var(--petrol); border-color: var(--petrol); }
.option.is-selected .option__radio::after {
  content: "";
  position: absolute;
  left: 50%; top: 45%;
  width: .3rem; height: .6rem;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.option__text-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.option__text-desc { color: var(--muted); font-size: .9375rem; }

.quiz__input {
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: var(--card);
  border: 0;
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line);
  outline: none;
  transition: box-shadow .15s;
}
.quiz__input::placeholder { color: #8a979c; }
.quiz__input:focus { box-shadow: 0 0 0 2px var(--petrol); }
.quiz__custom-wrap { margin-top: .75rem; animation: reveal .25s ease; }
.is-hidden { display: none !important; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.quiz__footer {
  position: sticky; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.quiz__step-label { font-size: .9375rem; color: var(--muted); margin-bottom: .5rem; }
.quiz__dots { display: flex; gap: .375rem; }
.quiz__dot { width: 1.75rem; height: .3125rem; border-radius: 3px; background: var(--line); transition: background-color .2s; }
.quiz__dot.is-done { background: var(--petrol); }
.quiz__dot.is-current { background: var(--brass); }

.quiz__nav { display: flex; gap: .625rem; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: .75rem 1.75rem;
  border: 0;
  border-radius: var(--r);
  font-weight: 600;
  transition: background-color .15s, opacity .15s;
}
.nav-btn--back { min-width: 3.25rem; padding: .75rem; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.nav-btn--back:disabled { opacity: .4; cursor: default; }
.nav-btn--back:not(:disabled):hover { box-shadow: 0 0 0 1px var(--petrol); }
.nav-btn--next { background: var(--petrol); color: var(--on-accent); }
.nav-btn--next:not(:disabled):hover { background: #e0be6a; }
.nav-btn--next:not(:disabled):hover .arrow { transform: translateX(3px) rotate(45deg); }
.nav-btn--next:disabled { background: #1b2b3d; color: #6d7d8f; cursor: not-allowed; }
.nav-btn .arrow { transition: transform .15s; }

/* ============ ФОРМА ============ */
.screen--form { display: flex; flex-direction: column; }
.form__wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem 5rem;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem var(--pad) 3rem;
}
.form__title {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.form__subtitle { color: var(--muted); font-size: 1.125rem; max-width: 30rem; }

.form__card {
  background: var(--card);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 0 0 1px var(--line);
}
.field { margin-bottom: 1.25rem; }
.field__label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: .5rem; }
.field__control {
  display: flex; align-items: center;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .15s;
}
.field__control:focus-within { box-shadow: 0 0 0 2px var(--petrol); background: var(--card); }
.field__country { padding: 0 .25rem 0 1.125rem; font-weight: 600; color: var(--muted); }
.field__control input {
  flex: 1; min-width: 0;
  padding: 1.0625rem 1.125rem;
  background: transparent; border: 0; outline: none;
}
.field__country + input { padding-left: .5rem; }
.field__control input::placeholder { color: #8a979c; }
.field__error { color: var(--err); font-size: .875rem; min-height: 1.25rem; margin-top: .375rem; }
.field.is-invalid .field__control { box-shadow: 0 0 0 2px var(--err); }

@media (max-width: 820px) {
  .form__wrap { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
}

/* ============ СПАСИБО ============ */
.screen--thanks {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.thanks__mark {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: var(--petrol);
  position: relative;
  margin-bottom: 1.75rem;
  animation: pop .4s ease;
}
.thanks__mark::after {
  content: "";
  position: absolute; left: 50%; top: 46%;
  width: .75rem; height: 1.5rem;
  border: solid var(--on-accent); border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.thanks__title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .75rem; }
.thanks__text { color: var(--muted); font-size: 1.125rem; max-width: 26rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
