/* Kaori No Mori */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif JP";
  src: url("assets/fonts/noto-serif-jp-mori.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+68EE;
}

@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #6a2141;
}

:root {
  --plum: #5b1933;
  --plum-deep: #3a0f20;
  --plum-hover: #4f152c;
  --gold: #f4d579;
  --gold-hover: #e8c862;
  --gold-dark: #8a5d17;
  --gold-muted: #c99a52;
  --rice: #fbf6ec;
  --sand: #f3e9d6;
  --olive: #8e9876;
  --linen: #e5dcc4;
  --mint: #b9d6c8;
  --sakura: #b4566a;
  --chestnut: #8c4a2f;
  --amber: #e9a23b;

  --line: rgba(91, 25, 51, 0.1);
  --line-strong: rgba(91, 25, 51, 0.18);
  --ink-soft: #5e3a47;          /* вторичный текст на светлом, 8.1:1 на rice */
  --rice-soft: #e3cfd6;         /* вторичный текст на сливе, 9:1 на plum-deep */

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Noto Serif JP", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-panel: 32px;
  --r-card: 16px;
  --r-field: 12px;

  --wrap: 1200px;
  --gutter: 16px;
  --sec: 64px;

  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --sec: 96px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--plum) var(--sand);
  accent-color: var(--plum);
}

body {
  margin: 0;
  background: var(--rice);
  color: var(--plum-deep);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "tnum" 0;
  caret-color: var(--plum);
  overflow-x: clip;
}

/* фактура рисовой бумаги ≤ 4 % */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--noise-light);
  opacity: 0.035;
}

main, footer, .site-header { position: relative; z-index: 1; }

::selection { background: var(--gold); color: var(--plum-deep); }

img, svg { display: block; max-width: 100%; }
a { color: var(--plum); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 4px var(--plum-deep);
  border-radius: 8px;
}

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 14px 20px; border-radius: 12px; background: var(--plum); color: var(--rice); }
.skip:focus { top: 12px; }
main:focus { outline: none; box-shadow: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sec { padding: var(--sec) 0; }
.sec + .sec { padding-top: 0; }
.sec--tight-top { padding-top: calc(var(--sec) * 0.5); }

/* ---------- Типографика ---------- */

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 26ch;
}
.nw { white-space: nowrap; }
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}
.big-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.lead { font-size: 16px; line-height: 1.5; max-width: 60ch; }
.caption { font-size: 13px; line-height: 1.45; }
.muted { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

@media (min-width: 1024px) {
  .h1 { font-size: 64px; }
  .h2 { font-size: 48px; }
  .h3 { font-size: 20px; }
  .big-num { font-size: 56px; }
  .lead { font-size: 18px; }
  .caption { font-size: 14px; }
  .eyebrow { font-size: 13px; }
}

.sec-head { display: grid; gap: 16px; margin-bottom: 40px; }
.sec-head .lead { color: var(--ink-soft); }
@media (min-width: 1024px) {
  .sec-head { margin-bottom: 56px; }
  .sec-head--split { grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 48px; }
}

/* ---------- Кнопки ---------- */

.btn {
  --bg: var(--plum);
  --fg: var(--rice);
  --bg-h: var(--plum-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--bg-h); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--gold { --bg: var(--gold); --fg: var(--plum-deep); --bg-h: var(--gold-hover); }
.btn--ghost { --bg: transparent; --fg: var(--plum); --bg-h: rgba(91, 25, 51, 0.06); border-color: var(--line-strong); }
.dark .btn--ghost, .btn--ghost-dark { --bg: transparent; --fg: var(--rice); --bg-h: rgba(251, 246, 236, 0.08); border-color: rgba(251, 246, 236, 0.32); }
.btn--sm { min-height: 48px; padding: 0 20px; font-size: 15px; }
/* Чтобы текст кнопок не переносился на вторую строку */
@media (max-width: 380px) { #heroCta { padding: 0 16px; } }
@media (min-width: 1024px) and (max-width: 1100px) { .col .btn--sm { padding: 0 12px; } }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Иконки ---------- */

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Тёмные панели ---------- */

.panel {
  position: relative;
  border-radius: var(--r-panel);
  overflow: hidden;
  isolation: isolate;
}
.dark {
  background: var(--plum-deep);
  color: var(--rice);
}
.dark::before { /* радиальное свечение сливы, как обложка брендбука */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 70% 80% at var(--glow-x, 50%) var(--glow-y, 45%), var(--glow) 0%, rgba(58, 15, 32, 0) 70%);
  transition: --glow 1.2s var(--ease);
}
.dark::after { /* фактура сильнее на тёмном, до 10 % */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise-light);
  opacity: 0.08;
  mix-blend-mode: screen;
  pointer-events: none;
}
.dark .muted, .dark .lead { color: var(--rice-soft); }
.dark .eyebrow { color: var(--gold); }
.dark a:not(.btn) { color: var(--gold); }

.mori {
  position: absolute;
  z-index: -1;
  font-family: var(--jp);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

/* ---------- Б0. Шапка ---------- */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin-top: 12px;
}
/* Место под шапку не меняется: при сжатии плашки страница не сдвигается */
.js .site-header { height: 66px; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  transition: min-height 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.is-scrolled .bar {
  min-height: 56px;
  padding-top: 4px; padding-bottom: 4px;
  background: rgba(251, 246, 236, 0.92);
  box-shadow: 0 8px 24px -12px rgba(58, 15, 32, 0.25);
}
.logo { display: flex; align-items: center; flex: none; min-height: 48px; }
.logo img { height: 18px; width: auto; transition: height 0.4s var(--ease); }
@media (min-width: 1024px) { .logo img { height: 20px; } .is-scrolled .logo img { height: 18px; } }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  border-radius: 999px;
  color: var(--plum-deep);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s var(--ease);
}
.nav a:hover { background: rgba(91, 25, 51, 0.06); }
.nav a[aria-current="true"] { background: rgba(91, 25, 51, 0.08); }
.bar-cta { display: none; }

.bar-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--plum-deep);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.icon-btn:hover { background: rgba(91, 25, 51, 0.06); }
.price-fab {
  background: var(--plum); color: var(--rice); border-color: var(--plum);
  opacity: 0; transform: scale(0.6); pointer-events: none;
}
.price-fab:hover { background: var(--plum-hover); }
.show-fab .price-fab { opacity: 1; transform: scale(1); pointer-events: auto; }

.mnav {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  padding: 12px;
  border-radius: 24px;
  background: var(--rice);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(58, 15, 32, 0.4);
  opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.menu-open .mnav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mnav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px;
  border-radius: 14px; text-decoration: none; color: var(--plum-deep); font-size: 17px; font-weight: 500;
}
.mnav a:hover { background: var(--sand); }
.mnav .btn { width: 100%; margin-top: 8px; }

@media (min-width: 960px) {
  .nav { display: block; }
  .bar { padding-right: 12px; }
  .bar-cta { display: inline-flex; }
  .burger, .price-fab, .mnav { display: none; }
  .bar-right:not(:has(.bar-cta)) { display: none; }
}

/* ---------- Б1. Первый экран ---------- */

.hero { padding-top: 16px; }
.hero-panel {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  --glow-x: 50%;
  --glow-y: 30%;
}
.hero-text { padding: 8px 24px 32px; display: grid; gap: 20px; align-content: start; }
.hero .h1 { max-width: 15em; }
.hero .lead { max-width: 46ch; }
.h1 .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h1 .ln > span { display: inline-block; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-stat {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(244, 213, 121, 0.22);
  background: rgba(251, 246, 236, 0.04);
  font-size: 14px;
  color: var(--rice-soft);
}
.chip-stat b { font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; display: inline-block; }
.chips-src { margin-top: 10px; font-size: 13px; color: var(--rice-soft); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: none;
    min-height: min(760px, calc(100svh - 112px));
    --glow-x: 74%;
    --glow-y: 50%;
  }
  .hero-text { order: -1; padding: 56px 16px 56px 64px; align-content: center; gap: 22px; }
}

/* А1. Витрина */
.vitrine {
  position: relative;
  height: 48svh;
  min-height: 300px;
  max-height: 460px;
  overflow: hidden;
}
@media (min-width: 1024px) { .vitrine { height: auto; max-height: none; min-height: 560px; } }

.v-word {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 15vw, 110px);
  letter-spacing: 0.02em;
  color: var(--gold);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.v-word.is-on { opacity: 0.18; transform: translate(-50%, -50%); }
@media (min-width: 1024px) { .v-word { font-size: clamp(80px, 7.4vw, 112px); } }

.v-stage { position: absolute; inset: 0; --step: clamp(96px, 29vw, 180px); }
.v-item {
  position: absolute;
  left: 50%; bottom: 13%;
  width: 60%; height: 80%;
  margin-left: -30%;
  transform-origin: 50% 100%;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease), filter 1.2s var(--ease);
}
@media (min-width: 1024px) {
  .v-stage { --step: 168px; }
  .v-item { height: 440px; bottom: calc(50% - 220px); }
}
.v-item[data-pos="center"] { transform: none; opacity: 1; filter: blur(0); z-index: 3; }
.v-item[data-pos="left"]   { transform: translateX(calc(var(--step) * -1)) scale(0.66); opacity: 0.55; filter: blur(2.5px); z-index: 2; }
.v-item[data-pos="right"]  { transform: translateX(var(--step)) scale(0.66); opacity: 0.55; filter: blur(2.5px); z-index: 2; }
.v-item[data-pos="hidden"] { transform: scale(0.5); opacity: 0; filter: blur(6px); z-index: 1; }
.v-item .sway { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.v-item .bottle { width: auto; height: calc(100% * var(--k, 1)); max-width: none; }
.v-item .sway { transform-origin: 50% 100%; }
.v-item[data-pos="center"].enter .sway { animation: sway 1.2s var(--ease) both; }
@keyframes sway {
  0%   { transform: rotate(-6deg) scale(0.92); }
  45%  { transform: rotate(4deg) scale(0.98); }
  75%  { transform: rotate(-1.5deg) scale(1); }
  100% { transform: rotate(0) scale(1); }
}
.bottle { filter: drop-shadow(0 18px 22px rgba(20, 4, 10, 0.45)); }
.v-cap {
  position: absolute; left: 0; right: 0; bottom: 3%;
  text-align: center; font-size: 13px; color: var(--rice-soft);
  transition: opacity 0.6s var(--ease);
}
@media (min-width: 1024px) { .v-cap { bottom: calc(50% - 276px); font-size: 14px; } }
.v-cap b { color: var(--rice); font-weight: 600; }

.drops { position: absolute; inset: 0; pointer-events: none; }
.drops-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: orbit 60s linear infinite; }
.drop {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbe7a6 0%, var(--gold) 45%, #d9b457 100%);
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}
.drop--muted { background: var(--gold-muted); opacity: 0.8; }
.vitrine.paused .drops-ring { animation-play-state: paused; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- Б3. Почему продаётся ---------- */

.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.proofs { display: grid; gap: 12px; }
@media (min-width: 640px) { .proofs { grid-template-columns: 1fr 1fr; } }
.proof {
  display: grid; gap: 10px; align-content: start;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--sand);
  border: 1px solid var(--line);
}
.proof .ico { color: var(--plum); width: 28px; height: 28px; }
.proof p { color: var(--ink-soft); }
.proof--lead { grid-column: 1 / -1; background: var(--plum); border-color: var(--plum); color: var(--rice); }
.proof--lead .ico { color: var(--gold); }
.proof--lead p { color: var(--rice-soft); }
.proof--lead a { color: var(--gold); }

.arch {
  border: 1px solid var(--gold-dark);
  border-radius: 999px 999px var(--r-card) var(--r-card);
  padding: 56px 24px 24px;
  display: grid; gap: 16px; justify-items: center; text-align: center;
  background: var(--rice);
}
.arch--kaspi { aspect-ratio: 3 / 4; align-content: center; max-width: 420px; justify-self: center; width: 100%; }
.shots { display: grid; gap: 12px; width: 100%; max-width: 250px; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
@media (min-width: 1024px) {
  .why { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
  .arch--kaspi { aspect-ratio: auto; }
}

/* ---------- Б4. Коллекции ---------- */

.cols { display: grid; gap: 16px; }
@media (min-width: 700px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } .col { grid-column: span 2; } .col--wide { grid-column: span 3; } .col--full { grid-column: 1 / -1; } }

.col {
  --acc: var(--gold);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-card);
  background: var(--sand);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--acc); z-index: 4; }
.col[data-c="ginseng"] { --acc: var(--gold); --stage: #3a0f20; --stage-glow: #6a2141; }
.col[data-c="botanical"] { --acc: var(--olive); --stage: #e5dcc4; --stage-glow: #f3ecdb; }
.col[data-c="vitalizing"] { --acc: var(--sakura); --stage: #3a0f20; --stage-glow: #7a2e45; }
.col[data-c="color"] { --acc: var(--chestnut); --stage: #d9bfa8; --stage-glow: #f1e2d0; }
.col[data-c="sun"] { --acc: var(--amber); --stage: #f3dcae; --stage-glow: #fbf6ec; }
.col[data-c="body"] { --acc: var(--plum); --stage: #e5d3b8; --stage-glow: #fbf6ec; }

.stories {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(ellipse 80% 70% at 50% 55%, var(--stage-glow), var(--stage) 75%);
  overflow: hidden;
}
@media (min-width: 1024px) { .col--wide .stories { aspect-ratio: 16 / 11; } }
@media (min-width: 1024px) {
  .col--full { grid-template: auto / minmax(0, 1.35fr) minmax(0, 1fr); }
  .col--full .stories { aspect-ratio: auto; min-height: 440px; }
  .col--full .col-body { align-content: center; padding: 40px; }
}
.s-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.s-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(251, 246, 236, 0.35); overflow: hidden; }
.col:is([data-c="botanical"], [data-c="color"], [data-c="body"]) .s-bar { background: rgba(58, 15, 32, 0.18); }
.s-bar i { display: block; height: 100%; width: 0; background: var(--rice); }
.col:is([data-c="botanical"], [data-c="color"], [data-c="body"]) .s-bar i { background: var(--plum); }
.s-bar.done i { width: 100%; }
.s-bar.run i { animation: fill var(--dur, 2.8s) linear forwards; }
.stories.paused .s-bar.run i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.s-frame {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 40px 24px 48px;
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.s-frame.is-on { opacity: 1; transform: scale(1); }
.s-frame .bottle { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(20, 4, 10, 0.3)); }
.stories { contain: size layout; }
.stories--word { display: grid; place-items: center; }
.stories--word .drop { transform: translate(-50%, -50%); }
.sun-disc { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(233, 162, 59, 0.55), rgba(233, 162, 59, 0) 70%); }
.sun-word { position: relative; font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1; color: var(--plum); font-variant-numeric: lining-nums; white-space: nowrap; }
.s-label {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  font-size: 13px; text-align: center; color: var(--rice-soft);
}
.col:is([data-c="botanical"], [data-c="color"], [data-c="body"]) .s-label { color: var(--ink-soft); }

.col-body { display: grid; gap: 14px; padding: 24px; align-content: start; }
.col-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.col-tag { font-size: 13px; font-weight: 600; color: var(--gold-dark); letter-spacing: 0.04em; }
.col-for { color: var(--ink-soft); font-size: 15px; }
.prods { display: grid; border-top: 1px solid var(--line); }
.prod::-webkit-details-marker { display: none; }
.prod .pname { flex: 1; }
.pinfo { padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.pd[open] .prod { border-bottom: 0; }
.prod {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line);
  background: none;
  color: var(--plum-deep);
  font: 500 15px/1.35 var(--sans);
  text-align: left;
  cursor: pointer;
}
.prod .vol { color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.prod .ico { width: 18px; height: 18px; color: var(--plum); flex: none; transition: transform 0.3s var(--ease); }
.prod:hover .ico { transform: translateX(3px); }
.prod:hover .pname { text-decoration: underline; text-underline-offset: 0.2em; }
.col-body .btn { justify-self: start; margin-top: 6px; }

/* Карточка товара */
.pmodal {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--rice);
  color: var(--plum-deep);
  overflow: auto;
}
.pmodal::backdrop { background: rgba(32, 8, 18, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pmodal[open] { animation: pop 0.5s var(--ease); }
.pmodal[open]::backdrop { animation: fadein 0.4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fadein { from { opacity: 0; } }
.pm-top { position: sticky; top: 0; z-index: 2; height: 0; display: flex; justify-content: flex-end; }
.pm-close { margin: 12px 12px 0 0; background: var(--rice); flex: none; }
.pm-close:hover { background: var(--sand); }
.pm-grid { display: grid; }
.pm-media { display: grid; place-items: center; padding: 32px; height: 300px; background: radial-gradient(ellipse at 50% 55%, #6a2141, var(--plum-deep) 75%); }
.pmodal:is([data-c="botanical"], [data-c="color"], [data-c="body"]) .pm-media { background: radial-gradient(ellipse at 50% 55%, #fbf6ec, #e0ceb4 80%); }
.pm-media .bottle { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
@media (min-width: 760px) {
  .pm-grid { grid-template-columns: 1fr 1.25fr; }
  .pm-media { height: auto; min-height: min(520px, calc(100svh - 24px)); padding: 48px 32px; place-items: start center; background-attachment: local; }
  .pm-media .bottle { position: sticky; top: 48px; height: min(424px, calc(100svh - 120px)); }
  .no-media .pm-grid { grid-template-columns: 1fr; }
}
.no-media { width: min(600px, calc(100vw - 24px)); }
.no-media .pm-media { display: none; }
.pm-body { padding: 28px 24px 28px; display: grid; gap: 14px; align-content: start; }
.pm-body > .col-tag { padding-right: 56px; }
@media (min-width: 760px) { .pm-body { padding: 36px 32px; } }
.pm-title { font-size: 24px; padding-right: 24px; }
.pm-info, .pinfo { display: grid; gap: 16px; }
.pm-info dl, .pinfo dl { border-top: 1px solid var(--line); }
.pm-info dl > div, .pinfo dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pm-info dl > .wide, .pinfo dl > .wide { grid-template-columns: minmax(0, 1fr); }
.pm-info dt, .pinfo dt { color: var(--ink-soft); }
.pm-info dl > div:not(.wide) dd, .pinfo dl > div:not(.wide) dd { font-weight: 600; }
.inci dd { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.kzt { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pm-note { font-size: 14px; color: var(--ink-soft); }
.pm-body .btn { justify-self: start; }

/* ---------- Б7. Шаги ---------- */

.how { display: grid; gap: 12px; }
@media (min-width: 700px) { .how { grid-template-columns: repeat(2, 1fr); } }
.hstep {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 28px 20px 24px;
  border-radius: var(--r-card);
  background: var(--sand);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hstep::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: rgba(138, 93, 23, 0.15);
}
.hstep .fillbar { position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--gold-dark); transform: scaleX(0); transform-origin: 0 50%; }
.how.in .hstep .fillbar { transform: scaleX(1); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 0.35s); }
.no-js .hstep .fillbar { transform: scaleX(1); }
.hstep-top { display: flex; align-items: center; justify-content: space-between; }
.hstep .num { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1; color: var(--plum); }
.hstep .ico { color: var(--plum); width: 28px; height: 28px; }
.hstep p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Б9. Отзывы ---------- */

.reviews { display: grid; gap: 16px; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.review {
  display: grid; gap: 28px; align-content: space-between;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--sand);
  border: 1px solid var(--line);
}
@media (min-width: 1024px) { .review { padding: 32px; } }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.45; text-wrap: pretty; }
@media (min-width: 1024px) { .review blockquote { font-size: 22px; line-height: 1.4; } }
.review-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.review-foot p { display: grid; gap: 2px; font-size: 14px; color: var(--ink-soft); }
.review-foot b { font-size: 16px; font-weight: 600; color: var(--plum-deep); }
[lang="kk"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #20080f;
  color: var(--rice);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fadein 0.3s var(--ease); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px; }
.lb-count { font-size: 15px; font-variant-numeric: tabular-nums; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 16px; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.lb-stage.zoomed { cursor: grab; }
.lb-stage img { width: min(100%, 1100px); height: auto; border-radius: 6px; }
.lb-cap { display: grid; gap: 6px; padding: 16px 16px 20px; text-align: center; color: var(--rice-soft); font-size: 15px; }
.lb-cap b { color: var(--rice); font-weight: 600; font-size: 14px; }
.lb-cap span { max-width: 60ch; margin: 0 auto; font-size: 17px; color: var(--rice); }
.lb-hint { text-align: center; padding: 0 16px 16px; font-size: 13px; color: var(--rice-soft); }
@media (min-width: 1024px) { .lb-hint { display: none; } }
.lb-nav { display: flex; gap: 12px; justify-content: center; padding-bottom: 20px; }
.lightbox .icon-btn { color: var(--rice); border-color: rgba(251, 246, 236, 0.3); }
.lightbox .icon-btn:hover { background: rgba(251, 246, 236, 0.08); }

/* ---------- Б12. Форма ---------- */

.lead-panel { overflow: clip; } /* не hidden: иначе Chrome сдвигает форму вбок при нажатии на поле */
.lead-panel { padding: 32px 16px 16px; display: grid; gap: 32px; }
@media (min-width: 640px) { .lead-panel { padding: 40px 24px 24px; } }
@media (min-width: 1024px) { .lead-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; padding: 64px; } }
.lead-copy { display: grid; gap: 20px; align-content: start; }
.lead-copy .h2 { color: var(--rice); }
.perks { display: grid; gap: 14px; margin-top: 8px; }
.perks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; color: var(--rice); }
.perks .ico { color: var(--gold); }

.form-card {
  position: relative;
  border-radius: 24px;
  background: var(--rice);
  color: var(--plum-deep);
  padding: 24px 20px;
  overflow: hidden;
}
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form { display: grid; gap: 20px; }
.row2 { display: grid; gap: 20px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; gap: 16px; } }
.field { display: grid; gap: 8px; }
.field > label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
fieldset.field legend { margin-bottom: 8px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r-field);
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  color: var(--plum-deep);
  font: 400 16px var(--sans);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: #84626e; }
.input:hover, .select:hover { border-color: rgba(91, 25, 51, 0.35); }
.input:focus-visible, .select:focus-visible { border-color: var(--plum); border-radius: var(--r-field); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235B1933' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field.has-error .input, .field.has-error .select { border-color: #a3263f; box-shadow: 0 0 0 1px #a3263f; }
.err { display: none; font-size: 13px; color: #a3263f; font-weight: 500; }
.field.has-error .err { display: block; }

.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset label { position: relative; }
.chipset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chipset span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chipset span:hover { border-color: rgba(91, 25, 51, 0.4); }
.chipset input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--rice); }
.chipset input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold), 0 0 0 4px var(--plum-deep); }
.field.has-error .chipset span { border-color: rgba(163, 38, 63, 0.6); }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-soft); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; }
.consent input:focus-visible { box-shadow: none; outline: 2px solid var(--plum); outline-offset: 2px; } /* Safari не рисует тень у галочки */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 14px; }
.form-actions .btn { width: 100%; }
.form-alt { text-align: center; font-size: 15px; color: var(--ink-soft); }
.form-error { padding: 14px 16px; border-radius: var(--r-field); background: rgba(163, 38, 63, 0.08); color: #8a1f35; font-size: 15px; }
.wa-card { display: grid; gap: 14px; align-content: center; }

/* А8. Экран успеха */
.success {
  position: absolute; inset: 0;
  display: none; place-items: center; align-content: center; gap: 20px;
  padding: 32px; text-align: center;
  background: var(--rice);
}
.form-card.done .success { display: grid; }
.form-card.done .form { visibility: hidden; }
.s-mark { position: relative; width: 112px; height: 112px; }
.s-mark svg { width: 100%; height: 100%; overflow: visible; }
.s-circle { fill: none; stroke: var(--gold-dark); stroke-width: 3; stroke-dasharray: 302; stroke-dashoffset: 302; transform: rotate(-90deg); transform-origin: 50% 50%; }
.s-fill { fill: var(--gold); opacity: 0; }
.s-check { fill: none; stroke: var(--plum-deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.done .s-circle { animation: draw 0.5s var(--ease) forwards; }
.done .s-fill { animation: fillin 0.4s var(--ease) 0.35s forwards; }
.done .s-check { animation: draw 0.3s var(--ease) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { opacity: 1; } }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.burst i {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
  border-radius: 50%; background: var(--gold); opacity: 0;
}
.done .burst i { animation: burst 0.8s var(--ease) 0.8s forwards; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(0.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); }
}
.s-text { opacity: 0; transform: translateY(8px); }
.done .s-text { animation: rise 0.6s var(--ease) 1.4s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.s-text h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; margin-bottom: 8px; }

/* ---------- Б13. FAQ ---------- */

.faq-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 64px; padding: 16px 0;
  border: 0; background: none; color: var(--plum-deep);
  font: 600 17px/1.35 var(--sans); text-align: left; cursor: pointer;
}
@media (min-width: 1024px) { .faq-q { font-size: 18px; } }
.pm {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease);
}
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: var(--plum); border-radius: 2px; }
.pm::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .pm { transform: rotate(135deg); background: var(--sand); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.5s; }
.faq-h:has([aria-expanded="true"]) + .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { padding: 0 52px 20px 0; color: var(--ink-soft); }
.faq-h:has([aria-expanded="true"]) + .faq-a { grid-template-rows: 1fr; }
.faq-head { align-content: start; }
.no-js .faq-a { grid-template-rows: 1fr; }
.no-js .faq-a > div { visibility: visible; }
.no-js .pm { display: none; }
.no-js .faq-q { cursor: default; }

/* ---------- Б14. Финал и подвал ---------- */

.final { padding: 64px 24px; display: grid; justify-items: center; text-align: center; gap: 28px; }
@media (min-width: 1024px) { .final { padding: 96px 64px; } }
.final .h2 { color: var(--rice); max-width: 18ch; }
.breath { width: 168px; height: 168px; animation: breath 6s ease-in-out infinite; }
@media (min-width: 1024px) { .breath { width: 200px; height: 200px; } }
@keyframes breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.footer { padding: 56px 0 40px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.foot-h { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; max-width: 420px; }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; color: var(--plum-deep); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-logo { height: 22px; width: auto; margin-bottom: 16px; }
.foot-about { color: var(--ink-soft); max-width: 40ch; font-size: 15px; display: grid; gap: 10px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-soft); }
.foot-bottom a { color: var(--ink-soft); }
.foot-bottom > * { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- А0. Появление при прокрутке ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* А2. Заголовок первого экрана */
.js .hero .h1 .ln > span { transform: translateY(105%); }
.js .hero.play .h1 .ln > span { transform: none; transition: transform 0.9s var(--ease); transition-delay: calc(var(--l) * 0.1s); }
.js .hero .seq { opacity: 0; transform: translateY(12px); }
.js .hero.play .seq { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(0.35s + var(--s) * 0.1s); }

/* До разбивки на строки заголовок стоит на месте, но не мелькает */
.js .hero:not(.play) .h1 { visibility: hidden; }

/* ---------- Без JavaScript ---------- */

.no-js .burger { display: none; }
.no-js .s-frame:first-of-type, .no-js .s-bars + .s-frame { opacity: 1; transform: none; }
.no-js .prod .ico { transform: rotate(90deg); }
.no-js #leadForm { display: none; }
@media (max-width: 959px) {
  .no-js .mnav { position: static; display: flex; flex-wrap: wrap; margin-top: 8px; padding: 4px; border-radius: 20px; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .no-js .mnav a { min-height: 44px; padding: 0 12px; font-size: 15px; }
  .no-js .site-header { position: relative; }
}

/* ---------- Без движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .seq, .js .hero .h1 .ln > span { opacity: 1 !important; transform: none !important; }
  .hstep .fillbar { transform: scaleX(1) !important; }
  .done .s-circle, .done .s-check { stroke-dashoffset: 0; }
  .done .s-fill, .done .s-text { opacity: 1; transform: none; }
}

/* ---------- Уточнения для кнопок и полей ---------- */

.form-card a:not(.btn) { color: var(--plum); }
.form-card .muted { color: var(--ink-soft); }
.form-card .btn--ghost { --fg: var(--plum); --bg-h: rgba(91, 25, 51, 0.06); border-color: var(--line-strong); }
.mnav a.btn { color: var(--rice); justify-content: center; }
.mnav a.btn:hover { background: var(--plum-hover); }

/* ---------- Политика ---------- */

.back-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px; font-weight: 500; text-decoration: none; }
.back-link:hover { background: rgba(91, 25, 51, 0.06); }
.policy { padding: 48px 0 var(--sec); }
@media (min-width: 1024px) { .policy { padding-top: 80px; } }
.policy .wrap > * { max-width: 70ch; }
.policy .h2 { max-width: 22ch; overflow-wrap: break-word; }
.policy .h3 { margin: 40px 0 12px; }
.policy p + p, .policy p + ul, .policy ul + p { margin-top: 12px; }
.policy ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.policy li::marker { color: var(--gold-dark); }
.policy-date { margin-top: 16px; color: var(--ink-soft); font-size: 14px; }
.policy .policy-back { margin-top: 48px; }
.footer--slim { padding-top: 0; }
.footer--slim .foot-bottom { margin-top: 0; }
