/* DA YOUNG SIPPAZ — магазин. Светлая витрина, чистый чёрный и тёмно-фиолетовый — цвет сиропа на стакане с главного баннера. */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #4a4549;
  --ink-3: #8a8388;
  --tile: #f7f7f7;       /* нейтральный светло-серый фон ячеек */
  --line: #e5e5e5;
  --purple: #561d5d;       /* единственный акцент: кнопки, цифры, подписи, палочки в бегущей строке; белый текст на нём */
  --purple-dark: #44174a;  /* наведение */
  --purple-soft: #f7edf8;  /* мягкая подсветка фокуса и текущего шага */
  --green: #15803d;
  --green-soft: #e9f6ee;
  --red: #d92d20;
  --tg: #1d7fce;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

main { overflow-x: clip; } /* въезжающие сбоку и увеличенные при наведении картинки не раздвигают страницу вбок */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1100px) { .wrap { padding-inline: 32px; } }

/* ── Типографика ─────────────────────────────── */
/* line-height 1.15: у заглавных Й и Ё надстрочный знак не задевает строку выше */
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.h1 { font-size: clamp(34px, 5.4vw, 56px); }
.h2 { font-size: clamp(26px, 3.6vw, 38px); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.eyebrow--light { color: rgba(255, 255, 255, .6); }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.star { color: var(--purple); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }

/* ── Кнопки ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2a2a2a; }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: #176bb0; }
.btn--lg { min-height: 54px; padding: 14px 24px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--add { width: 100%; background: var(--paper); color: var(--ink); border-color: var(--ink); min-height: 42px; }
.btn--add:hover { background: var(--ink); color: #fff; }
.btn--add.is-added { background: var(--green); border-color: var(--green); color: #fff; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 8px; color: var(--ink); }
.icon-btn:hover { background: var(--tile); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn__badge { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.icon-btn__badge--bonus { background: var(--ink); color: #fff; right: -6px; }

.badge { display: inline-block; padding: 4px 8px; border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.badge--sale { background: var(--purple); color: #fff; }
.badge--muted { background: var(--ink); color: #fff; }

/* ── Бегущая строка и шапка ───────────────────── */
.ticker { background: var(--ink); color: #fff; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__group { display: flex; padding-block: 9px; }
.ticker__group span::before { content: ""; display: inline-block; width: 3px; height: 1em; margin-inline: 18px; background: var(--purple); vertical-align: -.15em; }
@keyframes ticker { to { transform: translateX(-50%); } }

.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.header__logo img { height: 44px; width: auto; }
.header__nav { display: flex; gap: 26px; margin-left: 24px; font-size: 15px; font-weight: 500; }
.header__nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.header__nav a:hover, .header__nav a[aria-current="page"] { border-color: var(--purple); }
.header__actions { display: flex; gap: 4px; margin-left: auto; }
.header__burger { display: none; margin-left: -8px; }
@media (max-width: 899px) {
  .header__burger { display: inline-grid; }
  .header__nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, .08); font-size: 18px; }
  .header__nav a { padding-block: 13px; border-bottom: 1px solid var(--line); }
  .header:not(.is-menu-open) .header__nav { display: none; }
}

/* ── Секции ───────────────────────────────────── */
.section { padding-block: 44px; }
@media (min-width: 900px) { .section { padding-block: 68px; } }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.section__note { color: var(--ink-2); max-width: 44ch; }
.section > .h2, .section .prose > .h2 { margin-bottom: 18px; }
.section--ink { background: var(--ink); color: #fff; }
.page-head { padding-top: 18px; display: grid; gap: 14px; justify-items: start; }
.page-head--tight { padding-bottom: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); padding-top: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs > *:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }

/* ── Главный экран ────────────────────────────── */
/* Картинка от края до края, низ перетекает в белый фон страницы, текст и кнопки — на этом переходе.
   Высота картинки — чтобы вместе с текстом уместиться в первый экран (≈102px сверху занимают строка и шапка). */
.hero__bg { position: relative; display: block; height: clamp(300px, 110vw, 100vh - 372px); height: clamp(300px, 110vw, 100svh - 372px); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 0; }
.hero__bg::after { content: ""; position: absolute; inset: 0 0 -2px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .6) 75%, rgba(255, 255, 255, .92) 90%, #fff 98%); } /* -2px: край на дробном пикселе не даёт серой полоски */
.hero__body { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -48px; padding: 0 16px 8px; text-align: center; }
/* Заголовок по макету: плашка «SIZZURPS BY» (Inter) над надписью DAYOUNG SIPPAZ (векторизована из макета, img/dys-title.svg).
   Всё считается от ширины надписи --title-w: плашка и отступ — в тех же пропорциях, что в макете. */
.hero__title { --title-w: calc(100vw - 32px); display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.hero__kicker { margin-bottom: calc(var(--title-w) * .013); padding: .1em .14em .04em; background: var(--ink); color: #fff; font: 800 calc(var(--title-w) * .046)/1 var(--body); letter-spacing: -.01em; text-transform: uppercase; transform: rotate(-1.5deg); }
.hero__logo { width: var(--title-w); height: auto; }
.hero__lead { margin-bottom: 20px; font: 500 14px/1.5 var(--body); color: var(--ink-2); }
.hero__sep { margin-inline: .3em; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 420px; }
.hero__cta .btn { flex: 1 1 auto; padding-inline: 18px; }
.hero__cta .btn:first-child { flex-basis: 100%; }
@media (min-width: 700px) {
  .hero__bg { height: min(50vw, max(420px, 100vh - 330px)); height: min(50vw, max(420px, 100svh - 330px)); }
  .hero__body { margin-top: -120px; padding-inline: 32px; }
  .hero__title { --title-w: min(64vw, 1000px); }
  .hero__lead { font-size: 17px; margin-bottom: 24px; }
  .hero__cta { width: auto; max-width: none; }
  .hero__cta .btn, .hero__cta .btn:first-child { flex: 0 0 auto; min-width: 180px; padding-inline: 24px; }
}

/* ── Фильтры и сетка товаров ─────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Карточка: серая плитка только под картинкой, название, цена и кнопка — под ней */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; background: var(--tile); border-radius: var(--radius); overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .35s ease; }
@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.04); }
}
.card--soldout .card__media img { opacity: .5; }
.card__badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.card__body { display: grid; gap: 3px; padding-top: 12px; }
/* Названия товаров — Oswald 700, цены — Inter 500: название всегда жирнее цены */
.card__name { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.card__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
@media (max-width: 480px) { .card__name { font-size: 17px; } }

/* ── Наборы — по образцу New Arrivals на nolatte.company: большое окно слева, доп. товары справа.
   Клик по доп. товару меняет его местами с большим окном (app.js). На телефоне — окно сверху, товары списком под ним. ── */
.sets__grid { display: grid; gap: 14px; align-items: start; }
.sets__main { position: relative; display: flex; flex-direction: column; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sets__media { display: block; padding: 20px 20px 0; }
.sets__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; transition: transform .4s; }
.sets__media img.is-in { animation: sets-in .35s ease; }
@keyframes sets-in { from { opacity: 0; transform: scale(.97); } }
.sets__main .card__badges { top: 14px; left: 14px; }
.sets__info { display: grid; gap: 10px; justify-items: start; padding: 8px 20px 20px; }
.sets__name { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.sets__name a { text-decoration: none; }
.sets__info .price__now { font-size: 22px; }
.sets__side { display: flex; flex-direction: column; gap: 14px; }
.side-card { display: flex; align-items: center; min-width: 0; background: var(--tile); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s, border-color .2s; }
.side-card__img { flex: 0 0 110px; padding: 10px; }
.side-card__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.side-card__info { display: grid; gap: 4px; min-width: 0; padding: 14px 16px 14px 6px; }
.side-card__name { font-family: var(--display); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
@media (hover: hover) {
  .sets__main:hover .sets__media img { transform: scale(1.04); }
  .side-card:hover { transform: translateX(4px); border-color: rgba(86, 29, 93, .35); }
}
@media (min-width: 1100px) {
  .sets__grid { grid-template-columns: 5fr 7fr; gap: 28px; }
  .sets__media { padding: 28px 28px 0; }
  .sets__info { padding: 8px 28px 28px; }
  .side-card__img { flex-basis: 150px; padding: 14px; }
  .side-card__name { font-size: 20px; }
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price__now { font-weight: 500; font-size: 16px; line-height: 1.6; } /* цифры пропорциональные, как на nolatte: у «1» нет подставки */
.price__now--lg { font-size: 32px; letter-spacing: -.02em; }
.price__old { color: var(--ink-3); font-size: 14px; font-weight: 400; }

/* ── Сравнение с маркетплейсом ────────────────── */
.why { display: grid; gap: 28px; }
.why__intro p:last-child { color: #cfc9cd; margin-top: 14px; max-width: 48ch; }
.compare { display: grid; font-size: 15px; }
.compare__row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); align-items: baseline; }
.compare__row--head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 0; }
.compare [role="rowheader"] { color: #cfc9cd; }
.compare [role="cell"]:nth-child(3) { color: #a59ea3; }
.compare b { color: #fff; font-weight: 700; }
@media (max-width: 599px) { .compare { font-size: 14px; } .compare__row { grid-template-columns: .9fr 1.2fr 1fr; gap: 8px; } }
@media (min-width: 900px) { .why { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }

/* ── Как приготовить, гарантии, клуб ──────────── */
.mix__steps { display: grid; gap: 12px; counter-reset: step; }
.mix__steps li { counter-increment: step; display: grid; gap: 6px; padding: 20px; background: var(--tile); border-radius: var(--radius); }
.mix__steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--purple); }
.mix__steps b { font-family: var(--display); font-size: 22px; font-weight: 600; text-transform: uppercase; }
.mix__steps span { color: var(--ink-2); }
@media (min-width: 800px) { .mix__steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.safe__grid { display: grid; gap: 0 32px; }
.safe__grid li { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--line); }
.safe__grid b { font-size: 17px; }
.safe__grid span { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 800px) { .safe__grid { grid-template-columns: repeat(2, 1fr); } }

.club-teaser { display: grid; gap: 28px; }
.club-teaser__text p:not(.eyebrow) { color: var(--ink-2); margin-block: 14px 22px; max-width: 48ch; }
.tiers { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.tier:first-child { border-color: var(--ink); }
.tier__name { font-size: 26px; }
.tier__rate { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--purple); }
.tier__cond { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
/* Главная: стакан-иконка слева на обе строки (один / два / три стакана — по уровню) */
.tier--icon { grid-template-columns: 26px 1fr auto; column-gap: 16px; }
.tier__icon { grid-row: 1 / span 2; align-self: center; width: 26px; height: 50px; }
.tier--icon .tier__cond { grid-column: 2 / -1; }
@media (min-width: 900px) { .club-teaser { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } .tiers--wide { grid-template-columns: repeat(3, 1fr); } }
.tiers__cta { margin-top: 22px; }

/* Клуб: стакан DYS сбоку от заголовка. Очень медленно покачивается (обёртка) и «дышит» — то чуть ближе, то дальше (картинка);
   под ним мягкая тень, которая дышит вместе с ним. На телефоне стакан над заголовком */
.club-head__text { display: grid; gap: 14px; justify-items: start; }
.club-head .crumbs { order: -2; }
.club-head__cup { order: -1; position: relative; isolation: isolate; justify-self: center; width: min(40vw, 170px); margin-block: 6px 16px; }
.club-head__cup::after { content: ""; position: absolute; z-index: -1; left: 16%; right: 16%; bottom: -16px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); animation: cup-shadow 12s ease-in-out infinite; }
.club-head__sway { display: block; transform-origin: 50% 80%; animation: cup-sway 10s ease-in-out infinite; }
.club-head__cup img { width: 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .14)); animation: cup-breathe 12s ease-in-out infinite; }
@keyframes cup-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes cup-breathe { 50% { transform: scale(1.05); } }
@keyframes cup-shadow { 50% { transform: scaleX(1.12); opacity: .7; } }
@media (min-width: 900px) {
  .club-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: 48px; align-items: center; }
  .club-head .crumbs { grid-column: 1 / -1; }
  .club-head__cup { order: 0; width: 230px; margin-block: 8px 28px; }
}

.earn { display: grid; gap: 12px; }
.earn li { display: grid; gap: 4px; padding: 20px; background: var(--tile); border-radius: var(--radius); }
.earn__num { font-size: 40px; color: var(--purple); }
.earn b { font-size: 17px; }
.earn span:last-child { color: var(--ink-2); }
@media (min-width: 700px) { .earn { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .earn { grid-template-columns: repeat(4, 1fr); } }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary, .accordion summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker, .accordion summary::-webkit-details-marker { display: none; }
.faq__item summary::after, .accordion summary::after { content: "+"; font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after, .accordion details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding-bottom: 18px; color: var(--ink-2); max-width: 70ch; }

/* ── Карточка товара ──────────────────────────── */
.pdp { display: grid; gap: 24px; padding-top: 12px; }
.pdp__image { position: relative; background: var(--tile); border-radius: 14px; overflow: hidden; }
.pdp__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.pdp__image .card__badges { top: 14px; left: 14px; }
.pdp__panel { display: grid; gap: 14px; align-content: start; }
.pdp__title { font-size: clamp(34px, 4.4vw, 52px); }
.pdp__sub { color: var(--ink-2); margin-top: -6px; }
.pdp__rating { font-size: 14px; font-weight: 500; text-decoration: none; justify-self: start; border-bottom: 1px solid var(--line); }
.pdp__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 4px; }
.pdp__price .price__old { font-size: 18px; }
.pdp__facts { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pdp__saving { color: var(--green); }
.pdp__bonus { justify-self: start; background: var(--tile); color: var(--ink); padding: 7px 12px; border-radius: 8px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: grid; min-width: 96px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 8px; text-decoration: none; line-height: 1.25; }
.variant span { font-weight: 600; }
.variant small { color: var(--ink-3); font-size: 13px; }
.variant:hover { border-color: var(--ink-3); }
.variant[aria-current="true"] { border: 2px solid var(--ink); }
.buy { display: flex; gap: 10px; }
.buy__add { flex: 1; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 42px; border: 0; background: none; font-size: 20px; }
.qty button:hover { background: var(--tile); }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 34px; font-size: 17px; }
.qty--sm input { width: 30px; font-size: 14px; }
.assure { display: grid; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.assure b { color: var(--ink); }
.pdp__info { display: grid; gap: 24px; }
.pdp__text { display: grid; gap: 12px; max-width: 62ch; }
.pdp__text p { color: var(--ink-2); font-size: 17px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion details > :not(summary) { padding-bottom: 16px; color: var(--ink-2); }
.list { display: grid; gap: 8px; }
.list li { position: relative; padding-left: 20px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.list--num { counter-reset: n; }
.list--num li { counter-increment: n; padding-left: 28px; }
.list--num li::before { content: counter(n); width: auto; height: auto; top: 0; background: none; font-family: var(--display); font-weight: 700; color: var(--purple); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
  .pdp__panel { position: sticky; top: calc(var(--header-h) + 20px); }
  .pdp__info { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.reviews__sources { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.source { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--tile); border-radius: var(--radius); text-decoration: none; }
.source:hover { background: #eaeaea; }
.source--own { background: var(--tile); }
.source__num { font-size: 34px; color: var(--purple); }
.source span:last-child { display: grid; font-weight: 600; }
.source small { font-weight: 400; color: var(--ink-3); }
.reviews__list { display: grid; gap: 12px; }
.review { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; max-width: 70ch; }
.review__head { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-3); }
.review__head b { color: var(--ink); }
.review img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.reviews__cta { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); }
.sticky-buy__price { display: grid; line-height: 1.15; min-width: 0; }
.sticky-buy__price small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { flex: 0 0 auto; min-width: 150px; }
@media (min-width: 900px) { .sticky-buy { display: none !important; } }

/* ── Корзина ──────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; width: min(440px, 100%); background: var(--paper); box-shadow: -20px 0 40px rgba(0, 0, 0, .15); }
.drawer:not([hidden]) { animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(32px); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 16px; align-content: start; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer__row b { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.drawer__hint { font-size: 13px; color: var(--ink-2); }
.drawer__empty { display: grid; gap: 14px; justify-items: start; padding-block: 20px; color: var(--ink-2); }

.lines { display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.line__img { width: 64px; height: 64px; background: var(--tile); border-radius: 8px; object-fit: contain; }
.line__name { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.line__price { font-size: 14px; color: var(--ink-2); }
.line__side { display: grid; justify-items: end; gap: 6px; }
.line__remove { border: 0; background: none; padding: 0; font-size: 12px; color: var(--ink-3); text-decoration: underline; }
.lines--compact .line { grid-template-columns: 48px 1fr auto; }
.lines--compact .line__img { width: 48px; height: 48px; }

.progress { display: grid; gap: 8px; padding: 12px 14px; background: var(--tile); border-radius: var(--radius); font-size: 14px; }
.progress__bar { height: 6px; border-radius: 3px; background: #e3e3e3; overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--purple); border-radius: 3px; transition: width .3s; }
.progress.is-done { background: var(--green-soft); color: var(--green); }
.progress.is-done .progress__bar span { background: var(--green); }

.cross { display: grid; gap: 10px; }
.cross__title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cross .line { padding: 10px; border: 1.5px dashed var(--line); border-radius: var(--radius); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ── Формы и оформление заказа ────────────────── */
.checkout { display: grid; gap: 28px; padding-bottom: 60px; }
.checkout-empty { display: grid; gap: 18px; justify-items: start; padding-block: 30px 80px; }
.checkout__form { display: grid; gap: 30px; }
@media (min-width: 1000px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }
}
.step { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.step__title { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 4px; font-family: var(--display); font-size: 24px; font-weight: 600; text-transform: uppercase; }
.step__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }
.step--more { border-top: 1px solid var(--line); padding-top: 4px; }
.step--more summary { padding-block: 12px; font-weight: 600; cursor: pointer; }
.field { display: grid; gap: 6px; position: relative; min-width: 0; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .inline input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 16px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .inline input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--purple-soft); }
.field.is-invalid input { border-color: var(--red); }
.field__hint { font-size: 13px; color: var(--ink-3); }
.field__error { font-size: 13px; color: var(--red); }
.field__error:empty { display: none; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.suggest, .points { border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); overflow-y: auto; }
.suggest { position: absolute; top: 78px; left: 0; right: 0; z-index: 5; max-height: 280px; box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.points { max-height: 280px; }
.suggest li, .points li { padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 15px; }
.suggest li:last-child, .points li:last-child { border-bottom: 0; }
.suggest li small, .points li small { display: block; color: var(--ink-3); font-size: 13px; }
.suggest li:hover, .suggest li[aria-selected="true"], .points li:hover { background: var(--tile); }
.points li[aria-selected="true"] { background: var(--ink); color: #fff; }
.points li[aria-selected="true"] small { color: #cfc9cd; }

.options { display: grid; gap: 8px; }
.options__hint { color: var(--ink-3); font-size: 14px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.option:hover { border-color: var(--ink-3); }
.option:has(input:checked) { border-color: var(--ink); background: var(--tile); }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.option__body { display: grid; flex: 1; line-height: 1.3; }
.option__body small { color: var(--ink-2); font-size: 13px; }
.option__price { font-weight: 700; white-space: nowrap; }
.option__price s { font-weight: 400; color: var(--ink-3); margin-right: 6px; }
.option__price--free { color: var(--green); }
@media (min-width: 700px) { .options--pay { grid-template-columns: 1fr 1fr; } }
.pay-safe { font-size: 13px; color: var(--ink-2); }
.demo-note { font-size: 13px; padding: 10px 12px; border: 1.5px dashed var(--purple); border-radius: 8px; color: var(--ink-2); }

.login-offer { display: grid; gap: 12px; padding: 16px; background: var(--tile); border-radius: 12px; }
.login-offer__text { display: grid; gap: 2px; }
.login-offer__text b { font-size: 17px; }
.login-offer__text span, .login-offer__wait { font-size: 14px; color: var(--ink-2); }
@media (min-width: 700px) { .login-offer { grid-template-columns: 1fr auto; align-items: center; } .login-offer__wait { grid-column: 1 / -1; } }

.summary__box { display: grid; gap: 16px; padding: 20px; background: var(--tile); border-radius: 14px; }
.summary__title { font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.summary .progress { background: var(--paper); }
.summary .progress.is-done { background: var(--green-soft); }
.bonus-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--paper); border-radius: var(--radius); font-size: 14px; cursor: pointer; }
.bonus-toggle input, .check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 15px; }
.totals dt { color: var(--ink-2); }
.totals dd { text-align: right; }
.totals .is-discount { color: var(--green); }
.totals .totals__sum { padding-top: 10px; border-top: 1px solid var(--line); font-size: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.totals .totals__cashback { font-size: 13px; color: var(--purple); }
.summary__problems { font-size: 14px; color: var(--red); }
.summary__note { font-size: 13px; color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }

/* ── Заказ и кабинет ──────────────────────────── */
.order, .account { padding-block: 28px 70px; display: grid; gap: 16px; }
.order__status { font-size: 18px; color: var(--ink-2); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); margin-block: 14px 6px; }
.timeline li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); text-align: center; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.is-done::after { background: var(--ink); }
.timeline li.is-current::before { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
.order__actions { display: grid; gap: 12px; }
.tg-card { display: grid; gap: 12px; padding: 18px; background: var(--ink); color: #fff; border-radius: 14px; }
.tg-card p { color: #cfc9cd; font-size: 15px; }
.tg-card b { color: #fff; font-size: 18px; }
@media (min-width: 700px) { .tg-card { grid-template-columns: 1fr auto; align-items: center; } }
.order__grid { display: grid; gap: 14px; margin-top: 10px; }
@media (min-width: 850px) { .order__grid { grid-template-columns: 1.2fr 1fr; } }
.panel { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1.5px solid var(--line); border-radius: 14px; }
.panel__title { font-size: 17px; font-weight: 600; }
.panel__note { font-size: 14px; color: var(--ink-2); }
.panel--accent { background: var(--purple); border-color: var(--purple); color: #fff; }
.panel--accent .label { color: #fff; opacity: .75; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.order__help { font-size: 14px; color: var(--ink-2); }

.login-card { display: grid; gap: 18px; justify-items: start; max-width: 640px; padding-block: 10px 30px; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; font-size: 17px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 14px; height: 8px; border-left: 2.5px solid var(--purple); border-bottom: 2.5px solid var(--purple); transform: rotate(-45deg); }
.login-card__wait { padding: 12px 14px; background: var(--tile); border-radius: 8px; }
.login-card__note { font-size: 13px; color: var(--ink-3); }
.profile-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.profile-grid { display: grid; gap: 14px; margin-bottom: 36px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
.balance__num { font-size: 64px; line-height: 1; }
.balance__note { font-size: 14px; min-height: 1em; }
.balance .btn { justify-self: start; }
.tier-now { font-size: 36px; }
.bar { height: 8px; border-radius: 4px; background: var(--tile); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.orders { display: grid; border-top: 1px solid var(--line); margin-top: 14px; }
.orders a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.orders a:hover b { text-decoration: underline; }
.orders small { color: var(--ink-3); }
.status { justify-self: end; padding: 3px 10px; border-radius: 999px; background: var(--tile); font-size: 13px; font-weight: 600; }
.status--active { background: var(--tile); color: var(--purple); }
.status--done { background: var(--green-soft); color: var(--green); }

/* ── Панель управления ────────────────────────── */
.admin { padding-block: 28px 70px; }
.admin__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 26px; }
.stat-tile { display: grid; gap: 4px; padding: 14px 16px; background: var(--tile); border-radius: var(--radius); }
.stat-tile b { font-family: var(--display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-tile--warn { background: var(--tile); }
.admin__tabs { margin-bottom: 18px; }
.admin__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.admin__filters input, .admin__filters select { min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 15px; }
.admin__filters input { flex: 1; min-width: 220px; }
.admin__list { display: grid; gap: 12px; }
.admin-card { display: grid; gap: 10px; padding: 18px; border: 1.5px solid var(--line); border-radius: 12px; }
.admin-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-card__head b { font-size: 17px; }
.admin-card__sum { margin-left: auto; font-family: var(--display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; font-size: 14px; }
.admin-card__items { display: grid; gap: 2px; }
.admin-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-card__actions .inline { flex: 1; min-width: 240px; }
.admin-card__actions input { min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px; max-width: 140px; }
.admin-card__photo { width: 160px; border-radius: 8px; }

/* ── Контентные страницы ──────────────────────── */
.prose { display: grid; gap: 14px; }
.prose > p, .prose > ul { max-width: 68ch; color: var(--ink-2); font-size: 17px; }
.prose > .h2:not(:first-child) { margin-top: 26px; }
.section.legal { padding-top: 20px; } /* документ сразу под заголовком страницы */
.callout { padding: 14px 18px; background: var(--tile); border-radius: var(--radius); font-weight: 600; color: var(--ink) !important; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.kv-list { display: grid; gap: 0; }
.kv-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; overflow-wrap: anywhere; padding-block: 12px; border-bottom: 1px solid var(--line); }
.kv-list li > span:first-child { color: var(--ink-3); }
@media (max-width: 479px) { .kv-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } } /* на телефоне подпись над значением — почта не рвётся */
.rules li { color: var(--ink-2); }
.about-hero { background: var(--ink); color: #fff; padding-block: 24px; }
.about-hero__inner { display: grid; gap: 24px; align-items: center; }
.about-hero img { width: 150px; justify-self: center; } /* на телефоне большой логотип по центру */
/* На телефоне заголовок в одну строку: строка ≈ 10,4 кегля, размер подстраивается под ширину экрана */
.about-hero__title { white-space: nowrap; font-size: min(clamp(34px, 5.4vw, 56px), calc((100vw - 48px) / 10.6)); }
.about-hero .lead { color: #cfc9cd; margin-top: 14px; }
@media (min-width: 800px) {
  .about-hero { padding-block: 48px; }
  .about-hero__inner { grid-template-columns: 140px 1fr; gap: 28px; }
  .about-hero img { width: 140px; justify-self: start; }
  .about-hero__title { white-space: normal; font-size: clamp(34px, 5.4vw, 56px); }
}
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* «О нас»: текст + три сиропа веером. При прокрутке карточки плавно выезжают справа по очереди,
   потом медленно «дышат»; при наведении выпрямляются и приподнимаются. Без JS и при reduced-motion — сразу на месте. */
.about-intro { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .about-intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; } }
/* Бутылки без фона веером: поворот от донышка, под каждой мягкая тень, которая сжимается, когда бутылка всплывает.
   Бутылка крупно приближается с подписью: на ПК — при наведении, на телефоне — сама по очереди (app.js ставит .is-active).
   --s — во сколько раз растёт бутылка; --zx — сдвиг центральной влево, чтобы подписи хватило места справа */
.about-bottles { display: flex; justify-content: center; align-items: flex-end; padding: 24px 0 40px; }
.about-bottle { --r: 0deg; --y: 0px; --s: 1.6; --zx: 0%; position: relative; flex: 0 0 30%; max-width: 150px; color: inherit; text-decoration: none; transform-origin: 50% 100%; transform: translateY(var(--y)) rotate(var(--r)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.about-bottle:nth-child(1) { --r: -9deg; margin-right: -3%; }
.about-bottle:nth-child(2) { --zx: -40%; z-index: 2; flex-basis: 33%; max-width: 165px; }
.about-bottle:nth-child(3) { --r: 9deg; margin-left: -3%; }
.about-bottle::after { content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: -12px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .3), transparent); animation: bottle-shadow 6s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); transition: opacity .4s ease; }
.about-bottle__float { display: block; animation: bottle-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); }
.about-bottle img { width: 100%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .14)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes bottle-float { 50% { transform: translateY(-10px); } }
@keyframes bottle-shadow { 50% { transform: scaleX(.8); opacity: .55; } }
/* Подпись сбоку от приближенной бутылки: у левой и центральной — справа, у правой — слева */
.about-bottle__name { position: absolute; top: var(--cap-y, 50%); left: calc(100% + var(--zx) + (var(--s) - 1) * 50% + 14px); width: max-content; max-width: 190px; font-size: 14px; line-height: 1.35; color: var(--ink-2); opacity: 0; transform: translate(-10px, -50%); transition: opacity .3s ease, transform .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.about-bottle__name::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 10px; background: var(--ink); }
.about-bottle__name b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.about-bottle:nth-child(3) .about-bottle__name { left: auto; right: calc(100% + (var(--s) - 1) * 50% + 14px); text-align: right; transform: translate(10px, -50%); }
.about-bottle:nth-child(3) .about-bottle__name::before { margin-left: auto; }
/* Приближенная бутылка выпрямляется и растёт, рядом проявляется подпись, остальные отступают на второй план */
.about-bottle.is-active { z-index: 5; --r: 0deg; }
.about-bottle.is-active img { transform: translateX(var(--zx)) scale(var(--s)); }
.about-bottle.is-active::after { opacity: 0; }
.about-bottle.is-active .about-bottle__name { opacity: 1; transform: translate(0, -50%); transition-delay: .15s; }
.about-bottles.has-active .about-bottle:not(.is-active) { opacity: .2; }
@media (hover: hover) {
  .about-bottle:hover { z-index: 5; --r: 0deg; }
  .about-bottle:hover img { transform: translateX(var(--zx)) scale(var(--s)); }
  .about-bottle:hover::after { opacity: 0; }
  .about-bottle:hover .about-bottle__name { opacity: 1; transform: translate(0, -50%); transition-delay: .15s; }
  .about-bottles:has(.about-bottle:hover) .about-bottle:not(:hover) { opacity: .2; }
}
/* Телефон и планшет: бутылки над заголовком «О нас». Приближение растёт вверх от донышка — место под него оставлено сверху:
   высота бутылки ≈ 2,55 ширины, прирост при --s 1.45 ≈ 1,15 ширины центральной */
@media (max-width: 899px) {
  .about-story { padding-top: 12px; } /* бутылки ближе к чёрной шапке */
  .about-bottles { order: -1; padding: 24px 0 36px; }
  .js .about-bottles { padding-top: calc(min(31%, 165px) * 1.15 + 14px); }
  /* боковые растут сильнее центральной (они на 10% уже) — приближенные бутылки одной высоты, верх на одном уровне */
  .about-bottle { --s: 1.6; --cap-y: 28%; flex-basis: 28%; }
  .about-bottle:nth-child(2) { --s: 1.45; --zx: -70%; flex-basis: 31%; }
  .about-bottle img { transform-origin: 50% 100%; }
  .about-bottle__name { max-width: 170px; font-size: 13px; }
  .about-bottle__name b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-bottles .about-bottle { --s: 1.2; }
  .js .about-bottles { padding-top: 24px; } /* бутылки сами не приближаются — место сверху не нужно */
}
.js .about-bottles[data-reveal] .about-bottle { transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .about-bottles[data-reveal]:not(.is-in) .about-bottle { opacity: 0; transform: translateX(80px) translateY(var(--y)) rotate(calc(var(--r) + 12deg)); }
.js .about-bottles[data-reveal].is-in:not(.is-done) .about-bottle { transition-delay: calc(var(--i) * 140ms); }
.js .about-bottles[data-reveal].is-done .about-bottle { transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.notfound { padding-block: 40px 10px; }
.notfound__code { font-size: clamp(110px, 22vw, 200px); color: transparent; -webkit-text-stroke: 2px var(--ink); line-height: .9; }

/* ── Футер ────────────────────────────────────── */
.footer { background: var(--ink); color: #fff; padding-block: 48px 28px; margin-top: 20px; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand img { width: 110px; margin-bottom: 14px; }
.footer__brand p { color: #a59ea3; font-size: 14px; max-width: 32ch; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer__col a { color: #d9d4d7; text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 4px; }
/* Логотипы соцсетей под текстом бренда; при наведении — фирменный фиолетовый */
.footer__social { display: flex; flex-wrap: wrap; margin: 14px 0 0 -7px; }
.footer__social a { position: relative; display: inline-grid; place-items: center; width: 38px; height: 44px; border-radius: 8px; color: #d9d4d7; transition: color .15s; }
.footer__social a.is-marked::before { content: "*"; position: absolute; top: 2px; left: 2px; font-size: 14px; line-height: 1; color: #d9d4d7; } /* сноска про Meta */
.footer__brand .footer__note { margin-top: 6px; font-size: 12px; color: #8f888d; max-width: 40ch; }
.footer__social a:hover, .footer__social a:focus-visible { color: var(--purple); }
.footer__social svg { width: 24px; height: 24px; fill: currentColor; }
.footer__legal { display: grid; gap: 6px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: #8f888d; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }

/* ── Демо-оплата ──────────────────────────────── */
.demo-pay { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--tile); }
.demo-pay__card { display: grid; gap: 14px; width: min(440px, 100%); padding: 28px; background: var(--paper); border-radius: 14px; }
.demo-pay__card .display { font-size: 32px; }
.demo-pay__card p { color: var(--ink-2); }
.demo-pay__sum { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--ink) !important; }

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