/* ---------- Основа: цвета и шрифты по брендбуку ZiMBiR ---------- */
:root {
  /* Основные цвета брендбука */
  --brand: #7A2E34;      /* Wine Plum — логотип, заголовки */
  --brand-hover: #943B43;
  --emerald: #115036;    /* Emerald Depths */
  --moss: #80BD55;       /* Moss Green */
  /* Дополнительные цвета брендбука */
  --orange: #E84F14;
  --lime: #F2ED81;       /* жёлтый: «SHOT» на тёмном, логотип на тёмном */
  --lime-2: #BFD35D;
  --green-2: #86BD3C;
  --paper: #FFFBFA;      /* фон страниц брендбука */
  /* Производные: текст и служебные */
  --green: var(--emerald);       /* зелёный текст и значки на светлом */
  --green-dark: #0B3A27;
  --surface: #FFFFFF;
  --ink: #3E171C;        /* основной текст: тёмный Wine Plum */
  --gold: #C9A85C;       /* крышка */
  --muted: #7C6266;
  --line: #EFE1DD;
  --focus: #2F6BFF;
  --danger: #B3261E;
  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "Consolas", monospace;  /* номера разделов, как в брендбуке */
  --hand: var(--display);
  --spring: cubic-bezier(.2, .9, .25, 1.15);
  /* «Топографические» линии как на обложке каталога */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M300 70c100 0 190 70 178 170s-66 150-168 160-198-46-188-160 78-170 178-170z'/%3E%3Cpath d='M300 125c70 0 132 48 124 118s-47 104-117 111-138-32-131-111 54-118 124-118z'/%3E%3Cpath d='M300 180c40 0 76 28 71 68s-27 59-67 63-79-18-75-63 31-68 71-68z'/%3E%3Cpath d='M-40 470c80-40 160-20 230 30s160 60 250 20 170-30 200 0'/%3E%3Cpath d='M-40 525c80-40 160-20 230 30s160 60 250 20 170-30 200 0'/%3E%3Cpath d='M40-20c20 60 80 90 70 150s-80 80-130 70'/%3E%3Cpath d='M560 10c-40 50-30 110 20 150s40 100 0 140'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
/* Фон сайта перекрашивается в цвет напитка, который сейчас в центре экрана (--tint ставит main.js) */
body.site {
  --bg: color-mix(in srgb, var(--tint, var(--paper)) 14%, var(--paper));
  overflow-x: hidden;
  background: var(--bg);
  transition: background-color .8s ease;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
section[id] { scroll-margin-top: 80px; }

/* Подпись над заголовком: моноширинный шрифт и номер раздела «01 /», как в брендбуке */
main { counter-reset: section; }
.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .6rem;
  color: var(--orange);
  font: 500 .82rem/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker.num::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  padding: .25rem .5rem;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: .04em;
}
.kicker-light { color: var(--lime); }

.btn {
  display: inline-block;
  padding: .9rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-hover); transform: translateY(-3px); box-shadow: 0 10px 24px -12px var(--brand); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--lime); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--brand); }
.link-btn {
  padding: 0; border: 0; background: none;
  color: var(--brand); font: 700 .95rem/1.2 var(--body);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- Вступление: бордовый экран с логотипом сливается вниз ---------- */
.intro { display: none; }
.js:not(.intro-seen) .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--brand);
  transition: transform 1.1s cubic-bezier(.75, 0, .25, 1) .6s;
}
.intro.is-out { transform: translateY(110%); }
.intro-logo { width: min(64vw, 420px); animation: intro-pop .7s var(--spring) both; }
.intro-wave { position: absolute; bottom: 100%; left: 0; right: 0; }
.intro-wave path { fill: var(--brand); }
@keyframes intro-pop { from { transform: scale(.8); opacity: 0; } }

/* Полоска прогресса прокрутки */
.scroll-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

/* ---------- Волны-разделители ---------- */
.wave { overflow: hidden; line-height: 0; pointer-events: none; }
.wave svg { display: block; width: 200%; height: clamp(28px, 4vw, 56px); animation: wave-slide 14s linear infinite; }
@keyframes wave-slide { to { transform: translateX(-50%); } }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform .4s ease, background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg, var(--paper)) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  padding: .75rem 0;
}
.logo img { display: block; width: auto; height: 46px; }
.logo .logo-light { display: none; }
/* Пока шапка над оранжевым первым экраном — белый логотип и белое меню */
.site-header:not(.is-scrolled) .logo-dark { display: none; }
.site-header:not(.is-scrolled) .logo-light { display: block; }
.site-header:not(.is-scrolled) nav a { color: #fff; }
.site-header:not(.is-scrolled) nav a:hover { color: var(--lime); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-header nav a {
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s ease, color .2s;
}
.site-header nav a:hover { background-size: 100% 2px; color: var(--brand); }

/* ---------- Переключатель языка RU / KZ ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.site-header nav .lang-switch a { padding: .15rem .55rem; border-radius: 999px; background: none; font-size: .8rem; font-weight: 800; }
.site-header nav .lang-switch a[aria-current] { background: var(--brand); color: #fff; }
.site-header:not(.is-scrolled) nav .lang-switch a[aria-current] { background: #fff; color: var(--brand); }

/* ---------- Меню-«бургер» (только на телефоне) ---------- */
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    align-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    color: var(--brand);
    cursor: pointer;
  }
  .site-header:not(.is-scrolled) .menu-toggle, .is-menu-open .menu-toggle { color: #fff; }
  .menu-toggle span { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--spring), opacity .2s; }
  .is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .logo { position: relative; z-index: 3; }
  .is-menu-open .logo .logo-dark { display: none; }
  .is-menu-open .logo .logo-light { display: block; }
  /* Панель меню на весь экран в бордовом цвете */
  .site-header .site-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.1rem;
    padding: 5rem 1.5rem 2rem;
    background: var(--brand) var(--topo) center / 520px;
    background-blend-mode: soft-light;
    font: 800 1.7rem/1.1 var(--display);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .3s ease, transform .4s var(--spring), visibility 0s .4s;
  }
  .is-menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .4s var(--spring); }
  .site-header .site-nav a { color: #fff; }
  .site-header .site-nav .lang-switch { margin-top: 1rem; font-size: 1rem; }
  .site-header .site-nav .lang-switch a { font-size: 1rem; padding: .35rem .9rem; }
  .site-header .site-nav .lang-switch a[aria-current] { background: #fff; color: var(--brand); }
  /* Пока меню открыто, шапка не прячется и не размывает фон (иначе панель не растянется на экран) */
  .site-header.is-menu-open { transform: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  html.menu-open { overflow: hidden; }
}

/* Топографический узор */
.topo {
  position: absolute;
  inset: 0;
  background: var(--topo) center / 600px;
  opacity: .07;
  pointer-events: none;
}

/* ---------- Красивые фоны ---------- */
/* Лёгкая зернистость поверх всего сайта, как у печатной упаковки */
body.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Мягкие цветные подсветки */
.glow { position: absolute; inset: 0; pointer-events: none; }
/* Первый экран: свет сверху слева и глубокая тень снизу справа, как на обложке каталога */
.glow-hero {
  background:
    radial-gradient(55vw 45vw at 10% 0%, rgba(255, 200, 120, .45), transparent 70%),
    radial-gradient(50vw 50vw at 100% 100%, rgba(80, 12, 18, .55), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
/* Зелёная зона: свет Moss Green и тёплый жёлтый отблеск, как на страницах брендбука */
.glow-story {
  background:
    radial-gradient(55vw 45vw at 100% 0%, rgba(128, 189, 85, .55), transparent 70%),
    radial-gradient(45vw 40vw at 0% 60%, rgba(128, 189, 85, .22), transparent 70%),
    radial-gradient(35vw 30vw at 90% 95%, rgba(242, 237, 129, .16), transparent 70%);
}
.glow-contact {
  background: radial-gradient(50vw 40vw at 100% 100%, rgba(232, 86, 31, .35), transparent 70%);
}
@keyframes glow-drift { to { transform: translate(-3%, 4%) scale(1.08); } }
.contact .topo { opacity: .07; filter: invert(1); }
.contact .wrap, .contact .site-footer { position: relative; }

/* ---------- Зоны: сайт состоит из трёх цветовых зон с плавными волнами между ними ---------- */
.zone { position: relative; overflow: clip; }
.zone > section, .zone > .wave, .zone > .marquee { position: relative; }
.zone-dark { background: linear-gradient(170deg, var(--emerald) 0%, #0D4430 45%, #082C1E 100%); color: #fff; }
.zone-dark > .topo { opacity: .1; filter: invert(1); }
.zone-light > .topo { opacity: .045; background-size: 760px; }
/* Волны одного вида на каждом переходе цвета */
.wave-to-light { margin-bottom: -1px; }
.wave-to-light path { fill: var(--bg, var(--paper)); transition: fill .8s ease; }
.wave-to-orange { margin-bottom: -1px; }
.wave-to-orange path { fill: var(--orange); }

/* Огромное контурное слово за каталогом */
.catalog { position: relative; }
.bg-word {
  position: absolute;
  top: 2.5rem;
  right: -2rem;
  font: 800 clamp(6rem, 20vw, 17rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--orange) 22%, transparent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.catalog > :not(.bg-word) { position: relative; }


/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  /* Первый экран заходит под прозрачную шапку; её высоту (--hh) меряет main.js */
  margin-top: calc(-1 * var(--hh, 72px));
  padding-top: var(--hh, 72px);
  overflow: hidden;
  background: linear-gradient(155deg, #F59A45 0%, var(--orange) 34%, #C83A1D 68%, #7E1F1F 100%);
  color: #fff;
}
.hero .topo { opacity: .16; filter: invert(1); background-size: 720px; }
.hero .kicker { color: #FFE3B8; }
.hero .hero-title { color: #fff; text-shadow: 0 6px 30px rgba(90, 20, 10, .25); }
.hero .split-green { color: var(--lime); }
.hero .bolt { fill: var(--lime); stroke: var(--green-dark); }
.hero .tagline { color: rgba(255, 255, 255, .9); }
.hero .btn { background: #fff; color: var(--brand); }
.hero .btn:hover { background: var(--lime); color: var(--ink); box-shadow: 0 12px 26px -12px rgba(60, 10, 10, .6); }
.hero .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.hero .btn-ghost:hover { background: #fff; color: var(--brand); }
.hero .badges li { color: var(--ink); box-shadow: none; }
.hero-photo { box-shadow: 0 40px 70px -30px rgba(60, 8, 8, .75); outline: 6px solid rgba(255, 255, 255, .9); outline-offset: -6px; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  flex: 1;
  padding: 2rem 0 3rem;
}
.hero-title {
  margin: 0 0 1.25rem;
  font: 800 clamp(3.2rem, 9.5vw, 7.6rem)/.88 var(--display);
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero-title > span { display: block; }
.shot-line { display: flex !important; align-items: center; flex-wrap: wrap; gap: 0 .2em; }
.split-green { color: var(--green); }
.bolt { width: .42em; height: .72em; fill: var(--lime); stroke: var(--green); stroke-width: 1.5; margin-left: -.05em; transform: rotate(8deg); }
.js .bolt { opacity: 0; transform: scale(0) rotate(-40deg); transition: transform .7s var(--spring) .9s, opacity .3s ease .9s; }
.ready .bolt { opacity: 1; transform: rotate(8deg); animation: zap 3.5s ease-in-out 2s infinite; }
@keyframes zap { 0%, 88%, 100% { filter: none; } 92% { filter: drop-shadow(0 0 10px var(--lime)); } }
.gingerol {
  align-self: center;
  padding: .35em .8em;
  border-radius: .4em;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  font: 700 clamp(.8rem, 1.6vw, 1.15rem)/1 var(--display);
  letter-spacing: .04em;
}
.js .gingerol { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease 1.1s, transform .6s var(--spring) 1.1s; }
.ready .gingerol { opacity: 1; transform: none; }

.split .word {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: .12em;
  margin-bottom: -.12em;
  vertical-align: top;
}
.split .ch { display: inline-block; }
.js .split .ch { transform: translateY(110%); transition: transform .9s var(--spring); transition-delay: calc(var(--i) * 45ms); }
.ready .split .ch { transform: none; }

.tagline { max-width: 36ch; margin: 0 0 2rem; color: var(--muted); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.js .hero-fade { opacity: 0; transform: translateY(18px); transition: opacity .8s ease .45s, transform .8s ease .45s; }
.js .hero-actions.hero-fade { transition-delay: .6s; }
.js .badges.hero-fade { transition-delay: .75s; }
.ready .hero-fade { opacity: 1; transform: none; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.badges li {
  padding: .35rem .8rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 700 .85rem/1.2 var(--display);
}
.badges .badge-organic { background: var(--emerald); color: #fff; box-shadow: none; }
.badges .badge-gmo { background: var(--moss); color: var(--green-dark); box-shadow: none; }

.hero-visual {
  position: relative;
  transform: translate(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 8px));
  transition: transform .5s ease-out;
}
.hero-photo {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 40px 60px -30px rgba(74, 26, 34, .55);
  transform: rotate(2deg);
}
.hero-photo img { display: block; width: 100%; height: auto; transform: scale(1.06); transition: transform 1.4s ease; }
.js .hero-photo { clip-path: inset(100% 0 0 0 round 32px); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) .35s; }
.ready .hero-photo { clip-path: inset(0 0 0 0 round 32px); }
.ready .hero-photo img { transform: scale(1); }
.hero-photo:hover img { transform: scale(1.04); }
.sticker {
  position: absolute;
  left: -34px;
  bottom: -30px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 30px -16px rgba(74, 26, 34, .5);
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.sticker text { fill: var(--brand); font: 700 10.5px/1 var(--display); letter-spacing: .09em; }
.sticker img { width: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }

.wave-bottom { position: relative; z-index: 1; margin-top: -1px; }
.wave-bottom path { fill: var(--emerald); }
.wave-top path { fill: var(--brand); }

/* ---------- Фирменная бегущая строка ---------- */
.marquee { overflow: hidden; color: #fff; padding: 1rem 0 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
  font: 700 clamp(1.05rem, 2.4vw, 1.5rem)/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.marquee-item svg { width: 1.1rem; height: 1.1rem; fill: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- От сада до бутылки: видео + шаги ---------- */
.story { padding: 5.5rem 0 3rem; color: #fff; }
.story-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 8px solid #1d080c;
  border-radius: 36px;
  background: #1d080c;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7);
  transform: rotate(-2deg);
}
.story-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
}
.story-play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 14px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.story-play[data-playing="true"]::before { width: 12px; clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.story .kicker { color: var(--lime); }
.story-title { margin: 0 0 2rem; font: 800 clamp(2rem, 5vw, 3.4rem)/1.02 var(--display); }
.story-steps { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.story-steps li { position: relative; padding-left: 3.2rem; opacity: .45; transition: opacity .8s ease, transform .8s var(--spring); counter-increment: step; cursor: pointer; }
.story-steps li.is-active { transform: translateX(6px); }
.story-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px currentColor;
  font: 800 1rem/1 var(--display);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.story-steps li.is-active { opacity: 1; }
.story-steps li.is-active::before { background: var(--lime); color: var(--ink); box-shadow: none; }
.story-steps h3 { margin: 0 0 .2rem; font: 700 1.3rem/1.2 var(--display); }
.story-steps p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.step-bar { position: absolute; left: 3.2rem; right: 0; bottom: -.7rem; height: 2px; background: rgba(255, 255, 255, .12); }
.step-bar { overflow: hidden; border-radius: 2px; }
.step-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--lime)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; will-change: transform; }

/* ---------- Сцена с бутылкой ---------- */
.pour { position: relative; }
.pour-sticky {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 0;
  overflow: hidden;
}
.pour-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
.pour h2 { margin: 0 0 1.5rem; font: 800 clamp(1.9rem, 5vw, 3.4rem)/1.02 var(--display); letter-spacing: -.01em; color: var(--brand); }
.pour-lead { margin: -.6rem 0 1.6rem; color: var(--muted); font-size: 1.1rem; max-width: 40ch; }
/* Этапы наливания: активный подсвечен, пройденные отмечены */
.pour-phases { display: grid; gap: .55rem; margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: phase; }
.pour-phases li {
  position: relative;
  display: grid;
  gap: .1rem;
  padding: .7rem 1rem .7rem 3.1rem;
  border-radius: 16px;
  counter-increment: phase;
  opacity: .5;
  transition: opacity .5s ease, background-color .5s ease, transform .5s var(--spring), box-shadow .5s;
}
.pour-phases li::before {
  content: counter(phase);
  position: absolute;
  left: .8rem;
  top: .75rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--brand);
  color: var(--brand);
  font: 800 .85rem/1 var(--display);
  transition: background-color .4s, color .4s;
}
.pour-phases li.is-past { opacity: .75; }
.pour-phases li.is-past::before { content: "✓"; background: var(--green); color: #fff; box-shadow: none; }
.pour-phases li.is-active { opacity: 1; background: #fff; box-shadow: 0 12px 26px -18px rgba(74, 26, 34, .45); transform: translateX(6px); }
.pour-phases li.is-active::before { background: var(--brand); color: #fff; }
.pour-phases b { font: 800 1.05rem/1.2 var(--display); color: var(--brand); }
.pour-phases span { color: var(--muted); font-size: .92rem; }
/* Счётчик «Налито … мл» с полоской */
.pour-meter { display: grid; gap: .45rem; max-width: 320px; margin-bottom: 1.4rem; font-weight: 700; }
.pour-meter b { font: 800 1.4rem/1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
.pour-meter i { display: block; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 12%, transparent); overflow: hidden; }
.pour-meter s { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--c)); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }
.pour-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.pour-picker button, .store-filter button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font: 700 .9rem/1.2 var(--body);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--spring);
}
.pour-picker button::before, .store-filter button[style]::before { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: var(--chip); }
.pour-picker button:hover, .store-filter button:hover { transform: translateY(-2px); }
.pour-picker button[aria-pressed="true"], .store-filter button[aria-pressed="true"] { background: var(--brand); color: #fff; }
/* Кнопка «Налить ещё раз» появляется, когда стакан полный */
.pour-again { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .4s, transform .4s var(--spring), background-color .2s, color .2s; }
.pour.is-done .pour-again { opacity: 1; transform: none; pointer-events: auto; }

.pour-stage { display: block; width: 100%; max-height: 84vh; max-height: 84svh; }
.pour .liquid { fill: var(--c); transition: fill .5s ease; }
.pour .bottle-liquid { opacity: .82; }
.shadow { fill: var(--ink); opacity: .1; }
/* Стакан: задняя стенка, передняя стенка с объёмом, толстое дно, ободок */
.glass-back { fill: rgba(255, 255, 255, .45); }
.glass-rim-back { fill: rgba(255, 255, 255, .5); stroke: rgba(74, 26, 34, .35); stroke-width: 1.5; }
.glass-front { fill: url(#glass-shade); stroke: rgba(74, 26, 34, .75); stroke-width: 2.5; stroke-linejoin: round; }
.glass-bottom { fill: url(#glass-base); }
.glass-rim { fill: none; stroke: rgba(74, 26, 34, .75); stroke-width: 2.5; }
.glass-shine { stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .75; }
.glass-shine-thin { stroke-width: 2.5; opacity: .5; }
.liquid-top { fill: color-mix(in srgb, var(--c) 65%, #FFD9A0); transition: opacity .3s; }
.ripples ellipse { fill: none; stroke: #FFE7C2; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-pouring .ripples ellipse { animation: ripple 1.35s ease-out infinite; }
@keyframes ripple {
  from { transform: scale(.4); opacity: .9; }
  to { transform: scale(4); opacity: 0; }
}
.condensation ellipse { fill: #fff; opacity: 0; transition: opacity 1.4s ease; }
.pour.is-done .condensation ellipse { opacity: .75; }
.condensation ellipse:nth-child(2n) { transition-delay: .3s; }
.condensation ellipse:nth-child(3n) { transition-delay: .6s; }
.level-marks .mark { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s var(--spring); }
.level-marks .mark.is-on { opacity: 1; transform: none; }
.level-marks path { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 3 3; }
.level-marks text { fill: var(--brand); font: 700 12.5px var(--body); }
.last-drop { fill: var(--c); }
.lemon { filter: drop-shadow(0 4px 4px rgba(74, 26, 34, .25)); }
.bottle-outline { fill: none; stroke: rgba(0, 0, 0, .45); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bottle-shine { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; opacity: .5; }
.stream { fill: none; stroke: var(--c); stroke-linecap: round; transition: stroke .5s ease; }
.stream-flow {
  fill: none;
  stroke: #fff;
  stroke-opacity: .4;
  stroke-linecap: round;
  stroke-dasharray: 4 16;
  animation: flow .45s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -20; } }
.wave-move { animation: glass-wave 1.6s linear infinite; }
@keyframes glass-wave { to { transform: translateX(-55px); } }
.glass-bubble { fill: #fff; opacity: .6; animation: glass-bubble 2.4s linear infinite; }
@keyframes glass-bubble {
  from { transform: translateY(0); opacity: .6; }
  to { transform: translateY(-70px); opacity: 0; }
}
.splash circle { fill: var(--c); opacity: 0; }
.is-pouring .splash circle { animation: splash .7s ease-out infinite; }
@keyframes splash {
  from { transform: translate(0, 0) scale(1); opacity: .9; }
  to { transform: translate(var(--dx), -24px) scale(.3); opacity: 0; }
}

/* ---------- Разделы ---------- */
.section { padding: 4.5rem 0; }
.section h2 { margin: 0 0 2.5rem; font: 800 clamp(2rem, 5vw, 3.4rem)/1.02 var(--display); letter-spacing: -.01em; }

/* Заголовок «наливается» снизу вверх */
.js .fill-title {
  background: linear-gradient(to top, var(--brand) 50%, color-mix(in srgb, var(--brand) 15%, transparent) 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.3s cubic-bezier(.6, 0, .2, 1);
}
.js .fill-title.is-visible { background-position: 0 100%; }

/* Появление при прокрутке для простых блоков */
.js .kicker[data-reveal], .js .story-title[data-reveal], .js .about-quote[data-reveal] {
  opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease;
}
.js .kicker.is-visible, .js .story-title.is-visible, .js .about-quote.is-visible { opacity: 1; transform: none; }

/* ---------- Каталог ---------- */
.drinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 3rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drink { display: flex; flex-direction: column; perspective: 900px; }
.plinth {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 280px;
  padding: 1.5rem 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px 24px 6px 6px;
  background: color-mix(in srgb, var(--c) 16%, #fff);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--spring), background-color .4s ease;
}
.drink.has-photo .plinth { align-items: center; padding: 1rem; background: #fff; }
.drink:hover .plinth { background: color-mix(in srgb, var(--c) 26%, #fff); }
.drink.has-photo:hover .plinth { background: #fff; }
.drink.is-tilting .plinth { transition: transform .12s linear, background-color .4s ease; }
.drop { position: relative; z-index: 1; width: 86px; translate: calc(var(--px, 0) * 12px) calc(var(--py, 0) * 8px); transition: translate .3s ease-out; }
.has-photo .drop { width: 100%; height: 100%; }
.drop .bottle {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  transition: transform .5s var(--spring);
}
.has-photo .drop .bottle { height: 100%; object-fit: contain; filter: none; }
.drink:hover .drop .bottle { transform: translateY(-14px) rotate(-8deg); }
.drink.has-photo:hover .drop .bottle { transform: scale(1.05); }
.plinth-more {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 700 .8rem/1.2 var(--body);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .3s, transform .3s var(--spring);
}
.plinth:hover .plinth-more, .plinth:focus-visible .plinth-more { opacity: 1; transform: translate(-50%, 0); }

/* Один шот: большая горизонтальная карточка */
.drinks-single { grid-template-columns: 1fr; }
.drinks-single .drink { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.drinks-single .plinth { height: clamp(320px, 42vw, 480px); border-radius: 32px; }
.drinks-single .drink-body h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.drinks-single .drink-body p { font-size: 1.1rem; }

/* ---------- Витрина одного шота: фото на тёплом круге с подписями ингредиентов ---------- */
.drinks-showcase { display: block; }
.showcase { display: block; perspective: none; }
/* Сцена: фото занимает середину (70% × 80%), вокруг место для подписей.
   Пропорции подобраны так, чтобы фото из каталога вписалось без полей. */
.stage { position: relative; aspect-ratio: 1.73; max-width: 1060px; margin: -1rem auto 0; }
.stage-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 46px, rgba(232, 86, 31, .1) 46px 47.5px),
    radial-gradient(circle at 40% 35%, #FFF1DE, #FCD9B4 55%, #F6BE8C);
  box-shadow: 0 50px 80px -40px rgba(232, 86, 31, .55), inset 0 -20px 60px rgba(232, 86, 31, .18);
  transform: translate(calc(-50% + var(--sx, 0) * -10px), calc(-50% + var(--sy, 0) * -10px));
  transition: transform .6s ease-out;
}
.stage-photo {
  position: absolute;
  left: 15%;
  top: 10%;
  width: 70%;
  height: 80%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* Белый фон фото растворяется в круге: кажется, что шот вырезан */
  mix-blend-mode: multiply;
  transform: translate(calc(var(--sx, 0) * 8px), calc(var(--sy, 0) * 6px));
  transition: transform .6s ease-out;
}
.showcase .drop { display: block; width: 100%; height: 100%; translate: none; }
.showcase .drop .bottle { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--spring); }
.drink.showcase:hover .drop .bottle { transform: none; }
.drink.showcase .stage-photo:hover .drop .bottle { transform: scale(1.04) rotate(-1deg); }

.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stage-lines path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .2, 1) calc(1s + var(--i) * .25s);
}
.showcase.is-visible .stage-lines path { stroke-dashoffset: 0; }
/* Точка на фрукте с мягкой пульсацией */
.stage-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 4px 10px rgba(74, 26, 34, .35);
  transform: scale(0);
  transition: transform .5s var(--spring) calc(.8s + var(--i) * .25s);
  pointer-events: none;
}
.stage-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: dot-pulse 2.4s ease-out infinite;
  animation-delay: calc(var(--i) * .5s);
}
@keyframes dot-pulse { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.showcase.is-visible .stage-dot { transform: scale(1); }
/* Подписи ингредиентов вокруг фото */
.callout {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: .2rem;
  width: min(230px, 24%);
  padding: .8rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px -18px rgba(74, 26, 34, .5), inset 0 0 0 1.5px var(--line);
  opacity: 0;
  translate: calc(var(--sx, 0) * 14px) calc(var(--sy, 0) * 10px);
  transition: opacity .6s ease calc(1.3s + var(--i) * .25s), transform .7s var(--spring) calc(1.3s + var(--i) * .25s), translate .6s ease-out, box-shadow .3s;
}
.callout b { font: 800 1rem/1.2 var(--display); color: var(--brand); }
.callout span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.callout:hover { box-shadow: 0 20px 40px -18px rgba(74, 26, 34, .6), inset 0 0 0 2px var(--orange); }
.callout-left { left: 0; top: 66%; transform: translateX(-24px); }
.callout-top { left: 71%; top: 0; transform: translateY(-20px); }
.callout-right { left: 76%; top: 76%; transform: translateX(24px); }
.showcase.is-visible .callout { opacity: 1; transform: none; }

/* Появление витрины: круг раскрывается, фото поднимается */
.js .showcase[data-reveal] .stage-circle { scale: .6; opacity: 0; transition: transform .6s ease-out, scale 1s var(--spring) .1s, opacity .6s ease .1s; }
.js .showcase.is-visible .stage-circle { scale: 1; opacity: 1; }
.js .showcase[data-reveal] .drop { opacity: 0; transform: translateY(60px); transition: opacity .7s ease .45s, transform 1s var(--spring) .45s; }
.js .showcase.is-visible .drop { opacity: 1; transform: none; }
.js .showcase[data-reveal] .drink-body { transition-delay: 1.4s; }

/* Плашка под витриной: название, значки, цена и кнопки */
.showcase .showcase-bar {
  display: grid;
  grid-template-columns: 1.5fr auto auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.6rem 2rem;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(74, 26, 34, .5), inset 0 0 0 1.5px var(--line);
}
.showcase-title .kicker { margin-bottom: .1rem; font-size: 1.2rem; }
.showcase .showcase-title h3 { margin: 0 0 .4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.showcase .showcase-title p:last-child { margin: 0; }
.showcase-badges { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.showcase-badges li {
  padding: .3rem .75rem;
  border-radius: 8px;
  background: var(--paper);
  font: 700 .82rem/1.3 var(--display);
  text-align: center;
  white-space: nowrap;
}
.showcase-badges .badge-organic { background: var(--emerald); color: #fff; }
.showcase-badges .badge-gmo { background: var(--moss); color: var(--green-dark); }
.showcase-buy { display: grid; gap: .8rem; }
.showcase .meta { gap: 1.2rem; margin: 0; padding: 0; border: 0; }
.showcase .meta .price { font-size: 1.3rem; }
.showcase .drink-actions { flex-wrap: wrap; margin: 0; gap: .9rem; }

@media (max-width: 860px) {
  .stage { aspect-ratio: auto; display: grid; gap: .6rem; margin-top: 0; }
  .stage-circle { width: 90%; top: 30%; }
  .stage-photo { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 1.51; }
  .stage-lines, .stage-dot { display: none; }
  .callout { position: relative; left: auto; top: auto; width: auto; transform: translateY(12px); translate: none; }
  .showcase .showcase-bar { grid-template-columns: 1fr; padding: 1.3rem; }
  .showcase-badges { display: flex; flex-wrap: wrap; }
}

/* Жидкость внутри нарисованной бутылки: волна бежит, при наведении плещется сильнее */
.slosh { transform-box: view-box; transform-origin: 30px 90px; transition: transform .6s var(--spring); }
.slosh-wave { animation: slosh 3s linear infinite; }
@keyframes slosh { to { transform: translateX(30px); } }
.drink:hover .slosh-wave, .box-option:hover .slosh-wave { animation-duration: .9s; }
.drink .slosh { transform: rotate(calc(var(--ry, 0deg) * -1.6)); }

/* Фото бутылки вместо рисунка */
.bottle-photo { object-fit: contain; }

/* 3D-наклон: блик за курсором */
.glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .6), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.drink:hover .glare { opacity: 1; }

/* Пузырьки в карточке при наведении */
.fizz, .fizz::before, .fizz::after {
  position: absolute;
  bottom: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 45%, #fff);
  opacity: 0;
}
.fizz { left: 22%; }
.fizz::before { content: ""; left: 180px; width: 8px; height: 8px; }
.fizz::after { content: ""; left: 90px; width: 16px; height: 16px; }
.drink:hover .fizz, .drink:hover .fizz::before, .drink:hover .fizz::after { animation: fizz 1.8s ease-in infinite; }
.drink:hover .fizz::before { animation-delay: .5s; }
.drink:hover .fizz::after { animation-delay: .9s; }
@keyframes fizz {
  10% { opacity: 1; }
  to { transform: translateY(-300px); opacity: 0; }
}

/* Появление карточек: подставка поднимается, бутылка падает сверху */
.js .drink[data-reveal] .plinth { clip-path: inset(100% 0 0 0 round 24px 24px 6px 6px); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1) var(--d), background-color .4s, transform .6s var(--spring); }
.js .drink[data-reveal].is-tilting .plinth { transition: clip-path .8s cubic-bezier(.7, 0, .2, 1) var(--d), background-color .4s, transform .12s linear; }
.js .drink[data-reveal] .drop { transform: translateY(-340px); transition: transform .9s var(--spring) calc(var(--d) + .35s); }
.js .drink[data-reveal] .drink-body { opacity: 0; transform: translateY(12px); transition: opacity .6s ease calc(var(--d) + .5s), transform .6s ease calc(var(--d) + .5s); }
.js .drink.is-visible .plinth { clip-path: inset(0 0 0 0 round 24px 24px 6px 6px); }
.js .drinks-single .drink.is-visible .plinth { clip-path: inset(0 0 0 0 round 32px); }
.js .drink.is-visible .drop { transform: none; }
.js .drink.is-visible .drink-body { opacity: 1; transform: none; }

.drink-body { display: flex; flex-direction: column; flex: 1; }
.drink h3 { margin: 1rem 0 .4rem; font: 800 1.2rem/1.2 var(--display); color: var(--brand); }
.drink p { margin: 0 0 .75rem; color: var(--muted); font-size: .975rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chips li { padding: .25rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green-dark); font-size: .85rem; font-weight: 700; }
.drink .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.price { font-family: var(--display); font-weight: 800; color: var(--brand); }
.badge { padding: .15rem .6rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; }
.sold-out .plinth { filter: grayscale(1); opacity: .55; }
.empty { padding: 2rem 0; color: var(--muted); }
.drink-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: .9rem; }

.add-to-box {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font: 700 .9rem/1.2 var(--body);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .25s var(--spring);
}
.add-to-box span { display: inline-block; font-size: 1.1em; transition: transform .3s var(--spring); }
.add-to-box:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.add-to-box:hover span { transform: rotate(90deg); }
.add-to-box:active { transform: scale(.95); }

/* ---------- Соберите коробку ---------- */
.box h2 { margin-bottom: 1rem; }
.box-lead { max-width: 50ch; margin: 0 0 2.5rem; color: var(--muted); font-size: 1.1rem; }
.box-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.box-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; align-content: start; }
.box-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1rem .75rem .9rem;
  border: 0;
  border-radius: 20px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform .3s var(--spring), background-color .3s, box-shadow .3s;
}
.box-option:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--c) 24%, #fff); box-shadow: 0 10px 24px -12px var(--c); }
.box-option:active { transform: scale(.96); }
.box-art { display: flex; align-items: flex-end; height: 120px; margin-bottom: .4rem; }
.box-art .bottle { width: auto; height: 100%; transform-origin: 50% 100%; transition: transform .4s var(--spring); }
.box-option:hover .box-art .bottle { transform: rotate(-6deg); }
.box-name { font: 700 .95rem/1.2 var(--display); color: var(--brand); }
.box-price { color: var(--muted); font-size: .9rem; font-weight: 700; }
.box-fill {
  grid-column: 1 / -1;
  padding: .8rem 1rem;
  border: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent);
  border-radius: 16px;
  background: transparent;
  color: var(--brand);
  font: 700 .95rem/1.2 var(--body);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.box-fill:hover { background: #fff; border-color: var(--brand); }
.box.is-full .box-option, .box.is-full .box-fill { opacity: .5; }

/* ---------- Витринная коробка как настоящая ---------- */
.box-side { position: sticky; top: 100px; perspective: 1100px; }
.box-specs { display: flex; flex-wrap: wrap; gap: .6rem; margin: -1.2rem 0 2.5rem; padding: 0; list-style: none; }
.box-specs li {
  display: grid;
  padding: .6rem 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.box-specs b { font: 800 1rem/1.2 var(--display); color: var(--brand); }
.box-specs span { color: var(--muted); font-size: .85rem; }

/* Коробка наклоняется за курсором (--tx, --ty ставит main.js) */
.crate {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--spring);
}
.crate.is-tilting { transition: transform .12s linear; }

/* Задняя стенка: высокая картонка со скошенным верхом, фото продукта и надписями */
.crate-back {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #FFFFFF, #F4EEE5);
  box-shadow: inset 0 0 0 1.5px #E4D9CB;
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
}
.crate-back-art { position: relative; height: 250px; padding: 2.6rem 1.1rem 0; }
.crate-logo { width: 96px; }
.crate-word { display: grid; justify-items: start; gap: .1rem; margin: .5rem 0 0; font: 800 1.55rem/.95 var(--display); text-transform: uppercase; }
.crate-word em, .crate-front em { font-style: normal; color: #7FB241; }
.crate-gingerol {
  margin-top: .3rem;
  padding: .2rem .5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  font-size: .62rem;
  letter-spacing: .04em;
}
.crate-photo { position: absolute; right: -6px; top: 3.4rem; width: 56%; mix-blend-mode: multiply; }
.crate-organic {
  position: absolute;
  top: 1.2rem;
  right: .9rem;
  display: grid;
  place-items: center;
  padding: .3rem .45rem;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font: 700 .55rem/1.1 var(--display);
  text-transform: uppercase;
  transform: rotate(4deg);
}
.crate-organic b { font-size: .9rem; }
.crate-size { position: absolute; left: 1.1rem; top: 12.3rem; color: var(--muted); font: 700 .75rem/1 var(--display); }
.crate-strip {
  margin: 0;
  padding: .45rem 1rem;
  background: linear-gradient(90deg, #1F5FA5, #3B86C9);
  color: #fff;
  font: 700 .78rem/1.2 var(--display);
}

/* Внутренность коробки и бутылки рядами: передние закрывают задние */
.crate-body { position: relative; margin-top: -150px; }
.crate-body::before {
  content: "";
  position: absolute;
  inset: 110px 0 40px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(122, 90, 60, .18), rgba(122, 90, 60, .06));
}
.crate-slots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  grid-auto-rows: 40px;
  gap: 0;
  margin: 0;
  padding: 118px 1rem 0;
  list-style: none;
}
.crate-slot { position: relative; }
.crate-slot > button, .crate-slot > .ghost { transform-origin: 50% 100%; }
/* Глубина: задние ряды меньше и темнее, средний ряд чуть сдвинут */
.crate[style*="--cols: 3"] .crate-slot:nth-child(-n+3) > * { transform: scale(.8); filter: brightness(.82); }
.crate[style*="--cols: 3"] .crate-slot:nth-child(n+4):nth-child(-n+6) > * { transform: translateX(14%) scale(.9); filter: brightness(.92); }
.crate-slot::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 56%;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  translate: -50% 0;
}
/* Пустое место: контур бутылки пунктиром */
.crate-slot .ghost {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  width: 100%;
  height: 128px;
  fill: rgba(255, 255, 255, .35);
  stroke: color-mix(in srgb, var(--brand) 30%, transparent);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}
.crate-slot button {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 128px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.crate-slot .bottle { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; }
.crate-slot button:hover .bottle { animation: wiggle .6s ease; }
@keyframes wiggle {
  20% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); }
  70% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}
.crate-slot button::after {
  content: "×";
  position: absolute;
  top: 0;
  right: 18%;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 700 .9rem/1 var(--body);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .25s var(--spring);
}
.crate-slot button:hover::after, .crate-slot button:focus-visible::after { opacity: 1; transform: none; }
.crate-slot.is-pending .bottle { visibility: hidden; }
.crate-slot.is-new .bottle { animation: land .55s var(--spring); }
@keyframes land {
  0% { transform: translateY(-40px) scale(1, 1); }
  60% { transform: translateY(0) scale(1.08, .92); }
  100% { transform: none; }
}
/* Передний бортик: надпись, счётчик и логотип */
.crate-front {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 84px;
  margin-top: -58px;
  padding: 0 1.1rem;
  overflow: hidden;
  border-radius: 4px 4px 14px 14px;
  background: linear-gradient(180deg, #FFFFFF, #F3ECE2);
  box-shadow: 0 -1px 0 #E4D9CB, inset 0 -3px 0 rgba(122, 90, 60, .08), 0 26px 36px -22px rgba(74, 26, 34, .6);
  font: 800 clamp(1.2rem, 2.6vw, 1.7rem)/1 var(--display);
  text-transform: uppercase;
}
.crate-ginger { color: var(--brand); }
.crate-shot { color: var(--green); }
.crate-counter {
  padding: .3rem .55rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 800 .85rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.crate-counter.is-bumped { animation: bump .4s var(--spring); }
.crate-front img { width: 80px; margin-left: auto; }
/* Блик пробегает по бортику, когда коробка собрана */
.crate-front::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}
.crate.is-full .crate-front::after { animation: shine 1.4s ease .2s; }
@keyframes shine { from { left: -40%; opacity: 1; } to { left: 120%; opacity: 1; } }
/* Бутылка приземлилась: коробка чуть приседает */
.crate.is-landing .crate-body { animation: crate-squash .35s ease; }
@keyframes crate-squash { 40% { transform: scaleY(.97) translateY(3px); } }
/* Коробка собрана: подпрыгивает, и ставится штамп */
.crate.is-cheer { animation: cheer .7s var(--spring); }
@keyframes cheer { 30% { transform: translateY(-14px) rotate(-1.5deg); } 60% { transform: translateY(0) rotate(1deg); } }
.crate-stamp {
  position: absolute;
  top: 196px;
  right: -22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--brand);
  color: var(--brand);
  font: 800 .78rem/1.15 var(--display);
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-16deg) scale(2.2);
  pointer-events: none;
}
.crate-stamp span { max-width: 80%; }
.crate.is-full .crate-stamp { animation: stamp .45s cubic-bezier(.3, 1.4, .5, 1) .5s forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-16deg) scale(1); } }
.crate-hint { margin: .8rem 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.crate.is-shaking { animation: shake .45s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.box-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1.5rem 0 1rem; }
.box-count { color: var(--muted); }
.box-total { font: 800 clamp(1.5rem, 3.5vw, 2.1rem)/1 var(--display); color: var(--brand); }
.box-total.is-text { font-size: 1.15rem; }
.box-total.is-bumped { animation: bump .4s var(--spring); }
@keyframes bump { 40% { transform: scale(1.15); } }
.box-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.box-order[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* Кнопки WhatsApp: зелёный цвет WhatsApp (чуть темнее фирменного, чтобы белый текст читался) */
.btn-whatsapp, .contact-btn.btn-whatsapp { background: #1FA855; color: #fff; box-shadow: none; }
.btn-whatsapp:hover, .contact-btn.btn-whatsapp:hover { background: #178F47; color: #fff; box-shadow: 0 10px 24px -12px #1FA855; }
/* Кнопка магазина в Kaspi: фирменный красный Kaspi, чтобы её сразу узнавали */
.btn-kaspi { background: #F14635; color: #fff; }
.btn-kaspi:hover { background: #D93A2A; box-shadow: 0 10px 24px -12px #F14635; }
.box-clear[disabled] { opacity: .4; cursor: default; }

/* Бутылка, которая летит в коробку */
.fly {
  position: fixed;
  z-index: 90;
  margin: 0;
  pointer-events: none;
  will-change: transform;
}
.fly .bottle { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Плашка «Коробка» в углу экрана */
.box-pill {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .8rem .7rem 1.2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(74, 26, 34, .6);
  transition: transform .35s var(--spring), opacity .25s;
}
.box-pill[hidden] { display: inline-flex; opacity: 0; transform: translateY(150%); pointer-events: none; }
.box-pill:hover { transform: translateY(-3px); }
.box-pill-count {
  display: grid;
  place-items: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}
.box-pill.is-bumped .box-pill-count { animation: bump .4s var(--spring); }

/* ---------- Цифры ---------- */
.stats { padding: 1rem 0 4.5rem; color: #fff; }
.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
}
.stats-list li { display: grid; align-content: start; gap: .4rem; }
@media (max-width: 900px) { .stats-list { grid-template-columns: repeat(2, 1fr); } }
.stat-value { font: 800 clamp(2.2rem, 4.6vw, 4rem)/1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-list span { color: rgba(255, 255, 255, .8); max-width: 22ch; }
.js .stats-list li { opacity: 0; transform: translateY(24px); transition: opacity .6s ease var(--d), transform .7s var(--spring) var(--d); }
.js .stats-list li.is-visible { opacity: 1; transform: none; }

/* ---------- О нас ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem 4rem; align-items: start; }
.about h2 { margin-bottom: 1.5rem; }
.about-text {
  max-width: 34ch;
  margin: 0;
  font: 600 clamp(1.2rem, 2.3vw, 1.6rem)/1.45 var(--display);
  white-space: pre-line;
}
.about-text .w { transition: opacity .25s linear; }
/* Карточка-цитата в фирменном оранжевом градиенте */
.about-quote-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 1.8rem 1.8rem 1.5rem;
  border-radius: 26px;
  background: linear-gradient(145deg, #F59A45, var(--orange) 45%, #B8321C);
  color: #fff;
  box-shadow: 0 30px 50px -34px rgba(184, 50, 28, .8);
}
.about-quote-card::before { content: ""; position: absolute; inset: 0; background: var(--topo) center / 420px; filter: invert(1); opacity: .14; }
.about-quote-mark { position: absolute; top: -1.2rem; right: 1rem; font: 800 8rem/1 var(--display); color: rgba(255, 255, 255, .18); }
.about-quote-card blockquote { position: relative; margin: 0 0 1rem; font: 800 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--display); }
.about-quote-card figcaption { position: relative; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; opacity: .9; }
.about-quote-card figcaption img { width: 26px; filter: brightness(0) invert(1); }
.js .about-quote-card[data-reveal] { opacity: 0; transform: translateY(24px) rotate(-1.5deg); transition: opacity .7s ease, transform .8s var(--spring); }
.js .about-quote-card.is-visible { opacity: 1; transform: none; }
/* Три опоры продукта */
.pillars { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.pillars li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.pillars li:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1.5px var(--line), 0 14px 28px -20px rgba(74, 26, 34, .5); }
.pillars svg {
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: .55rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--orange) 14%, #fff);
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillars b { display: block; margin-bottom: .15rem; font: 800 1.02rem/1.25 var(--display); color: var(--brand); }
.pillars span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.js .pillars li[data-reveal] { opacity: 0; transform: translateX(24px); transition: opacity .6s ease var(--d), transform .6s var(--spring) var(--d), box-shadow .3s; }
.js .pillars li.is-visible { opacity: 1; transform: none; }
.js .pillars li.is-visible:hover { transform: translateX(6px); transition: transform .3s var(--spring), box-shadow .3s; }

/* ---------- Где купить ---------- */
.stores h2 { margin-bottom: 1rem; }
.stores-lead { max-width: 58ch; margin: 0 0 2.5rem; color: var(--muted); font-size: 1.1rem; }
.shelf-photos { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.25rem; margin: 0 0 3rem; }
.shelf-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: 24px; }
.shelf-photos img { display: block; width: 100%; height: 100%; max-height: 340px; object-fit: cover; transition: transform 1s ease; }
.shelf-photos figure:hover img { transform: scale(1.04); }
.shelf-photos figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: .9rem;
  font-weight: 700;
}
.js .shelf-photos figure[data-reveal] img { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) var(--d, 0s), transform 1s ease; }
.js .shelf-photos figure.is-visible img { clip-path: inset(0 0 0 0); }

.store-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.store:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--line), 0 20px 36px -20px rgba(74, 26, 34, .5); }
.store[hidden] { display: none; }
/* Фото места (или фирменная «вывеска», пока фото нет) */
.store-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.store-photo img:not(.store-sign-icon) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.store:hover .store-photo img:not(.store-sign-icon) { transform: scale(1.06); }
.store-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 8, 12, .45), transparent 45%);
  pointer-events: none;
}
.store-photo.is-sign { background: var(--tone); }
.store-photo.is-sign::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--topo) center / 360px;
  filter: invert(1);
  opacity: .14;
  transition: transform 6s linear;
}
.store:hover .store-photo.is-sign::before { transform: scale(1.15) rotate(3deg); }
.tone-0 { --tone: radial-gradient(circle at 20% 15%, #A8434F, var(--brand) 55%, #4E1820); }
.tone-1 { --tone: radial-gradient(circle at 80% 10%, #F6A150, var(--orange) 50%, #A8301C); }
.tone-2 { --tone: radial-gradient(circle at 25% 20%, #5DAE4C, var(--green) 50%, var(--green-dark)); }
.tone-3 { --tone: radial-gradient(circle at 70% 20%, #E7CB82, #B8924A 55%, #7C5B24); }
.store-sign {
  position: relative;
  z-index: 1;
  max-width: 86%;
  font: 800 clamp(1.15rem, 2vw, 1.5rem)/1.05 var(--display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .2);
  overflow-wrap: anywhere;
}
.store-sign-icon {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 110px;
  opacity: .2;
  filter: brightness(0) invert(1);
  transform: rotate(-14deg);
}
.store-kind {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.store-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.2rem 1.1rem; }
.store h3 { margin: 0 0 .3rem; font: 800 1.15rem/1.25 var(--display); color: var(--brand); }
.store p { margin: 0 0 .2rem; font-size: .95rem; }
.store-drinks { display: flex; gap: .3rem; margin-top: .4rem !important; }
.store-drinks i { width: .8rem; height: .8rem; border-radius: 50%; }
.store-route { margin-top: auto; padding-top: .9rem; color: var(--brand); font-weight: 700; text-decoration: none; }
.store-route:hover { text-decoration: underline; }
.js .store[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease var(--d), transform .6s ease var(--d), box-shadow .3s; }
.js .store.is-visible { opacity: 1; transform: none; }
.js .store.is-visible:hover { transform: translateY(-4px); transition: transform .3s var(--spring), box-shadow .3s; }
.store-empty { color: var(--muted); }

/* ---------- Формула бренда: ZiMBiR = Nature + Science + Daily Ritual ---------- */
.formula { padding: 1rem 0 3.5rem; color: #fff; }
.formula-title { margin: 0 0 2rem; font: 800 clamp(1.6rem, 4.4vw, 3rem)/1.1 var(--display); letter-spacing: -.01em; }
.formula-title i { font-style: normal; color: var(--lime); padding: 0 .1em; }
.js .formula-title[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .formula-title.is-visible { opacity: 1; transform: none; }
.formula-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.formula-cards li { perspective: 1000px; }
.js .formula-cards li[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease var(--d), transform .7s var(--spring) var(--d); }
.js .formula-cards li.is-visible { opacity: 1; transform: none; }
/* Карточка-переворот: лицевая сторона — слово и значок, обратная — объяснение */
.flip { display: block; width: 100%; height: 230px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--spring); }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip:hover .flip-inner { transform: rotateY(8deg); }
.flip[aria-pressed="true"]:hover .flip-inner { transform: rotateY(172deg); }
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .3rem;
  padding: 1.4rem;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.flip-front { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.flip-front img, .flip-front svg { position: absolute; top: 1.2rem; left: 1.2rem; width: 58px; height: 58px; }
.flip-front svg { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flip-front img { padding: 6px; border-radius: 16px; background: #fff; }
.flip-front b { font: 800 1.7rem/1 var(--display); color: var(--lime); }
.flip-front small { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.flip-front em { position: absolute; top: 1.3rem; right: 1.3rem; color: rgba(255, 255, 255, .55); font: 500 .72rem/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.flip-back {
  justify-content: center;
  background: linear-gradient(145deg, var(--lime), var(--lime-2) 60%, var(--moss));
  color: var(--green-dark);
  transform: rotateY(180deg);
}
.flip-back b { font: 800 1.3rem/1.1 var(--display); }
.flip-back span { font-size: 1rem; line-height: 1.45; }
/* Плюсы между карточками, как в формуле */
.formula-cards li:not(:last-child) { position: relative; }
.formula-cards li:not(:last-child)::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: -1.05rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-dark);
  font: 800 1.1rem/1 var(--display);
  translate: 0 -50%;
}

/* ---------- Калькулятор ритуала ---------- */
.ritual {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  overflow: hidden;
  margin-top: 4rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 70px -50px rgba(74, 26, 34, .6), inset 0 0 0 1.5px var(--line);
}
/* Слева — фирменный паттерн из брендбука: яблоки и имбирь */
.ritual-art {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 280px;
  padding: 1.6rem;
  background: #fff url("img/pattern.svg") 0 0 / 260px;
  border-right: 1.5px solid var(--line);
}
.ritual-art span {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 14px;
  background: var(--brand);
  color: var(--lime);
  font: 800 clamp(1.6rem, 3vw, 2.3rem)/1 var(--display);
  justify-self: start;
  transform: rotate(-3deg);
}
.ritual-body { padding: 2rem 2.2rem; }
.ritual-body h3 { margin: 0 0 1.4rem; font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.2 var(--display); color: var(--brand); }
.ritual-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.ritual-row > span { font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font: 700 1.2rem/1 var(--display);
  cursor: pointer;
  box-shadow: 0 2px 6px -2px rgba(74, 26, 34, .3);
  transition: transform .2s var(--spring), background-color .2s;
}
.stepper button:hover { background: var(--lime); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 2.2rem; text-align: center; font: 800 1.15rem/1 var(--display); color: var(--brand); }
.choice { display: inline-flex; gap: .3rem; padding: .25rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.choice button {
  min-width: 2.8rem;
  padding: .45rem .8rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 700 .95rem/1 var(--display);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.choice button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.ritual-result { display: flex; align-items: center; gap: 1.2rem; margin: 1.2rem 0 .6rem; }
.ritual-result div { display: grid; }
.ritual-result b { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); color: var(--orange); font-variant-numeric: tabular-nums; }
.ritual-result div:last-child b { color: var(--brand); }
.ritual-result span { color: var(--muted); font-size: .9rem; }
.r-arrow { width: 40px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ritual.is-updated .ritual-result b { animation: bump .4s var(--spring); }
.r-crates { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-height: 30px; margin-bottom: .6rem; }
.r-crates span { width: 32px; animation: crate-pop .45s var(--spring) both; }
.r-crates svg { display: block; width: 100%; fill: color-mix(in srgb, var(--orange) 14%, #fff); stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.r-crates b { margin-left: .3rem; color: var(--brand); font: 800 .95rem/1 var(--display); }
@keyframes crate-pop { from { opacity: 0; transform: translateY(8px) scale(.6); } }
.r-price { margin: 0 0 1rem; font: 700 1.1rem/1.2 var(--display); color: var(--emerald); min-height: 1.2em; }

/* ---------- «Налейте сами»: ползунок наклона бутылки ---------- */
.pour-manual {
  display: grid;
  gap: .5rem;
  max-width: 340px;
  margin-top: 1.2rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .4s ease .3s, transform .4s ease .3s;
}
.pour.is-done .pour-manual, .pour.is-manual .pour-manual { opacity: 1; transform: none; pointer-events: auto; }
.pour.is-manual .pour-again { opacity: 1; transform: none; pointer-events: auto; }
.pour-manual span { font: 500 .78rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.pour-range { width: 100%; accent-color: var(--brand); cursor: grab; }
.pour-range:active { cursor: grabbing; }

/* Фирменное яблоко в «опорах» */
.pillars .pillar-apple { flex: none; width: 2.8rem; height: 2.8rem; padding: .35rem; border-radius: 14px; background: color-mix(in srgb, var(--orange) 10%, #fff); }

@media (max-width: 860px) {
  .formula-cards { grid-template-columns: 1fr; gap: 1.6rem; }
  .formula-cards li:not(:last-child)::after { top: auto; bottom: -1.75rem; right: 50%; translate: 50% 0; }
  .flip { height: 190px; }
  .ritual { grid-template-columns: 1fr; }
  .ritual-art { min-height: 160px; border-right: 0; border-bottom: 1.5px solid var(--line); }
  .ritual-body { padding: 1.5rem; }
}

/* ---------- Цена за целую коробку ---------- */
.box-offer { margin: 0; color: var(--green-dark); font-size: .92rem; font-weight: 700; }
.box-offer b { color: var(--brand); }
.box-offer span { display: inline-block; margin-left: .3rem; padding: .1rem .5rem; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .8rem; }
.box-price-full { color: var(--green-dark); font-size: .8rem; font-weight: 700; }

/* ---------- Отзывы ---------- */
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.review {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 18px 34px -26px rgba(74, 26, 34, .5);
}
.review-stars { color: var(--orange); font-size: 1.15rem; letter-spacing: .1em; }
.review-stars i { font-style: normal; color: var(--line); }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.review blockquote::before { content: "«"; color: var(--orange); font-weight: 800; }
.review blockquote::after { content: "»"; color: var(--orange); font-weight: 800; }
.review-author { margin: auto 0 0; color: var(--muted); font-size: .9rem; }
.review-author b { color: var(--brand); }
.js .review[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease var(--d), transform .6s ease var(--d); }
.js .review.is-visible { opacity: 1; transform: none; }

/* ---------- Частые вопросы: гармошка ---------- */
.faq-list { display: grid; gap: .7rem; max-width: 860px; }
.faq-item {
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .3s;
}
.faq-item[open] { box-shadow: inset 0 0 0 1.5px var(--line), 0 18px 34px -26px rgba(74, 26, 34, .5); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font: 700 1.08rem/1.35 var(--display);
  color: var(--brand);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--paper); transition: transform .35s var(--spring), background-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 2px; border-radius: 2px; background: var(--brand); translate: -50% -50%; }
.faq-icon::after { transform: rotate(90deg); transition: transform .35s var(--spring); }
.faq-item[open] .faq-icon { background: var(--lime); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-answer p { margin: 0; max-width: 65ch; }
.faq-item[open] .faq-answer { animation: faq-open .4s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
.js .faq-item[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--d), transform .5s ease var(--d), box-shadow .3s; }
.js .faq-item.is-visible { opacity: 1; transform: none; }

/* ---------- Нам доверяют: логотипы партнёров ---------- */
.trusted { position: relative; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.trusted > p { margin: 0 0 1rem; font: 500 .82rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.trusted-logos { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.trusted-logos li { display: grid; place-items: center; width: 130px; height: 70px; padding: .6rem 1rem; border-radius: 14px; background: #fff; }
.trusted-logos img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.trusted-logos li:hover img { filter: none; opacity: 1; }

/* ---------- Партнёрам ---------- */
.partners {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 7.5rem;
  background: linear-gradient(180deg, var(--orange) 0%, #D4471D 55%, #A8301C 100%);
  color: #fff;
}
.partners .topo { opacity: .16; filter: invert(1); }
.partners-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.partners-title { margin: 0 0 1rem; font: 800 clamp(2rem, 4.6vw, 3.2rem)/1.05 var(--display); }
.js .partners-title { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .9s var(--spring); }
.js .partners-title.is-visible { opacity: 1; transform: none; }
.partners-lead { margin: 0 0 2rem; font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 40ch; }
.partners-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.terms { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.terms li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
  font-weight: 700;
}
.terms svg { flex: none; width: 1.5rem; height: 1.5rem; padding: .2rem; border-radius: 50%; background: var(--lime); fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .terms li { opacity: 0; transform: translateX(30px); transition: opacity .6s ease var(--d), transform .6s var(--spring) var(--d); }
.js .terms li.is-visible { opacity: 1; transform: none; }

/* ---------- Контакты ---------- */
.contact { position: relative; background: var(--brand); color: #fff; }
.wave-top { position: absolute; bottom: calc(100% - 1px); left: 0; right: 0; }
.wave-top svg { animation-direction: reverse; }
.contact .wrap { padding: 4rem 0 3rem; }
.contact-title { margin: 0 0 3rem; font: 800 clamp(2rem, 6vw, 4.2rem)/1.02 var(--display); letter-spacing: -.01em; }
.js .contact-title { opacity: 0; transform: translateY(40px) rotate(-2deg); transform-origin: 0 100%; transition: opacity .8s ease, transform .9s var(--spring); }
.js .contact-title.is-visible { opacity: 1; transform: none; }
.contact dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 0;
}
.contact dt { color: rgba(255, 255, 255, .65); font-size: .9rem; }
.contact dd { margin: .2rem 0 0; font: 700 1.2rem/1.3 var(--display); overflow-wrap: anywhere; }
.contact dd a {
  text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 2px no-repeat;
  transition: background-size .3s ease, color .2s;
}
.contact dd a:hover { background-size: 100% 100%; color: var(--ink); }
/* Кнопки связи: WhatsApp — главная, лаймовая */
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: -1.5rem 0 3rem; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
  color: #fff;
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  transition: transform .25s var(--spring), background-color .2s, color .2s, box-shadow .2s;
}
.contact-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-btn:hover { transform: translateY(-3px); background: #fff; color: var(--brand); box-shadow: none; }
.contact-btn-main { background: var(--lime); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(228, 231, 122, .7); }
.contact-btn-main:hover { background: #fff; }

/* Подвал: логотип, меню, язык, копирайт */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; padding: 2.5rem 0 2rem; align-items: start; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin: .7rem 0 0; max-width: 32ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: .5rem 2rem; justify-content: start; }
.footer-nav a, .footer-lang a, .footer-bottom a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s; }
.footer-nav a:hover, .footer-lang a:hover, .footer-bottom a:hover { color: var(--lime); }
.footer-lang { display: grid; gap: .5rem; }
.footer-lang a[aria-current] { color: #fff; font-weight: 700; }
.footer-lang a[aria-current]::before { content: "● "; color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-actions { margin-top: -1rem; }
  .contact-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Карточка напитка (всплывающее окно) ---------- */
.drink-dialog {
  width: min(900px, 100% - 2rem);
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(40, 10, 15, .6);
}
.drink-dialog::backdrop { background: rgba(40, 12, 18, .55); backdrop-filter: blur(4px); }
.drink-dialog[open] { animation: dialog-in .45s var(--spring); }
.drink-dialog[open]::backdrop { animation: fade-in .3s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
.dd-inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; }
.dd-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: 400 1.6rem/1 var(--body);
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .25);
  transition: transform .25s var(--spring);
}
.dd-close:hover { transform: rotate(90deg); }
.dd-art {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 2rem;
  background: color-mix(in srgb, var(--c, #9A4A14) 16%, #fff);
}
.dd-art.has-photo { background: #fff; }
.dd-art .bottle { width: auto; max-width: 100%; height: 340px; animation: dd-float 4s ease-in-out infinite; }
.dd-art .bottle-photo { height: auto; max-height: 380px; animation: none; }
@keyframes dd-float { 50% { transform: translateY(-10px) rotate(2deg); } }
.dd-info { padding: 2.2rem 2.2rem 2rem; }
.dd-volume { margin: 0; color: var(--orange); font: 500 .85rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.dd-info h2 { margin: .3rem 3rem .7rem 0; font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display); color: var(--brand); }
.dd-desc { margin: 0 0 1.4rem; color: var(--muted); }
.dd-sub { margin: 0 0 .6rem; font: 700 .85rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dd-ingredients { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.dd-ingredients li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem .4rem .45rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700;
  font-size: .95rem;
  animation: chip-in .5s var(--spring) both;
  animation-delay: calc(var(--i) * 80ms + .15s);
}
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.8); } }
.dd-ingredients svg { width: 1.7rem; height: 1.7rem; }
.dd-details { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1.5rem; font-size: .95rem; }
.dd-details dt { color: var(--muted); }
.dd-details dd { margin: 0; font-weight: 700; }
.dd-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.dd-price { font: 800 1.6rem/1 var(--display); color: var(--brand); }
.dd-stores { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.dd-stores a { color: var(--brand); font-weight: 700; }

/* ---------- Телефоны ---------- */
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-video { width: min(280px, 70vw); margin-inline: auto; }
  .drinks-single .drink { grid-template-columns: 1fr; gap: 0; }
  .partners-grid { grid-template-columns: 1fr; }
  .dd-inner { grid-template-columns: 1fr; }
  .dd-art { min-height: 0; padding: 1.5rem; }
  .dd-art .bottle { height: 220px; }
  .dd-art .bottle-photo { max-height: 240px; }
  .dd-info { padding: 1.5rem; }
}
@media (max-width: 760px) {
  .logo img { height: 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1rem; }
  .sticker { left: auto; right: -8px; bottom: -34px; width: 104px; height: 104px; }
  .bg-word { top: 1.5rem; right: -1rem; }
  .sticker img { width: 38px; }
  .pour-grid { grid-template-columns: 1fr; gap: .5rem; align-content: center; }
  .pour h2 { margin-bottom: .75rem; }
  .pour-lead { margin-bottom: 1rem; font-size: 1rem; }
  .pour-phases { gap: .3rem; margin-bottom: 1rem; }
  .pour-phases li { padding: .45rem .8rem .45rem 2.8rem; }
  .pour-phases li::before { top: .4rem; }
  .pour-phases span { display: none; }
  .pour-phases li.is-active span { display: block; }
  .pour-picker { margin-bottom: .5rem; }
  .pour-picker button { padding: .3rem .7rem; font-size: .8rem; }
  .pour-again { padding: .6rem 1.1rem; font-size: .9rem; }
  .pour-stage { max-height: 52svh; }
  .about { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .box-grid { grid-template-columns: 1fr; gap: 2rem; }
  .box-options { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
  .box-art { height: 96px; }
  .box-side { position: static; }
  .crate-slots { grid-auto-rows: 32px; padding-top: 92px; }
  .crate-slot button, .crate-slot .ghost { height: 104px; }
  .crate-front { height: 70px; margin-top: -48px; font-size: 1.2rem; }
  .crate-front img { width: 60px; }
  .crate-back { height: 250px; }
  .crate-back-art { height: 210px; padding-top: 2.2rem; }
  .crate-word { font-size: 1.25rem; }
  .crate-size { top: 10.6rem; }
  .crate-body { margin-top: -130px; }
  .crate-body::before { inset: 90px 0 34px; }
  .crate-stamp { width: 86px; height: 86px; top: 160px; right: -8px; font-size: .66rem; }
  .box-specs { margin-top: -1rem; }
  .shelf-photos { grid-template-columns: 1fr; }
  .box-pill { right: 1rem; bottom: 1rem; }
  .drink-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 28px 28px 0 0; }
}

/* ---------- Для тех, кто отключил анимации в системе ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none !important; }
  *, *::before, *::after { animation: none !important; }
  .js .split .ch, .js .hero-fade, .js .bolt, .js .gingerol { transform: none; opacity: 1; transition: none; }
  .js .hero-photo { clip-path: none; }
}

/* ---------- Админка ---------- */
body.admin { background: var(--surface); }
.admin-bar { background: var(--brand); color: #fff; }
.admin-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding: .9rem 0;
}
.admin-bar a { color: #fff; font-weight: 500; text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar form { margin: 0; }
.spacer { flex: 1; }
.linklike {
  padding: 0; border: 0; background: none;
  color: #fff; font: 500 1rem/1.6 var(--body); cursor: pointer;
}
.linklike:hover { text-decoration: underline; }

.admin main { padding: 2rem 0 4rem; }
.admin h1 { margin: 0 0 1.5rem; font: 700 1.6rem/1.2 var(--display); }
.admin h2 { margin: 0 0 1.5rem; font: 700 1.25rem/1.2 var(--display); }
.admin .hint { display: block; margin-bottom: 1rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.toolbar h1 { margin: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th, td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .9rem; font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
.dot {
  display: inline-block; width: .8rem; height: .8rem;
  margin-right: .6rem; border-radius: 50%; vertical-align: middle;
}
.thumb { width: 1.6rem; height: 2.4rem; margin-right: .6rem; object-fit: contain; vertical-align: middle; }
.thumb-wide { width: 3.2rem; height: 2.4rem; border-radius: 6px; object-fit: cover; }
.photo-preview-wide { width: 160px; height: 120px; padding: 0; object-fit: cover; }
.photo-field { display: flex; align-items: flex-start; gap: 1rem; }
.photo-inputs { display: grid; gap: .6rem; flex: 1; }
.photo-preview {
  width: 84px; height: 120px; padding: .4rem;
  border: 1.5px solid var(--line); border-radius: 10px; object-fit: contain; background: var(--paper);
}
.actions { display: flex; align-items: center; gap: 1rem; }
.actions form { margin: 0; }
.danger-link {
  padding: 0; border: 0; background: none;
  color: var(--danger); font: inherit; text-decoration: underline; cursor: pointer;
}

.form { display: grid; gap: 1.1rem; max-width: 560px; }
.form label { display: grid; gap: .35rem; font-weight: 500; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .check { display: flex; align-items: center; gap: .6rem; }
.form input[type="text"],
.form input[type="number"],
.form input[type="password"],
.form input[type="email"],
.form input[type="url"],
.form textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.form textarea { min-height: 7rem; resize: vertical; }
.form input[type="color"] {
  width: 4.5rem; height: 2.75rem; padding: .2rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.form input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); }
.form-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.hint { color: var(--muted); font-size: .875rem; font-weight: 400; }
.drink-checks { display: grid; gap: .6rem; margin: 0; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 12px; }
.drink-checks legend { padding: 0 .4rem; font-weight: 500; }
.drink-list { display: grid; gap: .5rem; padding-left: 1.8rem; }
.settings-group { display: grid; gap: 1.1rem; margin: 0 0 1rem; padding: 1.2rem 1.3rem; border: 1.5px solid var(--line); border-radius: 14px; }
.settings-group legend { padding: 0 .5rem; font: 700 1.05rem/1.2 var(--display); color: var(--brand); }
.drink-list[hidden] { display: none; }

.panel + .panel { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }

.flashes { margin-bottom: 1.5rem; }
.flash { margin: 0 0 .5rem; padding: .8rem 1rem; border-radius: 10px; background: #E4F1E8; }
.flash.error { background: #FBE6E4; color: var(--danger); }

.login-page main { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.login-card { width: min(380px, 100%); }
/* Понятная страница вместо «Bad Request» (устаревшая форма) */
.error-card { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.error-card h1 { margin: .5rem 0 0; }
.error-card p { margin: 0; color: var(--muted); }

@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
}
