/* ==========================================================================
   Ariston Promo · ariston-promo.kz
   Айдентика: Ariston Red #C8102E, красный градиент 20°, форма «домика»,
   Proxima Nova (до получения лицензии — Montserrat), текст K80 (#333).
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-700: #912832;
  --red-900: #692832;
  --red-hi: #e4002b;
  --grad: linear-gradient(70deg, #692832 0%, #912832 30%, #c8102e 70%, #e0112f 100%);
  --grad-rev: linear-gradient(250deg, #692832 0%, #912832 30%, #c8102e 70%, #e0112f 100%);
  --ink: #333333;
  --ink-2: #5f6468;
  --ink-3: #686e73; /* ≥4.5:1 на белом и #f2f2f0 */
  --bg: #ffffff;
  --bg-2: #f2f2f0;
  --line: #e3e6e7;
  --grey-l: #cfdadc;
  --grey: #a3acb2;
  --navy: #091f2c;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(9, 31, 44, 0.28);
  --shadow-sm: 0 6px 20px -8px rgba(9, 31, 44, 0.18);
  --header-h: 76px;
  --gutter: 24px;
  --font: 'Proxima Nova', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --roof: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V56Q0 50 4.24 45.76L42.93 7.07Q50 0 57.07 7.07L95.76 45.76Q100 50 100 56V60Z'/%3E%3C/svg%3E");
  --house: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 112' preserveAspectRatio='none'%3E%3Cpath d='M0 104V56Q0 50 4.24 45.76L42.93 7.07Q50 0 57.07 7.07L95.76 45.76Q100 50 100 56V104Q100 112 92 112H8Q0 112 0 104Z'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 700; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.45); outline-offset: 3px; border-radius: 6px; }

.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--red { color: #fff; background: var(--grad); background-size: 140% 100%; background-position: 100% 0; box-shadow: 0 12px 28px -12px rgba(200, 16, 46, 0.75); }
.btn--red:hover { background-position: 0 0; box-shadow: 0 16px 32px -12px rgba(200, 16, 46, 0.85); transform: translateY(-2px); }
.btn--white { color: var(--red); background: #fff; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.45); }
.btn--white:hover { transform: translateY(-2px); }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
.btn--ghost .ic:first-child { color: var(--red); }
.btn--line { color: #fff; background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45); }
.btn--line:hover { box-shadow: inset 0 0 0 2px #fff; transform: translateY(-2px); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 13px; }
.btn--lg { --h: 60px; padding: 0 36px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(9, 31, 44, 0.35); }
.header__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo { flex: none; color: var(--red); }
.header__logo .logo { height: 26px; width: auto; }
.header__nav { display: flex; gap: 28px; margin-right: auto; }
.header__nav a {
  position: relative;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  white-space: nowrap;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header__nav .nav__rules { color: var(--ink-3); }
.header__nav a:hover::after,
.header__nav a.is-active::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.lang a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.lang a.is-active { background: var(--red); color: #fff; }
.lang a:not(.is-active):hover { color: var(--red); }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-2); align-items: center; justify-content: center; }
.burger .ic { width: 22px; height: 22px; }

/* Мобильное меню */
.mnav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  animation: mnavIn 0.35s var(--ease);
}
@keyframes mnavIn { from { opacity: 0; transform: translateY(-12px); } }
.mnav__house { position: absolute; right: -30%; bottom: 0; width: 110%; height: 70%; fill: rgba(255, 255, 255, 0.06); pointer-events: none; }
.mnav__links { position: relative; display: flex; flex-direction: column; gap: 6px; }
.mnav__links a { font-size: clamp(20px, 3.6vh, 28px); font-weight: 800; text-decoration: none; padding: 0.2em 0; }
.mnav__bottom { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mnav__bottom .lang { background: rgba(255, 255, 255, 0.16); }
.mnav__bottom .lang a { color: #fff; }
.mnav__bottom .lang a.is-active { background: #fff; color: var(--red); }
.mnav__bottom .btn { width: 100%; }
.mnav__rules { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; }

/* ---------- Hero (КВ) ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad); --intro: 0s; }
html.intro .hero { --intro: 0.75s; }
/*
  Сцена = фото без текста + красный «дом» (SVG) + живой HTML-контент.
  Высота — по экрану под шапкой, но не выше 16:9. Фото привязано к ВЕРХУ: на низких экранах
  обрезается низ (голова ребенка всегда в кадре). Небо срезается максимум на 4.5cqw и только если
  иначе обрежется котел. Контент масштабируется, чтобы всегда помещаться внутри красного дома.
*/
.hero__stage {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  height: min(56.25vw, 1080px, max(calc(100svh - 76px), 44vw));
  container: hero / size;
  --tc: clamp(0px, 56.25cqw - 100cqh - 6cqw, 4.5cqw);
  --ov: 24px; /* насколько плашка таймера заходит на КВ */
}
.hero__scene { position: absolute; left: 0; right: 0; top: calc(-1 * var(--tc)); height: 56.25cqw; transform: translate3d(calc(var(--mx, 0) * -8px), calc(var(--my, 0) * -5px), 0) scale(1.02); transform-origin: 50% 0; }
.hero__photo,
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
html.intro .hero__scene { animation: lens 1.1s cubic-bezier(0.7, 0, 0.2, 1) 0.1s both; }
@keyframes lens {
  from { clip-path: polygon(79% 92%, 79% 46%, 89% 30%, 99% 46%, 99% 92%); }
  to { clip-path: polygon(0 100%, 0 0, 50% 0, 100% 0, 100% 100%); }
}
.hero__box { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content {
  position: absolute;
  left: 6.1cqw;
  bottom: calc(var(--ov) + 1.6cqw);
  width: 33.6cqw; /* до стены дома (40.3%); строки заголовка сами уже — их ширина в em */
  color: #fff;
  /* 1em = 1% ширины, но не больше, чем позволяет высота: верх текста не выше линии крыши (26cqw от верха КВ) */
  font-size: min(1cqw, calc((100cqh - var(--ov) - 1.6cqw - 26cqw + var(--tc)) / var(--ch, 27)));
  transform: translate3d(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 3px), 0);
}
/* очень низкий экран (напр. 1366×657): плитки слишком мелкие — скрываем, призы идут следующим блоком */
@container hero (min-aspect-ratio: 11 / 5) { .hero__tiles { display: none !important; } }
.hero__roof { display: none; }
.hero__title { margin: 0; font-size: 1em; text-transform: uppercase; letter-spacing: -0.01em; }
.hl-set { display: block; }
.hl-set--mob { display: none; }
.hl { display: block; animation: heroIn 0.9s var(--ease) var(--intro) both; }
.hl:nth-child(2) { animation-delay: calc(var(--intro) + 0.08s); }
.hl:nth-child(3) { animation-delay: calc(var(--intro) + 0.16s); }
.hl:nth-child(4) { animation-delay: calc(var(--intro) + 0.24s); }
.hl:nth-child(5) { animation-delay: calc(var(--intro) + 0.32s); }
/* ПК — пропорции как на КВ (v1) */
.hl--xl { font-size: 4.3em; font-weight: 800; line-height: 1.04; }
.hl--lg { font-size: 3.2em; font-weight: 800; line-height: 1.06; }
.hl--md { font-size: 2.3em; font-weight: 500; line-height: 1.15; margin: 0.1em 0; }
.hero__tiles { display: grid; grid-template-columns: repeat(3, 8.6em); gap: 0.6em; margin: 2.3em 0 0; padding: 0; list-style: none; }
.hero__tiles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  aspect-ratio: 1;
  padding: 0.5em 0.35em;
  border-radius: 1.15em;
  background: #fff;
  color: var(--red);
  text-align: center;
  box-shadow: 0 0.6em 1.4em -0.6em rgba(0, 0, 0, 0.35);
  position: relative;
  animation: heroIn 0.9s var(--ease) both;
}
.hero__tiles li:nth-child(1) { animation-delay: calc(var(--intro) + 0.3s); }
.hero__tiles li:nth-child(2) { animation-delay: calc(var(--intro) + 0.38s); }
.hero__tiles li:nth-child(3) { animation-delay: calc(var(--intro) + 0.46s); }
.hero__tiles img { width: auto; height: 3.6em; max-width: 4em; flex: none; object-fit: contain; }
.hero__tiles span { font-size: max(0.84em, 10.5px); line-height: 1.15; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 1.4em; margin-top: 1.5em; animation: heroIn 0.9s var(--ease) calc(var(--intro) + 0.55s) both; }
.btn--hero { --h: max(3.6em, 44px); padding: 0 max(1.9em, 20px); font-size: max(1em, 13px); }
.hero__rules { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.4em 0; font-size: max(0.95em, 12px); font-weight: 600; color: #fff; text-decoration: none; opacity: 0.92; white-space: nowrap; }
.hero__rules:hover { opacity: 1; text-decoration: underline; }
.hero__rules .ic { width: 1.25em; height: 1.25em; min-width: 14px; min-height: 14px; }

/* Ценник-стикер: главный приз 2 500 000 ₸ */
.price-tag {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.05;
  transform: rotate(-8deg);
  box-shadow: 0 0.5em 1.2em -0.4em rgba(0, 0, 0, 0.45);
}
.price-tag small { font-size: 0.62em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.price-tag--tile { top: -1.55em; left: -0.5em; z-index: 2; font-size: max(0.9em, 11px); transform: rotate(-6deg); animation: tagIn 0.7s var(--ease) calc(var(--intro) + 0.85s) both; }
@keyframes tagIn { from { opacity: 0; transform: rotate(-6deg) scale(0.4); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }

/* Плашка с таймером */
.timerbar { position: relative; z-index: 3; margin-top: -24px; }
.timerbar__card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 22px 18px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.timerbar__text { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 17px; line-height: 1.3; }
.timerbar__text b { font-weight: 800; color: var(--red); white-space: nowrap; }
.timerbar__count { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.timerbar__count .ic { width: 18px; height: 18px; color: var(--red); }
.timerbar__count b { color: var(--ink); }

.timer { display: flex; align-items: center; gap: 14px; }
.timer__label { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; max-width: 110px; line-height: 1.3; text-align: right; }
.timer__cells { display: flex; gap: 6px; }
.timer__cell {
  min-width: 60px;
  padding: 8px 6px 6px;
  border-radius: 14px;
  background: var(--bg-2);
  text-align: center;
  line-height: 1;
}
.flap { --fb: var(--bg-2); position: relative; display: block; height: 1.15em; font-size: 26px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; perspective: 160px; }
.flap > span { position: absolute; inset: 0; display: block; line-height: 1.15em; text-align: center; background: var(--fb); border-radius: 6px; backface-visibility: hidden; }
.flap__top, .flap__ftop { clip-path: inset(0 0 50% 0); }
.flap__bot, .flap__fbot { clip-path: inset(50% 0 0 0); }
.flap__ftop { transform-origin: 50% 50%; z-index: 2; }
.flap__fbot { transform-origin: 50% 50%; transform: rotateX(90deg); z-index: 2; }
.flap.is-flip .flap__ftop { animation: flapTop 0.28s ease-in forwards; }
.flap.is-flip .flap__fbot { animation: flapBot 0.28s ease-out 0.28s forwards; }
.flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.08); z-index: 3; }
@keyframes flapTop { to { transform: rotateX(-90deg); } }
@keyframes flapBot { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.timer__cell small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }


/* ---------- Бегущие ленты ---------- */
.ribbons { position: relative; height: 110px; margin: 10px 0 -26px; overflow: hidden; pointer-events: none; }
.ribbon { position: absolute; left: -5%; right: -5%; top: 50%; padding: 14px 0; overflow: hidden; }
.ribbon--red { background: var(--grad); color: #fff; transform: translateY(-50%) rotate(-2.2deg); box-shadow: 0 14px 30px -18px rgba(105, 40, 50, 0.7); }
.ribbon--grey { background: var(--bg-2); color: var(--ink-3); transform: translateY(-50%) rotate(2.2deg); }
.ribbon__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.ribbon--grey .ribbon__track { animation-direction: reverse; animation-duration: 46s; }
.ribbon__track span { font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.ribbon__track .ribbon__dup { display: contents; }
.mq-house { width: 18px; height: 20px; flex: none; fill: currentColor; opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { position: relative; padding: 96px 0; }
.h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--red);
  text-align: center;
  text-wrap: balance;
}
.h2--white { color: #fff; }
.lead { max-width: 640px; margin: 18px auto 0; text-align: center; font-size: 18px; color: var(--ink-2); text-wrap: balance; }
.lead--white { color: rgba(255, 255, 255, 0.9); }

/* Появление при скролле */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Как выиграть ---------- */
.how { overflow: hidden; background: linear-gradient(#fff 0, var(--bg-2) 40%); padding-top: 96px; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.route-wrap { position: relative; margin-top: 34px; padding-top: 84px; }
.route { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; z-index: 0; }
.route svg { width: 100%; height: 100%; overflow: visible; }
.route__track { fill: none; stroke: rgba(200, 16, 46, 0.28); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route__line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); vector-effect: non-scaling-stroke; }
.route__plane { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--red); box-shadow: 0 6px 16px -6px rgba(200, 16, 46, 0.6); transition: opacity 0.3s; }
.route__plane .ic { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.steps { z-index: 1; }
.step.is-reached .step__badge { animation: badgePop 0.6s var(--ease); }
.step.is-reached .step__num { background: var(--red); color: #fff; }
@keyframes badgePop { 40% { transform: scale(1.12) translateY(-4px); } }
.step__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 0; font-size: 14px; font-weight: 700; color: var(--red); text-decoration: none; white-space: nowrap; }
.step__link .ic { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.step__link:hover .ic { transform: translateY(3px); }
.step {
  position: relative;
  padding: 0 22px 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.8s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step__badge { position: relative; width: 84px; height: 94px; margin: -2px auto 20px; display: grid; place-items: center; color: #fff; }
.step__badge > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; fill: url(#hg); fill: var(--red); filter: drop-shadow(0 10px 16px rgba(200, 16, 46, 0.35)); }
.step__badge .ic { position: relative; width: 34px; height: 34px; margin-top: 18px; }
.step__num {
  position: absolute;
  top: 28px;
  right: -12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
}
.step:first-child { padding-top: 0; }
.step { padding-top: 0; margin-top: 0; }
.step h3 { font-size: 19px; line-height: 1.25; font-weight: 800; color: var(--ink); text-wrap: balance; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.step p a { color: var(--red); font-weight: 600; text-decoration: none; }
.how__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 52px; }
.how__note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--ink-3); text-align: center; }
.how__note .ic { color: var(--red); width: 18px; height: 18px; }

/* ---------- Призы ---------- */
.prizes { overflow: hidden; color: #fff; background: var(--grad); padding: 92px 0 72px; }
.prizes .lead { max-width: 820px; margin-top: 12px; font-size: 17px; }
.prizes::before {
  /* «Крыша» — верхний угол дома с обратным градиентом (B — Full red) */
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  --w: 1600px;
  width: var(--w);
  height: 100%;
  transform: translateX(-50%);
  background: var(--grad-rev);
  -webkit-mask: var(--roof) center top / var(--w) calc(var(--w) * 0.6) no-repeat, linear-gradient(#000 0 0) center calc(var(--w) * 0.6 - 1px) / var(--w) 100% no-repeat;
  mask: var(--roof) center top / var(--w) calc(var(--w) * 0.6) no-repeat, linear-gradient(#000 0 0) center calc(var(--w) * 0.6 - 1px) / var(--w) 100% no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.prizes::after {
  /* вырез сверху секции: «крыша» из светлого фона */
  content: '';
  position: absolute;
  left: 50%;
  top: -1px;
  width: 140px;
  height: 38px;
  transform: translateX(-50%);
  background: var(--bg-2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.prizes .container { position: relative; z-index: 1; }
.prizes__sky { position: absolute; inset: 0; pointer-events: none; }
.balloon { position: absolute; bottom: -90px; width: 34px; fill: rgba(255, 255, 255, 0.13); color: rgba(255, 255, 255, 0.35); animation: rise linear infinite; }
.balloon--1 { left: 6%; width: 30px; animation-duration: 26s; animation-delay: -4s; }
.balloon--2 { left: 18%; width: 44px; animation-duration: 34s; animation-delay: -18s; }
.balloon--3 { left: 33%; width: 24px; animation-duration: 22s; animation-delay: -9s; }
.balloon--4 { left: 62%; width: 38px; animation-duration: 30s; animation-delay: -2s; }
.balloon--5 { left: 76%; width: 26px; animation-duration: 24s; animation-delay: -14s; }
.balloon--6 { left: 88%; width: 48px; animation-duration: 38s; animation-delay: -25s; }
.balloon--7 { left: 50%; width: 22px; animation-duration: 28s; animation-delay: -20s; }
@keyframes rise {
  0% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(18px, -60vh) rotate(3deg); }
  100% { transform: translate(-6px, -125vh) rotate(-2deg); }
}

.prizes__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 28px; margin-top: 44px; }
.prize { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; transform-style: preserve-3d; }
.prize--travel { order: 2; }
.prize--iphone { order: 1; }
.prize--coffee { order: 3; }
.prize__stage { position: relative; width: 100%; max-width: 210px; aspect-ratio: 100 / 112; }
.prize--travel .prize__stage { max-width: 270px; }
.prize__house {
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: var(--house) center / 100% 100% no-repeat;
  mask: var(--house) center / 100% 100% no-repeat;
  overflow: hidden;
}
.prize__house img {
  position: absolute;
  left: 50%;
  bottom: 8%;
  height: 74%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.2));
}
.prize--iphone .prize__house img { height: 70%; bottom: 9%; transform: translateX(-50%) rotate(-8deg); }
.prize--coffee .prize__house img { height: 66%; bottom: 9%; }
.prize--travel .prize__house { background: #b98f7e; }
.prize--travel .prize__house img { inset: 0; left: 0; bottom: auto; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: none; filter: none; }
.prize:hover .prize__house img { transform: translateX(-50%) translateY(-6px) scale(1.04); }
.prize--iphone:hover .prize__house img { transform: translateX(-50%) translateY(-6px) rotate(-3deg) scale(1.04); }
.prize--travel:hover .prize__house img { transform: scale(1.05); }
.prize__outline {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s var(--ease) 0.3s, transform 0.6s var(--ease);
}
.prize.is-in .prize__outline { stroke-dashoffset: 0; }
.prize:hover .prize__outline { transform: translate(8px, -8px); }
.prize__qty {
  position: absolute;
  right: 4%;
  top: 44%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prize__body { margin-top: 24px; max-width: 340px; }
.prize__label {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prize--travel .prize__label { background: #fff; color: var(--red); }
.prize h3 { margin-top: 10px; font-size: 21px; line-height: 1.15; font-weight: 800; text-wrap: balance; }
.prize--travel h3 { font-size: 25px; }
.prize p { margin-top: 6px; color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.prize p b { color: #fff; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-weight: 700; font-size: 15px; }
.trust li .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; color: var(--red); }
.prize .price-tag { right: -6%; top: 40%; font-size: 17px; }
.prizes__note { max-width: 760px; margin: 14px auto 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.88); }

/* ---------- Котлы ---------- */
.boilers { background: #fff; }
.series-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; }
.series {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: center;
  transition: transform 0.4s var(--ease), opacity 0.8s var(--ease);
}
.series__stage { position: relative; display: block; width: 100%; aspect-ratio: 100 / 112; }
.series__house {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--bg-2);
  transition: fill 0.35s;
}
.series__stage img {
  position: absolute;
  left: 50%;
  bottom: 9%;
  height: 66%;
  width: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 18px rgba(9, 31, 44, 0.18));
  transition: transform 0.5s var(--ease);
}
.series:hover .series__stage img,
.series[aria-expanded='true'] .series__stage img { transform: translateX(-50%) translateY(-10px); }
.series__house-red { opacity: 0; transition: opacity 0.4s var(--ease); }
.series:hover .series__house-red,
.series[aria-expanded='true'] .series__house-red { opacity: 1; }
.series__name { margin-top: 18px; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.series__meta { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.series__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  box-shadow: inset 0 0 0 2px rgba(200, 16, 46, 0.2);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.series__more .ic { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.series:hover .series__more { box-shadow: inset 0 0 0 2px var(--red); }
.series[aria-expanded='true'] .series__more { background: var(--red); color: #fff; box-shadow: none; }
.series[aria-expanded='true'] .series__more .ic { transform: rotate(45deg); }

.models { margin-top: 10px; }
.models__list {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--bg-2);
  animation: panelIn 0.45s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } }
.models__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: 20px; }
.models__head b { color: var(--red); font-weight: 800; }
.models__head span { font-size: 14px; color: var(--ink-3); }
.models__list ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.models__list li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: #fff; }
.models__list li span { font-weight: 700; font-size: 14px; }
.models__list li small { color: var(--ink-3); font-size: 12px; }

.msearch {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 22px;
  margin-top: 32px;
  padding: 22px 28px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px var(--line);
}
.msearch label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.msearch label .ic { color: var(--red); width: 22px; height: 22px; }
.msearch__field input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-2);
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}
.msearch__field input::placeholder { text-transform: none; font-weight: 500; color: var(--ink-3); }
.msearch__field input:focus { outline: 2px solid var(--red); outline-offset: 0; }
.msearch__full { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.msearch__full:hover { color: var(--red); }
.msearch__full .ic { width: 16px; height: 16px; }
.msearch > label { grid-area: 1 / 1; }
.msearch__field { grid-area: 1 / 2; }
.msearch__full { grid-area: 1 / 3; }
.msearch__res { grid-area: 2 / 1 / 3 / -1; }
.msearch__res:empty { display: none; }
.msearch__res ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.msearch__res li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #e9f7ef; color: #146c3d; font-size: 14px; font-weight: 700; }
.msearch__res li .ic { width: 18px; height: 18px; }
.msearch__res li small { font-weight: 600; opacity: 0.75; }
.msearch__res p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.msearch__res p a { color: var(--red); }

/* ---------- Победители ---------- */
.winners { background: var(--bg-2); }
.winners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.winner { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.winner__prize { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); }
.winner__name { font-size: 24px; font-weight: 800; }
.winner__phone { color: var(--ink-3); font-variant-numeric: tabular-nums; }


/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq__layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 56px; align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.faq__tabs { display: flex; flex-direction: column; gap: 6px; }
.faq__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.faq__tab:hover { color: var(--red); background: rgba(255, 255, 255, 0.6); }
.faq__tab[aria-selected='true'] { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.faq__tab[aria-selected='true']::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.faq__group { display: flex; flex-direction: column; gap: 10px; animation: panelIn 0.4s var(--ease); }
.qa { border-radius: 16px; background: #fff; transition: box-shadow 0.3s; }
.qa[open] { box-shadow: var(--shadow-sm); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--red); }
.qa summary i { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--bg-2); transition: background-color 0.3s, transform 0.3s var(--ease); }
.qa summary i::before,
.qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--red); transition: transform 0.3s var(--ease), background-color 0.3s; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--red); transform: rotate(180deg); }
.qa[open] summary i::before,
.qa[open] summary i::after { background: #fff; }
.qa[open] summary i::after { transform: rotate(0); }
.qa__a { padding: 0 24px 22px; color: var(--ink-2); }
.qa__a a { color: var(--red); font-weight: 600; }
.qa[open] .qa__a { animation: panelIn 0.35s var(--ease); }

.ask { position: relative; color: #fff; filter: drop-shadow(0 18px 24px rgba(200, 16, 46, 0.22)); }
.ask__roof { display: block; width: 100%; height: auto; fill: var(--red); }
.ask__body { display: flow-root; margin-top: -1px; border-radius: 0 0 20px 20px; background: var(--red); }
.ask__in { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -72px; padding: 0 22px 28px; text-align: center; }
.ask b { font-size: 20px; font-weight: 800; }
.ask p { color: rgba(255, 255, 255, 0.85); font-size: 15px; margin-bottom: 6px; }
.ask a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 700; font-size: 15px; text-decoration: none; }
.ask a:hover { text-decoration: underline; }
.ask a .ic { width: 18px; height: 18px; }

/* ---------- Футер (G — Footer) ---------- */
.footer { background: #fff; color: var(--ink-2); font-size: 14px; }
.footer__bar { position: relative; background: var(--grad); color: #fff; }
.footer__barin { position: relative; display: flex; align-items: center; justify-content: space-between; height: 84px; }
.footer__roof {
  position: absolute;
  left: calc(var(--gutter) - 14px);
  bottom: 100%;
  width: 76px;
  height: 30px;
  background: #c01530;
  -webkit-mask: var(--house) center top / 100% 270% no-repeat;
  mask: var(--house) center top / 100% 270% no-repeat;
}
.footer__logo { height: 28px; width: auto; color: #fff; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.footer__name { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.footer__links a:hover { color: var(--red); }
.footer__links .ic { width: 18px; height: 18px; color: var(--red); }
.footer__copy { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Плавающая кнопка (моб.) */
.fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px -10px rgba(200, 16, 46, 0.7);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}
.fab .ic { width: 18px; height: 18px; }
.fab.is-shown { transform: none; }

/* ==========================================================================
   Модальное окно регистрации
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 20px 16px; overflow-y: auto; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(9, 31, 44, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: dialogIn 0.5s var(--ease);
}
.modal__dialog:focus { outline: none; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(0.98); } }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background-color 0.2s, transform 0.3s var(--ease);
}
.modal__close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }
.modal.is-success .modal__close { background: var(--bg-2); color: var(--ink); }
.modal__head { position: relative; padding: 22px 36px 18px; background: var(--grad); color: #fff; overflow: hidden; }
.modal__house { position: absolute; right: -40px; top: 10px; width: 220px; height: 240px; fill: rgba(255, 255, 255, 0.08); }
.modal__head h2 { position: relative; font-size: 30px; line-height: 1.1; font-weight: 800; }
.modal__head p { position: relative; margin-top: 8px; color: rgba(255, 255, 255, 0.85); }

.form { padding: 20px 36px 22px; }
@media (min-width: 768px) {
  .field__hint { display: none; } /* на ПК подсказка под телефоном не нужна — форма на один экран */
  .modal__head h2 { font-size: 26px; }
  .field input[type='text'], .field input[type='tel'], .field select { height: 48px; }
  .form__grid { gap: 12px 18px; }
  .check { font-size: 13px; }
}
/* Низкие экраны ноутбуков: убираем второстепенное, чтобы форма поместилась без прокрутки */
@media (min-width: 768px) and (max-height: 820px) {
  .modal { padding: 8px 16px; }
  .modal__head { padding: 16px 36px 14px; }
  .modal__head p, .form .tips, .form .form__note { display: none; }
  .form .drop, .form .drop__empty, .form .drop__full { min-height: 60px; }
  .form .drop__empty { padding: 8px 14px; }
  .form { padding-top: 16px; padding-bottom: 18px; }
  .form__warn { padding: 8px 12px; font-size: 13px; }
  .btn--lg { --h: 52px; }
}
.form__wide { grid-column: 1 / -1; }
.form__bottom--next, .form__back { display: none !important; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.stepper { display: none; position: relative; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 3px solid rgba(255, 255, 255, 0.3); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.75); transition: border-color 0.3s, color 0.3s; }
.stepper li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-size: 12px; }
.stepper li.is-active, .stepper li.is-done { border-color: #fff; color: #fff; }
.stepper li.is-active span, .stepper li.is-done span { background: #fff; color: var(--red); }
.form__warn { display: flex; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff6e5; color: #6b4a00; font-size: 13.5px; line-height: 1.45; }
.form__warn .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #b07800; }
.form__warn b { color: #4d3500; }
.tips { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.tips li { display: inline-flex; align-items: center; gap: 8px; }
.tips__ic { width: 34px; height: 34px; flex: none; }
.tips li.is-bad span { color: var(--ink-3); }
.form__row { display: flex; gap: 12px; }
.form__row .form__submit { flex: 1; }
.form__back { padding: 0 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label,
.field__top > label,
.field__label { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.field input[type='text'],
.field input[type='tel'],
.field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--bg-2);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: #80868b; }
.field input:focus,
.field select:focus { outline: none; border-color: var(--red); background: #fff; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid .drop { border-color: var(--red); background: #fff5f6; }
.field.is-valid input:not([type='file']) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a861' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.field select:invalid { color: #80868b; }
.field select option { color: var(--ink); }
.field__extra { margin-top: 8px; }
.field__hint { font-size: 12px; color: var(--ink-3); }
.field__err { font-size: 12.5px; font-weight: 600; color: var(--red); min-height: 0; }
.field__err:empty { display: none; }
.field.is-invalid .field__hint { display: none; }
.field__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field__help { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; background: none; font-size: 12.5px; font-weight: 700; color: var(--red); white-space: nowrap; }
.field__help .ic { width: 16px; height: 16px; }

.serial-help { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 18px; margin: 0; padding: 14px; border-radius: 16px; background: var(--bg-2); font-size: 14px; color: var(--ink-2); animation: panelIn 0.35s var(--ease); }
.serial-help .plate { width: 100%; height: auto; }

.drop {
  position: relative;
  display: block;
  min-height: 78px;
  border: 2px dashed var(--grey-l);
  border-radius: 18px;
  background: #fbfbfa;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.drop:hover,
.drop.is-over { border-color: var(--red); background: #fff7f8; }
.drop.is-over { transform: scale(1.01); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { border-color: var(--red); }
.drop__empty { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 12px 16px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.drop__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop__empty small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.drop__empty b { color: var(--red); }
.drop__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.drop__text--mob { display: none; }
.drop__full { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 8px 48px 8px 10px; }
.drop__thumb { width: 52px; height: 58px; flex: none; border-radius: 12px; background: var(--bg-2) center / cover no-repeat; display: grid; place-items: center; color: var(--red); overflow: hidden; }
.drop__thumb .ic { width: 34px; height: 34px; }
.drop__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.drop__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__size { color: var(--ink-3); }
.drop__remove { position: absolute; top: 50%; right: 10px; margin-top: -16px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); }
.drop__remove:hover { background: var(--red); color: #fff; }
.drop__remove .ic { width: 16px; height: 16px; }
.drop.has-file { border-style: solid; border-color: #bfe5cf; background: #f5fbf7; }

.form__checks { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.check { position: relative; display: flex; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--grey-l); background: #fff; color: #fff; transition: background-color 0.2s, box-shadow 0.2s; }
.check__box .ic { width: 16px; height: 16px; stroke-width: 2.6; transform: scale(0); transition: transform 0.25s var(--ease); }
.check input:checked + .check__box { background: var(--red); box-shadow: none; }
.check input:checked + .check__box .ic { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid rgba(200, 16, 46, 0.4); outline-offset: 2px; }
.check a { color: var(--red); font-weight: 600; }
.form__checks.is-invalid .check input:not(:checked) + .check__box { box-shadow: inset 0 0 0 2px var(--red); }

.form__bottom { margin-top: 2px; }
.form__alert { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: #fff0f2; color: var(--red); font-weight: 600; font-size: 14px; }
.form__submit { overflow: hidden; }
.form__submit:disabled { cursor: progress; opacity: 0.92; }
.form__progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: rgba(255, 255, 255, 0.75); transition: width 0.2s; }
.form__note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.form__note .ic { width: 16px; height: 16px; color: var(--red); }

/* Успех */
.success { padding: 48px 40px 40px; text-align: center; }
.success--simple { padding: 44px 44px 40px; }
.success__icon { width: 76px; height: 86px; margin: 0 auto 18px; overflow: visible; }
.success__icon .success__check { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 0.6s var(--ease) 0.25s forwards; }
.success--simple .success__title::before { display: none; }
.success__lead { margin-top: 10px; font-size: 17px; color: var(--ink); }
.success__lead b { white-space: nowrap; }
.success__next { max-width: 470px; margin: 22px auto 0; padding: 18px 22px; border-radius: 18px; background: var(--bg-2); list-style: none; text-align: left; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.success__next li { position: relative; padding-left: 22px; }
.success__next li + li { margin-top: 8px; }
.success__next li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 10px; background: var(--red); -webkit-mask: var(--house) center / 100% 100%; mask: var(--house) center / 100% 100%; }
.success__next a { color: var(--red); font-weight: 700; text-decoration: none; }
.success__ok { margin-top: 24px; min-width: 200px; }
.form__again { margin: 0; padding: 10px 14px; border-radius: 12px; background: #eef3ff; color: #2b4a8f; font-size: 13px; line-height: 1.45; }
.pass {
  position: relative;
  max-width: 460px;
  margin: 26px auto 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px -24px rgba(9, 31, 44, 0.45), inset 0 0 0 1px var(--line);
  text-align: left;
  overflow: hidden;
  animation: passIn 0.8s var(--ease) 0.2s both;
}
@keyframes passIn { from { opacity: 0; transform: translateY(24px) rotate(-2deg); } }
.pass__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pass__logo { height: 18px; width: auto; color: #fff; }
.pass__route { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; }
.pass__route small, .pass__grid small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.pass__route b { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.pass__to { text-align: right; }
.pass__to b { color: var(--red); }
.pass__plane { flex: 1; position: relative; display: grid; place-items: center; color: var(--red); }
.pass__plane::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--grey-l); }
.pass__plane .ic { position: relative; width: 26px; height: 26px; padding: 3px; background: #fff; fill: currentColor; stroke: none; transform: rotate(45deg); }
.pass__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 16px; padding: 12px 22px 18px; }
.pass__grid b { font-size: 15px; font-weight: 800; color: var(--ink); }
.pass__stub { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px 16px; border-top: 2px dashed var(--line); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.pass__stub::before, .pass__stub::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pass__stub::before { left: -11px; }
.pass__stub::after { right: -11px; }
.pass__code { display: flex; gap: 2px; height: 30px; }
.pass__code i { display: block; height: 100%; background: var(--ink); }
.success__insta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--red); text-decoration: none; }
.success__insta .ic { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; padding: 12px 20px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; transform: translateX(-50%); animation: cookieIn 0.3s var(--ease); }
.success__house { width: 120px; margin: 0 auto 22px; }
.success__title::before { content: ''; display: block; width: 64px; height: 72px; margin: 0 auto 14px; background: var(--grad); -webkit-mask: var(--house) center / 100% 100%; mask: var(--house) center / 100% 100%; }
.success__house svg { width: 100%; overflow: visible; }
.success__path { fill: none; stroke: var(--red); stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.1s var(--ease) forwards; }
.success__check { fill: none; stroke: var(--red); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 0.6s var(--ease) 0.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__title { font-size: 36px; font-weight: 800; color: var(--red); }
.success__title:focus { outline: none; }
.success__text { max-width: 480px; margin: 12px auto 0; color: var(--ink-2); }
.success__num { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.success__num b { color: var(--ink); }
.success__timer { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px auto 0; padding: 18px; max-width: 460px; border-radius: 22px; background: var(--bg-2); }
.success__timer > span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.success__timer small { font-size: 13px; color: var(--ink-2); }
.timer--light .timer__cell { background: #fff; }
.timer--light .flap { --fb: #fff; }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.success__actions .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; }

/* Cookie-плашка */
.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  padding: 14px 14px 14px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px -14px rgba(9, 31, 44, 0.35);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  animation: cookieIn 0.5s var(--ease) 0.6s both;
  transition: bottom 0.4s var(--ease);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }
body.is-locked .cookie { visibility: hidden; }
.cookie__btns { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.cookie__decline { padding: 4px; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--ink-3); text-decoration: underline; }
.cookie__decline:hover { color: var(--red); }

/* Конфетти-домики */
.confetti { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 13px; background: var(--red); -webkit-mask: var(--house) center / 100% 100%; mask: var(--house) center / 100% 100%; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .header__nav { gap: 20px; }
  .header__nav a { font-size: 13px; }
  .timerbar__card { grid-template-columns: 1fr auto; }
  .timerbar__card > .btn { grid-column: 1 / -1; }
  .series-grid { grid-template-columns: repeat(5, minmax(180px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .series-grid::-webkit-scrollbar { display: none; }
  .series { scroll-snap-align: center; }
}

@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__right { margin-left: auto; }
  .burger { display: inline-flex; }
}

@media (max-width: 1020px) {
  .route { display: none; }
  .route-wrap { padding-top: 0; margin-top: 44px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .steps::before { display: none; }
  .prizes__grid { grid-template-columns: 1fr 1fr; }
  .prize--travel { order: 0; grid-column: 1 / -1; }
  .faq__layout { grid-template-columns: 1fr; }
  .faq__side { position: static; }
  .faq__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; }
  .faq__tabs::-webkit-scrollbar { display: none; }
  .faq__tab { flex: none; padding: 12px 18px; }
  .faq__tab[aria-selected='true']::after { display: none; }
  .ask { order: 2; }
  .faq__layout { display: flex; flex-direction: column; align-items: stretch; }
  .faq__tabs { min-width: 0; }
  .faq__side { display: contents; }
  .faq__tabs { order: 0; }
  .faq__panels { order: 1; }
  .ask { order: 2; max-width: 420px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__in > :first-child { grid-column: 1 / -1; }
}

/* Hero: фото сверху, «дом» с текстом снизу — телефоны и планшеты */
@media (max-width: 900px) {
  .hero__content { padding: 0 12px; }
  .timerbar { margin-top: 20px; }
  .hero { background: var(--bg-2); }
  .hero__stage { height: auto; container-type: normal; }
  .hero__scene { position: relative; top: auto; height: auto; transform: none; background: var(--grad); }
  .hero__photo { position: relative; display: block; }
  .hero__photo img { position: static; height: auto; aspect-ratio: 946 / 900; max-height: 520px; object-fit: cover; object-position: 60% 25%; }
  html.intro .hero__scene { animation-name: lensM; }
  @keyframes lensM {
    from { clip-path: polygon(64% 90%, 64% 46%, 80% 30%, 96% 46%, 96% 90%); }
    to { clip-path: polygon(0 100%, 0 0, 50% 0, 100% 0, 100% 100%); }
  }
  .hero__box { display: none; }
  .hero__content { position: relative; left: auto; bottom: auto; width: auto; margin: max(-30vw, -170px) auto 0; max-width: 560px; font-size: min(2.55vw, 12px); transform: none; filter: drop-shadow(0 18px 26px rgba(105, 40, 50, 0.3)); }
  .hero__roof { display: block; width: 100%; height: auto; fill: var(--red); }
  .hero__body { display: flow-root; margin-top: -1px; border-radius: 0 0 24px 24px; background: linear-gradient(var(--red) 0, var(--red) 45%, #b10f2a 100%); }
  .hero__text { margin-top: min(-18vw, -60px); padding: 0 18px 26px; text-align: center; }
  .hl-set--desk { display: none; }
  .hl-set--mob { display: block; }
  .hl--lg { font-size: 2.9em; }
  .hl--xl { font-size: 4.8em; }
  .hl--md { font-size: 2.2em; line-height: 1.18; margin: 0; }
  .hero__tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 34px; }
  .hero__tiles li { aspect-ratio: auto; min-height: 104px; padding: 12px 6px; border-radius: 16px; }
  .hero__tiles img { height: 40px; }
  .hero__tiles span { font-size: 12px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 18px; }
  .btn--hero { width: 100%; --h: 54px; font-size: 14px; }
  .hero__rules { justify-content: center; padding: 12px 0; font-size: 13px; }
  .price-tag--tile { top: -20px; left: -6px; font-size: 12px; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; --gutter: 16px; }
  .header__in { gap: 12px; }
  .header__logo .logo { height: 20px; }
  .header__cta { display: none; }
  .lang a { padding: 6px 10px; }

  .hero { overflow: visible; }


  .timerbar { margin-top: 20px; }
  .timerbar__card { grid-template-columns: 1fr; gap: 16px; padding: 20px; text-align: center; }
  .timerbar__text { justify-content: center; font-size: 16px; }
  .timer { flex-direction: column; gap: 8px; }
  .timer__label { max-width: none; text-align: center; }
  .timer__cell { min-width: 0; flex: 1; }
  .timer__cells { width: 100%; }
  .flap { font-size: 24px; }
  .timerbar__card > .btn { width: 100%; }

  .ribbons { height: 110px; margin: 0 0 -20px; }
  .ribbon { padding: 10px 0; }
  .ribbon__track span { font-size: 15px; }

  .section { padding: 76px 0; }
  .how { padding-top: 70px; }
  .lead { font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; padding: 18px 18px 20px 14px; text-align: left; }
  .step__link { grid-column: 2; justify-self: start; margin-top: 2px; padding: 6px 0 0; }
  .step__badge { grid-row: span 3; width: 64px; height: 72px; margin: 0; }
  .step__badge .ic { width: 26px; height: 26px; margin-top: 14px; }
  .step__num { top: 22px; right: -8px; width: 24px; height: 24px; font-size: 12px; }
  .step h3 { font-size: 17px; align-self: end; }
  .step p { margin-top: 4px; font-size: 14px; }
  .how__actions { flex-direction: column; margin-top: 32px; }
  .how__actions .btn { width: 100%; }
  .how__note { font-size: 13px; }
  .how__note .ic { display: none; }

  .prizes { padding: 76px 0 60px; }
  .prizes::before { --w: 900px; }
  .prizes__grid { grid-template-columns: 1fr 1fr; gap: 30px 14px; margin-top: 32px; }
  .prize__stage { max-width: 150px; }
  .prize--travel .prize__stage { max-width: 220px; }
  .prize__outline { inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
  .prize__body { margin-top: 18px; }
  .prize h3 { font-size: 18px; }
  .prize--travel h3 { font-size: 24px; }
  .prize p { font-size: 14px; }
  .prize__label { font-size: 10px; padding: 6px 12px; }
  .prize__qty { font-size: 10px; padding: 5px 9px; }

  .series-grid { grid-template-columns: repeat(5, 62%); gap: 14px; margin-top: 40px; }
  .models__list { padding: 20px; }
  .msearch { grid-template-columns: 1fr; padding: 20px; }
  .msearch > label, .msearch__field, .msearch__full, .msearch__res { grid-area: auto; }

  .winners__grid { grid-template-columns: 1fr; }

  .faq__layout { margin-top: 36px; gap: 20px; }
  .route { display: none; }
  .route-wrap { margin-top: 40px; padding-top: 0; }
  .trust { flex-direction: column; align-items: stretch; margin-top: 30px; }
  .trust li { font-size: 14px; }
  .prize .price-tag { font-size: 13px; right: -10%; }
  .form__back span { display: none; }
  .form__back { padding: 0 18px; }
  .pass__route b { font-size: 17px; }
  .success__actions .btn { width: 100%; }
  .qa summary { padding: 16px 18px; font-size: 15.5px; }
  .qa__a { padding: 0 18px 18px; font-size: 15px; }
  .ask { max-width: none; }

  .footer__in { grid-template-columns: 1fr; gap: 20px; }
  .footer__barin { height: 72px; }
  .footer__barin .btn { display: none; }
  .footer { padding-bottom: 80px; }

  .fab { display: inline-flex; font-size: 14px; letter-spacing: 0.02em; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
  .btn--lg, .timerbar__card .btn { padding-left: 18px; padding-right: 18px; font-size: 14px; }
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; flex-wrap: wrap; gap: 10px; padding: 14px 16px; font-size: 12.5px; }
  .cookie p { flex: 1 1 100%; }
  .cookie__btns { flex-direction: row; gap: 14px; }
  body.fab-on .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .modal { padding: 0; align-items: stretch; }
  .modal__dialog { max-width: none; min-height: 100%; border-radius: 0; animation: sheetIn 0.45s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
  .modal__head { padding: 28px 20px 26px; }
  .modal__head h2 { font-size: 24px; padding-right: 40px; }
  .modal__close { top: 12px; right: 12px; }
  .form { padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
  .form__grid { grid-template-columns: 1fr; gap: 16px; }
  .form[data-cur='1'] [data-step='2'],
  .form[data-cur='2'] [data-step='1'] { display: none !important; }
  .form [data-step] { animation: stepIn 0.35s var(--ease); }
  .form__bottom--next, .form__back { display: inline-flex !important; }
  .form__bottom--next { display: block !important; }
  .stepper { display: flex; }
  .serial-help { grid-template-columns: 1fr; }
  .drop__text--desk { display: none; }
  .drop__text--mob { display: block; }
  .success { padding: 48px 20px 36px; }
  .success__title { font-size: 30px; }
}

@media (max-width: 380px) {
  .lang a { padding: 5px 8px; font-size: 11px; }
  .flap { font-size: 21px; }
}

@media (min-width: 1921px) {
  .hero::before { content: ''; position: absolute; inset: -40px; background: url(/img/hero-bg-1280.webp) center / cover; filter: blur(30px); opacity: 0.8; }
  .hero__stage { box-shadow: 0 0 80px rgba(0, 0, 0, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .ribbon__track { animation: none; }
}
