/* ============================================================
   Промо-лендинг «Выиграй билеты на Summer Fest»
   Палитра и типографика — по брендбуку Casa del Tabaco:
   оранжевый #f37d20, графитовый #282827, белый #ffffff
   Шрифт — Montserrat (заголовки Bold, без italic)
   ============================================================ */

/* ---------- Шрифты (self-hosted, без внешних зависимостей) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-var-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Токены ---------- */
:root {
  --c-accent: #f37d20;      /* основной оранжевый бренда */
  --c-graphite: #282827;    /* графитовый бренда */
  --c-graphite-2: #323230;  /* карточки/поля на графите */
  --c-white: #ffffff;
  --c-text: #f4f2ef;
  --c-text-dim: #b9b7b2;
  --c-error: #ff8a5c;
  --font-head: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --container: 1080px;
  /* фирменный паттерн-зигзаг (вложенные шевроны из брендбука) */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 66' width='88' height='66'%3E%3Cg fill='none' stroke='%23f37d20' stroke-width='4'%3E%3Cpath d='M0 66 L44 22 L88 66'/%3E%3Cpath d='M12 66 L44 34 L76 66'/%3E%3Cpath d='M24 66 L44 46 L64 66'/%3E%3Cpath d='M36 66 L44 58 L52 66'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-graphite);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 720px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--c-accent); color: var(--c-graphite);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
  font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  margin: 0 0 .5em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, background-color .15s, color .15s;
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-graphite);
}
.btn--primary:hover { background: #ff8f3c; }
.btn--primary:active { transform: scale(.98); }
.btn--ghost {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.btn--ghost:hover { background: rgba(243, 125, 32, .1); }
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- Хедер ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, #3a3a38 0%, var(--c-graphite) 60%);
  overflow: hidden;
}
.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--c-accent);
  border-radius: 50%;
  color: var(--c-accent);
  font: 700 1.05rem/1 var(--font-body);
}
.age-badge--small { width: 34px; height: 34px; border-width: 2px; font-size: .8rem; }
.lang { display: flex; align-items: center; gap: 6px; }
.lang__sep { color: var(--c-text-dim); }
.lang__btn {
  background: none;
  border: none;
  padding: 8px 6px;
  font: 600 1rem var(--font-body);
  color: var(--c-text-dim);
  cursor: pointer;
}
.lang__btn[aria-pressed="true"] { color: var(--c-accent); }

.hero__body {
  text-align: center;
  padding: clamp(40px, 9vw, 88px) 20px clamp(56px, 10vw, 104px);
}
.hero__kicker {
  margin: 0 0 14px;
  color: var(--c-accent);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2rem, 7.5vw, 3.6rem);
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: .4em;
}
.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 18px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--c-text);
}
.hero__prize {
  margin: 0 auto 10px;
  font-weight: 700;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--c-accent);
}
.hero__period {
  margin: 0 auto 30px;
  color: var(--c-text-dim);
  font-size: .95rem;
}
.hero__cta { min-width: 220px; }

/* Полоса фирменного паттерна */
.pattern-strip {
  height: 44px;
  background-image: var(--pattern);
  background-repeat: repeat-x;
  background-size: 58px 44px;
  background-position: bottom center;
  opacity: .9;
}
.pattern-strip--top { transform: scaleY(-1); }

/* ---------- Секции ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section__title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  text-transform: uppercase;
  color: var(--c-white);
  text-align: center;
  margin-bottom: 1.4em;
}

/* ---------- Шаги ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.step { text-align: center; padding: 0 8px; }
.step__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: var(--c-accent);
  font: 700 1.5rem/1 var(--font-head);
}
.step__num::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid var(--c-accent);
  border-radius: 6px;
  transform: rotate(45deg);
}
.step__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-white);
  margin-bottom: .35em;
}
.step__text { margin: 0 auto; max-width: 300px; color: var(--c-text-dim); }

/* ---------- Призы ---------- */
.section--accent {
  background:
    linear-gradient(rgba(40, 40, 39, .92), rgba(40, 40, 39, .92)),
    var(--pattern);
  background-size: auto, 116px 87px;
  border-block: 1px solid #3a3a38;
}
.prizes__main {
  text-align: center;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--c-accent);
  max-width: 640px;
  margin: 0 auto 14px;
}
.prizes__draw {
  text-align: center;
  color: var(--c-text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Форма + подсказка по чеку ---------- */
.form-layout { display: grid; gap: 36px; }
.receipt-hint { text-align: center; }
.receipt-hint__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-white);
}
.receipt-hint__img {
  width: min(300px, 80%);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .35));
}
.receipt-hint__caption {
  max-width: 340px;
  margin: 12px auto 0;
  color: var(--c-text-dim);
  font-size: .95rem;
}

.form-card {
  background: var(--c-graphite-2);
  border: 1px solid #3f3f3d;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
}
.form-card__title { margin-bottom: 1em; }

.field { margin-bottom: 18px; }
.field__label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 6px;
  color: var(--c-white);
}
.field__row { display: flex; gap: 10px; }
.field__row .field__input { flex: 1; min-width: 0; }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid #4a4a48;
  background: var(--c-graphite);
  color: var(--c-white);
  font: 400 1rem var(--font-body);
  transition: border-color .15s;
}
.field__input::placeholder { color: #807e79; }
.field__input:focus {
  outline: none;
  border-color: var(--c-accent);
}
.field__input[aria-invalid="true"] { border-color: var(--c-error); }
.field__error {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-size: .85rem;
  color: var(--c-error);
}
.field__error--center { text-align: center; }

.hint-btn {
  flex: 0 0 52px;
  min-height: 52px;
  border-radius: var(--radius);
  border: 1.5px solid var(--c-accent);
  background: transparent;
  color: var(--c-accent);
  font: 700 1.2rem var(--font-body);
  cursor: pointer;
}
.hint-btn:hover { background: rgba(243, 125, 32, .12); }

/* Honeypot: уводим за экран (не display:none — боты такое замечают) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Чекбоксы */
.consents { border: 0; margin: 22px 0 6px; padding: 0; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: .95rem;
}
.check__input {
  position: absolute;
  opacity: 0;
  width: 26px; height: 26px;
}
.check__box {
  flex: 0 0 26px;
  height: 26px;
  margin-top: 1px;
  border: 2px solid #4a4a48;
  border-radius: 7px;
  position: relative;
  transition: border-color .15s, background-color .15s;
}
.check__input:checked + .check__box {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.check__input:checked + .check__box::after {
  content: "";
  position: absolute;
  left: 7px; top: 2px;
  width: 7px; height: 13px;
  border: solid var(--c-graphite);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.check__input:focus-visible + .check__box {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
.check__text a { color: var(--c-accent); }

.turnstile-box { margin: 10px 0; min-height: 0; }
.turnstile-box:not(:empty) { min-height: 68px; }

.btn--submit { width: 100%; margin-top: 10px; }
.btn--submit[disabled] { opacity: .65; cursor: not-allowed; }
.btn__spinner {
  display: none;
  width: 20px; height: 20px;
  border: 3px solid rgba(40, 40, 39, .3);
  border-top-color: var(--c-graphite);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn--submit.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Экраны результата */
.result { text-align: center; padding: 24px 0 8px; }
.result__icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--c-accent);
  position: relative;
}
.result__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}
.result__icon--ok::after {
  width: 18px; height: 32px;
  border: solid var(--c-accent);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg) translate(-2px, -4px);
}
.result__icon--fail { border-color: var(--c-error); }
.result__icon--fail::before,
.result__icon--fail::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px; height: 4px;
  border-radius: 2px;
  background: var(--c-error);
}
.result__icon--fail::before { transform: rotate(45deg); }
.result__icon--fail::after { transform: rotate(-45deg); }
.result__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-white);
}
.result__text { color: var(--c-text-dim); margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.faq__item {
  border-bottom: 1px solid #3f3f3d;
}
.faq__item:first-of-type { border-top: 1px solid #3f3f3d; }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 4px;
  font-weight: 600;
  color: var(--c-white);
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 10px; height: 10px;
  border: solid var(--c-accent);
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(225deg); }
.faq__a { margin: 0 0 18px; padding: 0 4px; color: var(--c-text-dim); }

/* ---------- Футер ---------- */
.footer { background: #1f1f1e; }
.footer__body {
  text-align: center;
  padding: 36px 20px 44px;
  font-size: .92rem;
  color: var(--c-text-dim);
}
.footer__organizer { color: var(--c-text); font-weight: 600; margin: 0 0 6px; }
.footer__contacts { margin: 0 0 14px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0 0 18px; }
.footer__age {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

/* ---------- Модалки ---------- */
.dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid #4a4a48;
  border-radius: 16px;
  background: var(--c-graphite-2);
  color: var(--c-text);
  padding: 0;
}
.dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}
.dialog__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-white);
  margin: 4px 0 0;
}
.dialog__close {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--c-text-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.dialog__close:hover { color: var(--c-white); background: rgba(255, 255, 255, .06); }
.dialog__body { padding: 12px 20px 24px; }

/* ---------- Десктоп ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .receipt-hint { order: 2; position: sticky; top: 24px; }
  .form-card { order: 1; }
}
