/* ============================================================
   ТАРКОС — лендинг программы лояльности
   Production styles. Brand tokens from tarkos.ru design system.
   ============================================================ */

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

:root {
    --yellow:        #FFC81A;
    --yellow-2:      #FAB615;
    --yellow-soft:   #FFE07A;
    --black:         #000000;
    --ink:           #242424;
    --ink-2:         #1E1E1E;
    --ink-soft:      #4A4A4A;
    --muted:         #848484;
    --gray-card:     #9D9D9D;
    --gray-line:     #CCCCCC;
    --gray-soft:     #D9D9D9;
    --gray-bg:       #ECECEC;
    --bg:            #FFFFFF;
    --surface:       #F7F7F7;
    --surface-2:     #ECECEC;
    --line:          #CCCCCC;
    --accent:        #FFC81A;
    --accent-fg:     #000000;

    --ff:           'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ff-display:   'Gilroy', 'Inter', sans-serif;
    --ff-mono:      'JetBrains Mono', ui-monospace, "SFMono-Regular", Menlo, monospace;

    --tracking-caps:    0.08em;
    --tracking-menu:    1.4px;
    --tracking-h1:      3.2px;

    --dur:  0.2s;
    --ease: linear;

    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
    --page-pad:    max(16px, var(--safe-left));
    --modal-gutter: max(16px, var(--safe-left), var(--safe-right));
    --modal-width: min(520px, calc(100vw - var(--modal-gutter) * 2));
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
    font-family: var(--ff);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
/* Главный контейнер контента: 1280px, как в дизайн-референсе. Хедер/футер растягиваются на всю ширину. */
main#main { max-width: 1280px; margin: 0 auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ============================================================
   Primitives — buttons, inputs, eyebrow, headings
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    text-decoration: none;
    border-radius: 0;
    font-family: var(--ff);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--primary {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}
.btn--primary:hover { background: var(--black); color: var(--yellow); border-color: var(--black); }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--lg { padding: 18px 48px; font-size: 17px; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }

.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.15s linear;
    font-family: var(--ff);
}
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--muted); }
.input[type="date"],
.input[type="time"],
.input[type="datetime-local"] {
    text-align: left;
    min-width: 0;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
}
.checkbox input { appearance: none; -webkit-appearance: none; position: absolute; opacity: 0; pointer-events: none; }
.checkbox .box {
    width: 16px; height: 16px;
    border: 1px solid var(--ink);
    flex-shrink: 0;
    margin-top: 2px;
    display: grid; place-items: center;
}
.checkbox input:checked ~ .box::after {
    content: "";
    width: 8px; height: 8px;
    background: var(--ink);
}

.lnk { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lnk:hover { color: var(--muted); }

.eyebrow {
    font-family: var(--ff);
    font-size: 12px;
    letter-spacing: var(--tracking-menu);
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 700;
    margin: 0 0 12px;
}

/* cifr-title — фирменный заголовок секции с жёлтой полосой 11×324 */
.cifr-title,
.prizes h2, .steps h2, .products h2, .faq h2 {
    color: var(--black);
    font-family: var(--ff-display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 36px;
    position: relative;
    padding-bottom: 24px;
}
.cifr-title::after,
.prizes h2::after, .steps h2::after, .products h2::after, .faq h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    display: block;
    height: 11px;
    background: var(--yellow);
    width: 324px;
    max-width: 100%;
}

/* ============================================================
   HEADER (desktop)
   ============================================================ */
.site-header {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 20px 48px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}
.brand img { height: 32px; width: auto; display: block; }
.site-footer .brand img { height: 56px; }

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-menu a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
}
.nav-menu a:hover::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
}

.header-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ============================================================
   MOBILE HEADER + DRAWER
   ============================================================ */
.m-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.m-burger {
    display: flex; flex-direction: column; gap: 4px;
    width: 28px; height: 28px;
    justify-content: center; align-items: center;
    background: transparent; border: none; padding: 0;
    cursor: pointer;
}
.m-burger span { display: block; height: 2px; width: 24px; background: var(--ink); transition: transform .25s, opacity .2s; transform-origin: center; }
.m-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.m-burger.is-open span:nth-child(2) { opacity: 0; }
.m-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.m-drawer-scrim {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
    display: flex; justify-content: flex-end;
    animation: m-drawer-fade .18s ease-out;
}
@keyframes m-drawer-fade { from { opacity: 0 } to { opacity: 1 } }
.m-drawer {
    width: 84%;
    max-width: 320px;
    background: var(--bg);
    height: 100%;
    display: flex; flex-direction: column;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.15);
    animation: m-drawer-slide .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes m-drawer-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.m-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.m-drawer-close {
    appearance: none;
    background: transparent;
    border: 1px solid var(--line);
    width: 32px; height: 32px;
    font-size: 22px; line-height: 1;
    color: var(--ink);
    cursor: pointer;
    display: grid; place-items: center;
}
.m-drawer-close:hover { background: var(--surface); }
.m-drawer-nav {
    display: flex; flex-direction: column;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
}
.m-drawer-nav a {
    display: block;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.m-drawer-nav a:hover { background: var(--surface); }
.m-drawer-foot {
    padding: 20px;
    border-top: 1px solid var(--line);
    display: grid; gap: 12px;
}
.m-drawer-foot .btn { width: 100%; justify-content: center; }
.m-drawer-disclaimer {
    margin: 0;
    font-size: 10px;
    font-family: var(--ff-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--bg);
    position: relative;
}
.hero:not(.hero-carousel) {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    padding: 80px 48px 88px;
    align-items: center;
    min-height: 560px;
}
.hero-carousel {
    padding-bottom: 24px;
    box-sizing: border-box;
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    column-gap: 8px;
}
.hero-carousel-viewport {
    grid-column: 2;
    display: grid;
}
.hero-carousel-arrow {
    appearance: none;
    background: transparent;
    border: 1px solid var(--gray-card);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 72px;
    display: grid;
    place-items: center;
    transition: all var(--dur) var(--ease);
    z-index: 2;
}
.hero-carousel-arrow.prev { grid-column: 1; justify-self: center; }
.hero-carousel-arrow.next { grid-column: 3; justify-self: center; }
.hero-carousel-arrow:hover { background: var(--yellow); border-color: var(--yellow); }
.hero-carousel-track {
    grid-area: 1 / 1;
    display: grid;
}
.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.hero-slide--promo {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    padding: 80px 48px 64px;
    align-items: center;
    min-height: 560px;
}
.hero-slide--banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 48px 64px;
    min-height: 560px;
    background: var(--bg);
}
.hero-slide--banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.hero-carousel-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 48px 16px;
}
.hero-carousel-dots .dot {
    appearance: none;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--gray-card);
    cursor: pointer;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-carousel-dots .dot:hover { background: var(--ink); }
.hero-carousel-dots .dot.active {
    background: var(--yellow);
    transform: scale(1.15);
}
.hero-eyebrow {
    font-family: var(--ff);
    font-size: 12px;
    letter-spacing: var(--tracking-menu);
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 700;
    margin: 0 0 28px;
    display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
    content: ""; width: 32px; height: 11px; background: var(--yellow);
}
.hero h1 {
    font-size: 64px;
    line-height: 1.0;
    letter-spacing: var(--tracking-h1);
    font-weight: 700;
    margin: 0 0 36px;
    text-transform: uppercase;
    color: var(--ink-2);
    font-family: var(--ff);
    max-width: 900px;
}
.hero h1 .accent { display: block; font-weight: 700; color: var(--ink-2); }
.hero-meta {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 36px;
    display: flex; flex-direction: column; gap: 8px;
    line-height: 1.5;
}
.hero-meta strong { color: var(--ink-2); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-carousel .hero-visual {
    max-width: 450px;
    max-height: 560px;
}
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/5;
    max-height: 560px;
    justify-self: end;
    background: var(--gray-bg);
}
.hero-visual .bottle {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    object-fit: contain;
    z-index: 1;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1.579px solid var(--gray-card);
    z-index: 0;
    background: var(--bg);
}
.hero-visual::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 16px; right: 24px;
    font-family: var(--ff-mono);
    font-size: 11px;
    letter-spacing: var(--tracking-caps);
    color: var(--muted);
}

/* Hero (acked-ended вариант) */
.hero--ended dl.hero-ended-stats {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 32px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.hero-ended-stats dt {
    font-size: 11px;
    letter-spacing: var(--tracking-menu);
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 6px;
    font-weight: 600;
}
.hero-ended-stats dd {
    margin: 0;
    font-family: var(--ff-mono);
    font-size: 28px;
    font-weight: 500;
    color: var(--ink-2);
}

/* ============================================================
   PRIZES
   ============================================================ */
.prizes {
    padding: 80px 48px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.prizes-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: center;
}
.prizes p { font-size: 18px; color: var(--ink-soft); margin: 0 0 24px; line-height: 1.45; }
.bottles-array {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 12px;
    min-width: 0;
}
.bottle-thumb {
    aspect-ratio: 3 / 8;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 16px;
    position: relative;
    min-width: 0; min-height: 0;
    overflow: hidden;
}
.bottle-thumb img {
    position: absolute;
    inset: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    object-fit: contain;
}
.bottle-thumb .tag {
    position: absolute;
    top: 10px; left: 10px;
    font-family: var(--ff);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--tracking-menu);
    color: var(--ink);
}

/* ============================================================
   STEPS
   ============================================================ */
.steps { padding: 80px 48px 40px; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
.step-card {
    border: 1px solid var(--line);
    padding: 32px 28px;
    display: flex; flex-direction: column;
    gap: 16px;
    background: var(--bg);
    position: relative;
    min-height: 280px;
}
.step-card .num {
    font-family: var(--ff-mono);
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
}
.step-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.step-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.step-card .icon {
    position: absolute;
    top: 24px; right: 24px;
    width: 48px; height: 48px;
    border: 1px solid var(--line);
    display: grid; place-items: center;
}
.step-card .step-emoji {
    position: absolute;
    top: 16px; right: 16px;
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1;
}
.step-card h3 strong { font-weight: 700; }
.steps-cta { text-align: center; margin-bottom: 0; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
    padding: 48px 48px 80px;
    background: var(--bg);
}
.products h2 small {
    display: block;
    font-family: var(--ff);
    font-size: 12px;
    letter-spacing: var(--tracking-menu);
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 12px;
}
.products-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 24px;
}
.carousel-arrow {
    appearance: none;
    background: transparent;
    border: 1px solid var(--gray-card);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    align-self: center;
    width: 32px; height: 64px;
    display: grid; place-items: center;
    transition: all var(--dur) var(--ease);
}
.carousel-arrow:hover:not(:disabled) { background: var(--yellow); border-color: var(--yellow); }
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.products-slider {
    --per-view: 3;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per-view) - 1) * 24px) / var(--per-view));
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 2px;
    scroll-padding: 0 2px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.products-slider::-webkit-scrollbar { display: none; }
.products-slider > .product-card { scroll-snap-align: none; }
.products-slider > .product-card.snap-page-start { scroll-snap-align: start; }
.product-card {
    border: 1.579px solid var(--gray-card);
    background: var(--bg);
    padding: 0 23px 31px;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    text-align: center;
    transition: all var(--dur) var(--ease);
    color: var(--ink);
}
.product-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.product-card--spacer {
    visibility: hidden;
    pointer-events: none;
    border-color: transparent;
    box-shadow: none;
}
.product-card--spacer:hover {
    border-color: transparent;
    box-shadow: none;
}
.product-card .info {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 5;
    width: 32px; height: 32px;
    border: 0;
    background: var(--yellow);
    display: grid; place-items: center;
    font-family: var(--ff);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-card .info:hover { background: var(--black); color: var(--yellow); }
.product-card .visual {
    width: 100%;
    height: 280px;
    position: relative;
    margin: 18px 0 24px;
    display: block;
    pointer-events: none;
}
.product-card .visual img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.product-card .name {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 18px;
    line-height: 1.1;
}
.product-card .meta {
    font-family: var(--ff-display);
    font-size: 16px;
    color: var(--ink);
    font-weight: 500;
}
.products-dots {
    display: flex; gap: 10px; justify-content: center; margin-top: 32px;
}
.products-dots .dot {
    appearance: none;
    background: rgba(0,0,0,0.25);
    width: 24px; height: 3px;
    padding: 0;
    border: 0;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.products-dots .dot:hover { background: var(--ink); }
.products-dots .dot.active { background: var(--yellow); }
.product-popover {
    position: absolute;
    top: 56px;
    left: 14px; right: 14px;
    background: var(--ink-2);
    color: var(--bg);
    padding: 22px 24px;
    border: 0;
    border-top: 4px solid var(--yellow);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    pointer-events: auto;
}
.product-popover h4 {
    margin: 0 0 12px;
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--yellow);
}
.product-popover .style {
    margin: 0 0 10px;
    font-family: var(--ff-display);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.product-popover p { color: rgba(255,255,255,0.85); margin: 0; }
.product-popover .close {
    position: absolute;
    top: 8px; right: 12px;
    cursor: pointer;
    font-size: 22px;
    color: rgba(255,255,255,0.7);
    line-height: 1;
    padding: 4px 6px;
    background: transparent;
    border: 0;
}
.product-popover .close:hover { color: var(--yellow); }
.products-note {
    font-size: 12px;
    letter-spacing: var(--tracking-menu);
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 36px;
    text-align: center;
    font-weight: 500;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 48px 48px 80px; }
.faq > h2,
.faq-list,
.faq-ask {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.faq-list { display: grid; gap: 0; }
.faq-item {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    font-size: 18px;
    font-weight: 500;
}
.faq-q .num { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); min-width: 24px; }
.faq-q .toggle {
    width: 32px; height: 32px;
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-size: 18px;
    transition: all 0.15s linear;
    background: var(--bg);
}
.faq-item.open .faq-q .toggle { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.faq-a {
    display: none;
    margin-top: 16px;
    padding-left: 36px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    max-width: 720px;
}
.faq-item.open .faq-a { display: block; }
.faq-ask {
    margin-top: 32px;
    text-align: center;
}
.faq-ask .faq-flash {
    margin-left: auto;
    margin-right: auto;
}
.faq-flash {
    max-width: 960px;
    margin: 0 0 16px;
    padding: 14px 18px;
    font-size: 14px;
    border: 1px solid var(--line);
}
.faq-flash--ok { background: #f0fff5; border-color: #27ae60; color: #1e7e34; }
.faq-flash--err { background: #fff5f5; border-color: #c0392b; color: #922b21; }

/* ============================================================
   FOOTER (фирменно жёлтый)
   ============================================================ */
.site-footer {
    padding: 64px 48px 32px;
    background: var(--yellow);
    color: var(--black);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-tagline { font-size: 12px; color: var(--ink-soft); margin: 16px 0 0; line-height: 1.5; }
.footer-col h4 {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--black);
    font-family: var(--ff);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a {
    font-size: 14px;
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--bg); }
.footer-disclaimer {
    font-size: 15px;
    color: var(--black);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding-top: 28px;
    display: grid;
    gap: 20px;
    line-height: 1.6;
}
.footer-disclaimer p { font-size: 15px; margin: 0; }
.footer-eighteen {
    margin-left: -48px;
    margin-right: -48px;
    padding: 24px 48px 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin-top: 28px;
}
.eighteen-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: clamp(14px, 2vw, 20px);
    text-transform: uppercase;
    text-align: center;
}
.eighteen-text { flex: 0 1 auto; text-align: center; }
.eighteen-mark {
    display: inline-block;
    width: 44px; height: 44px;
    background: url('images/18plus.webp') no-repeat center/contain;
    flex-shrink: 0;
}

/* ============================================================
   COOKIE NOTICE (fixed bottom-left per TZ)
   ============================================================ */
.cookie-notice {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg);
    border: 1px solid var(--ink);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    z-index: 60;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.cookie-notice .text { font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin: 0; text-align: left; align-self: stretch; }
.cookie-notice .btn { margin: 0; }
.cookie-notice .lnk { color: var(--ink); }

/* ============================================================
   SITE NOTICE (removed — kept for legacy cache only)
   ============================================================ */

/* ============================================================
   AGE GATE (fixed overlay)
   ============================================================ */
.age-gate {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    z-index: 100;
    padding: var(--modal-gutter);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.age-gate::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}
.age-card {
    position: relative;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 64px 56px;
    width: min(720px, calc(100vw - var(--modal-gutter) * 2));
    max-width: 100%;
    text-align: left;
    z-index: 1;
    margin: auto;
}
.age-card .brand { margin-bottom: 32px; }
.age-card h1 {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 24px;
}
.age-card p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 48px; max-width: 540px; }
.age-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.age-actions--single { grid-template-columns: max-content; }
.age-card--denied { text-align: center; }
.age-denied-text {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    margin: 24px 0 0;
    max-width: 560px;
}
.captcha-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}
.captcha-row img { border: 1px solid var(--line); }

/* ============================================================
   MODAL (ask question)
   ============================================================ */
.modal-frame {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 80;
    padding: var(--modal-gutter);
    padding-top: max(var(--modal-gutter), var(--safe-top));
    padding-bottom: max(var(--modal-gutter), var(--safe-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-card {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--ink);
    width: var(--modal-width);
    max-width: 100%;
    padding: 48px 40px;
    position: relative;
    max-height: none;
    margin: auto 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.modal-card h2 {
    font-size: clamp(20px, 5.5vw, 28px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.modal-card .close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    font-size: 18px;
    line-height: 1;
    background: transparent;
    cursor: pointer;
}
.modal-card .lead { font-size: 13px; color: var(--ink-soft); margin: 0 0 24px; line-height: 1.5; }
.modal-card .form { display: grid; gap: 12px; }
.modal-card .checkbox .lnk { color: inherit; text-decoration: underline; }
.modal-card .form-actions { margin-top: 16px; display: grid; gap: 12px; }
.captcha-row .captcha-input { min-width: 0; }
.modal-card .checkbox span:not(.box) {
    min-width: 0;
    overflow-wrap: anywhere;
}
.register-welcome {
    z-index: 90;
}

/* ============================================================
   RULES / PRIVACY (static content pages)
   ============================================================ */
.content-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 64px 48px 96px;
}
.content-page .meta {
    font-family: var(--ff-mono);
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.content-page h1 {
    font-size: 44px;
    font-weight: 600;
    margin: 0 0 32px;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.content-page h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 16px;
}
.content-page h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
}
.content-page p { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 16px; }
.content-page ul, .content-page ol { padding-left: 24px; line-height: 1.65; }
.content-page li { margin-bottom: 8px; }

/* ============================================================
   AUTH PAGES (login, register, restore)
   ============================================================ */
.auth-page {
    min-height: 70vh;
    display: grid; place-items: center;
    padding: 64px 24px;
    background: var(--surface);
}
.auth-card {
    background: var(--bg);
    border: 1px solid var(--ink);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
}
.auth-card--wide { max-width: 720px; }
.auth-card h1 {
    font-size: 28px;
    text-transform: uppercase;
    margin: 0 0 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.auth-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 24px; line-height: 1.5; }
.auth-error {
    background: #fff5f5;
    border-left: 3px solid #c0392b;
    color: #c0392b;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}
.auth-checks { margin-top: 4px; }
.auth-vk { margin-top: 20px; }
.auth-vk__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.auth-vk__divider::before,
.auth-vk__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ink);
    opacity: 0.15;
}
.auth-vk__widget { min-height: 48px; }
.form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-2col .auth-checks, .form-2col .form-actions, .form-2col .form-foot { grid-column: 1 / -1; }
.input-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.input-wrap-label {
    display: none;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.form-foot { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }

/* ============================================================
   ACCOUNT (ЛК)
   ============================================================ */
.account { padding: 48px 48px 96px; min-width: 0; max-width: 100%; }
.account-form,
.account-grid,
.account-col,
.field-row {
    min-width: 0;
    max-width: 100%;
}
.account-head {
    margin-bottom: 32px;
}
.account-counters {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.account-counter {
    font-size: 13px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: var(--tracking-menu);
    font-weight: 600;
}
.account-counter strong { font-size: 20px; color: var(--ink); font-family: var(--ff-mono); margin-left: 6px; }
.account-codes { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 0;
}
.data-table th, .data-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    text-align: left;
}
.data-table th {
    background: var(--surface);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: var(--tracking-menu);
    color: var(--muted);
}
.data-table code {
    font-family: var(--ff-mono);
    font-size: 12px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-menu);
    font-weight: 500;
    padding: 3px 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.badge::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gray-card);
}
.badge--registered::before { background: var(--ink); }
.badge--winner    { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.badge--winner::before { background: var(--black); }
.badge--duplicate { color: var(--ink-soft); }
.badge--not_sold::before { background: #c0392b; }
.badge--foreign::before  { background: #c0392b; }

/* ============================================================
   ACCOUNT — GRID & WINNER BANNER
   ============================================================ */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 32px 0;
}
.account-grid--single { grid-template-columns: 1fr; }
.account-col .field-label .req { color: #c0392b; }
.field-required-note {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 0;
}
.account-col h3 {
    font-size: 12px;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 24px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.account-col .field-row {
    display: flex; flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.upload-zone {
    border: 1px dashed var(--line);
    padding: 24px;
    text-align: center;
    color: var(--ink-soft);
}
.upload-zone p { margin: 0 0 6px; font-weight: 600; }
.upload-zone small { color: var(--muted); }

.winner-banner {
    background: var(--yellow);
    color: var(--black);
    padding: 32px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    min-width: 0;
    max-width: 100%;
}
.winner-banner h2 { margin: 0 0 12px; font-size: 28px; text-transform: uppercase; font-weight: 700; line-height: 1.2; }
.winner-banner > .winner-text > p { font-size: 15px; margin: 0; line-height: 1.55; }
.winner-text { min-width: 0; }
.winner-mail {
    color: #1a5fb4;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    word-break: break-all;
}
.winner-mail:hover { color: #0d3d7a; }
.winner-steps {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: grid; gap: 12px;
}
.winner-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.winner-steps span {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px;
    background: var(--black); color: var(--yellow);
    font-family: var(--ff-mono); font-weight: 600;
    font-size: 13px;
}
.winner-meta {
    background: var(--bg);
    color: var(--ink);
    padding: 20px;
    display: flex; flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}
.winner-meta-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 8px 12px;
    flex-wrap: wrap;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.winner-meta-row span { color: var(--muted); text-transform: uppercase; letter-spacing: var(--tracking-menu); font-size: 11px; font-weight: 600; flex-shrink: 0; }
.winner-meta-row code, .winner-meta-row strong {
    font-family: var(--ff-mono);
    font-size: 13px;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-align: right;
    max-width: 100%;
}

/* ============================================================
   SCANNER PAGE
   ============================================================ */
.scanner-https-warn {
    position: absolute;
    top: 80px; left: 48px; right: 48px;
    background: rgba(255, 200, 26, 0.12);
    border: 1px solid var(--yellow);
    color: #fff;
    padding: 16px 20px;
    z-index: 7;
    font-size: 13px;
    line-height: 1.5;
}
.scanner-https-warn strong { color: var(--yellow); display: block; margin-bottom: 6px; }
.scanner-https-warn p { margin: 0; color: rgba(255,255,255,0.85); font-size: 12px; }
@media (max-width: 768px) {
    .scanner-https-warn { top: 60px; left: 16px; right: 16px; }
}
.scanner-page {
    min-height: 100vh;
    background: #000;
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.scanner-page .scanner-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
}
.scanner-page .scanner-topbar {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #fff;
    z-index: 2;
}
.scanner-page .scanner-topbar a { color: #fff; text-decoration: none; font-size: 13px; }
.scanner-viewport-wrap {
    position: relative;
    flex-shrink: 0;
    margin: 0 16px;
}
.scanner-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: min(52vh, 420px);
    min-height: 220px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: #111;
}
.scanner-viewport video,
.scanner-viewport canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
.scanner-hint {
    flex-shrink: 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px 0;
}
.scanner-bottom {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px 20px 24px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2;
}
.scanner-result {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.75);
}
.scanner-result-card {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.scanner-result-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    text-transform: uppercase;
}
.scanner-result-card p { margin: 0 0 24px; line-height: 1.5; color: var(--ink-soft); }
.scanner-result-card.success h3 { color: #1a7f37; }
.scanner-result-card.error h3 { color: #c0392b; }
.scanner-shell.scanner--result .scanner-viewport-wrap,
.scanner-shell.scanner--result .scanner-hint,
.scanner-shell.scanner--result .scanner-bottom,
.scanner-shell.scanner--result .scanner-https-warn {
    visibility: hidden;
}

/* ============================================================
   MEDIA — мобильная адаптация (< 768px)
   ============================================================ */
@media (max-width: 768px) {
    .site-header { display: none; }
    .m-header { display: flex; }

    .hero:not(.hero-carousel) {
        grid-template-columns: 1fr;
        padding: 32px 20px 40px;
        gap: 24px;
        min-height: auto;
    }
    .hero-carousel {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: 28px 1fr 28px;
        column-gap: 4px;
    }
    .hero-carousel-arrow {
        width: 28px;
        height: 56px;
        font-size: 22px;
    }
    .hero-slide--promo {
        grid-template-columns: 1fr;
        padding: 32px 20px 40px;
        gap: 24px;
        min-height: auto;
    }
    .hero-slide--banner {
        padding: 24px 20px 40px;
        min-height: auto;
    }
    .hero-carousel .hero-visual {
        max-width: 100%;
        max-height: none;
    }
    .hero-carousel-dots {
        padding: 0 20px 12px;
    }
    .hero h1 {
        font-size: 32px;
        letter-spacing: 1.6px;
    }
    .hero-visual::after { content: none; }

    .prizes { padding: 40px 20px; }
    .prizes-grid { grid-template-columns: 1fr; gap: 32px; }
    .prizes h2, .steps h2, .products h2, .faq h2, .cifr-title { font-size: 24px; padding-bottom: 16px; margin-bottom: 24px; }
    .prizes h2::after, .steps h2::after, .products h2::after, .faq h2::after, .cifr-title::after {
        height: 7px; width: 200px;
    }
    .bottles-array { gap: 8px; }

    .steps { padding: 40px 20px 24px; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .step-card { min-height: auto; padding: 24px 20px; }

    .products { padding: 32px 20px 48px; }
    .products-carousel { grid-template-columns: 1fr; }
    .carousel-arrow { display: none; }
    .products-slider { --per-view: 1; }
    .products-slider > .product-card { scroll-snap-align: start; }
    .product-card--spacer { display: none !important; }

    .faq { padding: 32px 20px 48px; }
    .faq-q { font-size: 14px; }
    .faq-a { padding-left: 0; font-size: 13px; }

    .site-footer { padding: 40px 20px 24px; }
    .footer-eighteen {
        margin-left: -20px;
        margin-right: -20px;
        padding: 20px 20px 0;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .cookie-notice {
        left: 16px; right: 16px; bottom: 16px;
        max-width: none;
    }

    .site-notice-card { padding: 32px 24px; }
    .site-notice-text { font-size: 16px; }
    .age-card { padding: 32px 24px; }
    .age-card h1 { font-size: 24px; }
    .age-actions { grid-template-columns: 1fr; }

    .modal-frame { align-items: center; }
    .modal-card { padding: 28px 20px; padding-top: 44px; }
    .modal-card h2 { letter-spacing: 0; }
    .captcha-row { grid-template-columns: 1fr; }
    .captcha-row img { width: 100%; max-width: 220px; height: auto; }
    .checkbox { align-items: flex-start; }
    .checkbox span:not(.box) { line-height: 1.4; }

    .content-page { padding: 32px 20px 64px; }
    .content-page h1 { font-size: 28px; }

    .account { padding: 32px 20px 64px; }
    .account-grid { grid-template-columns: 1fr; gap: 32px; }
    .account-counters { flex-direction: column; align-items: flex-start; gap: 12px; }
    .account-counters .btn { width: 100%; }
    .winner-banner { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
    .winner-banner h2 { font-size: 20px; }
    .winner-meta-row { flex-direction: column; align-items: flex-start; }
    .winner-meta-row code, .winner-meta-row strong { text-align: left; }
    .auth-card { padding: 32px 24px; }
    .form-2col { grid-template-columns: 1fr; }
    .input-wrap-label { display: block; }
    .data-table th, .data-table td { padding: 8px 12px; font-size: 12px; }
}
