/* ==========================================================================
   Melty Bakery — стили
   Идея: «залитая глазурь». Цвет глазури (--glaze) задаёт цвет всего сайта;
   капли — связка между секциями. Тихий холст + один громкий цвет.
   ========================================================================== */

/* ---------- токены ---------- */
:root {
  --milk: #FFF9F4;
  --milk-2: #FFF1E8;
  --cocoa: #2B140D;
  --cocoa-2: #4B2A1E;
  --muted: #7A5748;            /* 6:1 на молочном фоне */
  --line: rgba(43, 20, 13, .14);
  --butter: #FFD86B;
  --pistachio: #BFDD94;

  /* глазурь по умолчанию — «Клубника»; остальные темы ниже */
  --glaze: #FF8FAB;
  --glaze-deep: #F0577F;
  --glaze-soft: #FFE3EA;
  --glaze-lite: #FF8FAB;       /* оттенок глазури для текста на тёмном фоне (≥4.5:1 на какао) */
  --on-glaze: #2B140D;

  --font-display: 'Dela Gothic One', 'Rubik', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;

  --r-s: 12px; --r-m: 20px; --r-l: 28px; --r-xl: 36px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow-1: 0 1px 2px rgba(43, 20, 13, .06), 0 10px 28px -10px rgba(43, 20, 13, .22);
  --shadow-2: 0 2px 4px rgba(43, 20, 13, .08), 0 24px 48px -16px rgba(43, 20, 13, .32);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --z-hdr: 50;
  --z-pop: 60;
  --z-toast: 200;
  --focus: var(--cocoa);

  /* маски капель (сгенерированы скриптом, тайл 960×90 и 240×56) */
  --drip: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20960%2090%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%200H960V14H0ZM18%2012H50V14Q41%2014%2041%2023V33A7%207%200%200%201%2027%2033V23Q27%2014%2018%2014ZM66%2012H106V14Q97%2014%2097%2023V61A11%2011%200%200%201%2075%2061V23Q75%2014%2066%2014ZM123%2012H157V14Q148%2014%20148%2023V40A8%208%200%200%201%20132%2040V23Q132%2014%20123%2014ZM174%2012H218V14Q209%2014%20209%2023V75A13%2013%200%200%201%20183%2075V23Q183%2014%20174%2014ZM234%2012H266V14Q257%2014%20257%2023V29A7%207%200%200%201%20243%2029V23Q243%2014%20234%2014ZM281%2012H319V14Q310%2014%20310%2023V52A10%2010%200%200%201%20290%2052V23Q290%2014%20281%2014ZM339%2012H385V14Q376%2014%20376%2023V66A14%2014%200%200%201%20348%2066V23Q348%2014%20339%2014ZM401%2012H435V14Q426%2014%20426%2023V36A8%208%200%200%201%20410%2036V23Q410%2014%20401%2014ZM450%2012H490V14Q481%2014%20481%2023V59A11%2011%200%200%201%20459%2059V23Q459%2014%20450%2014ZM516%2012H548V14Q539%2014%20539%2023V31A7%207%200%200%201%20525%2031V23Q525%2014%20516%2014ZM566%2012H610V14Q601%2014%20601%2023V71A13%2013%200%200%201%20575%2071V23Q575%2014%20566%2014ZM628%2012H664V14Q655%2014%20655%2023V43A9%209%200%200%201%20637%2043V23Q637%2014%20628%2014ZM680%2012H720V14Q711%2014%20711%2023V63A11%2011%200%200%201%20689%2063V23Q689%2014%20680%2014ZM742%2012H774V14Q765%2014%20765%2023V35A7%207%200%200%201%20751%2035V23Q751%2014%20742%2014ZM790%2012H834V14Q825%2014%20825%2023V73A13%2013%200%200%201%20799%2073V23Q799%2014%20790%2014ZM855%2012H889V14Q880%2014%20880%2023V42A8%208%200%200%201%20864%2042V23Q864%2014%20855%2014ZM902%2012H938V14Q929%2014%20929%2023V55A9%209%200%200%201%20911%2055V23Q911%2014%20902%2014Z%27%2F%3E%3C%2Fsvg%3E");
  --melt: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20240%2056%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%200H240V8H0ZM11%206H29V8Q24%208%2024%2013V30A4%204%200%200%201%2016%2030V13Q16%208%2011%208ZM42%206H62V8Q57%208%2057%2013V45A5%205%200%200%201%2047%2045V13Q47%208%2042%208ZM78%206H94V8Q89%208%2089%2013V21A3%203%200%200%201%2083%2021V13Q83%208%2078%208ZM110%206H130V8Q125%208%20125%2013V49A5%205%200%200%201%20115%2049V13Q115%208%20110%208ZM147.5%206H164.5V8Q159.5%208%20159.5%2013V34.5A3.5%203.5%200%200%201%20152.5%2034.5V13Q152.5%208%20147.5%208ZM184%206H204V8Q199%208%20199%2013V39A5%205%200%200%201%20189%2039V13Q189%208%20184%208ZM218%206H234V8Q229%208%20229%2013V23A3%203%200%200%201%20223%2023V13Q223%208%20218%208Z%27%2F%3E%3C%2Fsvg%3E");
}

/* темы глазури (в JS лежат только hex для торта) */
:root[data-glaze="pomegranate"] { --glaze: #B3173B; --glaze-deep: #8E1030; --glaze-soft: #FBE1E5; --glaze-lite: #FF7C93; --on-glaze: #FFF9F4; }
:root[data-glaze="apricot"]     { --glaze: #FFAE5C; --glaze-deep: #F28A1F; --glaze-soft: #FFEBD2; --glaze-lite: #FFAE5C; --on-glaze: #2B140D; }
:root[data-glaze="pistachio"]   { --glaze: #B4D88A; --glaze-deep: #86B85A; --glaze-soft: #EAF4DA; --glaze-lite: #B4D88A; --on-glaze: #2B140D; }
:root[data-glaze="mulberry"]    { --glaze: #7B3F98; --glaze-deep: #5E2B76; --glaze-soft: #EFE2F5; --glaze-lite: #C58BE0; --on-glaze: #FFF9F4; }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--milk); color: var(--cocoa);
  font: 400 1rem/1.6 var(--font-body); font-synthesis: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; /* страховка: вращающийся стикер и капли не дают горизонтальной прокрутки */
}
[id] { scroll-margin-top: 84px; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-s { padding-block: clamp(20px, 3vw, 40px); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: var(--cocoa); color: var(--milk); font-weight: 600; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hand { font-family: var(--font-hand); font-weight: 700; }
.noscript { margin: 0; padding: 16px; text-align: center; background: var(--butter); font-weight: 600; }

/* ---------- типографика ---------- */
.h2 { font: 400 clamp(2rem, 4.6vw, 3.5rem)/1.04 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.lead { max-width: 56ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.eyebrow { margin-bottom: 14px; font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow.on-dark { color: var(--glaze-lite); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head-col { flex-direction: column; align-items: flex-start; gap: 0; max-width: 720px; }
.sec-head-col .lead { margin-top: 16px; }
.sec-ctrl { display: flex; gap: 10px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--cocoa); color: var(--milk); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-glaze { background: var(--glaze); color: var(--on-glaze); }
.btn-s { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.icon-btn, .round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  transition: transform .16s var(--ease-out), background-color .25s, color .25s;
}
.icon-btn:active, .round-btn:active { transform: scale(.94); }
.round-btn { border: 2px solid var(--cocoa); }
.round-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: var(--cocoa-2); }
  .btn-ghost:hover { background: var(--cocoa); border-color: var(--cocoa); color: var(--milk); }
  .btn-glaze:hover { background: var(--glaze-deep); }
  .round-btn:not(:disabled):hover { background: var(--cocoa); color: var(--milk); }
  .icon-btn:hover { background: rgba(43, 20, 13, .08); }
}

/* ---------- верхняя полоса ---------- */
.topbar { background: var(--cocoa); color: var(--milk); font-size: .8125rem; }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar-note { margin-right: auto; opacity: .78; }
.topbar-r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tb-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-right: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tb-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background-color .2s; }
.topbar a:focus-visible { outline-color: var(--butter); }
@media (hover: hover) and (pointer: fine) { .tb-ic:hover { background: rgba(255, 249, 244, .16); } .tb-link:hover { text-decoration: underline; } }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar .status { white-space: nowrap; }
.status-lg { font-size: 1rem; margin: 18px 0 24px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #66D17A; box-shadow: 0 0 0 4px rgba(102, 209, 122, .22); }
.is-closed .dot { background: #FF8A7A; box-shadow: 0 0 0 4px rgba(255, 138, 122, .22); }

/* ---------- шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: var(--z-hdr);
  background: var(--glaze); color: var(--on-glaze);
  transition: background-color .5s var(--ease-out), color .3s, box-shadow .3s;
}
.hdr, .hero, .mnav { --focus: var(--on-glaze); }
.hdr.is-stuck { --focus: var(--cocoa); background: rgba(255, 249, 244, .9); color: var(--cocoa); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.logo-mark { width: 34px; height: 38px; fill: currentColor; }
.logo-txt { display: grid; line-height: 1; }
.logo-word { font: 400 1.75rem/1 var(--font-display); letter-spacing: -.01em; }
.logo-sub { margin-top: 7px; font: 700 .6875rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.nav { display: none; flex: 1; justify-content: center; gap: clamp(14px, 1.7vw, 26px); }
.nav a { position: relative; padding: 12px 2px; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.hdr-act { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.search { display: none; position: relative; align-items: center; gap: 8px; width: 190px; height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(255, 249, 244, .72); color: var(--cocoa); transition: box-shadow .25s, background-color .25s; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 3px var(--cocoa); }
.hdr.is-stuck .search:not(:focus-within) { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(43, 20, 13, .2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .9375rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: var(--z-pop); list-style: none; margin: 0; padding: 8px; border-radius: var(--r-m); background: #fff; color: var(--cocoa); box-shadow: var(--shadow-2); min-width: 320px; }
.search-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; cursor: pointer; }
.search-list li[aria-selected="true"] { background: var(--glaze-soft); }
.search-list img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.search-list b { display: block; font-size: .9375rem; line-height: 1.2; }
.search-list small { color: var(--muted); }
.search-list .sl-more { justify-content: center; font-weight: 600; color: var(--muted); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--cocoa); color: var(--milk); font-weight: 600; transition: transform .16s var(--ease-out), background-color .25s; }
.cart-btn:active { transform: scale(.96); }
.cart-sum { display: none; font-size: .9375rem; }
.cart-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--butter); color: var(--cocoa); font-size: .8125rem; font-weight: 700; }
.cart-count[data-n="0"] { background: rgba(255, 249, 244, .22); color: var(--milk); }
.burger { color: inherit; }
@media (hover: hover) and (pointer: fine) { .cart-btn:hover { background: var(--cocoa-2); } }
@media (min-width: 720px) { .cart-sum { display: inline; } }
@media (min-width: 1100px) { .nav { display: flex; } .burger { display: none; } }
@media (min-width: 1280px) { .search { display: flex; } .search-toggle { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; background: var(--glaze); color: var(--on-glaze); padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); transition: background-color .6s var(--ease-out), color .4s; --drip-c: var(--glaze); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(255, 249, 244, .55); color: var(--cocoa); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.hero-h1 { margin: 20px 0 .6em; font: 400 clamp(2.5rem, 6.2vw, 4.9rem)/1.02 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.hero-lead { max-width: 46ch; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-dark { background: var(--on-glaze); color: var(--glaze); }
.hero .btn-ghost { color: var(--on-glaze); }
@media (hover: hover) and (pointer: fine) {
  .hero .btn-dark:hover { background: var(--on-glaze); box-shadow: 0 10px 24px -8px rgba(43, 20, 13, .5); transform: translateY(-2px); }
  .hero .btn-ghost:hover { background: var(--on-glaze); border-color: var(--on-glaze); color: var(--glaze); }
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 34px 0 0; list-style: none; }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { display: inline-flex; align-items: center; gap: 6px; font: 400 1.75rem/1 var(--font-display); }
.hero-facts span { font-size: .875rem; opacity: .85; }
.ic-star { width: .8em; height: .8em; }
.batch { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 249, 244, .55); color: var(--cocoa); font-size: .875rem; font-weight: 600; }

/* название «тает»: капли из букв (маска-тайл) */
.melt { position: relative; display: inline-block; }
.melt::after {
  content: ''; position: absolute; left: 0; right: 0; top: calc(100% - .145em); height: .62em; background: currentColor; pointer-events: none;
  -webkit-mask: var(--melt) repeat-x 0 0 / auto 100%; mask: var(--melt) repeat-x 0 0 / auto 100%;
  animation: melt-in 1.4s var(--ease-out) 1.5s both;
}
@keyframes melt-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.hero-stage { position: relative; display: grid; justify-items: center; gap: 6px; overflow-x: clip; }
.hero-cake { width: min(100%, 600px); aspect-ratio: 520 / 430; }
.sticker { position: absolute; right: 0; top: -4px; width: clamp(88px, 11vw, 124px); will-change: transform; }
.sticker-bg { fill: var(--butter); }
.sticker-txt { font: 700 10.5px var(--font-body); letter-spacing: .09em; fill: var(--cocoa); }
.sticker-drop { fill: var(--cocoa); }
.glaze { display: grid; justify-items: center; gap: 12px; }
.glaze-lbl { display: flex; align-items: baseline; gap: 12px; }
.glaze-lbl .hand { font-size: 1.75rem; line-height: 1; transform: rotate(-3deg); }
.glaze-name { font-weight: 700; font-size: .9375rem; letter-spacing: .04em; text-transform: uppercase; min-width: 9ch; }
.glaze-sw { display: flex; gap: 10px; }
.sw { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -5px 8px rgba(0, 0, 0, .16), 0 0 0 3px var(--milk), 0 0 0 5px transparent; transition: transform .2s var(--ease-out), box-shadow .25s; }
.sw::after { content: ''; position: absolute; left: 11px; top: 8px; width: 14px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: rotate(-28deg); }
.sw[aria-pressed="true"] { box-shadow: inset 0 -5px 8px rgba(0, 0, 0, .16), 0 0 0 3px var(--milk), 0 0 0 6px var(--cocoa); }
.sw:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .sw:hover { transform: translateY(-3px) scale(1.06); } }

/* капли: любая секция с .drip-after «стекает» на следующую */
.drip-after { position: relative; z-index: 2; }
.drip-after::after {
  content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 90px; background: var(--drip-c, currentColor); pointer-events: none;
  -webkit-mask: var(--drip) repeat-x 0 0 / 960px 90px; mask: var(--drip) repeat-x 0 0 / 960px 90px;
  transition: background-color .6s var(--ease-out);
}
@media (max-width: 640px) { .drip-after::after { height: 60px; -webkit-mask-size: 640px 60px; mask-size: 640px 60px; } }

/* ---------- торт (svg из cake.js) ---------- */
.ck { width: 100%; height: 100%; overflow: visible; }
.ck-sp { fill: var(--sp, #6A3A26); transition: fill .45s var(--ease-out); }
.ck-cr, .ck-top { fill: var(--cr, #FFF2DF); transition: fill .45s var(--ease-out); }
.ck-g { fill: var(--g, var(--glaze)); transition: fill .55s var(--ease-out); }
.ck-gs { stroke: var(--g, var(--glaze)); transition: stroke .55s var(--ease-out); }
.ck-fing { fill: none; stroke: var(--g, var(--glaze)); stroke-linecap: round; stroke-dasharray: 1 1; transition: stroke .55s var(--ease-out); }
.ck-glint { fill: none; stroke: #fff; stroke-opacity: .42; stroke-linecap: round; stroke-dasharray: 1 1; }
.ck-hl { fill: none; stroke: #fff; stroke-opacity: .42; stroke-width: 7; stroke-linecap: round; }
.ck-glaze { transition: opacity .35s var(--ease-out); }
.ck[data-glaze="none"] .ck-glaze { opacity: 0; }
.ck-root { transform-origin: 260px 500px; transition: transform .5s var(--ease-out); }
.ck[data-tiers="2"] .ck-root { transform: scale(.9); }
.ck-tier2 { transition: transform .5s var(--ease-out), opacity .4s var(--ease-out); transform: translate(260px, 150px) scale(.62); opacity: 0; }
.ck[data-tiers="2"] .ck-tier2 { transform: translate(260px, 183px) scale(.62); opacity: 1; }
.ck-items { transition: transform .5s var(--ease-out); transform: translate(260px, 288px) scale(1); }
.ck[data-tiers="2"] .ck-items { transform: translate(260px, 183px) scale(.62); }
.ck-flagg { transition: transform .5s var(--ease-out), opacity .3s var(--ease-out); transform: translate(160px, 288px); }
.ck[data-tiers="2"] .ck-flagg { transform: translate(198px, 183px); }
.ck[data-flag="0"] .ck-flagg { opacity: 0; }
.ck-stick { fill: #D8B58A; }
.ck-pen { fill: var(--butter); }
.ck-flag-t { font: 700 22px var(--font-hand); fill: var(--cocoa); text-anchor: middle; }
.tp { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.ck[data-top="berries"] .tp-berries, .ck[data-top="macarons"] .tp-macarons, .ck[data-top="flowers"] .tp-flowers,
.ck[data-top="nuts"] .tp-nuts, .ck[data-top="sprinkles"] .tp-sprinkles { opacity: 1; transform: none; }
.ck-stream { fill: none; stroke: var(--g, var(--glaze)); stroke-width: 26; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; }

/* заливка: поток → поверхность → капли → декор (один раз при загрузке) */
.ck.pour .ck-stream { animation: ck-stream .9s var(--ease-out) .05s both; }
.ck.pour .ck-gt, .ck.pour .ck-gs { animation: ck-spread .7s var(--ease-out) .45s both; }
.ck.pour .ck-fing, .ck.pour .ck-glint { animation: ck-drip 1.15s var(--ease-out) calc(.75s + var(--i) * 70ms) both; }
.ck.pour .tp > * { animation: ck-pop .5s var(--ease-out) calc(1.5s + var(--j, 0) * 60ms) both; }
.ck.pour .ck-flagg > * { animation: ck-fade .5s var(--ease-out) 1.8s both; }
.ck.repour .ck-stream { animation: ck-stream .9s var(--ease-out) both; }
.ck-gt, .ck-gs { transform-box: fill-box; transform-origin: center; }
.tp > * { transform-box: fill-box; transform-origin: center bottom; }
@keyframes ck-stream { 0% { stroke-dashoffset: 1; } 45% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes ck-spread { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
@keyframes ck-drip { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ck-pop { from { opacity: 0; transform: scale(.7) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ck-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- категории и перки ---------- */
.cats { padding: 104px 0 24px; }
.cats-hand { margin-bottom: 14px; font-size: 1.75rem; line-height: 1; color: var(--muted); text-align: center; transform: rotate(-2deg); }
.cats-row { display: flex; justify-content: center; gap: clamp(16px, 3vw, 44px); list-style: none; margin: 0; padding: 8px 6px 16px; overflow-x: auto; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cat { display: grid; justify-items: center; gap: 4px; width: 116px; text-decoration: none; }
.cat-img { width: 116px; height: 116px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; background: var(--glaze-soft); box-shadow: 0 0 0 3px var(--milk), 0 0 0 5px var(--glaze); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-weight: 700; }
.cat-n { font-size: .8125rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .cat:hover .cat-img { transform: translateY(-5px) rotate(-3deg); box-shadow: 0 0 0 3px var(--milk), 0 0 0 5px var(--cocoa); } }
@media (max-width: 760px) { .cats-row { justify-content: flex-start; padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); } }

.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-l); background: var(--glaze-soft); transition: background-color .5s var(--ease-out); }
.perk-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--glaze); color: var(--on-glaze); transition: background-color .5s var(--ease-out), color .4s; }
.perk-t { margin-bottom: 6px; font: 700 1.0625rem/1.25 var(--font-body); }
.perk p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.perk b { color: var(--cocoa); }

/* ---------- карточки товара ---------- */
.track { display: flex; gap: 20px; list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100vw - 1200px) / 2)) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2)); scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > li { flex: 0 0 min(284px, 74vw); scroll-snap-align: start; }
.card { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--glaze-soft); cursor: pointer; transition: background-color .5s var(--ease-out); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.badge { position: absolute; left: 12px; top: 12px; padding: 7px 12px; border-radius: 999px; background: var(--butter); color: var(--cocoa); font: 700 .6875rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.badge-new { background: var(--cocoa); color: var(--milk); }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font: 700 1.0625rem/1.25 var(--font-body); }
.card-open { display: inline-block; margin-block: -12px; padding-block: 12px; text-align: left; font: inherit; }
.card-open:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { display: grid; gap: 2px; line-height: 1; }
.price-v { font: 400 1.5rem/1 var(--font-display); }
.price-c { font: 600 .8125rem/1 var(--font-body); margin-left: 2px; }
.price-u { font-size: .75rem; color: var(--muted); }
.add { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cocoa); color: var(--milk); transition: transform .16s var(--ease-out), background-color .25s, color .25s; }
.add:active { transform: scale(.92); }
.step { display: inline-flex; align-items: center; height: 48px; border-radius: 999px; background: var(--cocoa); color: var(--milk); }
.step button { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 999px; transition: background-color .2s; }
.step-n { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.card[data-qty="0"] .step, .tile[data-qty="0"] .step { display: none; }
.card:not([data-qty="0"]) .add, .tile:not([data-qty="0"]) .add { display: none; }
.pd[data-qty="0"] .step, .pd[data-qty="0"] .pd-cart { display: none; }
.pd:not([data-qty="0"]) .pd-add { display: none; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img { transform: scale(1.05); }
  .add:hover { background: var(--glaze-deep); color: var(--on-glaze); }
  .step button:hover { background: rgba(255, 249, 244, .16); }
}
.card { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- бегущая строка ---------- */
.ticker { overflow: hidden; background: var(--butter); border-block: 2px solid var(--cocoa); }
.ticker-in { display: flex; width: max-content; animation: marq 40s linear infinite; }
.ticker ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; padding: 18px 0; font: 400 1.375rem/1 var(--font-display); white-space: nowrap; }
.ticker li::after { content: ''; width: 12px; height: 12px; margin: 0 28px; border-radius: 50%; background: var(--cocoa); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-in { animation-play-state: paused; } }

/* ---------- новинки: бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 20px; }
.tile { position: relative; grid-column: span 3; min-height: 300px; border-radius: var(--r-l); overflow: hidden; background: var(--cocoa); color: #fff; isolation: isolate; cursor: pointer; }
.tile-1 { grid-column: span 6; grid-row: span 2; }
.tile-4 { grid-column: span 6; }
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(43, 20, 13, .86) 0%, rgba(43, 20, 13, .4) 42%, rgba(43, 20, 13, 0) 70%); }
.tile-body { position: absolute; inset: auto 0 0; display: grid; gap: 8px; padding: clamp(18px, 2.4vw, 28px); }
.tile-t { font: 400 clamp(1.25rem, 2vw, 1.75rem)/1.1 var(--font-display); }
.tile-1 .tile-t { font-size: clamp(1.625rem, 3vw, 2.5rem); }
.tile-d { max-width: 44ch; font-size: .9375rem; line-height: 1.45; opacity: .9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.tile .price-u { color: rgba(255, 255, 255, .78); }
.tile .badge { position: static; justify-self: start; }
.tile .add { background: var(--milk); color: var(--cocoa); }
.tile .step { background: var(--milk); color: var(--cocoa); }
@media (hover: hover) and (pointer: fine) { .tile:hover > img { transform: scale(1.05); } .tile .add:hover { background: var(--butter); color: var(--cocoa); } .tile .step button:hover { background: rgba(43, 20, 13, .08); } }

/* ---------- о кондитерской ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-collage { position: relative; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 16px; aspect-ratio: 1 / 1.08; }
.ac { position: relative; overflow: hidden; background: var(--glaze-soft); }
.ac img { width: 100%; height: 100%; object-fit: cover; }
.ac-arch { grid-row: 1 / 3; border-radius: 999px 999px var(--r-m) var(--r-m); }
.ac-round { border-radius: var(--r-l); }
.ac-card { border-radius: var(--r-l); }
.ac figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--milk); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.ac-stamp { position: absolute; left: -10px; bottom: 24px; display: grid; place-content: center; width: 104px; height: 104px; border-radius: 50%; background: var(--butter); text-align: center; transform: rotate(-10deg); box-shadow: var(--shadow-1); line-height: 1; }
.ac-stamp span { font: 700 1.25rem/1 var(--font-hand); }
.ac-stamp b { font: 400 1.75rem/1 var(--font-display); }
.about-copy > * + * { margin-top: 18px; }
.about-copy .h2 { margin-top: 0; }
.about-copy p { max-width: 56ch; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 32px; margin-top: 30px !important; padding-top: 26px; border-top: 2px solid var(--cocoa); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { font: 400 clamp(1.75rem, 3.2vw, 2.5rem)/1 var(--font-display); }
.stats dt { font-size: .8125rem; color: var(--muted); }
.sign { display: grid; gap: 0; }
.sign .hand { font-size: 2rem; line-height: 1; }
.sign span:last-child { font-size: .875rem; color: var(--muted); }

/* ---------- меню ---------- */
.field-search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 360px); min-height: 52px; padding: 0 20px; border: 2px solid var(--cocoa); border-radius: 999px; background: #fff; transition: box-shadow .25s; }
.field-search:focus-within { box-shadow: 0 0 0 4px var(--glaze); }
.field-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.field-search input::placeholder { color: var(--muted); opacity: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 2px solid var(--cocoa); border-radius: 999px; font-weight: 600; transition: background-color .2s, color .2s, transform .16s var(--ease-out); }
.tab small { font-size: .8125rem; opacity: .6; font-weight: 600; }
.tab[aria-pressed="true"] { background: var(--cocoa); color: var(--milk); }
.tab:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .tab[aria-pressed="false"]:hover { background: var(--glaze-soft); } }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 22px; list-style: none; margin: 0; padding: 0; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 16px; text-align: center; color: var(--muted); }
.empty-t { font: 400 1.5rem/1.2 var(--font-display); color: var(--cocoa); }

/* ---------- вкусы Таджикистана ---------- */
.flavors { --focus: var(--butter); --drip-c: var(--cocoa); padding-block: clamp(72px, 10vw, 128px); background: var(--cocoa); color: var(--milk); }
.fl-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.fl-head .h2 { margin-bottom: 18px; }
.fl-head .lead { color: rgba(255, 249, 244, .76); }
.fl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; list-style: none; margin: 0; padding: 0; }
.fl { display: grid; gap: 14px; align-content: start; }
.fl-img { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-m) var(--r-m); overflow: hidden; background: var(--cocoa-2); }
.fl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.fl-name { font: 400 1.625rem/1.1 var(--font-display); }
.fl-text { font-size: .9375rem; line-height: 1.5; color: rgba(255, 249, 244, .78); }
.fl .btn { justify-self: start; }
@media (hover: hover) and (pointer: fine) { .fl:hover .fl-img img { transform: scale(1.06); } }

/* ---------- конструктор ---------- */
.builder { padding-block: clamp(110px, 12vw, 170px) clamp(64px, 9vw, 120px); background: var(--glaze-soft); transition: background-color .6s var(--ease-out); }
.b-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.b-stage { position: sticky; top: 100px; padding: clamp(12px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--milk); box-shadow: var(--shadow-1); text-align: center; }
.b-cake { max-width: 540px; margin-inline: auto; aspect-ratio: 520 / 430; }
.b-line { min-height: 3em; margin-top: 8px; padding-inline: 8px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.b-panel { display: grid; gap: 8px; }
.b-step { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.b-step legend { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding: 0; font: 700 1.0625rem/1.2 var(--font-body); }
.b-step legend small { font-weight: 500; font-size: .8125rem; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 46px; padding: 0 16px; border: 2px solid var(--cocoa); border-radius: 999px; background: transparent; font-weight: 600; font-size: .9375rem; transition: background-color .2s, color .2s, transform .16s var(--ease-out); }
.opt small { font-size: .75rem; font-weight: 500; opacity: .66; }
.opt-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .22); }
.opt[aria-checked="true"] { background: var(--cocoa); color: var(--milk); }
.opt:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .opt[aria-checked="false"]:hover { background: rgba(255, 255, 255, .7); } }
.inp, .fld input, .fld textarea, .fld select { width: 100%; min-height: 52px; padding: 12px 18px; border: 2px solid var(--cocoa); border-radius: 18px; background: #fff; font-size: 1rem; transition: box-shadow .2s, border-color .2s; }
.inp:focus, .fld input:focus, .fld textarea:focus, .fld select:focus { outline: 0; box-shadow: 0 0 0 4px var(--glaze); }
.fld textarea { resize: vertical; min-height: 96px; }
.b-total { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 24px; border-radius: var(--r-l); background: var(--cocoa); color: var(--milk); box-shadow: var(--shadow-2); --focus: var(--butter); }
.b-total > div { display: grid; line-height: 1.15; }
.b-total-l { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.b-total-v { font: 400 1.75rem/1.1 var(--font-display); }
.b-total-n { font-size: .75rem; opacity: .7; }

/* ---------- акции ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo { display: flex; flex-direction: column; gap: 20px; min-height: 440px; padding: 28px; border-radius: var(--r-xl); overflow: hidden; transition: background-color .5s var(--ease-out); }
.promo-a { background: var(--butter); }
.promo-b { background: var(--glaze); color: var(--on-glaze); }
.promo-c { background: var(--pistachio); }
.promo-txt { display: grid; gap: 10px; justify-items: start; }
.promo-k { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.promo-t { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--font-display); }
.promo-txt p:not(.promo-k) { font-size: .9375rem; line-height: 1.5; max-width: 34ch; }
.promo-txt .btn { margin-top: 6px; }
.promo-b .btn-dark { background: var(--on-glaze); color: var(--glaze); }
.promo img { flex: none; margin-top: auto; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-m); }

/* ---------- доставка ---------- */
.d-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.d-copy > * + * { margin-top: 18px; }
.steps { counter-reset: s; display: grid; gap: 14px; list-style: none; margin: 28px 0 !important; padding: 0; }
.steps li { counter-increment: s; display: flex; align-items: flex-start; gap: 16px; }
.steps li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cocoa); color: var(--milk); font: 400 1rem/1 var(--font-display); }
.steps b { display: block; }
.d-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.d-info li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-m); background: var(--glaze-soft); transition: background-color .5s var(--ease-out); }
.d-info .ic { margin-top: 2px; font-size: 1.25rem; }
.d-info b { display: block; line-height: 1.25; }
.d-info span { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.calc { position: sticky; top: 100px; padding: clamp(20px, 3vw, 36px); border: 2px solid var(--cocoa); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-2); }
.calc-t { margin-bottom: 18px; font: 400 1.5rem/1.1 var(--font-display); }
.calc-dist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dz { display: grid; gap: 4px; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-m); text-align: left; transition: border-color .2s, background-color .2s, transform .16s var(--ease-out); }
.dz b { line-height: 1.2; }
.dz small { font-size: .75rem; color: var(--muted); }
.dz[aria-checked="true"] { border-color: var(--cocoa); background: var(--glaze-soft); }
.dz:active { transform: scale(.97); }
.calc-lbl { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 6px; font-weight: 600; }
.calc-lbl output { font: 400 1.25rem/1 var(--font-display); }
.range { width: 100%; height: 44px; accent-color: var(--cocoa); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 14px; }
.calc-out div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-m); background: var(--milk-2); }
.calc-out span { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.calc-out strong { font: 400 1.5rem/1.1 var(--font-display); }
.calc-bar { height: 10px; border-radius: 5px; background: var(--glaze-soft); overflow: hidden; }
.calc-bar span { display: block; height: 100%; border-radius: 5px; background: var(--glaze-deep); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .45s var(--ease-out), background-color .5s; }
.calc-left { margin-top: 10px; font-weight: 600; font-size: .9375rem; }
.calc-next { margin-top: 4px; font-size: .875rem; color: var(--muted); }

/* ---------- отзывы ---------- */
.reviews { background: var(--glaze-soft); transition: background-color .6s var(--ease-out); }
.rev-sum { display: grid; gap: 2px; margin-left: auto; text-align: right; }
.rev-score { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.rev-score strong { font: 400 2.25rem/1 var(--font-display); }
.stars { display: inline-flex; gap: 2px; color: #F2A33A; }
.stars .ic { width: 1em; height: 1em; }
.rev-n { font-size: .875rem; color: var(--muted); }
.track-rev > li { flex-basis: min(380px, 82vw); }
.rev { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 26px; border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-1); }
.rev-h { display: flex; align-items: center; gap: 12px; }
.rev-ava { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--glaze); color: var(--on-glaze); font: 400 1.125rem/1 var(--font-display); transition: background-color .5s, color .4s; }
.rev-name { display: block; font-weight: 700; line-height: 1.2; }
.rev-date { font-size: .8125rem; color: var(--muted); }
.rev .stars { margin-left: auto; }
.rev-text { flex: 1; line-height: 1.55; }
.rev-item { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--milk-2); font-size: .8125rem; font-weight: 600; }

/* ---------- блог ---------- */
.j-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.j-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.j-img { aspect-ratio: 16 / 11; border-radius: var(--r-l); overflow: hidden; background: var(--glaze-soft); }
.j-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.j-date { font-size: .8125rem; color: var(--muted); }
.j-t { font: 700 1.25rem/1.25 var(--font-body); }
.j-t button { text-align: left; font: inherit; }
.j-t button::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-l); }
.j-teaser { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.j-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) { .j-card:hover .j-img img { transform: scale(1.05); } .j-card:hover .j-more .ic { transform: translateX(4px); } }
.j-more .ic { transition: transform .25s var(--ease-out); }

/* ---------- галерея ---------- */
.gal { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(110px, 15vw, 210px); gap: 12px; }
.gi { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--glaze-soft); cursor: zoom-in; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gi:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gi:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.gi:nth-child(3) { grid-column: span 2; }
.gi:nth-child(4) { grid-column: span 2; }
.gi:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.gi:nth-child(6) { grid-column: span 2; }
.gi:nth-child(7) { grid-column: span 2; }
.gi:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.gi:nth-child(9) { grid-column: span 2; grid-row: span 2; }
@media (hover: hover) and (pointer: fine) { .gi:hover img { transform: scale(1.06); } }

/* ---------- для бизнеса ---------- */
.b2b { --focus: var(--butter); --drip-c: var(--cocoa); padding-block: clamp(72px, 10vw, 128px); background: var(--cocoa); color: var(--milk); }
.b2b-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.b2b-copy > * + * { margin-top: 18px; }
.b2b-copy .lead { color: rgba(255, 249, 244, .78); }
.b2b-list { display: grid; gap: 12px; list-style: none; margin: 26px 0 0 !important; padding: 0; }
.b2b-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.b2b-list .ic { padding: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--glaze); color: var(--on-glaze); }
.b2b-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 36px); border: 2px solid rgba(255, 249, 244, .22); border-radius: var(--r-xl); background: rgba(255, 249, 244, .05); }
.fld { display: grid; gap: 8px; }
.fld label { font-weight: 600; font-size: .9375rem; }
.fld label span { color: #B3261E; }
.b2b-form .fld label span { color: var(--glaze-lite); }
.b2b-form input, .b2b-form textarea { border-color: rgba(255, 249, 244, .3); background: rgba(255, 249, 244, .08); color: var(--milk); }
.b2b-form input::placeholder, .b2b-form textarea::placeholder { color: rgba(255, 249, 244, .5); }
.b2b-form input:focus, .b2b-form textarea:focus { border-color: var(--butter); box-shadow: 0 0 0 4px rgba(255, 216, 107, .25); }
.err { font-size: .875rem; font-weight: 600; color: #B3261E; }
.b2b-form .err { color: #FFB4A8; }
.fld [aria-invalid="true"] { border-color: #D93A2F; }
.b2b-form [aria-invalid="true"] { border-color: #FF8A7A; }
.b2b-ok { padding: 14px 16px; border-radius: var(--r-m); background: rgba(102, 209, 122, .16); line-height: 1.5; }
.b2b-ok i { display: block; margin-top: 4px; font-size: .8125rem; opacity: .75; }

/* ---------- контакты ---------- */
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.c-copy .h2 { margin-bottom: 4px; }
.loc-list { display: grid; gap: 10px; }
.loc { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--r-m); text-align: left; transition: border-color .2s, background-color .2s, transform .16s var(--ease-out); }
.loc[aria-checked="true"] { border-color: var(--cocoa); background: var(--glaze-soft); }
.loc:active { transform: scale(.985); }
.loc b { line-height: 1.25; }
.loc-a { grid-column: 1; font-size: .9375rem; }
.loc-h { grid-column: 1; font-size: .8125rem; color: var(--muted); }
.loc-ar { grid-column: 2; grid-row: 1 / 4; align-self: center; padding: 6px 12px; border-radius: 999px; background: var(--milk-2); font-size: .75rem; font-weight: 700; }
.c-phones { display: grid; gap: 10px; margin-top: 22px; }
.c-phone { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-m); background: var(--milk-2); text-decoration: none; transition: background-color .2s, transform .16s var(--ease-out); }
.c-phone:active { transform: scale(.985); }
.c-phone span { display: grid; font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.c-phone b { font-size: 1.0625rem; color: var(--cocoa); }
@media (hover: hover) and (pointer: fine) { .c-phone:hover { background: var(--glaze-soft); } }
.c-map { position: sticky; top: 100px; }
.c-map iframe { width: 100%; aspect-ratio: 5 / 4.4; border: 0; border-radius: var(--r-xl); background: var(--glaze-soft); box-shadow: var(--shadow-1); }
.c-note { margin-top: 10px; font-size: .8125rem; color: var(--muted); }

/* ---------- подвал ---------- */
.foot { --focus: var(--butter); padding-top: clamp(56px, 8vw, 96px); background: var(--cocoa); color: var(--milk); overflow: hidden; }
.foot-word { margin-bottom: clamp(48px, 7vw, 88px); font: 400 clamp(5rem, 25vw, 21rem)/.9 var(--font-display); letter-spacing: -.03em; color: var(--glaze-lite); user-select: none; transition: color .6s var(--ease-out); }
.foot-word.melt::after { height: .3em; top: calc(100% - .08em); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.foot-h { margin-bottom: 14px; font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--glaze-lite); }
.foot-p { font-size: .9375rem; line-height: 1.7; color: rgba(255, 249, 244, .8); }
.foot-p + .foot-p { margin-top: 12px; }
.foot-ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.foot a { text-decoration: none; color: rgba(255, 249, 244, .86); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }
.foot-bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid rgba(255, 249, 244, .16); font-size: .8125rem; color: rgba(255, 249, 244, .62); }
.to-top { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 2px solid rgba(255, 249, 244, .3); border-radius: 50%; transition: background-color .2s, transform .16s var(--ease-out); }
.to-top:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--glaze); border-color: var(--glaze); color: var(--on-glaze) !important; text-decoration: none !important; } }

/* ---------- диалоги ---------- */
dialog { max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
dialog::backdrop { background: rgba(43, 20, 13, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open]::backdrop { animation: fade .28s var(--ease-out); }
dialog.is-closing::backdrop { animation: fade .2s var(--ease-out) reverse forwards; }
html:has(dialog[open]) { overflow: hidden; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer { margin: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; }
.drawer[open] { animation: drawer-in .4s var(--ease-drawer); }
.drawer.is-closing { animation: drawer-out .24s var(--ease-out) forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.panel { display: flex; flex-direction: column; height: 100%; background: var(--milk); box-shadow: -20px 0 60px -20px rgba(43, 20, 13, .4); }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.panel-t { font: 400 1.625rem/1 var(--font-display); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.cart-foot { display: grid; gap: 14px; padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--milk); }
.ci { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci-img { width: 72px; height: 88px; border-radius: 16px; overflow: hidden; background: var(--glaze-soft); display: grid; place-items: center; color: var(--on-glaze); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-img .ic { width: 32px; height: 32px; }
.ci-n { font-weight: 700; line-height: 1.25; }
.ci-d { margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.ci-p { margin-top: 8px; font: 400 1.0625rem/1 var(--font-display); }
.ci-r { display: grid; justify-items: end; align-content: space-between; }
.ci-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s; }
.ci-x:hover { background: var(--glaze-soft); color: var(--cocoa); }
.ci .step { height: 40px; }
.ci .step button { height: 40px; width: 38px; }
.cart-empty { display: grid; justify-items: center; gap: 12px; padding: 64px 12px; text-align: center; color: var(--muted); }
.cart-empty .ic { width: 56px; height: 56px; color: var(--glaze-deep); stroke-width: 1.4; }
.cart-empty b { font: 400 1.5rem/1.2 var(--font-display); color: var(--cocoa); }
.cf-ship { display: grid; gap: 8px; font-size: .875rem; }
.cf-ship p { font-weight: 600; }
.cf-promo { display: flex; gap: 8px; }
.cf-promo input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; text-transform: uppercase; }
.cf-promo input:focus { outline: 0; border-color: var(--cocoa); }
.cf-msg { font-size: .8125rem; font-weight: 600; min-height: 1.2em; }
.cf-msg.ok { color: #1E7A34; } .cf-msg.bad { color: #B3261E; }
.cf-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.cf-row.total { font-weight: 700; font-size: 1.0625rem; }
.cf-row.total b { font: 400 1.5rem/1 var(--font-display); }
.cf-row.disc { color: #1E7A34; }

.modal { margin: auto; width: min(980px, calc(100vw - 24px)); }
.modal-s { width: min(560px, calc(100vw - 24px)); }
.modal[open] { animation: pop .32s var(--ease-out); }
.modal.is-closing { animation: pop-out .2s var(--ease-out) forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-in { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: var(--r-xl); background: var(--milk); box-shadow: var(--shadow-2); overscroll-behavior: contain; }
.m-x { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(255, 249, 244, .9); box-shadow: 0 2px 8px rgba(43, 20, 13, .18); }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-img { position: relative; min-height: 420px; background: var(--glaze-soft); }
.pd-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 44px); }
.pd-name { font: 400 clamp(1.5rem, 3vw, 2.125rem)/1.08 var(--font-display); }
.pd-desc { color: var(--muted); line-height: 1.55; }
.pd-meta { display: grid; gap: 10px; margin: 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: .875rem; }
.pd-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.pd-meta dt { color: var(--muted); }
.pd-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 8px; }
.pd-buy .price-v { font-size: 2rem; }
.pd-act { display: flex; align-items: center; gap: 10px; }
.pd-act .btn { min-height: 52px; }
.art { padding: clamp(26px, 5vw, 44px); }
.art-img { margin: -8px 0 22px; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--glaze-soft); }
.art-img img { width: 100%; height: 100%; object-fit: cover; }
.art-date { margin-bottom: 8px; font-size: .8125rem; color: var(--muted); }
.art-t { margin-bottom: 18px; font: 400 clamp(1.5rem, 3.4vw, 2rem)/1.1 var(--font-display); padding-right: 40px; }
.art-b > * + * { margin-top: 14px; }
.art-b ul { padding-left: 20px; display: grid; gap: 4px; }
.art-b li::marker { color: var(--glaze-deep); }
.art-calc { margin-top: 24px; padding: 20px; border-radius: var(--r-m); background: var(--glaze-soft); display: grid; gap: 12px; }
.art-calc label { font-weight: 700; }
.art-calc-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.art-calc input { width: 110px; min-height: 48px; padding: 0 14px; border: 2px solid var(--cocoa); border-radius: 14px; background: #fff; font-size: 1.125rem; font-weight: 700; }
.art-calc output { font-weight: 700; }
.co { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.co-t { font: 400 clamp(1.5rem, 3vw, 2rem)/1.1 var(--font-display); padding-right: 40px; }
.co .fld select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B140D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px; padding-right: 44px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg .opt { justify-content: center; }
.co-sum { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-m); background: var(--milk-2); font-size: .9375rem; }
.co-ok { display: grid; justify-items: start; gap: 14px; }
.co-ok .ic-big { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--glaze); color: var(--on-glaze); }
.co-ok .ic-big .ic { width: 32px; height: 32px; stroke-width: 2.2; }

.mnav { margin: 0; width: 100vw; height: 100dvh; background: var(--glaze); color: var(--on-glaze); }
.mnav[open] { animation: fade .25s var(--ease-out); }
.mnav-in { display: flex; flex-direction: column; height: 100%; padding: 16px var(--gutter) 28px; }
.mnav-x { align-self: flex-end; }
.mnav-links { display: grid; gap: 4px; margin-block: auto; }
.mnav-links a { padding: 8px 0; font: 400 clamp(2rem, 9vw, 3rem)/1.1 var(--font-display); text-decoration: none; }
.mnav-foot { display: grid; gap: 14px; justify-items: start; }
.mnav-foot .btn-dark { background: var(--on-glaze); color: var(--glaze); }
.mnav-st { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.lightbox { margin: 0; width: 100vw; height: 100dvh; background: rgba(28, 12, 7, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px; animation: fade .25s var(--ease-out); --focus: var(--butter); }
.lb-x { position: absolute; right: 16px; top: 16px; color: #fff; z-index: 2; background: rgba(255, 255, 255, .12); }
.lightbox .round-btn { border-color: rgba(255, 255, 255, .5); color: #fff; }
.lb-fig { display: grid; gap: 12px; justify-items: center; min-height: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: var(--r-m); object-fit: contain; }
.lb-fig figcaption { font-size: .9375rem; opacity: .9; text-align: center; }

.toast { position: fixed; inset: auto auto 24px 50%; margin: 0; border: 0; overflow: visible; width: max-content; z-index: var(--z-toast); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 14px 14px 14px 18px; border-radius: 999px; background: var(--cocoa); color: var(--milk); box-shadow: var(--shadow-2); font-weight: 600; font-size: .9375rem; opacity: 0; transform: translate(-50%, 24px); pointer-events: none; transition: opacity .3s var(--ease-out), transform .35s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .ic { padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: #66D17A; color: var(--cocoa); stroke-width: 2.4; }
.toast button { padding: 8px 14px; border-radius: 999px; background: var(--butter); color: var(--cocoa); font-weight: 700; }

/* ---------- появление при прокрутке ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .fl-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .j-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .b-grid, .d-grid, .b2b-grid, .c-grid { grid-template-columns: 1fr; }
  /* hero на телефоне: заголовок → торт → кнопки */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-copy { display: contents; }
  .hero .chip { order: 1; align-self: flex-start; }
  .hero-h1 { order: 2; margin: 0 0 .5em; }
  .hero-lead { order: 3; }
  .hero-stage { order: 4; margin-block: 4px; }
  .hero-cta { order: 5; margin-top: 0; }
  .hero-facts { order: 6; margin: 0; }
  .batch { order: 7; margin: 0; align-self: flex-start; }
  .calc, .c-map { position: static; }
  /* конструктор на телефоне: торт прилипает наверху, пока листаешь опции */
  .b-grid { display: block; }
  .b-stage { position: sticky; top: 68px; z-index: 5; margin-bottom: 20px; padding: 8px 12px 10px; border-radius: var(--r-l); }
  .b-cake { max-width: 250px; }
  .b-line { display: none; }
  .perks-grid, .promo-grid { grid-template-columns: 1fr; }
  .promo { min-height: 0; flex-direction: row; align-items: center; }
  .promo-txt { flex: 1; }
  .promo img { flex: 0 0 46%; width: 46%; aspect-ratio: 1; margin-top: 0; }
  .topbar-note { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-1, .tile-4 { grid-column: span 1; grid-row: auto; }
  .tile-1 { grid-column: span 2; min-height: 380px; }
  .tile-4 { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, auto); }
  .about-collage { max-width: 520px; }
  .sec-head { flex-wrap: wrap; }
  .rev-sum { margin-left: 0; text-align: left; order: 3; width: 100%; }
  .rev-score { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .j-grid { grid-template-columns: 1fr; }
  .topbar-note { display: none; }
  .topbar-r { margin-left: auto; }
  .pd { grid-template-columns: 1fr; }
  .pd-img { min-height: 300px; aspect-ratio: 4 / 3; }
  .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .gi:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gi:nth-child(1), .gi:nth-child(5) { grid-column: span 2; grid-row: span 2; }
  .promo { flex-direction: column; align-items: stretch; }
  .promo img { flex: none; width: 100%; aspect-ratio: 4 / 3; }
  .d-info { grid-template-columns: 1fr; }
  .foot-bot { align-items: flex-start; }
}
@media (max-width: 400px) {
  .opt { padding: 0 12px; font-size: .875rem; }
  .logo-sub { display: none; }
  .topbar-in { gap: 10px; }
  .topbar .status { min-width: 0; white-space: normal; font-size: .75rem; line-height: 1.25; }
  .b-total { flex-wrap: wrap; gap: 10px; padding: 12px 12px 12px 16px; }
  .b-total .btn { padding: 0 18px; flex: 1 1 auto; }
}
@media (max-width: 359px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hdr-in { min-height: 64px; gap: 12px; }
  .logo-word { font-size: 1.5rem; }
  .logo-mark { width: 28px; height: 32px; }
  .tile, .tile-1, .tile-4 { grid-column: span 2; min-height: 320px; }
  .tb-num, .tb-ic { display: none; }
  .tb-link { margin: 0; width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: rgba(255, 249, 244, .14); }
  .topbar-in { min-height: 48px; }
  .status { font-size: .8125rem; }
  .hero-facts { gap: 12px 26px; }
  .calc-dist { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .fl-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .fl-name { font-size: 1.25rem; }
  .fl .btn { width: 100%; padding: 0 12px; font-size: .875rem; }
  .stats { gap: 18px 24px; }
  .ci { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .ci-img { width: 64px; height: 80px; }
  .b-total { padding-left: 18px; }
  .b-total-v { font-size: 1.5rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
}

/* ---------- уменьшение движения: оставляем фейды, убираем перемещения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { transform: none; transition: opacity .3s linear; }
  .ticker-in, .melt::after, .card { animation: none; }
  .ck.pour *, .ck.repour * { animation: none !important; }
  .ck-stream { display: none; }
  .ck-root, .ck-tier2, .ck-items, .ck-flagg { transition: none; }
  dialog[open], .drawer[open], .modal[open] { animation: fade .2s linear; }
  .drawer.is-closing, .modal.is-closing { animation: fade .15s linear reverse forwards; }
  .toast { transition: opacity .2s linear; transform: translate(-50%, 0); }
}
