/* Эффекты блоков — из v3: заставка, появления строками, шторка на фото, фото за курсором,
   горизонтальная история, бегущая строка. Каждый собранный сайт получает их даром. */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --gutter: clamp(16px, 4vw, 56px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* Прокрутка внутри корзины и окна товара не перетекает на страницу (как в lenis.css 1.3) */
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body { overflow-x: hidden; }
body.is-loading { overflow: hidden; }
a { -webkit-tap-highlight-color: transparent; }

/* Акцент: в обычной секции — primary, в перевёрнутой — свой цвет темы */
.hl { color: var(--hl, var(--color-primary)); }
.tone-invert { --hl: var(--invert-hl, var(--color-primary)); }
.tone-invert .btn-primary { --btn-color: var(--invert-btn, var(--color-primary)); --btn-fg: var(--invert-btn-fg, var(--color-primary-content)); }
.on-photo .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.on-photo .btn-outline:hover { background: #fff; color: #111; border-color: #fff; }
/* Перевёрнутая (тёмная) секция: контурная кнопка — в цвете текста секции, а не светлой страницы */
.tone-invert .btn-outline { color: var(--color-neutral-content); border-color: color-mix(in oklab, var(--color-neutral-content) 55%, transparent); }
.tone-invert .btn-outline:hover { background: var(--color-neutral-content); color: var(--color-neutral); border-color: var(--color-neutral-content); }

/* Плёнка */
/* Слой чуть больше экрана (а не вчетверо), свой слой у видеокарты — сдвиги зерна не перерисовывают страницу */
body.grain::after {
  content: ""; position: fixed; inset: -8%; z-index: 300; pointer-events: none; opacity: .055; will-change: transform; contain: strict;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); } 80% { transform: translate(3%,3%); } }

/* ── Заставка ── */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--color-neutral); color: var(--color-neutral-content); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: var(--gutter); transition: transform 1.1s var(--ease) .1s; }
.loader.done { transform: translateY(-100%); }
.loader .lw { line-height: .85; letter-spacing: -.05em; overflow: hidden; padding-bottom: .12em; white-space: nowrap; }
.loader .lw span { display: inline-block; transform: translateY(110%); animation: up .9s var(--ease) forwards; }
.loader .count { font-size: clamp(20px, 2vw, 28px); opacity: .7; }
@keyframes up { to { transform: none; } }

/* ── Появления ── */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.split.in .w > span { transform: none; }
.hero-title .w > span { transition-duration: 1.3s; transition-delay: calc(var(--i) * 90ms + .1s); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.mask { overflow: hidden; clip-path: inset(100% 0 0 0 round var(--radius-box)); transition: clip-path 1.5s var(--ease); }
.mask > img, .mask > video { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.mask.in { clip-path: inset(0 0 0 0 round var(--radius-box)); }
.mask.in > img, .mask.in > video { transform: none; }
.hero-in { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
body.ready .hero-in { opacity: 1; transform: none; }

/* Манифест: слова проявляются по ходу чтения */
[data-manifest] .ww { opacity: .14; transition: opacity .25s linear; }

/* ── Первый экран ── */
.hero-media { will-change: transform; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fd38a; margin-right: 8px; vertical-align: 1px; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(95,211,138,.6); } 100% { box-shadow: 0 0 0 10px rgba(95,211,138,0); } }
.scroll-hint { writing-mode: vertical-rl; font: 600 11px/1 var(--font-sans); letter-spacing: .3em; text-transform: uppercase; }

/* ── Шапка: прозрачная над первым экраном, потом стекло; прячется при прокрутке вниз ── */
.site-header { color: #fff; transition: background .5s, color .5s, transform .6s var(--ease), box-shadow .5s; }
/* Без размытия под шапкой: blur фона пересчитывается на каждом кадре прокрутки */
.site-header.solid { background: color-mix(in oklab, var(--color-base-100) 94%, transparent); color: var(--color-base-content); box-shadow: 0 1px 0 color-mix(in oklab, var(--color-base-content) 12%, transparent); }
.site-header.hide { transform: translateY(-100%); }

/* ── Строки (прайс, темы): при наведении сдвиг и курсив ── */
.row { transition: padding .6s var(--ease); }
.row-title { transition: color .4s; }
@media (hover: hover) and (min-width: 768px) {
  .row:hover { padding-left: 24px; }
  .row:hover .row-title { font-style: italic; color: var(--hl, var(--color-primary)); }
}
.hover-img { position: fixed; left: 0; top: 0; z-index: 45; width: 300px; height: 380px; border-radius: var(--radius-box); pointer-events: none; opacity: 0; transition: opacity .35s; background: center / cover; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); will-change: transform; }
.hover-img.on { opacity: 1; }

/* ── История вбок: вертикальная прокрутка двигает ленту ── */
.panel .media img, .panel .media video { width: 100%; height: 100%; object-fit: cover; }
.hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(10px); } }
@media (min-width: 1024px) {
  .story { height: var(--story-h); }
  .story-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .track { display: flex; gap: 4vw; padding: 0 var(--gutter); align-items: center; will-change: transform; }
  .panel { flex: 0 0 auto; width: min(78vw, 1100px); height: 70vh; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4vw; align-items: center; }
  .panel.intro { width: min(60vw, 820px); display: block; height: auto; }
  .panel .media { height: 100%; }
}
@media (max-width: 1023px) {
  .track { display: grid; gap: 64px; padding: 0 var(--gutter); }
  .panel .media { aspect-ratio: 4 / 3; margin-top: 24px; }
}
.story-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6vh; height: 2px; background: color-mix(in oklab, currentColor 15%, transparent); }
.story-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--hl, var(--color-primary)); }

/* ── Мозаика ── */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 15vw, 240px); grid-auto-flow: dense; gap: 16px; }
.mosaic figure { position: relative; margin: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .mosaic figure:hover img { transform: scale(1.05); transition: transform 1.4s var(--ease); } }
@media (max-width: 767px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .mosaic > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .mosaic > :first-child { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* ── Бегущая строка ── */
.marquee { overflow: hidden; }
.marquee .t { display: flex; gap: 60px; width: max-content; white-space: nowrap; animation: marquee 34s linear infinite; }
/* Контур берёт цвет текста секции: currentColor здесь прозрачный, и слово пропало бы */
.marquee .t span:nth-child(even) { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--color-base-content); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Лента фото: две строки навстречу, скорость растёт от прокрутки ── */
.strip-t { will-change: transform; }

/* ── Раскрытие: кадр растёт из рамки на весь экран ── */
.reel { height: 230vh; }
.reel-media { will-change: clip-path; }
.reel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.reel-media img, .reel-media video { width: 100%; height: 100%; object-fit: cover; }
.reel-text { opacity: 0; }

/* ── Карта: Яндекс Карты в цветах сайта, своя метка ── */
.map-frame iframe { width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(1) contrast(1.05) brightness(1.02); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -9px); pointer-events: none; text-align: center; }
.map-pin i { display: block; width: 18px; height: 18px; margin: 0 auto; border-radius: 50%; background: var(--color-primary); border: 3px solid #fff; box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-primary) 60%, transparent); animation: pin 2s infinite; }
@keyframes pin { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-primary) 55%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }

/* ── Большой призыв: линия дорисовывается, стрелка уезжает ── */
.cta-line { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.cta-link:hover .cta-line { transform: scaleX(1); }
.cta-arrow { transition: transform .7s var(--ease); }
.cta-link:hover .cta-arrow { transform: translateX(.25em); }

/* ═══ Эффекты-кандидаты (fx.js), включаются флажками ═══ */

/* Вступление «затвор» */
.shutter { position: fixed; inset: 0; z-index: 400; background: var(--color-neutral); color: var(--color-neutral-content); transition: opacity .6s; }
.shutter.done { opacity: 0; pointer-events: none; }
.shutter-stack { position: absolute; inset: 0; clip-path: inset(29% 36% round 10px); transition: clip-path 1.2s var(--ease); }
.shutter-stack > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.shutter-stack > .on { opacity: 1; }
.shutter.open .shutter-stack { clip-path: inset(0 0 0 0 round 0px); }
.shutter-meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; transition: opacity .5s; }
.shutter.open .shutter-meta { opacity: 0; }
@media (max-width: 767px) { .shutter-stack { clip-path: inset(27% 18% round 10px); } }

/* Фон перетекает между секциями */
html.morph body { transition: background-color 1s var(--ease), color 1s var(--ease); }
html.morph #app > section:not(.on-photo), html.morph #app > footer { background-color: transparent !important; color: inherit !important; }

/* Свой курсор */
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor .collapse-title { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 600; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cursor.off { opacity: 0; }
/* Без mix-blend-mode: смешивание с тем, что под курсором, браузер пересчитывал на каждом кадре.
   Белый с тонкой тёмной обводкой виден и на светлом, и на тёмном */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); transition: opacity .3s; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.12); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s; }
.cursor-ring b { font: 600 12px/1 var(--font-sans); letter-spacing: .04em; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.cursor.link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,.22); border-color: #fff; }
.cursor.link .cursor-dot, .cursor.big .cursor-dot { opacity: 0; }
.cursor.big .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--color-primary); border-color: transparent; }
.cursor.big .cursor-ring b { opacity: 1; color: var(--color-primary-content); }

/* Глубина: фото плавают в рамках, наклон от скорости */
.fx-depth .mask.in > img, .fx-depth .mask.in > video { transform: translateY(var(--py, 0px)) scale(1.12); }
.fx-depth .mask.settled > img, .fx-depth .mask.settled > video { transition: none; }
/* Наклон от скорости пишет fx.js прямо в style контейнеров галерей и лент — не через переменную на <html>,
   от которой пересчитывались стили всей страницы */

/* Просмотр фото на весь экран */
.lb { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; background: rgba(8, 8, 8, .94); color: #fff; opacity: 0; pointer-events: none; transition: opacity .4s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: 18px; opacity: 0; transform: scale(.95); transition: opacity .5s, transform .7s var(--ease); }
.lb img.in { opacity: 1; transform: none; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); font-size: 20px; color: #fff; background: rgba(255,255,255,.06); }
.lb button:hover { background: rgba(255,255,255,.18); }
.lb-x { top: 20px; right: 20px; } .lb-p { left: 20px; top: 50%; translate: 0 -50%; } .lb-n { right: 20px; top: 50%; translate: 0 -50%; }
.lb-c { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; font: 600 13px/1 var(--font-sans); letter-spacing: .2em; opacity: .7; }
/* Лупа — только когда нет своего курсора, иначе их видно два */
html:not(.has-cursor) [data-full] { cursor: zoom-in; }
html.has-cursor .lb, html.has-cursor .lb * { cursor: none; }

/* Ч/б портфолио: цвет под курсором */
.fx-mono .graded.mono-able img { filter: grayscale(1) contrast(1.08) brightness(.96); transition: filter .9s var(--ease); }
.fx-mono .graded.mono-able:hover img { filter: none; }

/* Слова из размытия */
.fx-blur .split .w > span { filter: blur(10px); opacity: 0; transition: transform 1.1s var(--ease), filter 1.2s var(--ease), opacity 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.fx-blur .split.in .w > span { filter: none; opacity: 1; }

/* Круг дыхания: вдох 4 с, выдох 6 с */
.breath { width: 150px; height: 150px; display: grid; place-items: center; }
.breath-c { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: radial-gradient(circle, rgba(255,255,255,.2), rgba(255,255,255,.03) 70%); animation: breathe 10s ease-in-out infinite; }
.breath b { grid-area: 1 / 1; position: relative; font: 600 12px/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; }
.breath .b-in { animation: breath-in 10s infinite; }
.breath .b-out { opacity: 0; animation: breath-out 10s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.6); } 40% { transform: scale(1); } }
@keyframes breath-in { 0%, 37% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes breath-out { 0%, 37% { opacity: 0; } 42%, 95% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 767px) { .breath { width: 104px; height: 104px; } }

/* Обводка или подчёркивание от руки у выделенного слова первого экрана — рисуется после заставки */
.scribbled { position: relative; display: inline-block; }
.scribble { position: absolute; left: -3%; width: 106%; bottom: -.16em; height: .3em; overflow: visible; pointer-events: none; }
.scribble-circle { left: -9%; width: 118%; top: -14%; bottom: auto; height: 132%; }
.scribble path { fill: none; stroke: var(--invert-hl, var(--color-primary)); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) 1.2s; }
body.ready .scribble path { stroke-dashoffset: 0; }
html.static .scribble path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .scribble path { stroke-dashoffset: 0; } }

/* Ссылки шапки: линия дорисовывается при наведении */
.site-header nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease), opacity .3s; }
.site-header nav a:hover { background-size: 100% 1px; }

/* ═══ Раскладки ═══ */
/* Первый экран не на фото (пополам, по центру, коллаж): шапка сразу на фоне страницы, обводка — цветом акцента */
.hero-plain .site-header { background: color-mix(in oklab, var(--color-base-100) 94%, transparent); color: var(--color-base-content); box-shadow: 0 1px 0 color-mix(in oklab, var(--color-base-content) 12%, transparent); }
.hero-plain .scribble path { stroke: var(--hl, var(--color-primary)); }
/* Плёнка: без полосы прокрутки, тянется мышью */
.film-track { scrollbar-width: none; cursor: grab; }
.film-track::-webkit-scrollbar { display: none; }
.film-track:active { cursor: grabbing; }
.film-track img { -webkit-user-drag: none; user-select: none; }
/* Отзывы бегущей лентой: на наведении останавливаются, чтобы дочитать */
.rev-t { animation: marquee 60s linear infinite; will-change: transform; }
.rev-marquee:hover .rev-t { animation-play-state: paused; }

/* ═══ Магазин ═══ */
/* Варианты товара (вес, количество) — «таблетки»; выбранная залита цветом текста */
.opt { display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem .85rem; border: 1px solid color-mix(in oklab, currentColor 24%, transparent); border-radius: var(--radius-selector); font-size: .875rem; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s; }
button.opt:hover { border-color: currentColor; }
.opt[aria-pressed="true"] { background: var(--color-base-content); color: var(--color-base-100); border-color: transparent; }
.tone-invert .opt[aria-pressed="true"] { background: var(--color-neutral-content); color: var(--color-neutral); }
.opt-static { opacity: .7; }
/* Каталог: категории капсулами (число товаров мелко), на широком экране у «категорий слева» — списком */
.shop-cats { scrollbar-width: none; }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cat { display: inline-flex; flex: none; align-items: baseline; gap: .4rem; min-height: 2.5rem; padding: .45rem 1.05rem; border: 1px solid color-mix(in oklab, currentColor 20%, transparent); border-radius: 999px; font-weight: 600; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.shop-cat span { font-size: .75rem; font-weight: 500; opacity: .55; }
.shop-cat:hover { border-color: currentColor; }
.shop-cat[aria-pressed="true"] { background: var(--color-base-content); color: var(--color-base-100); border-color: transparent; }
.tone-invert .shop-cat[aria-pressed="true"] { background: var(--color-neutral-content); color: var(--color-neutral); }
.shop-tools .shop-search { flex: 1 1 auto; min-width: 0; }
@media (min-width: 40rem) { .shop-tools .shop-search { flex: none; width: 15rem; } }
.shop-search input::-webkit-search-cancel-button { cursor: pointer; }
@media (min-width: 64rem) {
  .shop-cats-v { flex-direction: column; gap: 0; overflow: visible; border-top: 1px solid color-mix(in oklab, currentColor 12%, transparent); }
  .shop-cats-v .shop-cat { justify-content: space-between; min-height: 3rem; padding: .7rem .25rem; border: 0; border-bottom: 1px solid color-mix(in oklab, currentColor 12%, transparent); border-radius: 0; font-weight: 500; }
  .shop-cats-v .shop-cat[aria-pressed="true"] { background: none; color: var(--color-primary); font-weight: 700; }
  .shop-cats-v .shop-cat:hover { color: var(--color-primary); }
}
/* Кнопка корзины внизу: выезжает с первым товаром; на телефоне заменяет кнопку записи */
.cart-bar-wrap { transform: translateY(160%); transition: transform .6s var(--ease); }
body.has-cart .cart-bar-wrap { transform: none; }
body.has-cart .sticky-cta, body.cart-open .cart-bar-wrap { transform: translateY(160%); }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.1); } }
/* Панель корзины справа и окно товара. Слой ниже своего курсора (600), чтобы курсор оставался виден */
.cart, .sheet { position: fixed; inset: 0; z-index: 470; pointer-events: none; }
.cart.open, .sheet.open { pointer-events: auto; }
.cart-shade { position: absolute; inset: 0; background: rgb(0 0 0 / .5); opacity: 0; transition: opacity .45s; }
.open > .cart-shade { opacity: 1; }
/* Закрытые — уезжают вместе с тенью и прячутся от клавиатуры (visibility — после того, как доедут) */
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; visibility: hidden; transform: translateX(calc(100% + 120px)); transition: transform .6s var(--ease), visibility 0s .6s; box-shadow: -30px 0 80px -30px rgb(0 0 0 / .45); }
.cart.open .cart-panel { visibility: visible; transform: none; transition: transform .6s var(--ease); }
.sheet-box { position: absolute; left: 50%; top: 50%; width: min(1040px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-box); translate: -50% -50%; visibility: hidden; opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .4s, transform .6s var(--ease), visibility 0s .6s; }
.sheet.open .sheet-box { visibility: visible; opacity: 1; transform: none; transition: opacity .4s, transform .6s var(--ease); }
@media (max-width: 767px) {
  .sheet-box { inset: auto 0 0 0; width: 100%; max-height: 92dvh; translate: none; opacity: 1; transform: translateY(100%); border-radius: var(--radius-box) var(--radius-box) 0 0; }
  .sheet.open .sheet-box { transform: none; }
}
html.cart-lock { overflow: hidden; scrollbar-gutter: stable; }
/* Фото, улетающее в корзину */
.fly { position: fixed; z-index: 490; pointer-events: none; }
.fly i { position: absolute; left: 0; top: 0; display: block; background: center / cover; box-shadow: 0 24px 60px -12px rgb(0 0 0 / .5); }
/* Демо: заказ у владельца в Telegram — цвета чата, а не сайта */
.tg { overflow: hidden; border-radius: 18px; background: linear-gradient(160deg, #cbd9b5, #a8bd96); color: #111; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.tg-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; line-height: 1.25; }
.tg-top small { display: block; color: #8a8f94; font-size: 12px; }
.tg-ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: var(--color-primary-content); font-weight: 700; }
.tg-chat { padding: 14px 14px 12px; }
.tg-msg { max-width: 94%; padding: 9px 12px 6px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / .12); }
.tg-msg time { display: block; margin-top: 2px; text-align: right; font-size: 11px; color: #8a8f94; }
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 94%; margin-top: 4px; }
.tg-kb span { padding: 8px; border-radius: 10px; background: rgb(56 76 46 / .38); color: #fff; text-align: center; font-size: 13px; font-weight: 600; }
/* Предпросмотр в панели клиента: выбранный блок коротко подсвечивается */
.block-flash { animation: block-flash 1.6s var(--ease); }
@keyframes block-flash { 0%, 55% { box-shadow: inset 0 0 0 3px var(--color-primary); } 100% { box-shadow: inset 0 0 0 3px transparent; } }
/* Над полями и окнами свой курсор прячется — там нужен обычный, а не никакой */
html.has-cursor input, html.has-cursor select, html.has-cursor textarea, html.has-cursor .modal, html.has-cursor .modal * { cursor: auto; }

/* Кнопка записи внизу экрана на телефоне */
.sticky-cta { transform: translateY(160%); transition: transform .5s var(--ease); }
.sticky-cta.on { transform: none; }

/* Без движения: «уменьшить движение» в системе или ?static для скриншотов */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split .w > span, .reveal, .mask, .mask > img, .mask > video, .hero-in { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  /* «Слова из размытия» (fx-blur) — без движения слова сразу резкие */
  .split .w > span { filter: none !important; }
  [data-manifest] .ww, .reel-text { opacity: 1 !important; }
  .reel { height: auto !important; } .reel > div { position: relative !important; } .reel-media { clip-path: none !important; }
}
/* Без движения история идёт обычной лентой сверху вниз, «раскрытие» — просто большим кадром */
@media (prefers-reduced-motion: reduce) {
  .story { height: auto !important; padding: 6rem 0; }
  .story-pin { position: static !important; height: auto !important; display: block !important; }
  .track { display: grid !important; gap: 64px; transform: none !important; }
  .panel, .panel.intro { width: auto !important; height: auto !important; }
  .panel .media { height: auto !important; aspect-ratio: 16 / 9; }
  .story-progress { display: none !important; }
}
html.static .story { height: auto !important; padding: 6rem 0; }
html.static .story-pin { position: static !important; height: auto !important; display: block !important; }
html.static .track { display: grid !important; gap: 64px; transform: none !important; }
html.static .panel, html.static .panel.intro { width: auto !important; height: auto !important; }
html.static .panel .media { height: auto !important; aspect-ratio: 16 / 9; }
html.static .story-progress { display: none !important; }
html.static .reel > div { height: 760px !important; }
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
html.static .split .w > span, html.static .reveal, html.static .mask, html.static .mask > img, html.static .mask > video, html.static .hero-in { transform: none !important; opacity: 1 !important; clip-path: none !important; }
html.static .split .w > span { filter: none !important; }
html.static [data-manifest] .ww, html.static .reel-text { opacity: 1 !important; }
html.static .reel { height: auto !important; } html.static .reel > div { position: relative !important; } html.static .reel-media { clip-path: none !important; }

/* Мессенджеры в углу: над кнопкой записи и корзиной на телефоне; список выезжает над кнопкой */
.msg-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
@media (max-width: 639px) { .msg-float { bottom: 5.25rem; } }
@media (min-width: 640px) { body.has-cart .msg-float { bottom: 5.5rem; } }
.msg-list { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
.msg-float.open .msg-list { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
.msg-item { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem .6rem .75rem; border-radius: 999px; background: var(--color-base-100); color: var(--color-base-content); box-shadow: 0 12px 30px -12px rgb(0 0 0 / .4); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.msg-telegram svg { color: #229ed9; } .msg-whatsapp svg { color: #25d366; } .msg-vk svg { color: #0077ff; } .msg-max svg { color: #7a5af8; }
.msg-card.msg-telegram > span:first-child { color: #229ed9; } .msg-card.msg-whatsapp > span:first-child { color: #25d366; }
.msg-card.msg-vk > span:first-child { color: #0077ff; } .msg-card.msg-max > span:first-child { color: #7a5af8; }
/* Чат на сайте: кнопка в углу (на телефоне — над кнопкой записи и корзиной), окно над ней; на телефоне — на весь экран */
.chat-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 46; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
@media (max-width: 639px) { .chat-float { bottom: 5.25rem; } }
@media (min-width: 640px) { body.has-cart .chat-float { bottom: 5.5rem; } }
/* В демо справа внизу — панель «тема, стиль, блоки»; на опубликованном сайте её нет */
@media (min-width: 640px) { body:has(#demoBar) :is(.chat-float, .msg-float) { bottom: 4rem; } }
.chat-toggle { position: relative; gap: .55rem; }
.chat-badge { position: absolute; top: -.2rem; right: -.2rem; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--color-error); color: var(--color-error-content); font-size: .72rem; font-weight: 700; line-height: 1.35rem; text-align: center; box-shadow: 0 0 0 2px var(--color-base-100); }
.chat-box { display: flex; flex-direction: column; width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100dvh - 8rem)); overflow: hidden; border-radius: calc(var(--radius-box) + .25rem); box-shadow: 0 28px 70px -18px rgb(0 0 0 / .45), 0 0 0 1px color-mix(in oklab, var(--color-base-content) 8%, transparent); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .3s, transform .45s var(--ease), visibility 0s .45s; }
.chat-float.open .chat-box { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .45s var(--ease); }
@media (max-width: 639px) {
  .chat-float.open { z-index: 460; }
  .chat-float.open .chat-box { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
  .chat-float.open .chat-toggle { visibility: hidden; }
}
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .85rem .75rem .85rem 1rem; }
.chat-ava { display: grid; flex: none; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: color-mix(in oklab, currentColor 18%, transparent); font-size: 1.15rem; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: .45rem; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; background: var(--color-base-200); }
.chat-msg { max-width: 84%; padding: .55rem .85rem .4rem; border-radius: 1.15rem; font-size: .95rem; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg time { display: block; margin-top: .15rem; font-size: .68rem; opacity: .55; text-align: right; }
.chat-msg.owner { align-self: flex-start; background: var(--color-base-100); border-bottom-left-radius: .35rem; }
.chat-msg.visitor { align-self: flex-end; background: var(--color-primary); color: var(--color-primary-content); border-bottom-right-radius: .35rem; }
.chat-msg.pending { opacity: .55; }
.chat-card { display: grid; gap: .5rem; align-self: stretch; margin-top: .3rem; padding: .85rem; border-radius: 1rem; background: var(--color-base-100); font-size: .85rem; }
.chat-card .btn { justify-self: start; }
.chat-note { align-self: center; max-width: 90%; font-size: .78rem; opacity: .6; text-align: center; }
.chat-form { padding: .7rem; border-top: 1px solid color-mix(in oklab, var(--color-base-content) 9%, transparent); }
.chat-consent { display: flex; align-items: flex-start; gap: .5rem; margin: 0 .2rem .55rem; font-size: .72rem; line-height: 1.35; opacity: .75; }
.chat-input { flex: 1; min-height: 2.75rem; max-height: 8rem; resize: none; line-height: 1.4; }
.chat-input:focus, .chat-input:focus-visible { outline: 2px solid color-mix(in oklab, var(--color-primary) 40%, transparent); outline-offset: 0; border-color: var(--color-primary); }
.chat-send { flex: none; }

/* Онлайн-запись: дни капсулами (день недели, число, месяц), время — кнопками; занятое — зачёркнуто */
.bk-days { scrollbar-width: none; }
.bk-day { flex: none; display: grid; justify-items: center; gap: .1rem; min-width: 3.6rem; padding: .5rem .4rem; border: 1px solid color-mix(in oklab, currentColor 18%, transparent); border-radius: var(--radius-field); font-size: .75rem; line-height: 1.1; text-transform: lowercase; transition: background-color .2s, color .2s, border-color .2s; }
.bk-day b { font-size: 1.25rem; font-weight: 700; }
.bk-day span { opacity: .6; }
.bk-time { min-height: 2.5rem; border: 1px solid color-mix(in oklab, currentColor 18%, transparent); border-radius: var(--radius-field); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, border-color .2s; }
.bk-day:hover, .bk-time:not([disabled]):hover { border-color: currentColor; }
.bk-day[aria-pressed="true"], .bk-time[aria-pressed="true"] { background: var(--color-primary); color: var(--color-primary-content); border-color: transparent; }
.bk-day[aria-pressed="true"] span { opacity: .85; }
.bk-time[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Сравнение тарифов: первая колонка стоит при прокрутке вбок — фон у неё как у раздела */
.cmp-wrap, .cmp-scroll, .cmp, .cmp thead, .cmp tbody, .cmp tfoot, .cmp tr { background: inherit; }
.cmp-first { position: sticky; left: 0; z-index: 1; background: inherit; min-width: 9rem; }
.cmp-hot { background: color-mix(in oklab, var(--color-primary) 8%, transparent); }
thead .cmp-hot { border-radius: var(--radius-box) var(--radius-box) 0 0; }

/* Шапка-капсула: фон у самой капсулы, сама шапка прозрачная; читается поверх фото и поверх страницы */
.site-header.nav-pill, .site-header.nav-pill.solid, .hero-plain .site-header.nav-pill { background: transparent; box-shadow: none; color: var(--color-base-content); }
/* Внутри капсулы кнопки — тоже капсулы: острые углы сайта (corners: sharp) давали прямоугольник «Заказать» в скруглённом
   контуре, а корзина и меню — квадраты */
.nav-pill .pill .btn { border-radius: 999px; }
.nav-pill .pill { background: color-mix(in oklab, var(--color-base-100) 92%, transparent); box-shadow: 0 1px 0 color-mix(in oklab, var(--color-base-content) 10%, transparent), 0 14px 40px -18px rgb(0 0 0 / .35); }

/* Шапка «Меню»: разделы крупно на весь экран, выезжают по одному */
.nav-overlay { position: fixed; inset: 0; z-index: 35; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.menu-open .nav-overlay { opacity: 1; visibility: visible; }
.menu-open .site-header { color: var(--color-base-content); background: transparent; box-shadow: none; transform: none; }
.nav-big { display: block; opacity: 0; transform: translateY(1.2rem); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.menu-open .nav-big { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i, 0) * .05s); }
a.nav-big:hover { color: var(--hl, var(--color-primary)); }
.menu-icon { display: inline-grid; gap: 6px; }
.menu-icon i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .menu-icon i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-icon i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Темы крупным списком: название окрашивается при наведении */
.big-row:hover h3 { color: var(--hl, var(--color-primary)); }

/* До и после: «до» поверх «после», видна левая часть до линии; ползунок прозрачный поверх всего кадра */
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / .35); pointer-events: none; z-index: 5; }
.ba-line i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #111; font-style: normal; font-size: 18px; box-shadow: 0 6px 20px rgb(0 0 0 / .3); }
.ba-range { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + * , .ba:focus-within .ba-line i { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Логотипы бегущей лентой: та же лента, что в подвале, но спокойнее и без обводки через один */
.logos-run .t { gap: 4.5rem; animation-duration: 40s; }
.logos-run .t span:nth-child(even) { font-style: normal; color: inherit; -webkit-text-stroke: 0; }
.logos-run:hover .t { animation-play-state: paused; }
