/* SNACKSY кино — общие стили: меню, фон-видео разделов, переходы.
   Мир: тёплый кинокадр, белый текст на затемнённом видео, акцент — фирменный красный snacksy.space. */
:root {
  --ink: #fff;
  --ink-soft: rgba(255, 247, 238, .82);
  --cocoa: #22110a;
  --scrim: 24, 12, 6;                 /* rgb тёмного какао для затемнений */
  --red: #ff3048;
  --red-deep: #e01f38;
  --font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --gutter-x: max(16px, env(safe-area-inset-left, 0px));
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 84px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--cocoa); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--cocoa); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---------- Переходы между страницами: короткое затемнение, меню стоит на месте ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sx-out .22s ease-in both; }
::view-transition-new(root) { animation: sx-in .38s var(--ease-out) both; }
@keyframes sx-out { to { opacity: 0; } }
@keyframes sx-in { from { opacity: 0; } }
.sx-nav { view-transition-name: sx-nav; }
/* Пролёт сквозь облака между «О SNACKSY» и «Продукцией» (js/page-flow.js): белая пелена над страницей, шапка поверх.
   Уходя, страница уводит свой ролик в облака и белеет; новая открывается из белого — чёрного кадра между вкладками нет */
html::after { content: ''; position: fixed; inset: 0; z-index: 45; background: #fff; opacity: 0; pointer-events: none; transition: opacity 1s ease; }
html.cloud-on::after { opacity: 1; }
html.cloud-late::after { transition-duration: .6s; }
html.cloud-arrive .loader { display: none; }
.sx-bg .cloud-clip { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.sx-page { transition: opacity 1.1s ease; }
.sx-page.cloud-hold { opacity: 0; }
::view-transition-group(sx-nav) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* фон-видео без системных кнопок: iPhone в энергосбережении рисует поверх остановленного видео серый «плей» */
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

/* ---------- Меню: жидкое стекло, как шапка snacksy.space ---------- */
/* кромка жидкого стекла: светлый блик сверху-слева и тонкий снизу-справа — вся «стеклянность» без заливки и размытия */
:root { --glass-rim: inset 1.5px 1.5px 0 rgba(255, 255, 255, .6), inset -1px -1px 0 rgba(255, 255, 255, .18); }
:root { --ink-logo: #45191b; --ink-logo-strong: #522426;
  --nav-red: var(--red-deep);                      /* красные буквы — только на белой пилюле текущего раздела */
  --nav-ink: #fff; --nav-ink-shadow: 0 1px 8px rgba(0, 0, 0, .35);   /* остальные буквы шапки белые на всех вкладках (Миша 23.10) */
  --nav-white-shadow: inset 0 -1px 0 rgba(224, 31, 56, .14), 0 4px 14px rgba(0, 0, 0, .16);
  /* текущая вкладка светится, как на mixaaxim.space: белая кромка, белый ореол и красное свечение снизу (Миша 23.10) */
  --nav-active-glow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(255, 48, 72, .16),
    0 0 0 1px rgba(255, 255, 255, .35), 0 0 14px rgba(255, 255, 255, .55), 0 6px 22px rgba(255, 48, 72, .55);
  --nav-active-text-glow: 0 0 10px rgba(255, 48, 72, .35); }
/* блик на верхней половине пилюли — тот самый «sheen» с mixaaxim.space */
.sx-links a[aria-current="page"], .sx-drop a[aria-current="page"], .sx-sheet nav a[aria-current="page"] {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 240, 242, .92) 52%, rgba(255, 228, 232, .9) 100%); }
.sx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.sx-bar {
  pointer-events: auto;
  max-width: 1180px; height: 57px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 14px 10px 22px; border-radius: 999px;
  /* жидкое стекло — прозрачность максимум (Миша 23.10): ни заливки, ни размытия, только кромка и блик */
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  box-shadow: var(--glass-rim);
}
.sx-logo { display: block; flex: none; }
.sx-logo img { height: 26px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }   /* лого белое на всех вкладках */

.sx-links { position: relative; display: flex; align-items: center; gap: 4px; }
.sx-links a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; height: 35px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; text-decoration: none;
  color: var(--nav-ink); text-shadow: var(--nav-ink-shadow); transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
/* текущий раздел — белая пилюля, буквы красные (Миша 23.10: «красным на белом») */
.sx-links a[aria-current="page"] { color: var(--nav-red); text-shadow: var(--nav-active-text-glow); background-color: #fff; box-shadow: var(--nav-active-glow); }
.sx-links.hovering a[aria-current="page"] { color: var(--nav-ink); text-shadow: var(--nav-ink-shadow); background: transparent; box-shadow: none; }
.sx-links a:hover, .sx-links a:focus-visible { color: #fff; }
.sx-links a[aria-current="page"]:is(:hover, :focus-visible) { color: var(--nav-red); }
/* красная стеклянная таблетка под курсором */
.sx-pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 35px; width: 0; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 138, 152, .95) 0%, #ff3048 55%, #e01f38 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(120, 0, 20, .25), 0 6px 18px rgba(255, 48, 72, .35);
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s ease;
}
.sx-pill.on { opacity: 1; }

/* выпадающее меню «Продукции» — то же жидкое стекло, что и шапка */
.sx-bar { position: relative; }
.sx-drop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 2;
  display: grid; gap: 2px; min-width: 190px; padding: 8px; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .3);
  /* единственное стекло с лёгкой тонировкой: меню выпадает поверх текста страницы, без неё буквы смешиваются;
     размыть фон нельзя — у шапки view-transition-name, внутри неё backdrop-filter не видит страницу */
  background: rgba(20, 10, 10, .2);                    /* прозрачность 80% (Миша 23.10) */
  box-shadow: var(--glass-rim);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(.97); transform-origin: top center;
  transition: opacity .22s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
}
.sx-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* мостик для курсора */
.sx-drop.open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .22s ease, transform .3s var(--ease-out); }
.sx-drop a {
  display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 14px;
  font-size: 14px; font-weight: 800; letter-spacing: .03em; text-decoration: none; color: var(--nav-ink); text-shadow: var(--nav-ink-shadow);
  transition: background-color .2s ease, color .2s ease;
}
.sx-drop a:hover, .sx-drop a:focus-visible { color: #fff; background: linear-gradient(180deg, rgba(255, 138, 152, .95) 0%, #ff3048 55%, #e01f38 100%); }
.sx-drop a[aria-current="page"], .sx-drop a[aria-current="page"]:is(:hover, :focus-visible) { color: var(--nav-red); text-shadow: var(--nav-active-text-glow); background-color: #fff; box-shadow: var(--nav-active-glow); }
/* подразделы «Продукции» в мобильном меню свёрнуты, раскрываются касанием (js/nav.js) */
.sx-sheet .sx-sub { display: grid; gap: 2px; margin: 0 0 0 4px; padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, .25);
  max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: max-height .35s var(--ease-out), opacity .25s ease, margin .35s var(--ease-out), visibility 0s linear .35s; }
.sx-sheet .sx-sub.open { max-height: 12em; opacity: 1; visibility: visible; margin: 0 0 8px 4px;
  transition: max-height .35s var(--ease-out), opacity .25s ease, margin .35s var(--ease-out); }
.sx-sheet nav a[data-sub]::after { content: ''; display: inline-block; width: .3em; height: .3em; margin: 0 0 .2em .32em; vertical-align: middle;
  border-right: .08em solid currentColor; border-bottom: .08em solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.sx-sheet nav a[data-sub][aria-expanded="true"]::after { transform: translateY(.14em) rotate(-135deg); }
.sx-sheet .sx-sub a { font-size: clamp(20px, 6vw, 28px) !important; box-shadow: none; padding: .15em .55em; }
@media (max-width: 720px) { .sx-drop { display: none; } }
@media (prefers-reduced-motion: reduce) { .sx-drop { transition: none; } }

.sx-burger {
  display: none; width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--nav-red); background: #fff; box-shadow: var(--nav-white-shadow);
  place-items: center;
}
.sx-burger svg { width: 22px; height: 22px; }

/* Мобильное меню: полный экран поверх видео */
.sx-sheet {
  position: fixed; inset: 0; z-index: 60;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 32px) max(24px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: rgba(var(--scrim), .86);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
}
.sx-sheet.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.sx-sheet nav { display: flex; flex-direction: column; gap: 10px; }
.sx-sheet nav a {
  font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25;
  text-decoration: none; color: var(--ink);
  /* все пункты — кнопки одного размера во всю ширину (Миша 24.10: «кнопки одного размера»): стеклянная кромка, текущий — белый */
  display: flex; align-items: center; justify-content: space-between; align-self: stretch;
  padding: .22em .55em; border-radius: 999px; box-shadow: var(--glass-rim), inset 0 0 0 1px rgba(255, 255, 255, .22);
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s ease, color .2s, background-color .2s;
}
.sx-sheet.open nav a { transform: none; opacity: 1; }
.sx-sheet nav a[aria-current="page"] { color: var(--nav-red); text-shadow: var(--nav-active-text-glow); background-color: #fff; box-shadow: var(--nav-active-glow); }
.sx-sheet .sx-sheet-foot { display: grid; gap: 6px; color: #fff; font-size: 16px; font-weight: 600; }
.sx-sheet .sx-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

@media (max-width: 720px) {
  .sx-links { display: none; }
  .sx-burger { display: grid; }
  .sx-bar { height: 52px; padding: 6px 6px 6px 18px; }
  .sx-logo img { height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-pill, .sx-sheet, .sx-sheet nav a { transition: none; }
}

/* ---------- Фон-видео раздела ---------- */
.sx-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--cocoa); }
.sx-bg video, .sx-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.sx-page { position: relative; z-index: 1; }

/* ---------- Планета (главная и «Контакты»): телефон стоя — видео вписано по Земле (место ставит js/planet-fit.js),
   края космоса мягко уходят в чёрный ---------- */
:is(.stage, .sx-bg) video.fit { inset: auto; max-width: none; transform-origin: 51% 50%; --fade: 8%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); }
/* Небо за планетой — настоящая карта NASA SVS «Deep Star Maps 2020» (Миша 23.10: «как в реальности»): кусок у центра
   Галактики (Стрелец/Скорпион), Млечный Путь по диагонали за Землёй; на телефоне стоя — свой вертикальный кадр.
   Видео планеты сверху в режиме screen: чёрный космос ролика прозрачен. Под Землёй звёзд нет — круглая дыра по месту
   планеты (--px/--py/--pr ставит js/planet-fit.js). Звёзды не мерцают: в космосе нет атмосферы. */
.sky-nasa { position: absolute; inset: 0; pointer-events: none; background: #000 url(../img/sky-nasa.webp) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(circle at var(--px, 50%) var(--py, 50%), transparent calc(var(--pr, 0px) * .99), #000 calc(var(--pr, 0px) * 1.05));
          mask-image: radial-gradient(circle at var(--px, 50%) var(--py, 50%), transparent calc(var(--pr, 0px) * .99), #000 calc(var(--pr, 0px) * 1.05)); }
@media (max-aspect-ratio: 11/10) { .sky-nasa { background-image: url(../img/sky-nasa-m.webp); } }
.sky-planet { mix-blend-mode: screen; }
.planet-baked .sky-nasa { display: none; }
/* «Живые картинки» вместо видео на сенсорных экранах (js/still.js): кадр ролика медленно наплывает, как камера в кино */
.sx-still { position: absolute; inset: 0; background: #000 center / cover no-repeat; transform-origin: 50% 45%; will-change: transform; }
.sx-still.layer { opacity: 0; transition: opacity .8s ease; }
.sx-still.layer.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .sx-still { animation: sx-kenburns 28s ease-in-out infinite alternate; }
  .sx-still.still-planet { animation: sx-breathe 10s ease-in-out infinite alternate; }   /* планета: свечение дышит */
}
@keyframes sx-kenburns { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.15) translate3d(-2.5%, -1.5%, 0); } }
@keyframes sx-breathe { from { transform: scale(1); filter: brightness(1); } to { transform: scale(1.04); filter: brightness(1.12); } }
/* Телефон и планшет (картинки вместо роликов): КАЖДЫЙ переход — один пролёт, где ничего не стоит на месте (js/page-flow.js
   camOut/camIn; Миша 27.10: «горы тупо на месте статично, а потом резко планета» — стоп-кадры облаков-картинок убраны;
   «везде плавно, без рывков»). «Камера» — сам фон (.sx-bg, на главной .stage): уходя, он разгоняется в положение --cloud-cam
   (по умолчанию сад, город, долина уезжают вниз — взлёт в небо; на планете Земля растёт — нырок), из центра растёт белое
   свечение и к концу закрывает всё; страница меняется на чистом белом (белый рисуется сразу, без картинки — шва нет);
   придя, белое расходится дальше и тает, а фон уже едет из того же положения на место. Текст тает при уходе
   и проявляется после белого */
html::before { content: ''; position: fixed; inset: 0; z-index: 46; pointer-events: none; opacity: 0; transform: scale(.5);
  background: radial-gradient(circle, #fff 0 34%, rgba(255, 255, 255, .75) 52%, rgba(255, 255, 255, 0) 72%); }
html.white-on::before { opacity: 1; transform: scale(3.4);
  transition: opacity 1.4s cubic-bezier(.45, 0, .55, 1), transform 1.7s cubic-bezier(.4, 0, .6, 1); }
html.white-off::before { opacity: 0; transform: scale(6);
  transition: opacity 1.4s cubic-bezier(.3, 0, .3, 1), transform 1.6s cubic-bezier(.2, .5, .4, 1); }
.touch-still :is(.sx-bg, .stage) { transition: transform 3.2s cubic-bezier(.2, .55, .35, 1); }
.touch-still.cloud-leave :is(.sx-bg, .stage) { transition: transform 1.9s cubic-bezier(.45, 0, .8, .45); }
.touch-still.cam-off :is(.sx-bg, .stage) { transform: var(--cloud-cam, translateY(12%) scale(1.3)); }
.touch-still.cam-snap :is(.sx-bg, .stage), .touch-still.cam-snap .stage .layer { transition: none !important; }   /* смена сцены под белым */
.touch-still.cam-off :is(.sx-page, .about-panel, .sat) { opacity: 0; }
.touch-still.cloud-leave :is(.sx-page, .about-panel, .sat) { transition-duration: .5s; }
.touch-still.trip-in:not(.cloud-leave) :is(.sx-page, .about-panel, .sat) { transition-delay: 1s; }
html.trip-in .loader { display: none; }
@media (prefers-reduced-motion: reduce) { .touch-still.cam-off :is(.sx-bg, .stage) { transform: none; } }   /* остаётся только белое */
.planet-baked .sky-planet { mix-blend-mode: normal; }
/* «Контакты»: тот же космос, что на главной — небо NASA и виньетка; внизу лёгкая тень под текст */
.planet-bg { background: #000; }
.sx-section .planet-bg::after {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .35) 100%),
              linear-gradient(0deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 38%);
}

/* ---------- Раздел-заставка (О SNACKSY, Шоколад, Сухофрукты, Пасты, Контакты) ---------- */
.sx-section .sx-bg::after {
  background:
    linear-gradient(0deg, rgba(var(--scrim), .78) 0%, rgba(var(--scrim), .35) 38%, rgba(var(--scrim), 0) 62%),
    linear-gradient(180deg, rgba(var(--scrim), .35) 0%, rgba(var(--scrim), 0) 18%);
}
.sx-hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + clamp(40px, 9vh, 96px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.sx-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(24px, 5vw, 80px); }
.sx-hero h1 {
  /* заголовки с сальто и красным импульсом — Unbounded (Миша 23.10); он шире Manrope, поэтому кегль меньше и трекинг мягче */
  font-family: 'Unbounded', var(--font); font-size: clamp(38px, 7vw, 104px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
  text-wrap: balance; text-shadow: 0 4px 40px rgba(0, 0, 0, .25);
}
.sx-hero p {
  margin-top: clamp(16px, 2.4vh, 28px); max-width: 34em;
  /* мелкий текст на всех вкладках — крупнее, белый, жирнее (Миша 23.10) */
  font-size: clamp(18px, 1.55vw, 23px); font-weight: 700; line-height: 1.45; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 14px rgba(0, 0, 0, .45);
}
.sx-hero p strong { color: #fff; font-weight: 800; }
.sx-actions { margin-top: clamp(24px, 3.6vh, 40px); display: flex; flex-wrap: wrap; gap: 12px; }

.sx-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px;
  font: 800 15px/1 var(--font); letter-spacing: .01em; text-decoration: none; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #ff4a5f, var(--red-deep));
  box-shadow: 0 10px 28px rgba(255, 48, 72, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.sx-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 48, 72, .45), inset 0 1px 0 rgba(255, 255, 255, .28); }
.sx-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.sx-btn:hover svg { transform: translateX(3px); }
.sx-btn.ghost {
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.sx-btn.ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }

.sx-portrait { margin: 0; width: clamp(150px, 17vw, 260px); }
.sx-portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.sx-portrait figcaption { margin-top: 12px; font-weight: 800; font-size: 15px; }
.sx-portrait figcaption span { display: block; font-weight: 600; font-size: 15px; color: #fff; margin-top: 2px; }

.sx-contact-list { margin-top: clamp(28px, 4.5vh, 48px); display: grid; gap: 6px; }
.sx-contact-list a { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.01em; text-decoration: none; width: fit-content; }
.sx-contact-list a:hover { color: var(--red); }
/* телефон: касание раскрывает выбор — WhatsApp · Telegram · Позвонить (Миша 27.10); стекло — только кромка, как кнопки меню */
.sx-phone::after { content: ''; display: inline-block; width: .32em; height: .32em; margin: 0 0 .22em .4em; vertical-align: middle;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.sx-phone[aria-expanded="true"]::after { transform: translateY(.16em) rotate(-135deg); }
.sx-pick { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px; margin: -4px;
  max-height: 0; opacity: 0; visibility: hidden; overflow: hidden; transform: translateY(-6px);
  transition: max-height .4s var(--ease-out), opacity .3s ease, transform .4s var(--ease-out), margin .4s var(--ease-out), visibility 0s .4s; }
.sx-pick.open { max-height: 9em; opacity: 1; visibility: visible; transform: none; margin: 8px -4px -4px; transition-delay: 0s; }
.sx-contact-list .sx-pick a { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 17px/1 var(--font); letter-spacing: 0; color: #fff; text-shadow: var(--nav-ink-shadow);
  box-shadow: var(--glass-rim), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.sx-contact-list .sx-pick a:hover { color: #fff; box-shadow: var(--glass-rim), inset 0 0 0 1px rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .sx-pick, .sx-phone::after { transition: none; } }
.sx-small { margin-top: 24px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }

@media (max-width: 760px) {
  .sx-hero-inner { grid-template-columns: 1fr; }
  .sx-portrait { width: 132px; order: -1; }
  .sx-btn { height: 50px; padding: 0 20px; }
}

/* ---------- О SNACKSY: слева Стелла во весь кадр в рамке из жидкого стекла (сквозь стекло виден Лондон), справа текст ---------- */
.sx-about {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 24px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(28px, 6vh, 64px) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.ab-grid {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 36em); justify-content: center; align-items: center; gap: clamp(32px, 6vw, 110px);
}
.ab-frame {
  position: relative; margin: 0; overflow: hidden;
  /* портрет 9:16 целиком, рамка на всю высоту экрана под шапкой */
  height: min(calc(100vh - var(--nav-h) - 24px - clamp(28px, 6vh, 64px)), 860px);
  height: min(calc(100svh - var(--nav-h) - 24px - clamp(28px, 6vh, 64px)), 860px);
  aspect-ratio: 11 / 16; border-radius: 28px;   /* шире, чтобы не резать фото (Миша 23.10) */
  border: 1px solid rgba(255, 255, 255, .38);
  background: transparent;                              /* стекло прозрачное — только кромка */
  box-shadow: var(--glass-rim);
}
/* Стелла по центру рамки с воздухом по бокам; в исходнике левый локоть обрезан краем кадра — этот край растворяем */
.ab-frame img { position: absolute; left: 50%; bottom: 0; height: 97%; width: auto; max-width: none; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%); mask-image: linear-gradient(90deg, transparent 0, #000 7%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

/* Блок «О SNACKSY» (Миша 23.10: «крупнее, везде белый, пожирнее»): весь текст белый, веса 600–800, шкала ~1.3;
   под колонкой — мягкое затемнение без краёв, чтобы белое читалось и на светлом тумане Лондона */
.ab-copy { position: relative; isolation: isolate; max-width: 36em; color: #fff; }
.ab-copy::before { content: ''; position: absolute; inset: -14% -18% -14% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(14, 8, 6, .5) 0%, rgba(14, 8, 6, .32) 55%, rgba(14, 8, 6, 0) 100%); }
/* подпись про основательницу — тот же Manrope, что весь блок (Миша 23.10: курсив «не подходит», «везде в одном стиле»);
   ступень шкалы между фактами и подзаголовком, имя жирнее */
.ab-kicker { font-weight: 600; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.25; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 14px rgba(0, 0, 0, .45); }
.ab-kicker b { font-weight: 800; }
.ab-copy h1 { margin-top: 14px; font-size: clamp(58px, 7.6vw, 128px); font-weight: 700; letter-spacing: -.06em; line-height: .95; white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 6px 40px rgba(0, 0, 0, .4); }
/* Заголовок блока — родное лого SNACKSY (маской, чтобы его можно было красить); «о» убрали (Миша 23.10).
   Без сальто: по лого бежит красная волна слева направо, ритм как у импульса букв (4.8 с).
   Волна — полоса градиента; js/title-sweep.js ставит --tw (ширина заголовка), --band (полоса) и --ox (сдвиг куска), px */
.ab-copy h1.ab-title { position: relative; display: inline-flex; align-items: baseline; gap: .2em; text-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)) drop-shadow(0 6px 26px rgba(0, 0, 0, .35)); }
.ab-title > span {
  background: linear-gradient(90deg, rgba(255, 48, 72, 0) 0%, #ff3048 38%, #ff3048 62%, rgba(255, 48, 72, 0) 100%) no-repeat, #fff;
  background-size: var(--band, 0px) 100%;
  background-position: calc(-1 * var(--band, 0px) - var(--ox, 0px)) 0;
}
.ab-title .ab-logo { display: inline-block; height: .7em; aspect-ratio: 1200 / 262;
  -webkit-mask: url(../img/logo.webp) center / contain no-repeat; mask: url(../img/logo.webp) center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .ab-title > span { animation: ab-sweep 4.8s linear infinite; }
}
@keyframes ab-sweep {
  0% { background-position: calc(-1 * var(--band, 0px) - var(--ox, 0px)) 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  28%, 100% { background-position: calc(var(--tw, 0px) - var(--ox, 0px)) 0; }
}
.ab-rule { display: block; width: 64px; height: 2px; margin: clamp(20px, 2.8vh, 30px) 0; background: var(--red); border-radius: 2px; }
.ab-lead { font-size: clamp(24px, 2.3vw, 36px); font-weight: 600; line-height: 1.32; letter-spacing: -.02em; text-wrap: balance;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 22px rgba(0, 0, 0, .45); }
.ab-lead strong { font-weight: 800; }
.ab-facts { list-style: none; margin-top: clamp(20px, 2.8vh, 30px); border-top: 1px solid rgba(255, 255, 255, .4); }
.ab-facts li { display: flex; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .4);
  font-size: clamp(18px, 1.55vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 14px rgba(0, 0, 0, .45); }

@media (max-width: 900px) {
  .ab-grid { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .ab-frame { height: min(62vh, 580px); }
  .ab-copy { text-align: left; width: 100%; }
  .ab-copy h1 { font-size: clamp(44px, 13vw, 72px); }
}

/* телефон лёжа: низкий экран — Стелла и текст в две колонки */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .sx-about { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 12px; }
  .ab-grid { grid-template-columns: auto minmax(0, 1fr); justify-items: start; gap: 24px; }
  .ab-frame { height: calc(100svh - var(--nav-h) - 24px); }
  .ab-copy h1 { margin-top: 6px; font-size: 38px; }
  .ab-kicker { font-size: 15px; }
  .ab-rule { margin: 10px 0; }
  .ab-lead { font-size: 17px; }
  .ab-facts { margin-top: 8px; }
  .ab-facts li { padding: 6px 0; font-size: 15px; }
}

/* ровное затемнение под центральную композицию «О SNACKSY» */
.about-page .sx-bg::after, .about-panel::before {
  background:
    radial-gradient(ellipse 80% 70% at 50% 55%, rgba(var(--scrim), .38) 0%, rgba(var(--scrim), .5) 60%, rgba(var(--scrim), .66) 100%),
    linear-gradient(180deg, rgba(var(--scrim), .3) 0%, rgba(var(--scrim), 0) 20%) !important;
}

/* ---------- Красный импульс по буквам с сальто (как на snacksy.space, css/grid.css «One text effect on every tab») ---------- */
@property --flip { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pulse-word { display: inline-block; white-space: nowrap; }
.pulse-char { display: inline-block; white-space: pre; transform-origin: 50% 62%; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-char {
    --pulse: pow(sin(var(--flip) / 2), 4);
    color: color-mix(in srgb, #ff3048 calc(var(--pulse) * 100%), #fff);
    text-shadow: 0 -1px 0 rgb(255 255 255 / calc(var(--pulse) * .55)), 0 0 calc(var(--pulse) * 16px) rgb(255 48 72 / calc(var(--pulse) * .75));
    transform: perspective(9em) translateY(calc(sin(var(--flip) / 2) * -.28em)) rotateX(var(--flip));
    animation: text-flip 4.8s linear calc(var(--pulse-offset, 0ms) + var(--i) * 70ms) infinite both;
  }
}
/* .pulse-static — буквы стоят на месте, бежит только красный импульс (Миша 24.10: «Продукция» без сальто) */
.pulse-static .pulse-char { transform: none !important; }
/* сальто занимает первую пятую цикла (~1 с на букву), потом буква отдыхает белой */
@keyframes text-flip {
  0% { --flip: 0deg; animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  20%, 100% { --flip: 360deg; }
}
/* наведение на карточку: название становится стеклянным, буквы замирают */
.pack-card:is(:hover, :focus-visible) .pack-caption strong {
  background: linear-gradient(110deg, #fff 0%, #fff 36%, #8f96a3 47%, #fff 58%, #fff 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .45)) drop-shadow(0 1px 0 rgba(0, 0, 0, .55));
  animation: name-glass 1.6s cubic-bezier(.45, .05, .25, 1) both;
}
.pack-card:is(:hover, :focus-visible) .pulse-char { animation: none; transform: none; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; }
@keyframes name-glass { from { background-position: 100% 0; } to { background-position: 0 0; } }

