/* =========================================================
   LUCKY ЛОТО — мобильный лендинг
   ========================================================= */

:root {
  --bg: #EFEFF5;
  --card: #FFFFFF;
  --ink: #1B1840;
  --ink-2: #3D3961;
  --muted: #7C7899;
  --field: #F3F2F8;
  --line: #E2E0EC;
  --orange: #FF5A1F;
  --orange-ink: #E5480F;
  --peach: #FFF0E8;
  --peach-line: #FFD3BF;
  --red: #D9433A;
  --red-line: #F0A3A3;
  --navy: #1B1840;

  --grad-hero: linear-gradient(118deg, #FF4A17 0%, #FF6A1A 45%, #FF9420 100%);
  --grad-btn: linear-gradient(180deg, #FF8030 0%, #F4550F 100%);
  --grad-num: linear-gradient(180deg, #FF8A1E 0%, #FF4A17 100%);
  --grad-navy:
    radial-gradient(120% 90% at 85% 25%, rgba(98, 70, 235, .55) 0%, rgba(98, 70, 235, 0) 55%),
    linear-gradient(160deg, #1D1A4E 0%, #261F66 60%, #2A2174 100%);

  --font-d: 'Unbounded', system-ui, sans-serif;
  --font-b: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 18px;
  --header-h: 62px;
  --r-xl: 26px;
  --r-lg: 24px;
  --r-md: 18px;
  --shadow-card: 0 6px 22px rgba(27, 24, 64, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px / 1.5 var(--font-b);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.page, .header__inner, .footer__inner { width: 100%; max-width: 480px; margin: 0 auto; }
.page { padding: 0 var(--gutter) 40px; }

/* ---------- логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__lucky {
  display: inline-block;
  padding: 5px 9px 4px;
  border-radius: 9px;
  background: linear-gradient(100deg, #FF4A17, #FF9A1F);
  box-shadow: 0 6px 14px rgba(255, 90, 31, .35);
  transform: rotate(-7deg);
  font: 800 11px / 1 var(--font-d);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.logo__word {
  display: inline-flex;
  align-items: center;
  font: 800 25px / 1 var(--font-d);
  letter-spacing: -.01em;
  color: var(--ink);
}
.ball {
  position: relative;
  display: inline-block;
  width: .78em;
  height: .78em;
  margin: 0 .03em;
  border-radius: 50%;
}
.ball::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background: #fff;
}
.ball--orange { background: radial-gradient(circle at 32% 28%, #FFB27A 0%, #FF6A1F 50%, #D63E0C 100%); }
.ball--blue { background: radial-gradient(circle at 32% 28%, #9AD8FF 0%, #2E8CFF 50%, #1659D6 100%); }
.logo--light .logo__word { color: #fff; }

/* ---------- шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 239, 245, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 8px 24px rgba(27, 24, 64, .08); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.btn-head {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--grad-btn);
  box-shadow: 0 8px 18px rgba(255, 90, 31, .32);
  font: 700 11px / 1 var(--font-d);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  transition: transform .15s;
}
.btn-head:active { transform: scale(.96); }

/* ---------- главная кнопка ---------- */
.btn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--grad-btn);
  box-shadow: 0 10px 24px rgba(244, 85, 15, .35), inset 0 -3px 0 rgba(160, 40, 0, .18);
  font: 800 13.5px / 1 var(--font-d);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  transition: transform .15s, opacity .2s;
}
.btn-cta:active { transform: scale(.98); }
.btn-cta__arrow { font-size: 18px; stroke-width: 2.4; }
.btn-cta__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-cta.is-loading { opacity: .62; pointer-events: none; }
.btn-cta.is-loading .btn-cta__spinner { display: block; }
.btn-cta.is-loading .btn-cta__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- перелив на кнопках ---------- */
.btn-head,
.btn-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-head::after,
.btn-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 60%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .15) 30%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, .15) 70%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
  animation: shine 3.2s ease-in-out infinite;
}
.btn-head::after { animation-delay: 1.6s; }
.btn-cta.is-loading::after { animation: none; opacity: 0; }
@keyframes shine {
  0% { transform: translateX(-120%) skewX(-20deg); }
  45%, 100% { transform: translateX(260%) skewX(-20deg); }
}

/* ---------- первый экран ---------- */
.hero {
  margin-top: 6px;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(255, 90, 31, .22);
}
.hero__photo {
  height: 223px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  background: #cfd3dc;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__panel {
  position: relative;
  margin-top: -21px;
  padding: 22px 20px 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255, 190, 120, .35) 0%, rgba(255, 190, 120, 0) 60%),
    var(--grad-hero);
  color: #fff;
}
.hero__draw { font: 600 12px / 1.3 var(--font-b); opacity: .95; }
.hero__title {
  margin-top: 10px;
  font: 800 25px / 1.08 var(--font-d);
  letter-spacing: -.01em;
}
.hero__text { margin-top: 10px; font-size: 14.5px; line-height: 1.5; opacity: .95; }
.hero__divider {
  position: relative;
  height: 1px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .5) 0 calc(50% - 14px), transparent calc(50% - 14px) calc(50% + 14px), rgba(255, 255, 255, .5) calc(50% + 14px));
}
.hero__divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero__price { display: flex; align-items: baseline; gap: 8px; font: 800 19px / 1 var(--font-d); }
.hero__price b { font-size: 52px; letter-spacing: -.02em; line-height: .9; }
.hero__price-label {
  margin-top: 10px;
  font: 700 11px / 1 var(--font-d);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
}
.hero .btn-cta { margin-top: 22px; }

/* ---------- плашки-факты ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.stat {
  padding: 10px 10px 12px;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.stat__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--peach);
  color: var(--orange);
  font-size: 16px;
}
.stat__value { display: block; margin-top: 9px; font: 700 14px / 1.2 var(--font-d); white-space: nowrap; }
.stat__label { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ---------- заголовки секций ---------- */
.section { margin-top: 34px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 800 16px / 1 var(--font-d);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-title svg { font-size: 19px; color: var(--orange); stroke-width: 2; }
.section-title::after {
  content: "";
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: linear-gradient(90deg, #D9D6E6, rgba(217, 214, 230, 0));
}

/* ---------- призы ---------- */
.prize {
  position: relative;
  height: 248px;
  margin-bottom: 12px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #2a2754;
  color: #fff;
  isolation: isolate;
}
.prize--main { height: 317px; }
/* низ исходных фото размыт: --sharp — доля высоты, где начинается размытие.
   Картинка вытягивается вниз так, чтобы граница ушла на --fit высоты карточки, под самое тёмное затемнение */
.prize__img {
  --fit: .88;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% * var(--fit) / var(--sharp, var(--fit)));
  object-fit: cover;
  object-position: var(--pos, 50%) 0;
  z-index: -2;
}
.prize::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 52, 0) 38%, rgba(20, 17, 52, .45) 66%, rgba(20, 17, 52, .82) 100%);
}
.prize__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 11px 6px;
  border-radius: 999px;
  background: rgba(40, 38, 72, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 11px / 1.2 var(--font-d);
}
.prize__ribbon {
  position: absolute;
  right: 0;
  top: 0;
  padding: 10px 15px 9px;
  border-radius: 0 0 0 18px;
  background: linear-gradient(100deg, #FF4A17, #FF9420);
  font: 800 11px / 1 var(--font-d);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.prize__body { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.prize__title { font: 800 25px / 1.05 var(--font-d); letter-spacing: -.01em; }
.prize--main .prize__title {
  font-size: 31px;
  background: linear-gradient(180deg, #FFE474 0%, #FFB21C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prize__text { margin-top: 7px; font-size: 14px; line-height: 1.4; opacity: .9; }

/* ---------- видео-кружки (механика Telegram Desktop) ---------- */
.reviews {
  --rw: 128px;      /* кружок в ленте */
  --rw-big: 208px;  /* кружок во время воспроизведения */
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews.is-playing { scroll-snap-type: none; }
.review {
  position: relative;
  flex: none;
  width: var(--rw);
  text-align: center;
  scroll-snap-align: start;
  transition: width .4s var(--ease);
}
.review.is-active { width: var(--rw-big); }
.review__ring {
  position: relative;
  display: block;
  width: calc(var(--rw) - 2px);
  height: calc(var(--rw) - 2px);
  margin: 0 auto;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #FF8A1E, #B44BC9, #5A55F0, #3C7CFF, #6A5AE8, #E8532A, #FF8A1E);
  transition: width .4s var(--ease), height .4s var(--ease), transform .2s var(--ease);
}
/* во время воспроизведения цветное кольцо уступает место дорожке прогресса */
.review__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #E4E1EF;
  opacity: 0;
  transition: opacity .3s;
}
.review.is-active .review__ring {
  width: calc(var(--rw-big) - 4px);
  height: calc(var(--rw-big) - 4px);
  touch-action: none;
}
.review.is-active .review__ring::before { opacity: 1; }
.review:not(.is-active):active .review__ring { transform: scale(.96); }
.review__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 22px rgba(27, 24, 64, .16);
  transform: translateZ(0);
  transition: box-shadow .4s;
}
.review.is-active .review__face { box-shadow: 0 16px 34px rgba(27, 24, 64, .24); }
.review__face--orange { background-color: #FF6A1A; background-image: linear-gradient(135deg, #FF4A17, #FF9A1F); }
.review__face--blue { background-color: #1E88F5; background-image: linear-gradient(135deg, #27B5FF, #1460F0); }
.review__face--purple { background-image: linear-gradient(135deg, #9C6BFF, #5B3BEA); }
.review__face video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.review__cam { font-size: 36px; color: #fff; stroke-width: 1.8; opacity: .95; }
.review__face video ~ .review__cam { display: none; }
.review.is-broken .review__face video { display: none; }
.review.is-broken .review__cam { display: block; }

.review__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.review.is-active .review__progress { opacity: 1; }
.review__progress circle {
  fill: none;
  stroke: url(#g-progress);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
}

.review__state {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(14, 12, 38, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none;
}
.review__state svg { fill: currentColor; stroke: none; margin-left: 3px; }
.review__state.is-muted svg { fill: none; stroke: currentColor; margin-left: 0; }
.review__state.is-visible { opacity: 1; transform: none; }
.review__time {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 12, 38, .55);
  font: 600 11px / 1.3 var(--font-b);
  font-variant-numeric: tabular-nums;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .25s, transform .25s var(--ease);
  pointer-events: none;
}
.review.is-active .review__time { opacity: 1; transform: translate(-50%, 0); }

.review__play {
  position: absolute;
  right: 2px;
  top: calc(var(--rw) * .72);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(27, 24, 64, .18);
  color: var(--orange);
  font-size: 13px;
  transition: opacity .2s, transform .25s var(--ease);
}
.review__play svg { fill: currentColor; stroke: none; margin-left: 2px; }
.review.is-active .review__play { opacity: 0; transform: scale(.4); }
.review__name {
  display: block;
  margin-top: 12px;
  font: 600 12px / 1.25 var(--font-d);
  color: var(--ink);
  white-space: nowrap;
}
.review__meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- правила ---------- */
.steps { display: grid; gap: 10px; }
.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  padding: 18px 12px 18px 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.step__num {
  font: 800 30px / 1 var(--font-d);
  letter-spacing: -.02em;
  background: var(--grad-num);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step__title { font: 700 14.5px / 1.3 var(--font-d); }
.step__text { margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ---------- остались вопросы ---------- */
.help {
  margin-top: 12px;
  padding: 22px 18px 20px;
  border-radius: var(--r-lg);
  background: var(--grad-navy);
  box-shadow: 0 16px 34px rgba(27, 24, 64, .25);
  color: #fff;
}
.help__title { font: 800 19px / 1.2 var(--font-d); }
.help__text { margin-top: 6px; font-size: 14px; opacity: .7; }
.help__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.msg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 14px;
  font: 700 13px / 1 var(--font-d);
  color: #fff;
  transition: transform .15s;
}
.msg-btn:active { transform: scale(.97); }
.msg-btn[aria-disabled="true"] { opacity: .5; cursor: default; box-shadow: none; }
.msg-btn[aria-disabled="true"]:active { transform: none; }
.msg-btn svg { font-size: 18px; }
.msg-btn--tg { background: linear-gradient(180deg, #30B2F6 0%, #1C8AE0 100%); box-shadow: 0 8px 18px rgba(28, 138, 224, .3); }
.msg-btn--viber { background: linear-gradient(180deg, #8766F8 0%, #6A4BE6 100%); box-shadow: 0 8px 18px rgba(106, 75, 230, .3); }
.help__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .82);
}
.help__row + .help__row { margin-top: 12px; }
.help__row svg { font-size: 17px; color: #FF8A4A; }
.help__row--link span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .45); }

/* ---------- таймер ---------- */
.countdown {
  padding: 20px 14px 18px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 55% at 30% 0%, rgba(255, 110, 60, .28) 0%, rgba(255, 110, 60, 0) 70%),
    radial-gradient(80% 80% at 70% 40%, rgba(110, 80, 240, .45) 0%, rgba(110, 80, 240, 0) 65%),
    linear-gradient(160deg, #1C194B 0%, #261F68 100%);
  box-shadow: 0 16px 34px rgba(27, 24, 64, .25);
  color: #fff;
  text-align: center;
}
.countdown__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 11px / 1 var(--font-d);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FFA25E;
}
.countdown__label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF5A1F;
  box-shadow: 0 0 0 0 rgba(255, 90, 31, .55);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); }
}
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 16px; }
.countdown__cell {
  padding: 13px 0 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}
.countdown__cell b {
  display: block;
  font: 800 28px / 1 var(--font-d);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFC48E 0%, #FF7A33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown__cell span { display: block; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.countdown__foot { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.countdown.is-over .countdown__label i { animation: none; background: #8a86a8; }

/* ---------- незавершённая заявка ---------- */
.pending {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 16px 16px 16px;
  border: 1.5px solid var(--peach-line);
  border-radius: 22px;
  background: #FFF1EA;
  animation: pop-in .45s var(--ease);
}
.pending__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF4A17, #FF9420);
  color: #fff;
  font-size: 20px;
}
.pending__body { flex: 1; min-width: 0; }
.pending__title { display: block; font: 700 14px / 1.25 var(--font-d); }
.pending__sub { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.pending__arrow { font-size: 20px; color: var(--orange); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- форма ---------- */
.form {
  margin-top: 12px;
  padding: 26px 18px 24px;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.form__title { font: 800 22px / 1.15 var(--font-d); letter-spacing: -.01em; }
.form__text { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.field { margin-top: 16px; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font: 700 10.5px / 1 var(--font-d);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--field);
  font: 500 17px / 1 var(--font-b);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder, .field__input input::placeholder { color: #B3B0C8; opacity: 1; }
.field__input:focus, .field__input:focus-within { border-color: var(--orange); background: #fff; }
.field__input--phone { display: flex; align-items: center; gap: 10px; }
.field__prefix { font: 700 16px / 1 var(--font-d); color: var(--ink); }
.field__input--phone input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  outline: none;
}
.field__error { display: none; margin-top: 7px; font-size: 13px; color: var(--red); }
.field__hint { margin-top: 7px; font-size: 12px; color: var(--muted); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .field__input { border-color: var(--red-line); }
.field.is-invalid .choice__btn { border-color: var(--red-line); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--field);
  font: 700 13px / 1 var(--font-d);
  color: var(--ink);
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice__btn svg { font-size: 17px; }
.choice__btn[aria-checked="true"] { border-color: var(--orange); background: var(--peach); color: var(--orange-ink); }

.agree { display: flex; gap: 12px; margin-top: 18px; cursor: pointer; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid #CFCBE0;
  border-radius: 7px;
  background: #fff;
  color: #fff;
  font-size: 14px;
  transition: background-color .15s, border-color .15s;
}
.agree__box svg { stroke-width: 3; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.agree input:checked + .agree__box { border-color: var(--orange); background: var(--orange); }
.agree input:checked + .agree__box svg { opacity: 1; transform: none; }
.agree input:focus-visible + .agree__box { outline: 2px solid var(--orange); outline-offset: 2px; }
.agree.is-invalid .agree__box { border-color: var(--red); animation: shake .35s; }
.agree__text { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.agree__text a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.btn-cta--submit { margin-top: 22px; height: 54px; font-size: 14px; }
.form__note { display: flex; gap: 10px; margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.form__note svg { margin-top: 3px; font-size: 15px; color: var(--orange); }

/* ---------- вопросы и ответы ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px 12px 16px;
  border-radius: 20px;
  text-align: left;
  font: 600 15px / 1.35 var(--font-b);
  color: var(--ink);
  transition: background-color .25s;
}
.faq__q:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.faq__toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--peach);
  color: var(--orange);
  font-size: 16px;
  transition: transform .3s var(--ease);
}
.faq__toggle svg { stroke-width: 2.2; }
.faq__item.is-open .faq__toggle { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq__a > p { overflow: hidden; padding: 0 16px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding-bottom: 18px; }

/* ---------- подвал ---------- */
.footer {
  margin-top: 30px;
  padding: 30px 0 calc(110px + env(safe-area-inset-bottom));
  border-radius: 32px 32px 0 0;
  background: var(--navy);
  color: #fff;
}
.footer__inner { padding: 0 var(--gutter); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.footer__age {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .78);
}
.footer__age-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 2px solid #FF6A2A;
  border-radius: 50%;
  font: 700 12px / 1 var(--font-d);
  color: #FF7A3A;
}
.footer__legal { margin-top: 18px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .45); }
.footer__legal + .footer__legal { margin-top: 12px; }
.footer__org { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__org-name { font: 600 14px / 1.4 var(--font-b); color: rgba(255, 255, 255, .78); }
.footer__org .footer__legal { margin-top: 10px; }
.footer__org + .footer__legal { margin-top: 18px; }

/* ---------- липкая кнопка ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 24px, 456px);
  padding: 9px 9px 9px 18px;
  border-radius: 22px;
  background: rgba(27, 24, 64, .96);
  box-shadow: 0 14px 34px rgba(27, 24, 64, .35);
  color: #fff;
  transform: translate(-50%, calc(100% + 24px));
  transition: transform .4s var(--ease);
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
.sticky-cta__price b { display: block; font: 800 18px / 1.1 var(--font-d); }
.sticky-cta__price span { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.btn-cta--small { width: auto; flex: none; height: 46px; padding: 0 20px; font-size: 12px; box-shadow: 0 6px 16px rgba(244, 85, 15, .4); }

/* ---------- уведомление ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(27, 24, 64, .94);
  box-shadow: 0 10px 26px rgba(27, 24, 64, .3);
  font: 600 13px / 1.3 var(--font-b);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { font-size: 15px; color: #6BE38E; stroke-width: 2.6; }

.confetti { position: fixed; inset: 0; z-index: 130; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Viber не открылся ---------- */
.viber-sheet {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(27, 24, 64, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in .2s ease;
}
@media (min-width: 560px) { .viber-sheet { align-items: center; } }
@keyframes fade-in { from { opacity: 0; } }
.viber-sheet__card {
  position: relative;
  width: min(100%, 420px);
  padding: 26px 20px 18px;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: 0 24px 60px rgba(27, 24, 64, .3);
  text-align: center;
  animation: pop-in .3s var(--ease);
}
.viber-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--field);
  font-size: 14px;
  color: var(--ink-2);
}
.viber-sheet__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8766F8 0%, #6A4BE6 100%);
  box-shadow: 0 8px 18px rgba(106, 75, 230, .3);
  color: #fff;
  font-size: 26px;
}
.viber-sheet__title { margin-top: 14px; font: 800 19px / 1.25 var(--font-d); }
.viber-sheet__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.viber-sheet__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 7px 7px 7px 16px;
  border-radius: 16px;
  background: var(--field);
}
.viber-sheet__number b { font: 700 16px / 1.2 var(--font-d); white-space: nowrap; user-select: all; }
.viber-sheet__copy {
  flex: none;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
  font: 600 13px / 1 var(--font-b);
  color: #6A4BE6;
}
.viber-sheet__open { margin-top: 12px; }
.viber-sheet__download {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Адаптивность: телефоны → планшеты → компьютеры.
   Раскладка меняется по ширине окна; data-device и is-touch
   (js/device.js) отвечают только за поправки под само устройство.
   ========================================================= */
:root { --container: 480px; }
.page, .header__inner, .footer__inner { max-width: var(--container); }
/* iPhone с вырезом в горизонтальном положении: контент не уходит под вырез */
.page, .header__inner, .footer__inner {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.header__nav { display: none; }
.for-desktop { display: none; }
[data-device="desktop"] .for-desktop { display: inline; }
[data-device="desktop"] .for-touch { display: none; }
.hero__photo { height: clamp(223px, 44vw, 300px); }

/* большие телефоны и маленькие планшеты */
@media (min-width: 560px) {
  :root { --container: 560px; }
}

/* планшеты и телефоны в горизонтальном положении */
@media (min-width: 700px) {
  :root { --container: 760px; --gutter: 28px; --header-h: 68px; }
  .logo__word { font-size: 27px; }
  .btn-head { height: 44px; padding: 0 20px; font-size: 12px; }

  .hero { margin-top: 12px; border-radius: 28px; }
  .hero__photo { height: 330px; border-radius: 28px 28px 0 0; }
  .hero__photo img { object-position: 50% 35%; }
  .hero__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 36px;
    align-items: end;
    margin-top: -26px;
    padding: 30px 32px;
    border-radius: 28px;
  }
  .hero__draw { grid-area: 1 / 1; font-size: 13px; }
  .hero__title { grid-area: 2 / 1; font-size: 34px; }
  .hero__text { grid-area: 3 / 1 / 5 / 2; align-self: start; max-width: 400px; font-size: 15.5px; }
  .hero .hero__divider { display: none; }
  .hero__price { grid-area: 1 / 2 / 3 / 3; justify-content: flex-end; }
  .hero__price b { font-size: 60px; }
  .hero__price-label { grid-area: 3 / 2; text-align: right; }
  .hero .btn-cta { grid-area: 4 / 2; width: 260px; margin-top: 16px; }

  .stats { gap: 12px; margin-top: 14px; }
  .stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 16px 18px;
  }
  .stat__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
  .stat__value { margin-top: 0; font-size: 17px; }
  .stat__label { margin-top: 2px; font-size: 13px; }

  .section { margin-top: 52px; }
  .section-title { margin-bottom: 20px; font-size: 19px; }
  .section-title svg { font-size: 22px; }

  #prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #prizes > .section-title { grid-column: 1 / -1; margin-bottom: 4px; }
  .prize, .prize--main { height: 270px; margin-bottom: 0; }
  .prize--main .prize__title { font-size: 30px; }

  .reviews { --rw: 150px; --rw-big: 236px; justify-content: center; gap: 44px; margin: 0; padding: 10px 0; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: 14px; align-content: start; padding: 22px 20px 24px; }
  .step__num { font-size: 34px; }
  .step__title { font-size: 15.5px; }
  .step__text { font-size: 14.5px; }

  .help {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    align-items: center;
    margin-top: 16px;
    padding: 26px 28px;
  }
  .help__title { grid-area: 1 / 1; font-size: 22px; }
  .help__text { grid-area: 2 / 1; }
  .help__buttons { grid-area: 1 / 2 / 3 / 3; margin-top: 0; }
  .help__row, .help__row + .help__row { grid-row: 3; margin-top: 20px; }
  .help__row { grid-column: 1; }
  .help__row--link { grid-column: 2; }

  .countdown { padding: 24px 24px 22px; }
  .countdown__grid { gap: 12px; }
  .countdown__cell b { font-size: 34px; }
  .form { padding: 32px 32px 30px; }
  .form__title { font-size: 26px; }

  .faq__q { min-height: 64px; padding: 14px 18px 14px 22px; font-size: 16px; }
  .faq__a > p { padding: 0 22px; font-size: 15px; }

  .footer { margin-top: 56px; padding-top: 40px; border-radius: 36px 36px 0 0; }
  /* лишнюю высоту правой колонки забирает последняя строка, а не промежутки слева */
  #footer .footer__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 40px; align-items: start; }
  #footer .footer__inner > * { grid-column: 1; }
  #footer .footer__org { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; padding-top: 0; border-top: 0; }
  #footer .footer__inner > .footer__legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* компьютеры, ноутбуки, iPad в горизонтальном положении */
@media (min-width: 1024px) {
  :root { --container: 1180px; --gutter: 32px; --header-h: 76px; }
  .logo__lucky { font-size: 12px; }
  .logo__word { font-size: 28px; }
  .header__nav { display: flex; align-items: center; gap: 32px; margin: 0 32px 0 auto; }
  .header__nav a { padding: 8px 0; font: 600 14.5px / 1 var(--font-b); color: var(--ink-2); transition: color .15s; }

  .hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(255, 90, 31, .2);
  }
  .hero__photo { position: relative; height: auto; min-height: 420px; border-radius: 32px 0 0 32px; }
  /* оранжевая полоса внизу исходного фото уходит за край */
  .hero__photo img { position: absolute; inset: 0; height: 111%; object-position: 50% 0; }
  .hero__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    margin: 0 0 0 -32px;
    padding: 46px 52px 44px 60px;
    border-radius: 32px;
  }
  .hero__draw { font-size: 14px; }
  .hero__title { margin-top: 14px; font-size: clamp(38px, 3.5vw, 46px); }
  .hero__text { max-width: 440px; margin-top: 14px; font-size: 17px; }
  .hero .hero__divider { display: block; max-width: 440px; margin: 26px 0 22px; }
  .hero__price { justify-content: flex-start; }
  .hero__price b { font-size: 68px; }
  .hero__price-label { text-align: left; }
  .hero .btn-cta { width: 100%; max-width: 380px; height: 58px; margin-top: 28px; font-size: 14.5px; }

  .stats { gap: 16px; margin-top: 16px; }
  .stat { padding: 20px 24px; }
  .stat__icon { width: 50px; height: 50px; border-radius: 15px; font-size: 22px; }
  .stat__value { font-size: 20px; }
  .stat__label { font-size: 14px; }

  .section { margin-top: 72px; }
  .section-title { margin-bottom: 24px; font-size: 22px; }
  .section-title svg { font-size: 24px; }

  #prizes { gap: 20px; }
  .prize, .prize--main { height: 330px; }
  .prize__badge { top: 18px; left: 18px; }
  .prize__body { left: 24px; right: 24px; bottom: 22px; }
  .prize__title { font-size: 28px; }
  .prize--main .prize__title { font-size: 36px; }
  .prize__text { font-size: 15px; }

  .reviews { --rw: 168px; --rw-big: 260px; gap: 56px; }
  .review__name { font-size: 13px; }
  .review__meta { font-size: 13px; }

  .steps { gap: 20px; }
  .step { padding: 28px 26px 30px; }
  .step__num { font-size: 40px; }
  .step__title { font-size: 17px; }
  .step__text { font-size: 15px; }
  .help { margin-top: 20px; padding: 32px 36px; column-gap: 48px; }
  .help__title { font-size: 24px; }
  .help__text { font-size: 15px; }

  #apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 24px; align-items: start; }
  #apply > .section-title { grid-column: 1 / -1; }
  .apply__aside { position: sticky; top: calc(var(--header-h) + 20px); }
  .form { margin-top: 0; padding: 36px 36px 32px; }
  .countdown { padding: 28px 26px 26px; }
  .countdown__cell b { font-size: 38px; }

  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }

  .footer { margin-top: 80px; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
  #footer .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 64px; }

  /* на компьютере кнопка «Участвовать» всегда видна в шапке */
  .sticky-cta { display: none; }
  .toast { bottom: calc(32px + env(safe-area-inset-bottom)); }
}

/* большие мониторы */
@media (min-width: 1440px) {
  :root { --container: 1240px; }
}

/* телефон в горизонтальном положении: экран низкий, липкая панель закрыла бы контент */
@media (max-height: 500px) and (orientation: landscape) {
  .sticky-cta { display: none; }
  .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* наведение — только для мыши и тачпада */
@media (hover: hover) and (pointer: fine) {
  .btn-cta, .btn-head { transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; }
  .btn-cta:not(:disabled):not(.is-loading):hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(244, 85, 15, .42), inset 0 -3px 0 rgba(160, 40, 0, .18); }
  .btn-head:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255, 90, 31, .4); }
  .msg-btn { transition: transform .2s var(--ease), filter .2s; }
  .msg-btn:not([aria-disabled="true"]):hover { transform: translateY(-2px); filter: brightness(1.06); }
  .header__nav a:hover { color: var(--orange-ink); }
  .prize__img { transition: transform .6s var(--ease); }
  .prize:hover .prize__img { transform: scale(1.04); }
  .faq__q:hover { background: #FAF9FD; }
  .choice__btn:not([aria-checked="true"]):hover { border-color: #DCD9E8; }
  .pending:hover { border-color: #FFB896; }
  .help__row:hover, .footer__links a:hover { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .review, .review__ring { transition-duration: .01s; }
  .btn-head::after, .btn-cta::after { animation: none; opacity: 0; }
  .prize__img { transition: none; }
}
