@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/inter-cyrillic-900-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/inter-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: dark;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Градиент «вариант D» YouTravel.me: purple-click → purple-dark; лайм — фольга билета и знак подарка */
  --c-bg: #4a1f72;
  --c-grad-a: #8600ef;
  --c-grad-b: #582868;
  --c-deep: #2b0f40;
  --c-surface: rgb(255 255 255 / 0.08);
  --c-surface-2: rgb(255 255 255 / 0.14);
  --c-ink: #fffcff;
  --c-ink-soft: #efe3fb;
  --c-muted: #d2bdea;
  --c-faint: #b49cd0;
  --c-line: rgb(255 255 255 / 0.2);
  --c-paper: #fbf8ff;
  --c-paper-ink: #242a37; /* DS 3.0 primary-night */
  --c-paper-muted: #6e5a80;
  --c-paper-line: #e3d6f2;
  --c-print: #6a1bb8;
  --c-lime: #fffbff;
  --c-lime-2: #dcc8f7;
  --c-lime-ink: #4a0f86;
  --c-btn: #fffbff;
  --c-btn-hover: #f3e9ff;
  --c-btn-ink: #4a0f86;
  --c-focus: #fffbff;
  --c-shadow: rgb(20 4 32 / 0.45);
  --c-card: #fffdff;
  --c-light-line: rgb(255 255 255 / 0.5);
  --c-mask: #000;
  --c-stripe-a: #f1e8fb;
  --c-stripe-b: #f7f1fd;
  --c-lime-line: rgb(74 15 134 / 0.25);
  --c-lime-shadow: rgb(74 15 134 / 0.3);
  --glow: rgb(214 120 255 / 0.30);
  --glow-mid: rgb(170 60 240 / 0.14);
  --glow-2: rgb(255 170 240 / 0.16);
  --glow-2-mid: rgb(255 170 240 / 0.06);
  --m-100: 100ms;
  --m-150: 150ms;
  --m-200: 200ms;
  --m-300: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --c-wire: #2a1238;
  --c-spark: #fffbff;
  --c-warm: #ffd27a;
  --c-text-glow: rgb(43 15 64 / 0.55);
  --c-ticket: #fbf1df;
  --c-ticket-2: #f6e6cc;
  --c-ticket-line: #e3cfae;
  --c-ticket-muted: #7a6450;
  --c-ticket-stripe-a: #f3e3c7;
  --c-ticket-stripe-b: #f8ecd8;
  --c-sheen: rgb(255 255 255 / 0.42);
  --c-sheen-warm: rgb(255 214 150 / 0.22);
  --tex-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .18' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --c-hand-shadow: rgb(30 5 50 / 0.38);
  --c-tint-print: rgb(106 27 184 / 0.1);
  --c-stub-bg: #f4edfc;
  --c-stub-line: #d9c6f0;
  --c-spark-gold: #f2b53a;
  --c-spark-pink: #e07ad8;
  --c-spark-glow: rgb(242 181 58 / 0.55);
  --container: 1312px;
  --gutter: clamp(16px, 4vw, 32px);
  --sec: clamp(48px, 6vw, 88px);
  --t-h1: clamp(2.5rem, 4.6vw + 1rem, 5.25rem);
  --t-h2: clamp(2rem, 2.8vw + 1rem, 3.75rem);
}

/* Общая база трёх вариантов: только то, что решает Floor. Цвета и шрифты — токены варианта. */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
/* Свечения секций не удлиняют страницу: всё, что ниже подвала, обрезается */
body { overflow-y: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; transition: none; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 600; padding: 10px 16px; border-radius: 10px; background: var(--c-ink); color: var(--c-bg); }
.skip:focus-visible { top: 16px; }

/* Состояния страницы: a — до 31.12, b — до розыгрыша, c — 15.01 реестр, d — итоги */
html[data-state="a"] [data-show]:not([data-show~="a"]),
html[data-state="b"] [data-show]:not([data-show~="b"]),
html[data-state="c"] [data-show]:not([data-show~="c"]),
html[data-state="d"] [data-show]:not([data-show~="d"]) { display: none !important; }

/* Фоновые засветы — ритм из кадра Figma 78:624: справа → слева/справа → по центру → … */
[data-g1] { position: relative; isolation: isolate; }
[data-g1]::before, [data-g2]::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, var(--glow) 0%, var(--glow-mid) 45%, transparent 100%); }
[data-g1]::before { width: min(var(--g1s, 1080px), 150vw); top: var(--g1y, 0%); }
[data-g2]::after { width: min(var(--g2s, 1080px), 150vw); top: var(--g2y, 0%); background: radial-gradient(closest-side, var(--glow-2, var(--glow)) 0%, var(--glow-2-mid, var(--glow-mid)) 45%, transparent 100%); }
[data-g1="l"]::before, [data-g2="l"]::after { left: 50%; transform: translate(calc(-50% - 560px), -30%); }
[data-g1="r"]::before, [data-g2="r"]::after { left: 50%; transform: translate(calc(-50% + 560px), -30%); }
[data-g1="c"]::before, [data-g2="c"]::after { left: 50%; transform: translate(-50%, -30%); }
@media (max-width: 767px) {
  [data-g1]::before, [data-g2]::after { width: 130vw; }
  [data-g1="l"]::before, [data-g2="l"]::after { transform: translate(-95%, -30%); }
  [data-g1="r"]::before, [data-g2="r"]::after { transform: translate(-5%, -30%); }
}

.vk-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.link__ico { flex: none; width: 1.15em; height: 1.15em; fill: currentColor; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }


/* Липкая кнопка на телефоне: появляется после первого экрана */
.dock { position: fixed; inset: auto 12px 12px; z-index: 400; display: none; transform: translateY(140%); transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.dock.is-on { transform: none; }
@media (max-width: 767px) { .dock { display: block; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}


body { background: var(--c-deep) linear-gradient(160deg, var(--c-grad-a) 0, var(--c-grad-b) 1400px, var(--c-deep) 2600px) no-repeat; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 960px; }
.sec { padding-block: var(--sec); }
.h2 { font-size: var(--t-h2); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; max-width: 18ch; }
.sec__head { display: grid; gap: 16px; margin-bottom: 36px; }
.sec__lead { color: var(--c-muted); font-size: 1.125rem; max-width: 56ch; }
.foot { margin-top: 24px; font-size: 0.75rem; line-height: 1.5; color: var(--c-faint); max-width: 150ch; }
.foot a { color: var(--c-muted); }
/* Юридический текст на первом экране: одна строка + подсказка с полным текстом */
.legal { position: relative; margin-top: 24px; font-size: 0.8125rem; line-height: 1.5; color: var(--c-faint); }
.legal p { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: visible; }
.legal a { color: var(--c-muted); }
.legal__tip { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px 0 -6px 4px; vertical-align: middle; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); transition: color var(--m-150) var(--ease-out), background-color var(--m-150) var(--ease-out); }
.legal__tip svg { width: 18px; height: 18px; fill: currentColor; }
.legal__tip:hover, .legal__tip[aria-expanded="true"] { color: var(--c-ink); background: var(--c-surface-2); }
.legal__pop { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 20; width: min(560px, 100%); padding: 14px 16px; border-radius: 14px; background: var(--c-paper); color: var(--c-paper-muted); font-size: 0.8125rem; line-height: 1.5; box-shadow: 0 16px 40px var(--c-shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--m-200) var(--ease-out), transform var(--m-200) var(--ease-out), visibility 0s linear var(--m-200); }
.legal__pop a { color: var(--c-print); }
.legal:has(.legal__tip:hover) .legal__pop, .legal:has(.legal__tip:focus-visible) .legal__pop, .legal.is-open .legal__pop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; transition: background-color var(--m-150) var(--ease-out), transform var(--m-150) var(--ease-out), border-color var(--m-150) var(--ease-out); }
.btn__ico { flex: none; width: 22px; height: 22px; margin-right: 10px; fill: currentColor; }
.btn--l { min-height: 60px; padding: 0 32px; font-size: 1.0625rem; }
.btn--main { background: var(--c-btn); color: var(--c-btn-ink); box-shadow: 0 10px 30px var(--c-shadow); }
.btn--main:hover { background: var(--c-btn-hover); }
.btn--light { border-color: var(--c-light-line); color: var(--c-ink); background: transparent; }
.btn--light:hover { background: var(--c-surface-2); }
.btn--dark { background: var(--c-paper-ink); color: var(--c-paper); }
.btn--dark:hover { background: var(--c-print); }
.btn:active { transform: scale(0.98); }
.btn--wide { display: flex; width: 100%; }
/* Серая кнопка DS 3.0 (ButtonBase theme-grey), скругление — как у кнопок лендинга */
.btn--grey { background: #f0f2f5; color: #242a37; font-weight: 600; padding: 0 28px; }
.btn--grey:hover { background: #e2e6ec; }
.btn--grey:active { background: #d7dbe2; }
.btn--center { display: flex; width: max-content; margin-inline: auto; }
.btn--center[hidden] { display: none; }

/* Шапка */
.nav { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.nav__logo { display: block; padding-block: 4px; }
.nav__logo img { width: 92px; height: auto; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 24px; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--c-ink-soft); }
.nav__links a:hover { color: var(--c-lime); }
/* Liquid Glass: полупрозрачное стекло с сильным размытием, блик сверху и мягкая тень */
.nav__cta { position: relative; z-index: 2; border-color: rgb(255 255 255 / 0.38); background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.04)); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), inset 0 -1px 0 rgb(255 255 255 / 0.1), 0 8px 24px rgb(20 4 32 / 0.25); transition: background-color var(--m-150) var(--ease-out), box-shadow var(--m-150) var(--ease-out); }
.nav__cta:hover { background: linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.08)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 -1px 0 rgb(255 255 255 / 0.12), 0 10px 28px rgb(20 4 32 / 0.3); }
@media (max-width: 1023px) { .nav nav { display: none; } .nav__cta { margin-left: auto; } }

/* Заголовки всегда в две строки: шрифт подстраивается под ширину контейнера (--fit — ширина самой длинной строки в em, Inter 900) */
.hero__text, .sec__head, .final, #how, #faq, #rules { container-type: inline-size; }
.fit { max-width: none; }
.fit .ln { display: block; white-space: nowrap; }
.hero h1.fit { font-size: min(5.25rem, calc(100cqi / var(--fit))); }
.h2.fit { --fmax: 3.75rem; font-size: min(var(--fmax), calc(100cqi / var(--fit))); }
/* Короткий заголовок без боковых элементов — в одну строку, если помещается на максимальном кегле */
.h2.fit.is-one { font-size: var(--fmax); white-space: nowrap; }
.fit.is-one .ln { display: inline; }
.fit.is-one br.m { display: none !important; }
.fit br.m { display: none; }
@media (max-width: 599px) {
  .fit br.m { display: inline; }
  .h2.fit { --fmax: 2.25rem; font-size: min(var(--fmax), calc(100cqi / var(--fit-m, var(--fit)))); }
  .h2.fit.is-one { font-size: var(--fmax); }
}

/* Первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(520px, 44%)); gap: clamp(32px, 4vw, 64px); align-items: center; padding-top: clamp(16px, 3vw, 40px); }
.hero__text { display: grid; gap: 28px; justify-items: start; }
.hero h1 { font-size: var(--t-h1); line-height: 0.96; font-weight: 900; letter-spacing: -0.04em; }
.hero__lead { font-size: 1.1875rem; color: var(--c-ink-soft); max-width: 44ch; }
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lead-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--c-muted); transition: text-decoration-color var(--m-150) var(--ease-out); }
.lead-link:hover { text-decoration-color: currentColor; }
/* Акцент в подзаголовке первого экрана — золото гирлянды; контраст с фоном героя ≥ 4.5:1 */
.lead-accent { color: #ffc75a; font-weight: 600; }
.hero__dl { color: var(--c-muted); }
.hero__dl b { color: var(--c-ink); }
.hero__foot { grid-column: 1 / -1; }

/* Новогодняя атмосфера: гирлянды в углах первого экрана, снег, искры у билета */
.garland { position: absolute; top: 0; left: 0; right: 0; height: min(100svh, 920px); z-index: 0; pointer-events: none; overflow: hidden; }
.garland__side { position: absolute; top: 0; width: clamp(150px, 23vw, 340px); }
.garland__side--l { left: 0; }
.garland__side--r { right: 0; transform: scaleX(-1); }
.garland__svg { width: 100%; height: auto; overflow: visible; }
.garland__wire { fill: none; stroke: var(--c-wire); stroke-width: 2; }
.bulb__halo { opacity: 0.7; animation: glow 2.8s ease-in-out infinite alternate; }
.bulb.b1 .bulb__halo { animation-delay: -0.6s; } .bulb.b2 .bulb__halo { animation-delay: -1.3s; } .bulb.b3 .bulb__halo { animation-delay: -2s; } .bulb.b4 .bulb__halo { animation-delay: -2.5s; }
@keyframes glow { from { opacity: 0.3; } to { opacity: 1; } }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-snow { position: relative; isolation: isolate; }
.snow--footer { z-index: -1; height: 70%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 160px); mask-image: linear-gradient(to bottom, transparent, #000 160px); }
.nav, .hero { position: relative; z-index: 1; }
.nav__links a, .nav__logo, .nav__cta, .hero h1, .hero__lead, .hero__dl { text-shadow: 0 2px 18px var(--c-text-glow); }
.nav__logo img { filter: drop-shadow(0 2px 10px var(--c-text-glow)); }
.card { position: relative; }
.sparks { position: absolute; inset: -36px; pointer-events: none; }
.sparks i { position: absolute; width: 14px; height: 14px; background: var(--c-spark); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: twinkle 3.2s ease-in-out infinite; }
.sparks i:nth-child(1) { left: 4%; top: 10%; } .sparks i:nth-child(2) { left: 90%; top: 4%; width: 10px; height: 10px; animation-delay: -0.8s; }
.sparks i:nth-child(3) { left: 97%; top: 46%; animation-delay: -1.6s; } .sparks i:nth-child(4) { left: 86%; top: 92%; width: 18px; height: 18px; animation-delay: -2.4s; }
.sparks i:nth-child(5) { left: 8%; top: 88%; width: 10px; height: 10px; animation-delay: -1.1s; } .sparks i:nth-child(6) { left: -1%; top: 52%; animation-delay: -2.8s; }
.sparks i:nth-child(7) { left: 48%; top: -2%; width: 10px; height: 10px; animation-delay: -0.3s; background: var(--c-warm); } .sparks i:nth-child(8) { left: 56%; top: 99%; animation-delay: -1.9s; background: var(--c-warm); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 50% { opacity: 0.95; transform: scale(1) rotate(45deg); } }
/* Искры в блоке приза: крупнее, цветные (на светлом фоне белые не видны), разные движения */
.sparks--prize { inset: -56px -48px; }
.sparks--prize i { width: 26px; height: 26px; background: var(--c-spark-gold); filter: drop-shadow(0 0 6px var(--c-spark-glow)); animation: twinkle 3.4s ease-in-out infinite; }
.sparks--prize i:nth-child(3n) { background: var(--c-print); }
.sparks--prize i:nth-child(4n) { background: var(--c-spark-pink); }
.sparks--prize i:nth-child(1) { left: 2%; top: 8%; width: 34px; height: 34px; }
.sparks--prize i:nth-child(2) { left: 22%; top: -2%; width: 16px; height: 16px; animation: drift 5s ease-in-out infinite -1s; }
.sparks--prize i:nth-child(3) { left: 70%; top: 0%; width: 22px; height: 22px; animation-delay: -0.9s; }
.sparks--prize i:nth-child(4) { left: 94%; top: 14%; width: 30px; height: 30px; animation: spin 6s linear infinite; }
.sparks--prize i:nth-child(5) { left: 98%; top: 52%; width: 18px; height: 18px; animation-delay: -2.1s; }
.sparks--prize i:nth-child(6) { left: 90%; top: 88%; width: 36px; height: 36px; animation: drift 6s ease-in-out infinite -2.5s; }
.sparks--prize i:nth-child(7) { left: 60%; top: 97%; width: 20px; height: 20px; animation-delay: -1.4s; }
.sparks--prize i:nth-child(8) { left: 30%; top: 94%; width: 28px; height: 28px; animation: spin 7s linear infinite reverse; }
.sparks--prize i:nth-child(9) { left: 4%; top: 78%; width: 22px; height: 22px; animation-delay: -2.8s; }
.sparks--prize i:nth-child(10) { left: -2%; top: 44%; width: 30px; height: 30px; animation: drift 5.5s ease-in-out infinite -3.2s; }
.sparks--prize i:nth-child(11) { left: 46%; top: -4%; width: 14px; height: 14px; animation-delay: -0.4s; }
.sparks--prize i:nth-child(12) { left: 80%; top: 40%; width: 16px; height: 16px; animation-delay: -1.8s; }
@keyframes drift { 0%, 100% { opacity: 0.25; transform: translate(0, 0) scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: translate(6px, -14px) scale(1) rotate(30deg); } }
@keyframes spin { 0% { opacity: 0.4; transform: rotate(0deg) scale(0.8); } 50% { opacity: 1; transform: rotate(180deg) scale(1.1); } 100% { opacity: 0.4; transform: rotate(360deg) scale(0.8); } }
@media (prefers-reduced-motion: reduce) { .sparks--prize i { animation: none; opacity: 0.8; } }
@media (max-width: 599px) { .sparks--prize { inset: -28px -12px; } .sparks--prize i { transform-origin: center; } }
@media (max-width: 599px) { .garland__side { width: 30vw; } .sparks { inset: -16px; } }
@media (prefers-reduced-motion: reduce) { .card__tilt { --rx: 0deg !important; --ry: 0deg !important; } .bulb__halo { animation: none; opacity: 0.8; } .sparks i { animation: none; opacity: 0.6; } }

/* Рука в варежке: билет вложен между большим пальцем (передний слой) и остальными (задний слой), как на баннерах */
.card__hand { --hw: clamp(260px, 27vw, 380px); position: absolute; width: var(--hw); right: calc(var(--hw) * -0.713); bottom: calc(var(--hw) * -0.5607); pointer-events: none;
  transform: rotate(calc(var(--ry) * 0.5)); transform-origin: 28.7% 30.5%; transition: transform 500ms cubic-bezier(0.45, 0, 0.25, 1); }
.card__hand--back { z-index: 0; }
.card__hand--front { z-index: 3; }
.card__flip { position: relative; z-index: 1; transform-style: preserve-3d; }
.card__tilt.is-flipping .card__flip { z-index: 4; }
.card__ticket, .card__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card__back { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; border-radius: 22px; transform: rotateY(180deg); color: var(--c-ink);
  background: radial-gradient(circle at 30% 20%, var(--c-sheen), transparent 45%), linear-gradient(135deg, var(--c-grad-a), var(--c-grad-b));
  -webkit-mask: radial-gradient(circle at 0 61px, #0000 16px, var(--c-mask) 17px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 61px, #0000 16px, var(--c-mask) 17px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 61px, #0000 16px, var(--c-mask) 17px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 61px, #0000 16px, var(--c-mask) 17px) right / 51% 100% no-repeat; }
.card__back img { width: 120px; height: auto; }
.card__back span { font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; font-weight: 900; letter-spacing: -0.05em; }
.card__back p { font-weight: 700; opacity: 0.85; }
.card__tilt.is-release .card__hand { transform: rotate(5deg) translate(8px, 6px); transition: transform 500ms cubic-bezier(0.45, 0, 0.25, 1); }
.card__hand img { width: 100%; height: auto; transform-origin: 28.7% 30.5%; animation: hold 6s ease-in-out infinite; }
.card__hand--back img { filter: drop-shadow(-6px 10px 14px var(--c-hand-shadow)); }
.card__hand--front img { filter: drop-shadow(-3px 4px 5px var(--c-hand-shadow)); }
.card__tilt.is-grip .card__hand img { animation-play-state: paused; }
.card__tilt.is-grip .card__hand { transform: rotate(calc(var(--ry) * 0.5 - 1.5deg)) scale(0.985); transition-duration: var(--m-150); }
@keyframes hold { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1deg) translateY(1px); } }
.card__wipe { justify-self: start; }
@media (min-width: 900px) { .card .card__tilt { width: calc(100% - clamp(70px, 7vw, 120px)); justify-self: start; } }
/* Телефон и планшет: билет во всю ширину и по центру, варежка уходит за правый край экрана */
@media (max-width: 899px) { .card__hand { --hw: clamp(170px, 44vw, 260px); right: calc(var(--hw) * -0.76); } .card .card__tilt { width: 100%; justify-self: center; } .card .card__two .is-gift { padding-right: 8%; } }
@media (prefers-reduced-motion: reduce) { .card__hand img { animation: none; } .card__hand { transition: none; } }

/* Объёмные анимированные эмодзи (Microsoft Fluent Emoji, MIT) в призывах и фразах про участие */
.emo { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; line-height: 0; }
.emo img { width: 100%; height: 100%; }
.h2 .emo { width: 0.95em; height: 0.95em; vertical-align: -0.1em; }
.fields__big .emo { width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin-left: 0.1em; }
.card__two li:has(.emo--mark)::before { content: none; }
.emo--mark { position: absolute; left: -3px; top: -4px; width: 28px; height: 28px; }
/* Иконка подарка как на корешке карточки тура, адаптирована под тёмный фон */
.gift-note .gift-note__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 1rem; background: rgb(255 255 255 / 0.12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); color: #fff; }
.gift-note .gift-note__ico .pi { width: 20px; height: 20px; }

/* Билет со стираемым слоем */
.card { display: grid; gap: 14px; justify-items: center; }
.card__ticket::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx) var(--my), var(--c-sheen), transparent 38%), linear-gradient(115deg, transparent 30%, var(--c-sheen-warm) calc(var(--mx) * 0.6 + 20%), transparent 75%); }
.card__tilt { --rx: 0deg; --ry: 0deg; position: relative; width: 100%; transform: perspective(1000px) rotate(-2deg) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;  filter: drop-shadow(0 30px 40px var(--c-shadow)); }
.card__ticket { --hole: 16px; --hole-y: 61px; --mx: 30%; --my: 20%; position: relative; width: 100%; padding: 22px; border-radius: 22px; color: var(--c-paper-ink);
  background: var(--tex-paper), var(--tex-fiber), linear-gradient(160deg, var(--c-ticket) 0%, var(--c-ticket) 55%, var(--c-ticket-2) 100%);
  -webkit-mask: radial-gradient(circle at 0 var(--hole-y), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% var(--hole-y), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 var(--hole-y), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% var(--hole-y), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)) right / 51% 100% no-repeat; }
.card__top { display: flex; justify-content: space-between; line-height: 24px; padding-bottom: 14px; border-bottom: 2px dashed var(--c-ticket-line); font-weight: 800; color: var(--c-print); }
.card__prize { container-type: inline-size; display: grid; gap: 4px; justify-items: center; padding: 20px 8px 4px; text-align: center; }
.card__field { position: relative; margin-block: 16px; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--c-ticket-stripe-a) 0 10px, var(--c-ticket-stripe-b) 10px 20px); }
.card__hidden { display: grid; gap: 4px; justify-items: center; padding: 24px 16px; text-align: center; }
.card__when { font-size: 1.5rem; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; color: var(--c-print); }
.card__label { font-weight: 600; color: var(--c-ticket-muted); }
.card__amount { font-size: min(2.75rem, calc(100cqi / 9.6)); line-height: 1; font-weight: 900; letter-spacing: -0.04em; color: var(--c-print); white-space: nowrap; }
.card__note { font-weight: 600; color: var(--c-ticket-muted); }
.card__foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity var(--m-300) var(--ease-out); }
.card__foil.is-done { opacity: 0; pointer-events: none; }
.card__two { padding-right: 0; display: grid; gap: 10px; padding-top: 14px; border-top: 2px dashed var(--c-ticket-line); font-size: 0.9375rem; color: var(--c-ticket-muted); }
.card__two li { position: relative; padding-left: 32px; }
.card__two li::before { content: "1"; position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-paper-ink); color: var(--c-paper); font-size: 0.75rem; font-weight: 800; }
.card__two .is-gift::before { content: ""; background: linear-gradient(var(--c-card), var(--c-card)) center / 10px 2px no-repeat, linear-gradient(var(--c-card), var(--c-card)) center / 2px 10px no-repeat, var(--c-print); }
.card__two .is-gift { padding-right: 22%; }
.card__two b { display: block; color: var(--c-paper-ink); }
.card__wipe { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line); background: transparent; font-weight: 600; }
.card__wipe:hover { background: var(--c-surface-2); }
.card__foil:not(.is-ready) { visibility: hidden; }
@media (max-width: 899px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero__text { gap: 20px; } .card { max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 479px) { .card__tilt { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); } .card__ticket { --hole-y: 55px; padding: 16px; } .card__prize { padding-top: 14px; } .card__hidden { padding: 18px 10px; } }

/* Конфетти из билетиков после стирания */
.confetti { position: fixed; inset: 0; z-index: 450; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 0; top: 0; width: 10px; height: 16px; border-radius: 2px; background: var(--c-spark); will-change: transform, opacity; } /* оптическое исключение: разовое падение после стирания, отключается при reduced-motion */
.confetti i:nth-child(3n) { background: var(--c-warm); }
.confetti i:nth-child(4n) { background: var(--c-grad-a); }
.confetti i:nth-child(5n) { background: var(--c-lime-2); border-radius: 50%; width: 9px; height: 9px; }

/* Три поля */
.fields { --hole: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-radius: 28px; background: var(--c-surface); border: 1px solid var(--c-line);
  -webkit-mask: radial-gradient(circle at 33.333% 0, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)), radial-gradient(circle at 33.333% 100%, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)), radial-gradient(circle at 66.666% 0, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)), radial-gradient(circle at 66.666% 100%, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 33.333% 0, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)), radial-gradient(circle at 33.333% 100%, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)), radial-gradient(circle at 66.666% 0, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)), radial-gradient(circle at 66.666% 100%, #0000 var(--hole), var(--c-mask) calc(var(--hole) + 1px)); mask-composite: intersect; }
.fields li { position: relative; display: grid; gap: 10px; align-content: start; padding: 32px 32px 36px; }
.fields li + li { border-left: 2px dashed var(--c-line); }
.fields__big { font-size: clamp(1.25rem, 1.3vw + 0.5rem, 1.75rem); line-height: 1.1; font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--c-lime); margin-bottom: 8px; white-space: nowrap; }
.fields h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; }
.fields p:not(.fields__big) { color: var(--c-muted); }
.gift-note { display: flex; gap: 12px; align-items: center; margin-top: 28px; font-size: 1.0625rem; color: var(--c-ink-soft); }
.gift-note span { flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 0; background: linear-gradient(var(--c-lime-ink), var(--c-lime-ink)) center / 12px 2.5px no-repeat, linear-gradient(var(--c-lime-ink), var(--c-lime-ink)) center / 2.5px 12px no-repeat, var(--c-lime); }
@media (max-width: 899px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .fields li { padding: 24px 24px 28px; }
  .fields li + li { border-left: 0; border-top: 2px dashed var(--c-line); }
  .fields { -webkit-mask: none; mask: none; }
}

/* Туры: светлая «бумага», лента с прокруткой */
.sec--paper { background: var(--c-paper); color: var(--c-paper-ink); }
.sec--paper .sec__lead { color: var(--c-paper-muted); }
.chips { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line); background: transparent; font-size: 0.9375rem; font-weight: 600; transition: background-color var(--m-150) var(--ease-out), border-color var(--m-150) var(--ease-out); }
.chip:hover { border-color: var(--c-lime); }
.chip[aria-pressed="true"] { background: var(--c-lime); color: var(--c-lime-ink); border-color: var(--c-lime); }
/* Фильтр туров закреплён, пока виден блок с турами */
#tours .chips { position: sticky; top: 0; z-index: 5; margin: 0 -14px 24px; padding: 12px 14px; border-radius: 0 0 20px 20px; transition: box-shadow var(--m-200) var(--ease-out), background-color var(--m-200) var(--ease-out); }
#tours .chips.is-stuck { background: rgb(251 248 255 / 0.84); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 24px -14px rgb(36 42 55 / 0.35); }
#tours .chip:not([aria-pressed="true"]) { background: rgb(255 255 255 / 0.6); }
.tours { overflow-anchor: none; }
.sec--paper .chip { border-color: var(--c-paper-line); }
.sec--paper .chip:hover { border-color: var(--c-paper-ink); }
.sec--paper .chip[aria-pressed="true"] { background: var(--c-paper-ink); color: var(--c-paper); border-color: var(--c-paper-ink); }
.tours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
/* Карточка тура на светлой подложке, снизу корешок с подарком; вся подложка кликабельна */
.tour__link { --hole: 10px; position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 6px; border-radius: 26px; background: var(--c-stub-bg); border: 1px solid var(--c-paper-line); color: var(--c-paper-ink); text-decoration: none; transition: transform var(--m-200) var(--ease-out), border-color var(--m-200) var(--ease-out); }
.tour__link { -webkit-mask: radial-gradient(circle at 0 calc(100% - 83px), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 0.5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% calc(100% - 83px), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 0.5px)) right / 51% 100% no-repeat; mask: radial-gradient(circle at 0 calc(100% - 83px), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 0.5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% calc(100% - 83px), #0000 var(--hole), var(--c-mask) calc(var(--hole) + 0.5px)) right / 51% 100% no-repeat; }
.tour__link:hover { transform: translateY(-4px); border-color: var(--c-stub-line); }
.tour__link:active { transform: translateY(-1px); }
.tour__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px 20px 0 0; }
.tour__media img { width: 100%; height: 100%; object-fit: cover; }
.tour__body { background: var(--c-card); border-radius: 0 0 20px 20px; }
.tour__stub { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; box-sizing: border-box; height: 76px; margin-top: 6px; padding: 8px 10px; border-top: 2px dashed var(--c-stub-line); }
.tour__stub-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--c-tint-print); color: var(--c-print); }
.tour__stub-ico .pi { width: 20px; height: 20px; }
.tour__stub p { display: grid; font-size: 0.9375rem; line-height: 1.3; font-weight: 700; color: var(--c-paper-ink); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tour__stub small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--c-print); }
.tour__body { display: grid; gap: 6px; padding: 16px 16px 18px; align-content: start; }
.tour__meta, .tour__dates { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 0.8125rem; color: var(--c-paper-muted); }
.tour__title { font-family: var(--font-body); font-size: 0.875rem; line-height: 1.35; font-weight: 600; }
.tour__price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tour__price b { font-size: 1.125rem; color: var(--c-paper-muted); }
.tour__old, .tour__price span { font-size: 0.8125rem; color: var(--c-paper-muted); }
@media (max-width: 1199px) { .tours { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .tours { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 559px) { .tours { grid-template-columns: minmax(0, 1fr); } }

/* Главный приз */
.prize { padding-block: var(--sec); background: var(--c-paper); color: var(--c-paper-ink); }
/* Линия отрыва между турами и призом: перфорация с вырезами по краям, как на билете */
.tear { position: relative; height: 0; background: var(--c-paper); }
.tear::before { content: ""; position: absolute; left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); top: -1px; border-top: 2px dashed var(--c-paper-line); }
.card--static { width: min(100%, 440px); justify-self: center; margin-inline: auto; }
.card.card--static .card__tilt { width: 100%; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .card.card--static .card__tilt { animation: none; } }
.prize__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.prize__text { display: grid; gap: 28px; align-content: center; }
.prize__text { container-type: inline-size; }
.prize__title { max-width: none; }
.terms { display: grid; gap: 18px; }
.terms li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; }
.terms__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-tint-print); color: var(--c-print); }
.pi { width: 26px; height: 26px; fill: currentColor; }
.terms p { font-size: 1.0625rem; line-height: 1.45; color: var(--c-paper-muted); }
.terms b { color: var(--c-paper-ink); font-weight: 700; }
.terms .vk-link { margin-top: 6px; color: var(--c-print); font-weight: 700; }
.prize__img { display: grid; padding-block: 24px; }
@media (max-width: 899px) { .prize__in { grid-template-columns: minmax(0, 1fr); } .prize__h { font-size: clamp(2.5rem, 12.5vw, 4.5rem); } }

/* Прозрачность */
/* Таймлайн розыгрыша: три шага на одной линии, на мобильных — вертикально */
.tl { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 34px; }
.tl::before { content: ""; position: absolute; top: 9px; left: 10px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--c-line) 0 8px, transparent 8px 14px); }
.tl__step { position: relative; display: grid; gap: 8px; align-content: start; }
.tl__dot { position: absolute; top: -34px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--c-deep); border: 2px solid var(--c-ink-soft); box-shadow: 0 0 0 6px var(--c-deep); }
html[data-state="c"] .tl__step:first-child .tl__dot, html[data-state="d"] .tl__dot { background: var(--c-ink); border-color: var(--c-ink); }
.tl__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--c-muted); }
.tl__when b { font-size: 1.5rem; line-height: 1.15; color: var(--c-ink); font-weight: 900; }
.tl__done { padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgb(255 255 255 / 0.14); color: var(--c-ink); }
.tl__title { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; }
.tl__text { color: var(--c-ink-soft); max-width: 34ch; }
.tl__text small { font-size: 0.6875rem; color: var(--c-faint); }
.tl__link { justify-self: start; margin-top: 4px; font-weight: 700; color: var(--c-ink); }
.tl__check { margin-top: 36px; }
.tl__check-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--c-ink); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 4px; cursor: pointer; }
.tl__check-btn:hover { text-decoration-color: currentColor; }
.tl__check-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) {
  .tl { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 0 0 36px; }
  .tl::before { top: 10px; bottom: 10px; left: 9px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--c-line) 0 8px, transparent 8px 14px); }
  .tl__dot { top: 4px; left: -36px; }
}
.check-modal { --modal-w: 620px; }
.check-dl { display: grid; gap: 14px; margin: 16px 0 8px; }
.check-dl div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--c-paper-line); }
.check-dl dt { font-size: 0.8125rem; font-weight: 700; color: var(--c-paper-muted); }
.check-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.check-dl dd small { font-size: 0.6875rem; color: var(--c-paper-muted); font-weight: 500; }
.check-hash { font-family: ui-monospace, monospace; }
.check-dl .check-wait { color: var(--c-paper-muted); font-weight: 500; }

/* FAQ и правила */
#faq .chips { margin-top: 28px; }
.faqs, .rules { display: grid; gap: 10px; margin-block: 8px 28px; }
.faq, .rule { border-radius: 18px; background: var(--c-surface); border: 1px solid var(--c-line); padding-inline: 22px; }
.faq[open], .rule[open] { background: var(--c-surface-2); }
.faq__q, .rule__q { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 20px; font-size: 1.0625rem; font-weight: 700; }
.faq__q:hover, .rule__q:hover { color: var(--c-lime); }
.faq__q svg, .rule__q svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform var(--m-200) var(--ease-out); }
details[open] > summary svg { transform: rotate(180deg); }
.faq__a, .rule__a { padding-bottom: 20px; color: var(--c-ink-soft); max-width: 65ch; }
.rule__q { justify-content: flex-start; }
.rule__q svg { margin-left: auto; }
.rule__n { width: 26px; color: var(--c-lime); }
#rules .sec__lead { margin-block: 16px 28px; }

/* Правила: короткая строка вместо блока + полный текст в попапе */
html:has(.rules-modal[open]) { overflow: hidden; }
.rules-row { margin-bottom: 32px; scroll-margin-top: 96px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 20px 24px; border-radius: 18px; background: var(--c-surface); border: 1px solid var(--c-line); }
.rules-row p { color: var(--c-muted); font-size: 0.9375rem; }
/* Ширина попапа — одна для всех: узкие окна (подарок, данные для проверки) задают только --modal-w.
   Проценты, а не vw: не зависят от полосы прокрутки; max-width: none снимает браузерное ограничение у <dialog>. */
.rules-modal { width: min(var(--modal-w, 760px), calc(100% - 24px)); max-width: none; max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 24px; background: var(--c-paper); color: var(--c-paper-ink); box-shadow: 0 30px 80px var(--c-shadow); overflow: hidden; }
.rules-modal[open] { display: flex; flex-direction: column; animation: modal-in var(--m-300) var(--ease-out); }
.rules-modal::backdrop { background: rgb(20 4 32 / 0.6); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.rules-modal__head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 24px 28px 18px; border-bottom: 2px dashed var(--c-paper-line); }
.rules-modal__head h2 { font-size: clamp(1.125rem, 1vw + 0.8rem, 1.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; max-width: 30ch; }
.rules-modal__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-paper-ink); }
.rules-modal__close:hover { background: var(--c-tint-print); }
.rules-modal__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rules-modal__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 32px; font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-on-paper, var(--c-paper-ink)); }
.rules-modal__body h3 { margin: 24px 0 10px; font-size: 1.0625rem; font-weight: 600; color: var(--c-print); }
.rules-modal__body p { margin: 0 0 10px; max-width: 68ch; }
.rules-modal__body ul { margin: 0 0 12px; padding: 0 0 0 4px; list-style: none; display: grid; gap: 6px; }
.rules-modal__body .r-terms li { padding-left: 14px; border-left: 2px solid var(--c-paper-line); }
.rules-modal__body .r-sub li { padding-left: 18px; }
.rules-modal__body .r-n { font-weight: 700; color: var(--c-paper-ink); font-variant-numeric: tabular-nums; }
.rules-modal__body a { color: var(--c-print); overflow-wrap: anywhere; }
@media (max-width: 599px) { .rules-modal { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; } .rules-modal__head { padding: 20px 18px 14px; } .rules-modal__body { padding: 4px 18px 28px; } .rules-row { padding: 16px; } .rules-row .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .rules-modal[open] { animation: none; } }


/* Карточки из API: верх — ссылка на тур, корешок — кнопка «Подарок от гида» */
.tour__main { display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; border-radius: 20px; }
.tour__main:focus-visible, .tour__stub:focus-visible { outline: 2px solid var(--c-print); outline-offset: 2px; }
.tour__media { position: relative; background: linear-gradient(135deg, var(--c-tint-print), var(--c-paper-line)); }
.tour__media:not(:has(img))::after { content: attr(data-country); position: absolute; inset: auto 14px 12px; font-size: 0.875rem; font-weight: 700; color: var(--c-print); }
button.tour__stub { grid-template-columns: 36px minmax(0, 1fr) 20px; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0 0 20px 20px; background: transparent; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: background-color var(--m-150) var(--ease-out); }
button.tour__stub:hover { background: var(--c-tint-print); }
.tour__chev { width: 20px; height: 20px; fill: none; stroke: var(--c-print); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--m-150) var(--ease-out); }
button.tour__stub:hover .tour__chev { transform: translateX(2px); }
.tour__plus { margin-left: 6px; font-size: 0.75rem; font-weight: 700; color: var(--c-print); white-space: nowrap; }
.tour__title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tour__price b { white-space: nowrap; }
.tours__err { margin: 0 0 24px; color: var(--c-paper-muted); }
.tours__err a { color: var(--c-print); }
.tour--skel .tour__link { pointer-events: none; }
.tour--skel .tour__media { background: var(--c-paper-line); }
.tour--skel .tour__body { min-height: 150px; }
.tour--skel i { display: block; height: 12px; border-radius: 6px; background: var(--c-paper-line); }
.tour--skel i:nth-child(2) { width: 80%; height: 18px; }
.tour--skel i:nth-child(3) { width: 45%; }
.tour--skel .tour__media, .tour--skel i { animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .tour--skel .tour__media, .tour--skel i { animation: none; } }

/* Попап подарка */
.gift-modal { --modal-w: 620px; }
.gift-modal__tour { margin: 0 0 4px; font-size: 0.8125rem; line-height: 1.35; font-weight: 600; color: var(--c-paper-muted); max-width: 46ch; }
.gift-item + .gift-item { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-paper-line); }
.gift-item h3 { margin-top: 18px; }
.gift-item__dl { display: grid; gap: 8px; margin: 14px 0 6px; }
.gift-item__dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.gift-item__dl dt { font-size: 0.8125rem; font-weight: 700; color: var(--c-paper-muted); }
.gift-item__dl dd { margin: 0; font-weight: 600; }
.rules-modal__body .gift-modal__fine { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--c-tint-print); font-size: 0.8125rem; line-height: 1.5; color: var(--c-paper-muted); }
/* Кнопка DS 3.0: ButtonBase theme-white, size-l (@ytme/uikit) */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 24px; letter-spacing: -0.24px; text-decoration: none; cursor: pointer; transition: background-color var(--m-150) var(--ease-out), border-color var(--m-150) var(--ease-out); }
.ds-btn--white, .rules-modal__body .ds-btn--white { border: 1px solid #dbdfe9; background: #fff; color: #242a37; }
.ds-btn--white:hover { background: #f6f7fa; }
.ds-btn--white:active { border-color: #242a37; background: #f6f7fa; }
.ds-btn:focus-visible { outline: 2px solid var(--c-print); outline-offset: 2px; }
.gift-modal .ds-btn { margin-top: 8px; }
@media (max-width: 599px) { .gift-modal .ds-btn { width: 100%; } .gift-item__dl div { grid-template-columns: 80px minmax(0, 1fr); } }


/* Декор блока туров: гирлянда сверху, редкие падающие бирки и звёзды — всё фоном, акцент на карточках */
#tours { position: relative; overflow: clip; }
#tours > .wrap { position: relative; z-index: 1; }
.tg { position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none; opacity: 0.55; overflow: hidden; }
.tg__svg { display: block; width: 100%; height: auto; }
.tg__wire { fill: none; stroke: #c9b6e0; stroke-width: 1.5; }
.tg .bulb__halo { opacity: 0.5; }
.tdeco { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0 var(--tdeco-top, 380px), #000 calc(var(--tdeco-top, 380px) + 140px)); mask-image: linear-gradient(to bottom, transparent 0 var(--tdeco-top, 380px), #000 calc(var(--tdeco-top, 380px) + 140px)); }
.tdeco i { position: absolute; top: -40px; left: var(--x); width: var(--s); height: var(--s); opacity: var(--o); animation: tdeco-fall var(--d) linear var(--dl) infinite; animation-play-state: paused; }
.tdeco i svg { width: 100%; height: 100%; display: block; animation: tdeco-sway calc(var(--d) / 4) ease-in-out var(--dl) infinite alternate; animation-play-state: inherit; transform-origin: 50% 0; }
.tdeco.is-on i { animation-play-state: running; }
@keyframes tdeco-fall { to { transform: translateY(calc(var(--h, 2400px) + 80px)); } }
@keyframes tdeco-sway { from { transform: translateX(-14px) rotate(-14deg); } to { transform: translateX(14px) rotate(14deg); } }
/* Иконка подарка вспыхивает один раз, когда карточка появляется на экране */
.tour__stub-ico { position: relative; }
.tour__stub-ico::before, .tour__stub-ico::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--c-spark-gold, #ffc75a); opacity: 0; pointer-events: none; }
.tour__stub-ico::before { top: 2px; right: 2px; }
.tour__stub-ico::after { bottom: 4px; left: 0; background: var(--c-spark-pink, #f7a8c8); }
.tour.is-lit .tour__stub-ico { animation: ico-lit 900ms var(--ease-out) var(--lit-dl, 0ms) both; }
.tour.is-lit .tour__stub-ico::before { animation: spark-a 800ms var(--ease-out) calc(var(--lit-dl, 0ms) + 120ms) both; }
.tour.is-lit .tour__stub-ico::after { animation: spark-b 800ms var(--ease-out) calc(var(--lit-dl, 0ms) + 200ms) both; }
@keyframes ico-lit { 0% { box-shadow: 0 0 0 0 rgb(106 27 184 / 0.35); transform: scale(1); } 35% { transform: scale(1.14) rotate(-6deg); } 100% { box-shadow: 0 0 0 12px rgb(106 27 184 / 0); transform: none; } }
@keyframes spark-a { 0% { opacity: 0; transform: none; } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -12px) scale(0.4); } }
@keyframes spark-b { 0% { opacity: 0; transform: none; } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-12px, 8px) scale(0.4); } }
@media (max-width: 899px) { .tg__svg { width: 200%; margin-left: -50%; } }
@media (max-width: 599px) { .tg { opacity: 0.45; } .tg__svg { width: 260%; margin-left: -80%; } }
@media (prefers-reduced-motion: reduce) { .tdeco { display: none; } .tg .bulb__halo { animation: none; } .tour.is-lit .tour__stub-ico, .tour.is-lit .tour__stub-ico::before, .tour.is-lit .tour__stub-ico::after { animation: none; } }

/* Подвал */
.footer { padding-block: var(--sec) 48px; background: transparent; color: var(--c-ink); }
/* Место под липкую кнопку — только на телефоне и только пока идёт приём броней */
@media (max-width: 767px) { html[data-state="a"] .footer { padding-bottom: 104px; } }
.final { display: grid; gap: 28px; justify-items: start; padding-bottom: 64px; margin-bottom: 40px; border-bottom: 2px dashed var(--c-line); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { text-decoration: none; color: var(--c-ink-soft); }
.footer__links a:hover { color: var(--c-lime); }
.dock .btn { box-shadow: 0 10px 30px var(--c-shadow); }

/* ── Финальная доводка под телефон и скорость ── */
/* Ряды фильтров на телефоне листаются от края до края экрана: обрезанная кнопка у края подсказывает, что ряд прокручивается */
@media (max-width: 767px) {
  .chips, #tours .chips { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
  #tours .chips { border-radius: 0; }
}
/* Область касания не меньше 44 px, вид не меняется */
.legal__tip, .vk-link, .tl__link, .footer__links a { position: relative; }
.legal__tip::after { content: ""; position: absolute; inset: -8px; }
.vk-link::after, .tl__link::after, .footer__links a::after { content: ""; position: absolute; inset: -10px 0; }
/* Попапы: высота по видимой части экрана с учётом панелей браузера (dvh); где dvh нет — остаётся vh */
.rules-modal { max-height: min(86dvh, 900px); }
@media (max-width: 599px) { .rules-modal { max-height: 92dvh; } }
/* Попапы на телефоне (нижняя шторка) */
@media (max-width: 599px) {
  /* отступ под полосу «Домой» на iPhone (страница с viewport-fit=cover) */
  .rules-modal__body { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  /* компактная шапка: длинный заголовок правил не съедает четверть экрана */
  .rules-modal__head h2 { font-size: 1.0625rem; }
  /* «Смотреть тур» всегда на виду, даже если описание подарка длинное */
  .gift-modal .ds-btn { position: sticky; bottom: 8px; z-index: 1; box-shadow: 0 0 0 8px var(--c-paper), 0 -20px 24px 6px var(--c-paper); }
}
/* Декоративные анимации на паузе, пока блок за пределами экрана (класс ставит js) */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
