/* Montserrat — открытая замена фирменной Geometria (Евролос) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-500-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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-600-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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-700-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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-800-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-800-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 {
  /* фирменный стиль Евролос: жёлтый + чёрный на белом */
  --accent: #FFDC04;
  --accent-top: #FFE500;
  --accent-bottom: #FED200;
  --accent-base: #CAAE25;
  --accent-soft: #FFF9D6;
  --accent-ring: rgba(255, 220, 4, .55);
  --danger: #D7261E;
  --danger-soft: #FFF3F2;
  --ink: #222222;
  --ink-2: #333333;
  --muted: #666666;
  --line: #E2E2E2;
  --ring: #BDBDBD;
  --track: #EEEEEE;
  --surface: #F4F4F4;
  --bg: #FFFFFF;
  --radius: 6px;
  --gutter: 20px;
  --col: 600px;
  --font: Montserrat, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--ink); text-decoration-color: var(--accent-base); text-underline-offset: 2px; }
a:hover { color: #000; text-decoration-color: var(--ink); }
h1, p { margin: 0; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.noscript { padding: 16px var(--gutter); background: var(--accent-soft); font-weight: 600; }

/* ---------- экраны ---------- */
.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}
.screen.is-active { display: flex; animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- кнопка ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  /* фирменная жёлтая кнопка Евролоса: градиент + «подложка» снизу */
  background: linear-gradient(180deg, var(--accent-top) 0%, var(--accent-bottom) 100%);
  box-shadow: 0 4px 0 var(--accent-base), 0 6px 14px rgba(0, 0, 0, .12);
  color: #000000;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s, background .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-base), 0 3px 8px rgba(0, 0, 0, .12); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-base); }
.btn[aria-disabled="true"] { background: var(--track); box-shadow: none; color: #9A9A9A; cursor: default; transform: none; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* нижняя панель с кнопкой — всегда под пальцем */
.dock {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 16px 0 calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF 18px);
  z-index: 2;
}

.dock__row { display: flex; gap: 10px; }
.dock__row .btn { flex: 1; }
.dock__row .btn--back { flex: 0 0 auto; width: auto; gap: 6px; padding: 0 18px 0 14px; border: 1.5px solid var(--line); background: var(--bg); box-shadow: none; color: var(--ink); }
.btn--back:hover, .btn--back:active { background: var(--surface); box-shadow: none; transform: none; }
.btn--back[hidden] { display: none; }
.btn--back svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 380px) { .btn--back span { display: none; } .dock__row .btn--back { padding: 0 16px; } }

/* ---------- шапка ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
}
.topbar__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__logo { display: block; flex-shrink: 0; width: 104px; height: auto; }
.topbar__title { display: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.topbar__meta { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------- старт ---------- */
.start {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.start__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  margin-top: 8px;
}
.start__media img { width: 300px; height: 300px; object-fit: contain; mix-blend-mode: multiply; }
.start__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  padding: 8px var(--gutter) 0;
}
.start__title { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
/* выделение ключевых слов маркером, как .st на eurolos.ru */
.hl {
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.start__lead { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.start__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding: 12px 0 22px;
}
.start__note { font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom));
  font-size: 12px;
}
.legal a { color: var(--muted); font-weight: 600; }

@media (min-width: 960px) {
  .topbar { padding: 28px 24px 0; }
  .topbar__meta { font-size: 14px; }
  .topbar__logo { width: 124px; }
  .topbar__title { display: block; padding-left: 14px; border-left: 1.5px solid var(--line); }
  .start {
    flex-direction: row-reverse;
    align-items: center;
    gap: 48px;
    padding: 48px 24px 56px;
  }
  .start__media { flex: 1 1 420px; height: 520px; margin: 0; }
  .start__media img { width: 100%; max-width: 520px; height: 520px; }
  .start__body { flex: 1 1 440px; gap: 24px; padding: 0; }
  .start__title { font-size: 46px; line-height: 1.08; letter-spacing: -.02em; max-width: 620px; }
  .start__lead { font-size: 18px; max-width: 560px; }
  .start__cta { align-items: flex-start; gap: 12px; margin: 0; padding: 0; }
  .start__cta .btn { width: auto; height: 60px; padding: 0 36px; font-size: 18px; }
  .start__note { font-size: 13px; text-align: left; }
  .legal { justify-content: flex-start; padding: 0 24px 28px; font-size: 13px; }
}

/* ---------- прогресс ---------- */
.progress { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.progress__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress__step { font-size: 13px; font-weight: 700; }
.progress__eta { font-size: 13px; font-weight: 600; color: var(--muted); }
.progress__track { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .35s ease; }

/* ---------- вопрос ---------- */
.question { display: flex; flex-direction: column; gap: 16px; padding: 28px 0 8px; }
.question.is-entering { animation: enter .28s ease-out; }
.question__head { display: flex; flex-direction: column; gap: 8px; }
.question__title { font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
/* заголовок получает фокус программно — для скринридера, рамка не нужна */
[tabindex="-1"]:focus { outline: none; }
.question__hint { font-size: 14px; font-weight: 600; color: var(--muted); }
.options { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: var(--ring); }
.opt.is-on { border-color: var(--accent-bottom); background: var(--accent-soft); }
.opt__text { font-size: 16px; line-height: 1.35; font-weight: 600; }
.options--long .opt__text { font-size: 15px; }

/* нативный input скрыт визуально, но доступен клавиатуре и скринридеру */
.opt input, .chip input, .consent input, .gift input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.opt:has(input:focus-visible), .chip:has(input:focus-visible), .gift:has(input:focus-visible), .consent:has(input:focus-visible) .box {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ring);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 3px #FFFFFF;
  transition: border-color .15s, background-color .15s;
}
.is-on > .mark { border-color: var(--ink); background: var(--accent); }

.box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ring);
  border-radius: 6px;
  background: var(--bg);
  transition: border-color .15s, background-color .15s;
}
.box svg { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.is-on > .box { border-color: var(--accent-bottom); background: var(--accent); }
.is-on > .box svg { opacity: 1; }

.opt-other { margin-top: -2px; }
.opt-other[hidden] { display: none; }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { padding: 0; font-size: 13px; font-weight: 700; }
fieldset.field > .field__label { margin-bottom: 6px; }
.field__note { font-size: 14px; line-height: 1.4; color: var(--muted); }
.field__opt { font-weight: 600; color: var(--muted); }
.req { color: var(--danger); }
.field__error { font-size: 13px; font-weight: 600; color: var(--danger); }
.field__error--consent { margin-top: -10px; }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}
.input--lg { height: 56px; }
.input::placeholder { color: #9AA0A6; font-weight: 500; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-ring); }
.input:disabled { background: var(--surface); border-color: var(--line); }
.input:disabled::placeholder { color: #C2C7CD; }
.input.is-invalid { border-color: var(--danger); background: var(--danger-soft); }

/* ---------- контакты ---------- */
.contacts { display: flex; flex-direction: column; gap: 18px; padding: 24px 0 8px; }
.contacts__lead { font-size: 15px; line-height: 1.45; color: var(--ink-2); }

.chips { display: flex; gap: 8px; }
.chip { position: relative; flex: 1; cursor: pointer; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .15s, background-color .15s;
}
.chip.is-on span { border-color: var(--accent-bottom); background: var(--accent-soft); }

.gifts__track {
  display: flex;
  gap: 10px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.gifts__track::-webkit-scrollbar { display: none; }
.gift {
  position: relative;
  display: flex;
  flex: 0 0 272px;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scroll-snap-align: start;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.gift.is-on { border-color: var(--accent-bottom); background: var(--accent-soft); }
.gift__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  border-radius: var(--radius);
  background: #FFFFFF;
  overflow: hidden;
}
.gift__img img { max-height: 138px; max-width: 90%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.gift__img svg { width: 64px; height: 64px; color: var(--ring); }
.gift__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gift__name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.gift__desc { font-size: 12px; line-height: 1.35; color: var(--muted); }
.gift__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.gift__link:hover { color: var(--ink); border-color: var(--ring); }
.gift__link svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gift > .mark { position: absolute; top: 20px; right: 20px; }
.gifts__foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); }
.gifts__dots { display: flex; gap: 5px; }
.gifts__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--ring); transition: background-color .15s; }
.gifts__dots i.is-on { background: var(--ink); }

@media (min-width: 640px) {
  .gifts__track { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 2px 0 0; overflow: visible; }
  .gift { flex: none; }
  .gift__img { height: 130px; }
  .gift__img img { max-height: 118px; }
  .gift > .mark { top: 18px; right: 18px; }
  .gifts__foot { display: none; }
}

.consent { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent .box { margin-top: 1px; }
.consent__text { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.consent__text a { font-weight: 700; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- финал ---------- */
.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-grow: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.final__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--accent);
}
.final__icon svg { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.final__title { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; outline: none; }
.final__text { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.final__note {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.final__foot { padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); text-align: center; }

@media (min-width: 640px) {
  .question { padding-top: 40px; }
  .question__title { font-size: 28px; }
}

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