﻿/* Kosmo_ceramics — «Пристальный интерес».
   Все цвета — токены :root, сняты с её фотографий (досье, раздел 13; ТЗ, раздел 8.1).
   Движется только transform и opacity. Никаких filter/blur в том, что перерисовывается. */

/* ---------- шрифты: локально, урезаны до кириллицы и латиницы ---------- */
/* 2026-09-22: по просьбе Оксаны — один классический шрифт везде, заголовки жирные (PT Serif 400/700) */
@font-face { font-family: "PT Serif"; src: url("../fonts/ptserif-400-cyrillic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* из «расширенной латиницы» сайту нужен один знак — рубль: файл на 21 КБ заменён на 1,3 КБ */
@font-face { font-family: "PT Serif"; src: url("../fonts/ptserif-400-ruble.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+20BD; }
@font-face { font-family: "PT Serif"; src: url("../fonts/ptserif-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("../fonts/ptserif-700-cyrillic.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("../fonts/ptserif-700-ruble.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+20BD; }
@font-face { font-family: "PT Serif"; src: url("../fonts/ptserif-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- токены ---------- */
:root {
  /* стена и свет (p590–p599) */
  /* 2026-09-22: по просьбе Оксаны стена фиолетовая (была песочная #F1D19A/#D9B87C/#A88856) */
  --wall-light: #DCCAF0;
  --wall: #BBA0DA;
  --wall-shadow: #8F72B8;
  /* тени листвы — как на её фото p590–p599: чёткие, заметные (картинка с краем 2–4 px) */
  --leaf-opacity: .36; /* на фиолетовой стене тень листвы темнее: .46 роняла контраст подписей ниже 4,5 */
  --sun: #F3E8FB;
  --wall-night: #46396C;
  --wall-night-deep: #281F46;
  --lamp: #FFB36B;
  /* её стенд */
  --pink: #D9457A;
  --pink-light: #EE6A9C;
  --pink-dark: #9D3E62;
  --orange: #F08A2E;
  --orange-dark: #B9652A;
  --led: #FFD9A0;
  /* изделия */
  --ink: #233158;
  --ink-deep: #111C3E;
  --ink-80: rgba(35, 49, 88, .93);
  --red: #DE160C;
  --red-press: #9B1309;
  --paper: #F6F1E7;
  --clay: #C0A378;
  --clay-light: #E0C18F;
  --clay-dark: #9D835F;
  --glaze-blue: #5E7994;
  --glaze-blue-light: #8AA9C8;
  --glaze-blue-deep: #364E61;
  --glaze-lilac: #9D7EA9;
  --glaze-lilac-deep: #5E378A;
  --glaze-raspberry: #E97991;
  --glaze-raspberry-deep: #BF5661;
  --leopard: #8C6E4C;
  --leopard-spot: #4D2E18;
  --teal: #568F95;
  --teal-light: #82BAC4;
  --bronze: #AA7545;
  --white-eye: #EFE9E1;
  --tooth: #E6E2D8;
  --kiln: #17110C;
  --kiln-deep: #2A1A10;
  --heat: #FF6A1A;
  --heat-light: #FFB347;
  --spark: #FFD27A;

  /* одна физика на весь сайт */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);

  /* цвет раздела — постоянный у каждого раздела (в конце файла) */
  --accent: var(--pink);

  /* свет дня (по умолчанию «day»; ниже — утро, вечер, ночь) */
  --sun-x: 80%;
  --sun-y: 14%;
  --sun-size: 62vmax;
  --wall-grad: radial-gradient(130% 110% at var(--sun-x) var(--sun-y), var(--wall-light) 0%, var(--wall) 42%, #AD92CF 74%, var(--wall-shadow) 100%);
  --shadow-skew: 10deg;      /* наклон тени на стене: + верхом влево (солнце справа) */
  --shadow-scale: 1.08;      /* длина тени */
  --shadow-dx: -6%;          /* сдвиг тени от предмета */
  --shadow-alpha: .30;
  --text: var(--ink);
  --text-soft: var(--ink-deep);
  --title: var(--ink);
  /* тень отпечатков фото на стене — по направлению света этого часа (днём солнце справа) */
  --print-sx: -14px;
  --print-sa: .55;
  /* пунктирные контуры «мест на полке» полочки-меню */
  /* ночной свет на кружках: множитель цвета (#C4C4DA = ×0,77 / 0,77 / 0,85 — сумерки без
     фиолетовой заливки) — днём выключен */
  --night-mul: #C4C4DA;

  --gut: 16px;
  --hdr: 64px;
  --maxw: 1240px;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gut: clamp(24px, 4vw, 56px); } }

/* утро 07–11: прохладнее, солнце слева-сверху, тени длинные вправо */
[data-light="morning"] {
  --wall-light: #E4D7F2;
  --wall: #C6AFE0;
  --wall-shadow: #957BBD;
  --sun: #F7F0FD;
  --sun-x: 16%;
  --sun-y: 12%;
  --shadow-skew: -22deg;
  --shadow-scale: 1.45;
  --shadow-dx: 11%;
  --shadow-alpha: .26;
  --print-sx: 18px;
  --print-sa: .5;
}
/* вечер 17–21: золото, солнце низко справа, тени длинные влево */
[data-light="evening"] {
  --wall-light: #F1C8E6;
  --wall: #BF93D2;
  --wall-shadow: #9870B3;
  --sun: #F7D3EC;
  --sun-x: 94%;
  --sun-y: 58%;
  --shadow-skew: 30deg;
  --shadow-scale: 1.7;
  --shadow-dx: -16%;
  --shadow-alpha: .34;
  --wall-grad: radial-gradient(120% 120% at var(--sun-x) var(--sun-y), #F6D4EC 0%, var(--wall) 40%, #B488CC 72%, #9E72B6 100%);
  --text: var(--ink-deep);
  --title: var(--ink-deep);
  --print-sx: -26px;
  --print-sa: .6;
}
/* ночь 21–07: сумеречная стена, лампа справа, тени резкие влево, листвы нет */
[data-light="night"] {
  --wall-light: #5B4C86;
  --wall: var(--wall-night);
  --wall-shadow: var(--wall-night-deep);
  --wall-grad: linear-gradient(160deg, #584A84 0%, var(--wall-night) 45%, var(--wall-night-deep) 100%);
  --shadow-skew: 18deg;
  --shadow-scale: 1.25;
  --shadow-dx: -12%;
  --shadow-alpha: .5;
  --leaf-opacity: 0;
  --text: #F6F1E7;
  --text-soft: #F6F1E7;
  --title: #F6F1E7;
  --ink-80: rgba(246, 241, 231, .9);
  --print-sx: -18px;
  --print-sa: .75;
  color-scheme: dark;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* фокус с клавиатуры и прыжки по якорям не прячут элемент под закреплённой шапкой (64 px + запас) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--wall); overflow-x: clip; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--wall);
  color: var(--text);
  font: 400 17px/1.5 "PT Serif", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 700px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink-deep); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--paper); }
[data-light="night"] :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px var(--ink-deep); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 8px; transform: translateY(-160%); transition: transform .2s var(--ease-out); }
.skip:focus-visible { transform: none; }

/* ---------- стена: один свет на всю страницу ---------- */
.wall, .hdr__wall { pointer-events: none; }
.wall { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.wall__base { position: absolute; inset: 0; background: var(--wall-grad); }
/* пятно солнца: яркое ядро и читаемый край (как солнце из окна на её стене), а не туман */
.wall__sun {
  position: absolute;
  width: var(--sun-size); height: var(--sun-size);
  left: calc(var(--sun-x) - var(--sun-size) / 2);
  top: calc(var(--sun-y) - var(--sun-size) / 2);
  background: radial-gradient(closest-side, var(--sun) 0%, var(--sun) 30%, rgba(240, 228, 250, .8) 46%, rgba(234, 220, 248, .34) 60%, rgba(234, 220, 248, .1) 70%, rgba(234, 220, 248, 0) 78%);
  opacity: 1;
  animation: sunDrift 50s ease-in-out infinite alternate;
}
.wall__lv {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(70vmax 58vmax at var(--sun-x) var(--sun-y), #000 0%, rgba(0, 0, 0, .9) 30%, rgba(0, 0, 0, .35) 62%, transparent 92%);
  mask-image: radial-gradient(70vmax 58vmax at var(--sun-x) var(--sun-y), #000 0%, rgba(0, 0, 0, .9) 30%, rgba(0, 0, 0, .35) 62%, transparent 92%);
}
.wall__leaves {
  position: absolute; inset: -4% -6% -4% -6%;
  background: url("../img/leaves.webp") right top / cover no-repeat;
  opacity: var(--leaf-opacity);
  animation: leafDrift 56s ease-in-out infinite alternate;
}
/* лампа справа: центр у самого края окна и выше строк — правая колонка текста («Где найти»,
   «Трогать») не попадает в самое яркое пятно, ночной текст на ней читается (контраст ≥ 4,5) */
/* ночью лампа — видимое пятно в правом верхнем углу (яркое ядро и тёплый круг на стене), а её
   мягкий свет — дальше по стене; ядро маленькое и высоко: под ним нет колонки текста */
.wall__lamp { position: absolute; inset: 0; opacity: 0; background:
  radial-gradient(11vmax 10vmax at 95% 9%, rgba(255, 226, 180, .62), rgba(255, 200, 140, .34) 38%, rgba(255, 179, 107, .12) 70%, rgba(255, 179, 107, 0) 100%),
  radial-gradient(60vmax 60vmax at 100% 26%, rgba(255, 179, 107, .34), rgba(255, 179, 107, .11) 38%, rgba(255, 179, 107, 0) 70%); }
[data-light="night"] .wall__lamp { opacity: 1; }
/* телефон: экран узкий, пятно лампы накрывало бы весь текст — лампа в углу за краем, слабее */
@media (max-width: 699px) { [data-light="night"] .wall__lamp { background: radial-gradient(26vmax 20vmax at 104% 3%, rgba(255, 220, 170, .46), rgba(255, 190, 130, .18) 45%, rgba(255, 179, 107, 0) 100%), radial-gradient(70vmax 60vmax at 122% 26%, rgba(255, 179, 107, .18), rgba(255, 179, 107, .06) 40%, rgba(255, 179, 107, 0) 70%); } }
[data-light="night"] .wall__sun { opacity: 0; }
[data-light="evening"] .wall__sun { --sun-size: 80vmax; }
@media (max-width: 699px) { .wall__leaves { background-image: url("../img/leaves-m.webp"); } }
@keyframes sunDrift { from { transform: translate3d(-1.5%, -1%, 0); } to { transform: translate3d(1.5%, 1.5%, 0); } }
@keyframes leafDrift { from { transform: translate3d(-3%, 0, 0) rotate(-.6deg); } to { transform: translate3d(3%, 1.5%, 0) rotate(.6deg); } }

/* вход «вышло солнце»: стена сначала ровная, пятно и листва разгораются */
.js:not(.rm) .wall__sun, .js:not(.rm) .wall__leaves { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.js.lit .wall__sun { opacity: 1; }
.js.lit .wall__leaves { opacity: var(--leaf-opacity); }
.js.lit[data-light="night"] .wall__sun { opacity: 0; }

main, .foot { position: relative; z-index: 1; }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hdr);
  display: flex; align-items: center; gap: 14px;
  padding: 0 var(--gut);
  padding-top: env(safe-area-inset-top);
}
/* Подложка шапки после начала прокрутки: сплошная копия той же стены (с тем же солнцем и
   листвой — шва нет), ровно по высоте шапки: под логотипом и меню текст страницы не читается.
   Снизу — мягкая тень-полоса (градиент, без размытия в кадре): шапка лежит поверх страницы. */
.hdr__wall {
  position: absolute; inset: 0; overflow: hidden; opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.hdr__wallbox { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; transition: opacity .3s var(--ease-out); }
.is-scrolled .hdr__wall { opacity: 1; }
.hdr::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease-out);
  background: linear-gradient(to bottom, rgba(46, 26, 80, .26), rgba(46, 26, 80, .1) 40%, rgba(46, 26, 80, 0));
}
.is-scrolled .hdr::after { opacity: 1; }
[data-light="night"] .hdr::after { background: linear-gradient(to bottom, rgba(12, 12, 28, .42), rgba(12, 12, 28, .14) 40%, rgba(12, 12, 28, 0)); }
/* над тёмной печью подложка шапки — не песочная стена, а тёмная печь */
.hdr__wall::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .3s var(--ease-out); background: #1A130D; }
.hdr[data-under="dark"] .hdr__wallbox { opacity: 0; }
.hdr[data-under="dark"] .hdr__wall::before { opacity: 1; }
.hdr[data-under="dark"]::after { background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 40%, rgba(0, 0, 0, 0)); }
.hdr[data-under="dark"] .logo { color: var(--paper); }
/* тёплое пятно солнца на стене шапки — идёт вслед за прокруткой (сам счёт «сколько
   осталось» — светящаяся полоска на доске полочки-меню, .snav__prog) */
.hdr__sun {
  position: absolute; z-index: 2; left: 0; top: -40%; width: 300px; height: 180%;
  background: radial-gradient(closest-side, rgba(245, 234, 252, .9), rgba(232, 214, 248, .42) 52%, rgba(232, 214, 248, 0));
  transform: translate3d(var(--sunx, 0px), 0, 0);
  will-change: transform;
}
.hdr[data-under="dark"] .hdr__sun { background: radial-gradient(closest-side, rgba(255, 150, 70, .55), rgba(255, 120, 40, .2) 55%, rgba(255, 120, 40, 0)); }
[data-light="night"] .hdr__sun { background: radial-gradient(closest-side, rgba(255, 196, 128, .5), rgba(255, 179, 107, .18) 55%, rgba(255, 179, 107, 0)); }
@media (max-width: 899px) { .hdr__sun { display: none; } }

/* логотип: K, S, M — буквы; обе «О» — глаза-шарики с её фото, ростом с заглавную */
.logo { position: relative; z-index: 3; flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--title); transform-origin: 0 50%; transition: transform .35s var(--ease-out), color .3s; padding: 6px 4px; margin-left: -4px; }
.logo__word { display: flex; align-items: baseline; font: 700 34px/1 "PT Serif", Georgia, serif; letter-spacing: 0; }
.logo__l { display: block; }
.logo__sub { font: 400 12px/1 "PT Serif", Georgia, serif; letter-spacing: .06em; margin-top: 3px; }
.bead { position: relative; display: block; width: .72em; height: .72em; margin: 0 .05em; transform: translateY(.03em); }
.logo__l:first-child + .bead { margin-left: .02em; }
.bead + .logo__l { margin-left: .01em; }
.bead__img { width: 100%; height: 100%; }
.eye--bead { left: 0; top: 0; width: 100%; height: 100%; }
/* веко шарика: объёмное (светлее сверху, темнее к кромке) и тёмная линия ресниц по нижнему краю */
.eye--bead .eye__lid {
  top: -24%; height: 124%; left: -4%; right: -4%;
  background: linear-gradient(to bottom, #FBF7F3 0%, #EFE5DE 40%, #DCCBC1 70%, #BFA99C 84%, #4A3730 86.5%, #2E211C 91%, rgba(46, 33, 28, 0) 94%) !important;
}
@media (min-width: 900px) {
  .logo { transform: translateY(12px) scale(1.08); }
  .is-scrolled .logo { transform: none; }
}

.hdr__cta { position: relative; z-index: 3; margin-left: auto; transition: transform .35s var(--ease-out), opacity .25s linear, visibility 0s; }
@media (min-width: 900px) { .hdr__cta { transform: translateY(12px); } .is-scrolled .hdr__cta { transform: none; } }
@media (max-width: 899px) { .hdr .hdr__cta { display: none; } }
/* красная кнопка — одна на экран: пока в кадре большая кнопка финала, кнопка в шапке и
   красный круг нижней полочки уходят (класс ставит app.js по IntersectionObserver) */
.fin-cta-on .hdr__cta, .fin-cta-on .snav__tg { opacity: 0; visibility: hidden; pointer-events: none; transition: transform .35s var(--ease-out), opacity .25s linear, visibility 0s .25s; }

/* ---------- кнопки ---------- */
.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 22px; border-radius: 22px;
  background: var(--red); color: #FFFFFF;
  font: 500 16px/1 "PT Serif", Georgia, serif; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(80, 10, 0, .7);
  transition: transform .22s var(--ease-out), background-color .15s;
}
.btn-red:hover { transform: translateY(-2px); }
.btn-red:active { background: var(--red-press); transform: translateY(0); }
.hdr__cta.btn-red:hover { transform: translateY(10px); }
.is-scrolled .hdr__cta.btn-red:hover, .hdr__cta.btn-red:hover:is(:focus-visible) { transform: translateY(-2px); }

/* ---------- полочка-меню: банда из шести ----------
   Шесть существ стоят в ряд на розовой доске, с промежутком 6 px — не кучкой: и пальцу, и
   курсору есть куда попасть, под рукой ничего не уезжает. Пока большая банда стоит на полке
   первого экрана (и когда она спрыгнула в финал), маленькие копии спят: веки закрыты, сами
   полупрозрачные и чуть клюют носом; полка первого экрана ушла — просыпаются и подпрыгивают.
   Где я — не подъём и не пятно света, а взгляд: пять соседок смотрят на существо текущего
   раздела (gaze.js); на компьютере ещё строка «← Наличие» справа от доски, на телефоне —
   подчёркнутая подпись. По верхней грани доски слева направо разгорается тёплая полоска —
   сколько страницы пройдено (светодиодная лента её стенда). Ссылки работают всегда.
   Компьютер — в шапке рядом с логотипом; телефон и планшет — внизу, в зоне большого пальца. */
.snav { position: relative; z-index: 3; flex: 0 0 auto; height: 100%; display: flex; align-items: flex-end; margin-left: clamp(10px, 1.8vw, 30px); transition: transform .35s var(--ease-out); }
.snav__wall { display: none; }
.snav__shelf { position: relative; height: 100%; display: flex; align-items: flex-end; padding: 0 12px 11px; }
.snav__list { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 50px; }
.snav__li { position: relative; flex: 0 0 auto; z-index: 1; }
.snav__li:has([aria-current="true"]) { z-index: 3; }
.snav__a { position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 44px; height: 50px; text-decoration: none; }
/* доска — матовая крашеная: верхняя грань светлее передней, торцы прямые, оранжевое ребро */
.snav__board {
  position: absolute; left: 0; right: 0; bottom: 6px; height: 9px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(88, 14, 44, .45) 0 2px, rgba(88, 14, 44, 0) 2px calc(100% - 2px), rgba(88, 14, 44, .45) calc(100% - 2px)),
    var(--grain) 0 0 / 320px 40px repeat,
    linear-gradient(to bottom, #E36A95 0 3.4px, #D9457A 3.4px 6.6px, #C93F71 6.6px 7px, var(--orange) 7px 8.4px, #C4631E 8.4px 9px);
  box-shadow: 0 7px 10px -6px rgba(60, 30, 10, .45);
}
/* прогресс: светящаяся полоска по верхней грани доски (как светодиодная лента её стенда);
   растёт только через transform: scaleX — ничего не пересчитывается */
.snav__prog { position: absolute; left: 0; top: 0; width: 100%; height: 3.4px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #FFE9BF, #FFD08A 70%, #FFF3D6); }
.snav__prog::after { content: ""; position: absolute; right: -2px; top: -1px; width: 8px; height: 6px; border-radius: 50%; background: radial-gradient(closest-side, #FFFBEA, rgba(255, 230, 170, 0)); }
.snav__label {
  position: absolute; left: 50%; top: calc(100% + 14px); z-index: 3;
  padding: 4px 9px 3px; white-space: nowrap;
  font: 400 14px/1.1 "PT Serif", Georgia, serif; color: var(--ink-deep);
  background: linear-gradient(to bottom, #FCF9F2, var(--paper) 60%, #ECE4D3); border-radius: 2px;
  box-shadow: 0 4px 7px -4px rgba(40, 20, 0, .5);
  transform: translate(-50%, 4px) rotate(-1.5deg); opacity: 0;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  pointer-events: none;
}
.snav__label::after { content: ""; position: absolute; left: 50%; bottom: 100%; border: 4px solid transparent; border-bottom-color: #FCF9F2; transform: translateX(-50%); }
.snav__a:hover .snav__label, .snav__a:focus-visible .snav__label, .snav__a.show-label .snav__label { opacity: 1; transform: translate(-50%, 0) rotate(-1.5deg); }
.snav__cap { display: none; }
/* строка справа от доски, внутри шапки: когда банда на полочке — «← Наличие», где я сейчас.
   Текст ставит app.js. Подпись не висит под шапкой и не налезает на страницу */
.snav__hint { position: absolute; left: 100%; bottom: 2px; margin-left: 8px; white-space: nowrap; font: 400 15px/1 "PT Serif", Georgia, serif; color: var(--ink-deep); opacity: .8; pointer-events: none; }
.snav__hint.is-now { opacity: 1; }
[data-light="night"] .snav__hint { color: var(--paper); text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.hdr[data-under="dark"] .snav__hint { color: #F4E9DA; }

/* существо на полочке */
.snav .mug--nav { --h: 44px; position: relative; display: block; height: var(--h); width: calc(var(--h) * var(--ar)); transform-origin: 50% 100%; transition: transform .3s var(--spring); }
.mug--nav .mug__body { position: absolute; inset: 0; }
.snav__tg { display: none; }

/* банда на полочке спит, пока большая стоит на полке первого экрана и когда она спрыгнула в
   финал; полка первого экрана ушла — копии просыпаются (веки — gaze.js) и подпрыгивают по одной */
.snav__li:nth-child(even) { --doze: 3.5deg; }
.js:not(.rm) .snav .mug--nav { opacity: .55; transform: translateY(1px) rotate(var(--doze, -3.5deg)); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.js:not(.rm) .hdr.gang-on:not(.gang-down) .snav .mug--nav { opacity: 1; transform: none; animation: wakeHop .52s var(--spring) backwards; animation-delay: calc(var(--i) * 60ms); }
.js:not(.rm) .hdr.gang-on:not(.gang-down) .snav__a:hover .mug--nav { transform: translateY(-2px); }
@keyframes wakeHop {
  0% { opacity: .55; transform: translateY(1px) rotate(var(--doze, -3.5deg)); }
  40% { opacity: 1; transform: translateY(-9px) rotate(0); }
  72% { transform: translateY(0) scale(1.05, .94); }
  100% { opacity: 1; transform: none; }
}
/* вход «вышло солнце»: доска проявляется вместе со светом */
.js:not(.rm) .snav__shelf { opacity: 0; transition: opacity .6s var(--ease-out) .2s; }
.js.lit:not(.rm) .snav__shelf { opacity: 1; }
@media (min-width: 900px) {
  /* наверху шапка выше (логотип и кнопка опущены на 12 px) — полочка вместе с ними */
  .snav { transform: translateY(12px); }
  .is-scrolled .snav { transform: none; }
}
@media (max-width: 1099px) and (min-width: 900px) {
  .snav__label { font-size: 13px; }
  .snav__hint { font-size: 13.5px; }
}
/* узко: до красной кнопки места под строку нет — где я, видно по взглядам соседок */
@media (max-width: 1039px) and (min-width: 900px) { .snav__hint { display: none; } }

/* телефон и планшет: полочка внизу, в зоне большого пальца. Видна с первого экрана: банда на
   ней спит (ссылки работают сразу), красная кнопка Telegram — тоже сразу. Под каждым
   существом — короткая подпись, у текущего раздела она подчёркнута. Подложка — плотная, та
   же стена (копия её слоёв света), сверху — тень: текст страницы под банду не просвечивает */
@media (max-width: 899px) {
  :root { --hdr: 56px; --bar: 84px; }
  .logo__word { font-size: 30px; }
  .snav {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; height: auto; margin: 0; transform: none;
    padding: 0 10px calc(4px + env(safe-area-inset-bottom)) 10px;
    align-items: flex-end; justify-content: center; gap: 8px;
    pointer-events: none;
  }
  .snav__wall { display: block; position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
  .snav__wallbox { position: absolute; left: 0; bottom: 0; width: 100vw; height: 100vh; height: 100lvh; }
  .snav__wall::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .3s var(--ease-out); background: #1A130D; }
  .snav[data-under="dark"] .snav__wall::after { opacity: 1; }
  .snav__wall .wall__lv { display: none; }
  /* тень от панели на страницу — вверх, без размытия в кадре */
  .snav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; pointer-events: none; background: linear-gradient(to top, rgba(46, 26, 80, .24), rgba(46, 26, 80, .08) 45%, rgba(46, 26, 80, 0)); }
  [data-light="night"] .snav::before { background: linear-gradient(to top, rgba(12, 12, 28, .4), rgba(12, 12, 28, .12) 45%, rgba(12, 12, 28, 0)); }
  .snav[data-under="dark"]::before { background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, 0)); }
  .snav__a, .snav__tg { pointer-events: auto; }
  .snav__shelf { flex: 1; max-width: 560px; height: 80px; margin: 0 auto; padding: 0; display: block; }
  .snav__list { position: absolute; left: 2px; right: 2px; bottom: 30px; height: 44px; gap: 0; justify-content: space-between; }
  .snav__li { z-index: 1; }
  .snav__a { min-width: 44px; height: 44px; }
  .snav .mug--nav { --h: 32px; max-width: 48px; }
  .mug--nav .mug__body { left: 50%; right: auto; width: calc(32px * var(--ar)); transform: translateX(-50%); }
  .snav__board { left: 0; right: 0; bottom: 20px; height: 10px; background:
    linear-gradient(90deg, rgba(88, 14, 44, .45) 0 2px, rgba(88, 14, 44, 0) 2px calc(100% - 2px), rgba(88, 14, 44, .45) calc(100% - 2px)),
    var(--grain) 0 0 / 320px 40px repeat,
    linear-gradient(to bottom, #E36A95 0 4px, #D9457A 4px 7.6px, #C93F71 7.6px 8px, var(--orange) 8px 9.4px, #C4631E 9.4px 10px); }
  .snav__prog { height: 4px; }
  .snav__label { display: none; }
  .snav__hint { display: none; }
  /* подписи: одно слово под каждым; текущий раздел — подчёркнут и не притушен */
  .snav__cap {
    display: block; position: absolute; left: 50%; top: calc(100% + 13px); transform: translateX(-50%);
    font: 400 13px/1 "PT Serif", Georgia, serif; color: var(--ink-deep); white-space: nowrap; opacity: .82;
    padding-bottom: 3px;
  }
  .snav__a[aria-current="true"] .snav__cap { opacity: 1; background: linear-gradient(var(--ink-deep), var(--ink-deep)) 0 100% / 100% 1.5px no-repeat; }
  [data-light="night"] .snav__cap { color: var(--paper); }
  [data-light="night"] .snav__a[aria-current="true"] .snav__cap { background-image: linear-gradient(var(--paper), var(--paper)); }
  .snav[data-under="dark"] .snav__cap { color: #F4E9DA; }
  .snav[data-under="dark"] .snav__a[aria-current="true"] .snav__cap { background-image: linear-gradient(#F4E9DA, #F4E9DA); }
  .snav__tg {
    /* свой слой: на узком телефоне последняя кружка полки наезжала на кнопку и перехватывала тап */
    position: relative; z-index: 5;
    display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; margin-bottom: 14px;
    border-radius: 50%; background: var(--red); color: #FFFFFF;
    box-shadow: 0 8px 16px -8px rgba(80, 10, 0, .8);
    transition: transform .22s var(--ease-out), opacity .25s linear, visibility 0s;
  }
  /* экраны уже 360 px: шесть пунктов по 44 px не влезают рядом с кнопкой — ужимаем их */
  @media (max-width: 359px) {
    .snav__a { min-width: 38px; }
    .snav .mug--nav { max-width: 40px; }
    .snav__cap { font-size: 12px; }
  }
  .snav__tg svg { width: 26px; height: 26px; fill: currentColor; transform: translateX(-1px); }
  .snav__tg:active { background: var(--red-press); }
  .hdr__wall .wall__lv { display: none; }
  html { scroll-padding-top: 72px; scroll-padding-bottom: calc(var(--bar) + 26px); }
}

/* ---------- полки (общая доска) ---------- */
/* Доска её стенда: светлая верхняя грань (видна сверху под углом), розовая передняя грань,
   оранжевое ребро по нижней кромке, затенённые торцы и лёгкая фактура краски.
   На телефоне, планшете и в домиках доска рисуется «переносом» (.br) под каждым рядом;
   на первом экране компьютера — отдельными досками .hb. Под доской — заранее размытая тень. */
:root {
  --paint: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='48'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.85 .22' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .94  0 0 0 0 .97  0 0 0 .11 -.02'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  /* волокна крашеного дерева: длинные тёмные прожилки вдоль доски, в среднем 8–10 %
     непрозрачности (краска матовая, дерево под ней видно). Рисуется один раз при раскладке */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='40'><filter id='g' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.006 .62' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .05  0 0 0 0 .16  .32 0 0 0 -.06'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  /* свет на доске — со стороны солнца этого часа: днём и вечером справа, утром слева,
     ночью справа тёплая лампа. Краска матовая: без бликов, только мягче/темнее */
  --board-light: linear-gradient(90deg, rgba(90, 20, 50, .14), rgba(90, 20, 50, 0) 24%, rgba(255, 240, 220, 0) 64%, rgba(255, 238, 222, .1));
  --sun-face: linear-gradient(90deg, rgba(255, 246, 236, 0) 30%, rgba(255, 244, 232, .16));
}
[data-light="morning"] {
  --board-light: linear-gradient(270deg, rgba(90, 20, 50, .14), rgba(90, 20, 50, 0) 24%, rgba(255, 240, 220, 0) 64%, rgba(255, 238, 222, .1));
  --sun-face: linear-gradient(270deg, rgba(255, 246, 236, 0) 30%, rgba(255, 244, 232, .16));
}
[data-light="evening"] {
  --board-light: linear-gradient(90deg, rgba(90, 20, 50, .18), rgba(90, 20, 50, 0) 28%, rgba(255, 220, 170, 0) 58%, rgba(255, 214, 160, .16));
  --sun-face: linear-gradient(90deg, rgba(255, 230, 190, 0) 30%, rgba(255, 222, 176, .22));
}
[data-light="night"] {
  --board-light: linear-gradient(90deg, rgba(28, 22, 60, .3), rgba(28, 22, 60, .12) 45%, rgba(255, 190, 120, .08));
  --sun-face: linear-gradient(90deg, rgba(255, 200, 140, 0) 45%, rgba(255, 190, 120, .2));
}
.shelf, .hero__shelf { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; }
.br { display: none; flex: 0 0 100%; height: 0; position: relative; z-index: 1; pointer-events: none; }
/* Доска её стенда — матовое крашеное дерево (фото p426_1, p484_1): верхняя грань (видна
   сверху под углом) на 8–10 % светлее передней, без блика; розовая передняя грань темнеет к
   низу; оранжевое ребро по нижней кромке; торцы прямые и темнее (видна толщина); волокна
   дерева под краской. --shade — затенение задних досок на телефоне (по умолчанию нет). */
.br::before, .hb, .others__board, .touch__board, .fin__board, .kr__board, .fin__gang::after, .clone__board {
  border-radius: 1px;
  background:
    var(--shade, linear-gradient(transparent, transparent)),
    linear-gradient(90deg, rgba(88, 14, 44, .5) 0 3px, rgba(88, 14, 44, .16) 3px 5px, rgba(88, 14, 44, 0) 5px calc(100% - 5px), rgba(88, 14, 44, .16) calc(100% - 5px) calc(100% - 3px), rgba(88, 14, 44, .5) calc(100% - 3px)),
    var(--sun-face) 0 0 / 100% var(--bt, 14px) no-repeat,
    var(--board-light),
    var(--grain) 0 0 / 320px 40px repeat,
    var(--paint) 0 0 / 160px 48px repeat,
    linear-gradient(to bottom,
      #D95A88 0, #DF6891 calc(var(--bt, 14px) * .5), #E2709A calc(var(--bt, 14px) - 1px),
      #C9416F var(--bt, 14px), #D9457A calc(var(--bt, 14px) + 2px),
      #D24276 calc(var(--bt, 14px) + 7px), #BE3B6B calc(100% - var(--rib, 4px)),
      var(--orange) calc(100% - var(--rib, 4px)), #D87426 calc(100% - var(--rib, 4px) * .45), #B85C1C 100%);
}
.br::before { content: ""; position: absolute; left: var(--bl, 0); right: var(--bl, 0); top: calc(var(--bt, 14px) * -1); height: var(--bh, 30px); }
/* тень доски на стене: наклонена по свету этого часа, как тени кружек (солнце справа —
   тень уходит вниз-влево) */
.br::after, .hb::after {
  content: ""; position: absolute; left: 0.5%; right: 0.5%;
  height: var(--bsh, 48px);
  background: linear-gradient(to bottom, rgba(70, 38, 12, .38), rgba(70, 38, 12, .14) 40%, rgba(70, 38, 12, 0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  transform-origin: 50% 0; transform: skewX(calc(var(--shadow-skew) * -1.2));
  pointer-events: none;
}
.br::after { left: calc(var(--bl, 0px) + 0.5%); right: calc(var(--bl, 0px) + 0.5%); top: calc(var(--bh, 30px) - var(--bt, 14px) - 1px); }
.hb::after { top: 100%; }
[data-light="night"] :is(.br, .hb)::after { background: linear-gradient(to bottom, rgba(10, 10, 25, .5), rgba(10, 10, 25, .16) 40%, rgba(10, 10, 25, 0)); }
.hb, .hb-wall { display: none; }

/* ---------- кружка ---------- */
.mug {
  --h: 120px;
  position: relative; display: block; flex: 0 0 auto;
  height: var(--h); width: calc(var(--h) * var(--ar));
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.mug--hero, .mug--house { margin-bottom: calc(var(--h) * (var(--fb, 1) - 1)); }
.mug__body { position: absolute; inset: 0; z-index: 3; display: block; transform-origin: 50% 100%; transition: transform .22s var(--ease-out); }
.mug__pic { display: contents; }
.mug__img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
/* тень на стене — силуэт самой кружки, заранее размытый; свет задаёт наклон и длину */
.mug__wshadow {
  position: absolute; z-index: 0; pointer-events: none;
  left: calc(var(--spx) * -100%); top: calc(var(--spy) * -100%);
  width: calc((1 + 2 * var(--spx)) * 100%); height: calc((1 + 2 * var(--spy)) * 100%);
  max-width: none;
  opacity: var(--shadow-alpha);
  transform-origin: 50% calc(100% - (var(--spy) + 1 - var(--fb, 1)) / (1 + 2 * var(--spy)) * 100%);
  transform: translate(var(--shadow-dx), 0) skewX(var(--shadow-skew)) scaleX(var(--shadow-scale)) scaleY(.94);
  transition: transform .22s var(--ease-out), opacity .22s;
}
/* контактная тень на доске: под «ногами» — тёмная и короткая, как на её фото в солнце */
.mug__cshadow {
  position: absolute; z-index: 2; pointer-events: none;
  left: calc(var(--f0) * 100% - 2%); width: calc((var(--f1) - var(--f0)) * 100% + 4%);
  bottom: calc((1 - var(--fb, 1)) * 100% - 3.2%); height: 7%;
  background: url("../img/shadow/ellipse.webp") center / 100% 100% no-repeat;
  opacity: .86;
  transition: transform .22s var(--ease-out), opacity .22s;
}
[data-light="night"] .mug__cshadow { opacity: .9; }

/* глаз: разрез глаза обрезает свою же радужку и веко */
.eye {
  position: absolute; display: block; pointer-events: none;
  -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat;
  mask: var(--m) 0 0 / 100% 100% no-repeat;
}
.eye__iris { position: absolute; max-width: none; pointer-events: none; }
/* веко — глазурь прямо над глазом (кусок того же фото): в покое спрятано над разрезом,
   моргая, съезжает вниз; снизу у него скруглённая кромка и тень на глазном яблоке */
.eye__lid {
  position: absolute; left: -6%; right: -6%; top: -40%; height: 158%;
  background-color: transparent;
  background-image: linear-gradient(to bottom, var(--lid), var(--lid) 78%, rgba(30, 14, 0, .35) 80%, rgba(30, 14, 0, 0));
  background-size: 100% 100%; background-repeat: no-repeat;
  transform: translateY(calc((var(--lid-open, 0) - 1) * 100%));
}

/* общий ключевой свет: каждая вырезка снята при своём свете; слой по силуэту (маску ставит JS
   по той же картинке) светлее со стороны солнца этого часа и темнее с теневой — вся банда
   освещена одним солнцем. Мягкий свет (soft-light) меняет светотень, а не цвет глазури */
.mug__lit { display: none; }
.lit-ready .mug__lit {
  display: block; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--mask) 0 0 / 100% 100% no-repeat; mask: var(--mask) 0 0 / 100% 100% no-repeat;
  background: var(--lit-grad); mix-blend-mode: soft-light;
}
:root { --lit-grad: linear-gradient(100deg, rgba(40, 18, 0, .55) 0%, rgba(40, 18, 0, .12) 34%, rgba(255, 244, 222, 0) 55%, rgba(255, 244, 222, .5) 100%), linear-gradient(to bottom, rgba(255, 246, 228, .22), rgba(255, 246, 228, 0) 40%, rgba(40, 18, 0, 0) 70%, rgba(40, 18, 0, .3)); }
[data-light="morning"] { --lit-grad: linear-gradient(260deg, rgba(40, 18, 0, .55) 0%, rgba(40, 18, 0, .12) 34%, rgba(255, 244, 222, 0) 55%, rgba(255, 244, 222, .5) 100%), linear-gradient(to bottom, rgba(255, 246, 228, .2), rgba(255, 246, 228, 0) 40%, rgba(40, 18, 0, 0) 70%, rgba(40, 18, 0, .3)); }
[data-light="evening"] { --lit-grad: linear-gradient(95deg, rgba(50, 16, 0, .6) 0%, rgba(50, 16, 0, .16) 36%, rgba(255, 214, 160, 0) 55%, rgba(255, 206, 150, .6) 100%), linear-gradient(to bottom, rgba(40, 18, 0, .1), rgba(40, 18, 0, 0) 50%, rgba(40, 18, 0, .3)); }
/* ночью — тёплая лампа справа: сторона лампы тёплая и светлее, другая уходит в сумерки */
[data-light="night"] { --lit-grad: linear-gradient(100deg, rgba(16, 14, 40, .6) 0%, rgba(16, 14, 40, .2) 40%, rgba(255, 190, 120, 0) 58%, rgba(255, 184, 110, .62) 100%); }

/* блик по глазури — обрезан по силуэту вырезки */
.mug__sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; visibility: hidden; }
.sheen-ready .mug__sheen { visibility: visible; -webkit-mask: var(--mask) 0 0 / 100% 100% no-repeat; mask: var(--mask) 0 0 / 100% 100% no-repeat; }
.mug__sheen i { position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2) 45%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, .2) 55%, rgba(255, 255, 255, 0)); transform: translate(320%, 0) skewX(-12deg); }

/* ценник на полке (как на маркете, когда поднимаешь кружку) */
/* в покое ценник не занимает места (max-width: 0): спрятанные ценники у края экрана иначе
   раздвигали страницу вбок — старый Safari (iOS 15) не знает overflow-x: clip */
.tag {
  position: absolute; z-index: 6; left: calc(var(--f1, .8) * 100% - 18%); bottom: -2px;
  display: block; pointer-events: none; white-space: nowrap;
  max-width: 0; overflow: hidden;
  opacity: 0; transform: translate(0, 6px) rotate(-2deg); transform-origin: 0 100%;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), max-width 0s .2s;
}
.tag__t {
  display: block; padding: 5px 9px 4px 11px;
  font: 400 15px/1.15 "PT Serif", Georgia, serif; color: var(--ink-deep);
  background: linear-gradient(to bottom, #FBF7EF, var(--paper) 60%, #ECE4D3);
  border-radius: 2px; border-left: 3px solid var(--accent);
  box-shadow: 0 5px 8px -5px rgba(60, 30, 0, .5), 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.mug:is(:hover, :focus-visible, .is-lift) .tag, .print:is(:hover, :focus-visible, .is-lift) .tag { opacity: 1; transform: rotate(-2deg); max-width: 420px; overflow: visible; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), max-width 0s; }
.tag.tag--flip { left: auto; right: calc((1 - var(--f0, .2)) * 100% - 18%); transform-origin: 100% 100%; }
@media (max-width: 699px) {
  .tag { white-space: normal; width: max-content; }
  .mug:is(:hover, :focus-visible, .is-lift) .tag, .print:is(:hover, :focus-visible, .is-lift) .tag { max-width: min(60vw, 220px); }
}
/* пока открыта карточка «Эта выбрала вас», ценники наведения спрятаны: цена — в самой карточке */
.pick-open .tag { opacity: 0 !important; }
/* цифры на бумажках — табличные (до 22.09 был отдельный шрифт Rubik 500, теперь везде PT Serif) */
.n { font-family: "PT Serif", Georgia, serif; font-weight: 500; font-size: .9em; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }

/* наведение: подъём 4 px и наклон к курсору (угол ставит JS: --tilt) */
.mug:not(.mug--clone):is(:hover, .is-lift) .mug__body { transform: translate(0, -4px) rotate(var(--tilt, 2.5deg)); }
.mug:not(.mug--clone):is(:hover, .is-lift) .mug__cshadow { transform: scale(.86, .8); opacity: .38; }
.mug:not(.mug--clone):is(:hover, .is-lift) .mug__wshadow { transform: translate(calc(var(--shadow-dx) - 2%), -2%) skewX(var(--shadow-skew)) scaleX(var(--shadow-scale)) scaleY(.94); }
.mug.sheen-ready:is(:hover, .is-lift) .mug__sheen { opacity: 1; }
.mug.sheen-ready:is(:hover, .is-lift) .mug__sheen i { transform: translate(-120%, 0) skewX(-12deg); transition: transform .3s var(--ease-out); }
.mug.is-hidden .mug__body, .mug.is-hidden .tag { visibility: hidden; }
.mug:focus-visible { outline-offset: 6px; }

/* радостный прыжок на месте и «выбранная» */
@keyframes hop { 0% { transform: translate3d(0, 0, 0); } 40% { transform: translate3d(0, -10px, 0); } 100% { transform: translate3d(0, 0, 0); } }
@keyframes hop2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1, 1); } 22% { transform: translate3d(0, -12px, 0) scale(.98, 1.03); } 44% { transform: translate3d(0, 0, 0) scale(1.05, .93); } 58% { transform: translate3d(0, -12px, 0) scale(.98, 1.03); } 80% { transform: translate3d(0, 0, 0) scale(1.05, .93); } }
.mug.is-hop .mug__body { animation: hop .32s var(--spring); }
.mug.is-chosen .mug__body, .print.is-chosen .print__photo { animation: hop2 .76s var(--ease-out); }
/* «Пусть выберут они»: выбор показывает взгляд, а не свет — вся банда смотрит на выбранную,
   она смотрит на посетителя (catalog.js); соседок не гасим, прожектора нет. Выбранная только
   чуть приподнята, пока открыта карточка */
.mug.is-picked, .print.is-picked { z-index: 4; }
.mug.is-picked .mug__body { transform: translate(0, -6px); }
.mug.is-picked .mug__cshadow { transform: scale(.82, .76); opacity: .5; }
.print.is-picked .print__photo { transform: rotate(0) translateY(-6px); }

/* ---------- бумажные карточки ---------- */
.tent {
  position: relative; display: inline-flex; flex-direction: column; gap: 1px;
  padding: 10px 14px 9px 16px;
  font: 400 15px/1.2 "PT Serif", Georgia, serif; color: var(--ink-deep);
  background: linear-gradient(to bottom, #FCF9F2 0, var(--paper) 55%, #EAE1CE 100%);
  border-radius: 2px;
  box-shadow: 0 10px 14px -10px rgba(60, 30, 0, .55), 0 1px 0 rgba(255, 255, 255, .9) inset;
  transform: perspective(500px) rotateX(9deg) rotate(-1.5deg);
  transform-origin: 50% 100%;
}
.tent::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(35, 49, 88, .16); box-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.tent { padding-top: 13px; }
/* бумажка на доске первого экрана — ссылка в Telegram (на ней написано «заказ в Telegram») */
a.tent { text-decoration: none; transition: transform .22s var(--ease-out); }
a.tent:hover { transform: perspective(500px) rotateX(9deg) rotate(-1.5deg) translateY(-3px); }
.tent__l--go { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.tent__l--num { font-family: "PT Serif", Georgia, serif; font-weight: 500; font-size: 14px; letter-spacing: .01em; font-variant-numeric: tabular-nums; margin: 1px 0; white-space: nowrap; }
.tent__night { display: none; }
[data-light="night"] .tent__night { display: block; max-width: 17ch; margin-top: 4px; padding-top: 5px; border-top: 1px dashed rgba(35, 49, 88, .35); font-size: 14px; }

/* ---------- заголовки разделов ---------- */
.rubric { font: 500 14px/1.2 "PT Serif", Georgia, serif; color: var(--ink-deep); letter-spacing: .04em; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.rubric::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--accent); }
h2 { font: 700 clamp(32px, 3.4vw, 56px)/1.04 "PT Serif", Georgia, serif; color: var(--title); letter-spacing: -.005em; text-wrap: balance; }
.sec { position: relative; padding: clamp(80px, 8vw, 112px) var(--gut) 0; max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; }
.sec__head { max-width: 760px; }
.sec__lead { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--text-soft); max-width: 640px; }
@media (min-width: 700px) { .sec__lead { font-size: 20px; } }

/* Первый экран: настоящий стенд, без пересечения корпусов и досок. */
.hero { position:relative; min-height:100svh; padding:76px 24px 34px; display:flex; flex-direction:column; align-items:center; overflow-x:clip; }
.hero__text { display:contents; }
.hero__head { order:0; position:relative; text-align:center; }
.hero__title { color:var(--title); font:700 clamp(40px,4.8vw,68px)/1.02 "PT Serif", Georgia, serif; letter-spacing:-.01em; text-wrap:balance; }
.hero__line { display:block; }
.hero__sweep { display:none; }
.hero__stage { order:1; position:relative; width:min(100%,1000px,calc((100svh - 310px) * 1.7857)); margin:20px auto 0; flex:none; }
.hero__shelf { --u:calc(100cqw / 1000); position:relative; display:block; container-type:inline-size; width:100%; height:auto; aspect-ratio:1000 / 560; margin:0; padding:0; }
.hero__shelf .mug--hero { --h:calc(var(--dh) * var(--u)); position:absolute; left:calc(var(--dx) * var(--u)); top:calc((var(--dy) - var(--dh) * var(--fb)) * var(--u)); margin:0; z-index:3; transform-origin:50% calc(var(--fb) * 100%); transition:opacity .3s; }
.hero__shelf .mug--hero .mug__body { opacity:1; }
.hero__shelf .wow-board { --bt:calc(10 * var(--u)); --bh:calc(23 * var(--u)); --rib:calc(4 * var(--u)); position:absolute; left:calc(var(--bx) * var(--u)); top:calc(var(--by) * var(--u) - 5px); width:calc(var(--bw) * var(--u)); height:calc(23 * var(--u)); pointer-events:none; z-index:1; }
.wow-board--d { display:block; }
.wow-board--m, .wow-board--l { display:none; }
.wow-board.hb--back { --shade:linear-gradient(#411a362e,#411a362e); }
.hero__tent { --tx:var(--dtx); --ty:var(--dty); --tw:var(--dtw); position:absolute; z-index:4; width:calc(var(--tw) * var(--u)); left:calc(var(--tx) * var(--u)); top:calc(var(--ty) * var(--u)); right:auto; bottom:auto; padding:6px 7px; font-size:clamp(12px,calc(14 * var(--u)),14px); line-height:1.14; transform:translateY(-100%) rotate(-2deg); transform-origin:50% 100%; }
.hero__tent .tent__l--num { font-size:inherit; }
a.hero__tent:hover { transform:translateY(calc(-100% - 3px)) rotate(-1.5deg); }
[data-light="night"] .hero__lead .tent__night { max-width:none; margin:8px 0 0; padding:0; border:0; font:16px/1.2 "PT Serif", Georgia, serif; color:#F6F1E7; }
.hero__lead { order:2; margin:18px auto 0; max-width:680px; text-align:center; font-size:18px; line-height:1.45; color:var(--text-soft); }
[data-light="night"] .hero__lead { color:#F6F1E7; }
.hero__memory { position:relative; left:auto; bottom:auto; translate:none; z-index:9; display:flex; align-items:center; gap:10px; width:max-content; max-width:100%; margin:16px auto 0; font:400 16px/1.2 "PT Serif", Georgia, serif; background:var(--paper); padding:6px 12px; color:var(--ink-deep); transform:rotate(-1deg); }
.hero__memory[hidden] { display:none; }
.hero__memory img { width:46px; height:36px; object-fit:contain; flex:none; }
.hero__memory-btn { font:inherit; color:inherit; text-decoration:underline; }
.hero__text, .hero__lead, .hero__memory { transition:opacity .25s var(--ease-out); }
.is-jumping .hero__head, .is-jumping .hero__lead, .is-jumping .hero__memory { opacity:0; }
.hero__shelf .mug--back .tag, .hero__shelf .mug--middle .tag { bottom:calc(100% + 10px); top:auto; }

@media (max-width:1099px) and (min-width:600px) {
 .hero { padding-top:80px; padding-bottom:calc(var(--bar,0px) + 30px); }
 /* на планшете плашка «включить наклон» свисает с полки на 8–10 px и срезала верхушки
    букв первой строки подводки — отступ даёт ей место */
 .hero__lead { margin-top:38px; }
 .hero__title { font-size:clamp(38px,5.3vw,56px); }
 .hero__stage { width:min(100%,1000px,calc((100svh - 320px) * 1.7857)); }
}
@media (max-width:599px) {
 .hero { padding:68px 12px calc(var(--bar) + 24px); }
 .hero__title { font-size:clamp(24px,7.9vw,36px); line-height:1.04; } /* PT Serif жирный шире прежнего: 7.9vw держит заголовок в две строки от 320 px */
 .hero__line { display:inline; }
 .hero__stage { width:min(100%,366px); margin-top:22px; }
 .hero__shelf { --u:calc(100cqw / 366); aspect-ratio:366 / 448; }
 .hero__shelf .mug--hero { --h:calc(var(--mh) * var(--u)); left:calc(var(--mx) * var(--u)); top:calc((var(--my) - var(--mh) * var(--fb)) * var(--u)); }
 .wow-board--d { display:none; } .wow-board--m { display:block; }
 .hero__shelf .wow-board { --bt:8px; --rib:3px; height:19px; }
 /* бумажка с ценой на узком телефоне перекрывала верхнюю доску на 2–4 px, физика считала её
    препятствием и выдавливала кружку 599-3 в соседку — опущена на 5 px, полка снова свободна */
 .hero__tent { --tx:var(--mtx); --ty:var(--mty); --tw:var(--mtw); font-size:12px; line-height:1.14; padding:6px 7px; top:calc(var(--ty) * var(--u) + 5px); }
 .hero__tent .tent__l--num { font-size:12px; }
 .hero__tent .tent__l--go { font-size:11px; letter-spacing:-.01em; }
 .hero__tent .tent__l:nth-child(2) { display:none; }
 .hero__lead { font-size:15px; margin-top:14px; max-width:340px; }
 .hero__memory { font-size:14px; }
}
/* Низкий экран (375×553, 360×600, 360×640, 390×664): подводку «Непонятыши — кружки и чашки…»
   прятало нижнее меню-полочка. Полку с кружками ужимаем, отступы сокращаем — фраза видна сразу,
   без прокрутки (проверка «ножки нижнего ряда и подводка — над полочкой-меню»). */
/* совсем узкий телефон (320 px): доска короткая, кружкам тесно и после расстановки две
   оставались внахлёст на 13 px — убавляем им рост на 8 %, зазоры возвращаются */
@media (max-width:359px) {
 .hero__shelf .mug--hero { --h:calc(var(--mh) * var(--u) * .90); }
}
@media (max-width:599px) and (max-height:700px) {
 .hero { padding-top:54px; }
 .hero__title { font-size:min(30px,7.9vw); }
 .hero__stage { width:min(100%,calc((100svh - 344px) * .817)); margin-top:10px; }
 /* подсказка «наклоните телефон» свисает ниже полки — оставляем ей место, иначе она ложится на текст */
 .hero__lead { margin-top:40px; font-size:14px; line-height:1.36; }
 .hero__memory { margin-top:10px; font-size:13px; }
}
@media (max-width:1099px) and (max-height:500px) and (orientation:landscape) {
 .hero { padding-top:58px; padding-bottom:calc(var(--bar,84px) + 16px); }
 .hero__title { font-size:28px; }
 .hero__line { display:inline; }
 .hero__stage { width:min(100%,800px); margin-top:4px; }
 .hero__shelf { --u:calc(100cqw / 800); aspect-ratio:800 / 180; }
 .hero__shelf .mug--hero { --h:calc(var(--lh) * var(--u)); left:calc(var(--lx) * var(--u)); top:calc((var(--ly) - var(--lh) * var(--fb)) * var(--u)); }
 .wow-board--d,.wow-board--m { display:none; } .wow-board--l { display:block; }
 .hero__lead,.hero__tent,.hero__memory { display:none !important; }
}

/* Темнота не перехватывает прокрутку: над ней только фотографические окна глаз. */
.wow-curtain { position:fixed; inset:0; z-index:200; background:#0e0b0f; opacity:.93; pointer-events:none; }
.wow-windows { contain:layout style paint; position:fixed; inset:0; z-index:201; pointer-events:none; }
.wow-window { position:absolute; overflow:hidden; opacity:0; mask-image:var(--night-mask); -webkit-mask-image:var(--night-mask); mask-size:100% 100%; -webkit-mask-size:100% 100%; }
.wow-portrait { position:absolute; display:block; }
.wow-portrait>.mug__img,.wow-portrait>.bead__img { display:block; width:100%; height:100%; }
.wow-window .eye { pointer-events:none; }
.wow-heading { transition:opacity .25s ease-out; position:fixed; z-index:202; margin:0; pointer-events:none; color:#F6F1E7; text-align:center; opacity:0; }
.wow-scroll { transition:opacity .25s ease-out; position:fixed; z-index:202; bottom:calc(28px + env(safe-area-inset-bottom)); left:12px; right:12px; text-align:center; color:#F6F1E7; font:20px/1.2 "PT Serif", Georgia, serif; opacity:0; pointer-events:none; }
.wow-pending::after { content:""; position:fixed; inset:0; z-index:200; background:#0e0b0f; opacity:.93; pointer-events:none; }
.wow-pending :is(.snav,.hdr .btn-red,.hero__lead,.hero__title,.hero__tent,.hero__memory),
.wow-concealed { opacity:0 !important; pointer-events:none !important; }
.wow-layer { will-change:opacity; }
.hero.wow-dark .tag { opacity:0 !important; }
.wow-controls { position:absolute; z-index:6; top:calc(534 * var(--u) + 4px); right:16px; display:flex; align-items:center; gap:8px; }
/* Плашка «наклоните телефон» свисала ниже полки и ложилась на первую строку подводки
   (срезала верхушки букв на 320, 375, 390 и 414 px). На телефоне она стала ниже ростом
   и встала в зазор между полкой и текстом — кружки не закрывает, буквы не режет. */
@media (max-width:599px) {
  .wow-controls { top:calc(417 * var(--u)); right:12px; }
  .wow-tilt, .wow-sound { min-height:36px; padding:5px 9px; font-size:14px; }
  .wow-tilt svg { width:17px; height:22px; }
}
@media (max-width:1099px) and (max-height:500px) and (orientation:landscape) { .wow-controls { top:calc(135 * var(--u) + 8px); right:0; } }
.wow-tilt,.wow-sound { color:var(--ink-deep); background:var(--paper); font:16px/1.1 "PT Serif", Georgia, serif; min-height:44px; padding:8px 10px; border:0; border-radius:2px; box-shadow:0 3px 6px #331a192b; }
.wow-tilt { display:flex; align-items:center; gap:6px; transform:rotate(-2deg); }
.wow-tilt svg { width:20px; height:26px; flex:none; }
.wow-tilt:not(.needs-permission) svg { animation:wowPhone 1.5s ease-in-out infinite; }
.wow-tilt[hidden],.wow-sound[hidden],.wow-controls[hidden] { display:none; }
.wow-sound[aria-pressed="true"] { color:#fff; background:var(--ink-deep); }
.wow-sound svg { width:17px; height:17px; vertical-align:middle; margin-right:4px; }
@keyframes wowPhone { 0%,100% { transform:rotate(-12deg); } 50% { transform:rotate(12deg); } }
@media (prefers-reduced-motion:reduce) { .wow-curtain,.wow-windows,.wow-heading,.wow-scroll,.wow-controls { display:none !important; } }



/* ночь: кружки в свете сумеречной стены, а не дневные наклейки на ней. Три слоя по силуэту
   той же картинки, что уже на экране (маску ставит JS), без filter:
   · умножение на #B8BDEB — цвет × (0,72; 0,74; 0,92);
   · «экран» тёмно-синим — контраст на ~10 % мягче (тени приподняты);
   · тёплая кромка лампы по правому краю силуэта: разность силуэта и его же копии, сдвинутой
     влево (две полосы — 1,4 % и 3,4 % ширины, внешняя слабее — край мягче). */
.mug__night, .mug__lamp { display: none; }
[data-light="night"] .night-ready :is(.mug__night, .mug__lamp) {
  display: block; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--mask) 0 0 / 100% 100% no-repeat; mask: var(--mask) 0 0 / 100% 100% no-repeat;
}
[data-light="night"] .night-ready .mug__night { background: var(--night-mul); mix-blend-mode: multiply; }
[data-light="night"] .night-ready .mug__lamp { background: rgb(24, 22, 40); mix-blend-mode: screen; }
/* кромка лампы: сдвиг маски — в долях ширины самой кружки (cqw), поэтому только там, где
   браузер умеет вычитать маски и считать от контейнера; старый Safari остаётся без кромки */
@supports (mask-composite: subtract) and (width: 1cqw) {
  [data-light="night"] .night-ready .mug__lamp { container-type: size; }
  [data-light="night"] .night-ready .mug__lamp::before, [data-light="night"] .night-ready .mug__lamp::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(255, 190, 120, .12), rgba(255, 196, 128, .5));
    -webkit-mask: none; mask-image: var(--mask), var(--mask); mask-size: 100% 100%; mask-repeat: no-repeat;
    mask-position: 0 0, -2cqw 0; mask-composite: subtract;
  }
  [data-light="night"] .night-ready .mug__lamp::after { opacity: .5; mask-position: 0 0, -4.6cqw 0; }
}

/* ---------- 2. наличие ----------
   Заголовок раздела — керамическая табличка над рядом домиков (как вывеска на маркете), а не
   на коньке крыши: крыша первого домика читается целиком. Домики — её стеллажи со стенда
   (p426_1, p484_1): крашеное дерево с объёмом, фронтон закрыт стенкой, под коньком светится
   светодиодная лента, у полок видна толщина. Домики разной ширины, как у неё: средние кружки
   стоят в домике поуже. Подводка и управление — записки на стене между домиками. */
.cat { padding-top: clamp(64px, 7vw, 96px); }
@media (min-width: 700px) { .cat { padding-top: 28px; } }

.cat__grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(28px, 4vw, 64px); align-items: end; }
.cat__head { grid-column: 1 / -1; display: flex; justify-content: center; margin-bottom: -12px; }
.plate.cat__plate { position: relative; left: auto; top: auto; transform: rotate(-1.2deg); padding: 16px 34px 14px; }
.cat__plate h2 { font-size: clamp(34px, 3.6vw, 56px); }

/* подводка и управление — полоса между первым и вторым рядом домиков */
.cat__notes { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px clamp(32px, 5vw, 72px); align-items: center; padding: 4px 0 0; }
.cat__quote { grid-column: 1; font: 700 clamp(26px, 2.5vw, 38px)/1.12 "PT Serif", Georgia, serif; color: var(--title); text-wrap: balance; }
.cat__note { grid-column: 1; font-size: 15px; line-height: 1.5; color: var(--text-soft); max-width: 600px; }
.cat__date { font-weight: 500; }
.cat__controls { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
/* записки на стене: лист, тень, лёгкий наклон — как записки на её стенде */
.paper {
  color: var(--ink-deep); border-radius: 2px;
  background: linear-gradient(to bottom, #FCF9F2, var(--paper) 60%, #ECE3D1);
  box-shadow: 0 12px 16px -12px rgba(60, 30, 0, .62), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 18px 8px 10px; font: 400 16px/1.2 "PT Serif", Georgia, serif; text-align: left; transform: rotate(-1.2deg); transition: transform .2s var(--ease-out); }
.switch:hover { transform: rotate(-1.2deg) translateY(-2px); }
.switch__t { white-space: nowrap; }
.switch__track { position: relative; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 14px; background: #E0D6C2; box-shadow: inset 0 1px 3px rgba(60, 30, 0, .3); transition: background-color .25s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(40, 20, 0, .35); transition: transform .3s var(--spring); }
.switch[aria-checked="true"] .switch__track { background: var(--pink); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(18px); }
.choose { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4em; min-height: 52px; padding: 13px 20px 12px 18px; border-top: 6px solid var(--accent); font: 400 17px/1.2 "PT Serif", Georgia, serif; text-align: left; transform: rotate(1deg); transition: transform .2s var(--ease-out); }
.choose b { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.choose:hover { transform: rotate(1deg) translateY(-2px); }
.choose[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* домик стенда: розовая рама, оранжевые рёбра, треугольная крыша с закрытым фронтоном и
   лентой света под коньком; задняя стенка тёплая, светлее сверху (там лента) */
.house { position: relative; container-type: inline-size; --hk: var(--hkd, 19); transition: transform .5s var(--ease-out), opacity .35s linear; }
/* разная ширина, как у неё на стенде: средние — в домике поуже, «уехавшие» — тоже */
.house--medium { width: 86%; justify-self: center; }
.house--gone { width: 82%; justify-self: center; }
.house__roof { position: relative; aspect-ratio: 600 / 170; margin: 0 0 -1px; }
.house__roofsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.roof-wall { fill: #CFA672; }
[data-light="night"] .roof-wall { fill: #6A5D6C; }
.roof-glow { fill: none; stroke-linejoin: round; }
.roof-glow--1 { stroke: rgba(255, 222, 168, .42); stroke-width: 26; }
.roof-glow--2 { stroke: rgba(255, 218, 160, .2); stroke-width: 56; }
.roof-glow--3 { stroke: rgba(255, 214, 150, .1); stroke-width: 96; }
.roof-back { fill: none; stroke: var(--pink); stroke-width: 22; stroke-linejoin: round; }
.roof-edge { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linejoin: round; }
.roof-led { fill: none; stroke: #FFF0D2; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
/* табличка домика — керамическая плашка в нижней части фронтона: конёк над ней виден */
.sign {
  position: absolute; left: 50%; top: calc(100cqw * 170 / 600 * .4); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 42%; max-width: 72%; padding: 13px 18px 10px;
  font: 400 16px/1.15 "PT Serif", Georgia, serif; color: var(--ink); text-align: center; text-decoration: none;
  background:
    radial-gradient(110% 85% at 16% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 48%),
    linear-gradient(to bottom, #F8F5EF, #EDE7DC 70%, #E3DBCD);
  border-radius: 10px 12px 9px 11px / 12px 9px 12px 10px;
  box-shadow: inset 0 0 0 1.5px rgba(150, 118, 84, .34), inset 0 -3px 0 rgba(130, 100, 70, .16), inset 0 2px 1px rgba(255, 255, 255, .95), 0 10px 14px -10px rgba(60, 30, 0, .66);
  transform: translateX(-50%) rotate(-1deg);
  transition: transform .2s var(--ease-out), opacity .25s var(--ease-out);
}
.sign:hover { transform: translateX(-50%) rotate(-1deg) translateY(-2px); }
/* компьютер: табличка стоит низом на основании фронтона. В узком домике (окно 900–1100 px)
   фронтон ниже таблички — она поднимается к коньку и мельчает, а не налезает на верхний ряд */
@media (min-width: 900px) {
  /* ширина — по самой длинной строке (до 72 % домика): у стоящей от середины таблички браузер
     иначе отводит под текст только правую половину домика и ломает строки с ценами */
  .sign { width: max-content; top: calc(100cqw * 170 / 600 + 1.4cqw); transform: translate(-50%, -100%) rotate(-1deg); }
  .sign:hover { transform: translate(-50%, calc(-100% - 2px)) rotate(-1deg); }
  @container (max-width: 480px) {
    .sign { padding: 10px 14px 8px; font-size: 15px; line-height: 1.1; }
    .sign__l--main { font-size: 17px; }
    .sign__d { margin-top: 2px; font-size: 13px; }
    .house--aug30 .sign__l, .house--aug30 .sign__l--main { font-size: 14px; }
  }
}
.sign::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 6px; background: var(--accent); border-radius: 0 0 4px 4px; opacity: .95; }
.sign__l { display: block; }
.sign__l--main { font-size: 19px; font-weight: 700; }
.sign__d { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-deep); }
.sign__pin { display: none; }
.house--aug30 .sign__l, .house--aug30 .sign__l--main { font-size: 15.5px; }
.house__body {
  position: relative; padding: 5cqw 4.6cqw 0;
  border-left: 3.2cqw solid var(--pink); border-right: 3.2cqw solid var(--pink);
  background: linear-gradient(to bottom, #EDCB95 0%, #DDB077 38%, #C99A5E 100%);
  box-shadow: inset 5px 0 0 -2px var(--orange), inset -5px 0 0 -2px var(--orange), inset 14px 0 14px -9px rgba(80, 40, 10, .5), inset -14px 0 14px -9px rgba(80, 40, 10, .5);
}
[data-light="night"] .house__body { background: linear-gradient(to bottom, #8E7E74 0%, #6E6070 45%, #54495F 100%); }
.house__body::after { content: ""; position: absolute; left: -3.2cqw; right: -3.2cqw; bottom: -18px; height: 18px; background: linear-gradient(to bottom, var(--pink-dark), #7E2F4E); }
/* светодиодная лента под крышей продолжается на задней стенке тёплым пятном (градиент, без
   свечения-фильтра) */
.house__led {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 236, 196, .7), rgba(255, 226, 176, .32) 8px, rgba(255, 217, 160, 0) 30px),
    radial-gradient(58% 100% at 50% 0%, rgba(255, 224, 168, .5), rgba(255, 214, 150, .16) 55%, rgba(255, 214, 150, 0));
}
[data-light="night"] .house__led { background: linear-gradient(to bottom, rgba(255, 226, 180, .8), rgba(255, 210, 150, .35) 8px, rgba(255, 200, 140, 0) 30px), radial-gradient(58% 100% at 50% 0%, rgba(255, 200, 130, .5), rgba(255, 190, 120, .16) 55%, rgba(255, 190, 120, 0)); }
/* доска — отдельная строка высотой 0; промежуток между полками — её отступ снизу (а не
   row-gap: row-gap отрывал доску от ножек, и кружки висели в воздухе). У полки видна толщина
   (12 px передней грани), под ней — тень на задней стенке */
.house .shelf { --bt: 9px; --bh: 21px; --rib: 3px; --bl: -4.6cqw; --bsh: 34px; padding-bottom: 16px; }
.house .shelf .br--d { display: block; margin-bottom: 4.6cqw; }
.house .shelf .br--d:last-child { margin-bottom: 0; }
/* между кружками — поле не меньше 8 px: ручки не налезают на соседок */
.house .mug--house { --h: calc(var(--hk) * 1cqw * var(--ks, 1)); margin: 0 max(4px, 1cqw); }

/* отпечаток фото: «убежала» и «спросить» (рамка = «не здесь или не точно») */
.print { position: relative; display: block; flex: 0 0 auto; border: 0; padding: 0; background: none; cursor: pointer; }
.print--house { --h: calc(var(--hk) * 1.06cqw); height: var(--h); width: calc(var(--h) * var(--pa, .75)); margin: 0 1.2cqw; z-index: 2; }
.print__photo {
  position: absolute; inset: 0; display: block; padding: 5%; padding-bottom: 12%;
  background: linear-gradient(to bottom, #FFFDF8, #F2ECE0);
  border-radius: 2px;
  box-shadow: 0 12px 18px -12px rgba(50, 25, 0, .65), 0 0 0 1px rgba(90, 60, 20, .08);
  transform: rotate(-3deg); transform-origin: 50% 100%;
  transition: transform .22s var(--ease-out);
}
.print__photo img { width: 100%; height: 100%; object-fit: cover; }
.print:is(:hover, :focus-visible, .is-lift) .print__photo { transform: rotate(0) translateY(-4px); }
.pcard {
  position: absolute; z-index: 3; left: 50%; bottom: -6px;
  display: block; padding: 5px 8px 4px; white-space: nowrap;
  font: 400 14px/1.1 "PT Serif", Georgia, serif; color: var(--ink-deep);
  background: var(--paper); border-radius: 2px; border-left: 3px solid var(--leopard);
  box-shadow: 0 6px 10px -7px rgba(60, 30, 0, .6);
  transform: translateX(-50%) rotate(1.5deg);
}
.pcard--here { border-left-color: var(--pink); }
/* «убежала к добрым хозяевам» — её почерком на стенке под полкой, без бумажки */
.pcard--gone { top: calc(100% + 24px); bottom: auto; white-space: normal; width: 100%; padding: 0; background: none; border: 0; box-shadow: none; text-align: center; text-wrap: balance; font-size: 15.5px; line-height: 1.12; transform: translateX(-50%); }
.house--gone .shelf { padding-bottom: 56px; }
.print--house .tag { display: none; }

/* «Уже убежали»: одна полка — два отпечатка крупнее (кадр по самой кружке) по центру, её
   слова — почерком под полкой; у «30 августа» там же «что из этого ещё есть…» */
.house--gone .house__body { padding-top: 6cqw; }
.house--gone .shelf { justify-content: center; }
.house__shelfnote { position: relative; z-index: 3; display: flex; justify-content: center; margin: 14px 0 0; padding-bottom: 20px; }
.house__shelfnote span { display: inline-block; max-width: 92%; font: 400 17px/1.28 "PT Serif", Georgia, serif; color: var(--ink-deep); text-align: center; text-wrap: balance; }
[data-light="night"] :is(.house__shelfnote span, .pcard--gone) { color: #FFF6E6; }
/* четыре снимка от 30 августа — одной полкой, когда домик достаточно широк; уже — две по два */
@media (min-width: 900px) and (max-width: 1279px) {
  .house.house--aug30 { --hk: var(--hkm, 30); }
  .house.house--aug30 .shelf .br--m { display: block; }
  .house.house--aug30 .shelf .br--m:not(:last-child) { margin-bottom: 4.6cqw; }
}

/* прайс-лист на бумаге, чуть наклонён; набран обычным шрифтом, как напечатанный */
.pl {
  position: relative; align-self: center; justify-self: center;
  width: min(100%, 440px); padding: 34px 34px 26px;
  background: linear-gradient(170deg, #FFFCF6, var(--paper) 50%, #EEE6D6);
  color: var(--ink-deep);
  box-shadow: 0 22px 30px -24px rgba(50, 25, 0, .75), 0 0 0 1px rgba(90, 60, 20, .06);
  transform: rotate(-2deg);
  font-family: "PT Serif", Georgia, serif;
}
.pl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--accent); opacity: .9; }
.pl__h { font: 700 30px/1 "PT Serif", Georgia, serif; margin-bottom: 16px; }
.pl__list li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n dots p" "v v d"; align-items: baseline; column-gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(35, 49, 88, .22); }
.pl__n { grid-area: n; font-size: 16.5px; }
.pl__dots { grid-area: dots; border-bottom: 2px dotted rgba(35, 49, 88, .35); transform: translateY(-4px); }
.pl__p { grid-area: p; font: 500 17px/1 "PT Serif", Georgia, serif; font-variant-numeric: tabular-nums; }
.pl__v { grid-area: v; font-size: 14px; opacity: .8; }
.pl__d { grid-area: d; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .72; justify-self: end; }
.pl__foot { margin-top: 14px; font-size: 13.5px; opacity: .78; }

/* «только те, кто здесь»: домики 4 и 5 складываются и уезжают */
.cat__grid .house.is-folding { transform: translate3d(0, 60px, 0) scale(1, .2); opacity: 0; transform-origin: 50% 100%; }
/* пока кружка спрыгнула к посетителю — таблички домиков уходят: сквозь затемнение торчали сбоку */
.is-jumping :is(.sign, .sign__pinl, .cat__plate) { opacity: 0 !important; }

@media (max-width: 899px) {
  .cat__grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  /* табличка раздела — над первым домиком, с отступом: крыша под ней видна */
  .cat__head { margin-bottom: -40px; }
  .plate.cat__plate { padding: 14px 24px 12px; max-width: 100%; }
  /* на телефоне подводка и кнопки — сразу после первого домика, а не после второго */
  .house--big { order: 0; }
  .cat__notes { order: 1; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 2px; }
  .house--medium { order: 2; }
  .house.house--medium { width: 90%; }
  .house--small { order: 3; }
  .house--new1909 { order: 4; }
  .house--gone { order: 5; }
  .house.house--gone { width: 88%; }
  .pcard--gone { width: 100%; font-size: 15px; line-height: 1.1; }
  .house--gone .shelf { padding-bottom: 64px; }
  .house--aug30 { order: 5; }
  /* записки на стене — обе по левому краю, подпись переключателя в одну строку */
  .cat__controls { grid-column: 1; grid-row: auto; align-items: stretch; margin-top: 10px; gap: 14px; }
  .cat__controls .paper { width: 100%; justify-content: flex-start; text-align: left; }
  .house { --hk: var(--hkm, 30); max-width: 560px; margin: 0 auto; width: 100%; }
  .house__body { border-left-width: 2.6cqw; border-right-width: 2.6cqw; padding-left: 2.4cqw; padding-right: 2.4cqw; }
  .house__body::after { left: -2.6cqw; right: -2.6cqw; }
  .house .shelf { --bl: -2.4cqw; }
  .house .shelf .br--d:not(.br--m) { display: none; }
  .house .shelf .br--m { display: block; margin-bottom: 5cqw; }
  .house .shelf .br--m:last-child { margin-bottom: 0; }
  /* табличка домика — в нижней части фронтона, конёк над ней виден; пока листаешь полки этого
     домика, вверху держится её короткая копия «Кружки большие · 4000 ₽» */
  /* 2026-09-22: табличка раньше стояла в потоке и отодвигала стенки вниз — крыша «съезжала»
     (зазор 15–35 px между фронтоном и стенками). Теперь она лежит поверх фронтона, как на
     компьютере, а фронтон на узком экране выше (230 вместо 170), чтобы табличка в нём помещалась */
  .house__roof { aspect-ratio: 600 / 230; }
  .sign { position: absolute; left: 50%; top: calc(100cqw * 230 / 600 + 1.4cqw); margin: 0; width: max-content; max-width: 84%; transform: translate(-50%, -100%) rotate(-1deg); }
  .sign:hover { transform: translate(-50%, calc(-100% - 2px)) rotate(-1deg); }
  /* совсем узкий домик (телефон, домик уже 380 px): фронтон ещё выше, табличка компактнее —
     скаты крыши видны по бокам таблички */
  @container (max-width: 380px) {
    .house__roof { aspect-ratio: 600 / 270; }
    .sign { top: calc(100cqw * 270 / 600 + 1.4cqw); padding: 10px 14px 8px; font-size: 15px; }
    .sign__l--main { font-size: 17.5px; }
    .sign__d { font-size: 13px; }
  }
  .sign__pin { display: block; position: sticky; top: calc(var(--hdr) + 8px); z-index: 6; height: 0; }
  .sign__pinl {
    position: absolute; left: 50%; top: 0; padding: 7px 14px 5px; white-space: nowrap;
    font: 400 16px/1.15 "PT Serif", Georgia, serif; color: var(--ink);
    background: radial-gradient(110% 85% at 16% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 48%), linear-gradient(to bottom, #F8F5EF, #EDE7DC 70%, #E3DBCD);
    border-radius: 9px 11px 8px 10px;
    box-shadow: inset 0 0 0 1.5px rgba(150, 118, 84, .34), 0 10px 16px -12px rgba(60, 30, 0, .7);
    transform: translate(-50%, -6px) rotate(-1deg); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }
  .house.is-pinned .sign__pinl { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
  .house__roof { margin-bottom: 0; }
  .house__body { padding-top: 7cqw; }
  .pl { width: 100%; max-width: 480px; transform: rotate(-1.2deg); order: 10; }
}

/* ---------- 3. не только кружки: отпечатки на её доске, масштаб — как на полке маркета ----------
   Кубок — крупно и в пятне солнца (с оттенком лилового — цвета раздела); «Пальцы» — маленькие;
   кольца — на руке; скульптуры — высокий снимок. Снимки — фотографии-отпечатки с белым полем,
   как «Уже убежали» (на сайте фотография = «не здесь или не точно»), второй кадр того же
   изделия стоит за первым. Под доской — подписи, как этикетки в музее. Размер — --sz (доля
   высоты кубка, catalog.json → size). */
.sec__head--center { margin: 0 auto; text-align: center; }
.sec__head--center .rubric { justify-content: center; }
.others { position: relative; margin-top: 48px; --H0: clamp(235px, 24vw, 370px); }
.others__row { position: relative; display: grid; grid-template-columns: repeat(5, auto); justify-content: center; align-items: end; column-gap: clamp(24px, 2.5vw, 42px); padding: 0 3%; }
.oph { grid-column: var(--c); grid-row: 1; position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; }
.ocap { grid-column: var(--c); grid-row: 3; position: relative; display: flex; flex-direction: column; gap: 5px; width: 0; min-width: 100%; padding: 24px 2px 0; color: var(--ink-deep); align-self: start; }
.others__board { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; height: 26px; margin: -8px -4% 0; --bt: 11px; --rib: 4px; box-shadow: 0 30px 40px -26px rgba(70, 38, 12, .6); }
.others__board--2, .others__board--3, .others__board--4 { display: none; }
.print--other { width: calc(var(--sz, .6) * var(--H0) * .75); aspect-ratio: 3 / 4; }
.print--other .print__photo {
  padding: 4% 4% 10%; background: linear-gradient(to bottom, #FFFDF8, #F2ECE0); border-radius: 2px;
  box-shadow: var(--print-sx) 18px 26px -16px rgba(50, 25, 0, var(--print-sa)), 0 0 0 1px rgba(90, 60, 20, .08);
  transform: rotate(var(--rot, -1.4deg));
}
.oph--1 { --rot: 1.6deg; } .oph--2 { --rot: -.8deg; } .oph--3 { --rot: 1.2deg; }
.print--other:is(:hover, :focus-visible, .is-lift) .print__photo { transform: rotate(0) translateY(-4px); }
/* второй снимок того же изделия — стоит за первым, сдвинут и в тени */
.print__photo--back { z-index: 0; transform: translate(12%, -5%) rotate(2.5deg) !important; }
.print__photo--back::after { content: ""; position: absolute; inset: 0; background: rgba(40, 22, 6, .22); border-radius: 2px; }
.print--other:is(:hover, :focus-visible) .print__photo--back { transform: translate(18%, -7%) rotate(3.5deg) !important; }
.print--other .print__photo:not(.print__photo--back) { z-index: 1; }
/* кубок — в пятне солнца на стене */
.oph--sun::before { content: ""; position: absolute; z-index: -1; left: -55%; right: -55%; top: -22%; bottom: -8%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 244, 214, .9), rgba(252, 236, 196, .55) 42%, rgba(248, 226, 176, .16) 66%, rgba(248, 226, 176, 0) 80%);
  background: radial-gradient(closest-side, color-mix(in srgb, #FFF4D6 92%, var(--accent)), color-mix(in srgb, rgba(252, 236, 196, .6) 92%, var(--accent)) 42%, rgba(248, 226, 176, .16) 66%, rgba(248, 226, 176, 0) 80%); }
[data-light="night"] .oph--sun::before { opacity: .3; }
.ocap__t { font: 700 20px/1.12 "PT Serif", Georgia, serif; color: var(--text-soft); text-wrap: balance; }
.ocap--0 .ocap__t { font-size: 26px; }
.ocap__q { font-size: 14.5px; line-height: 1.38; color: var(--text-soft); }
.ocap__p { margin-top: 2px; font: 500 15px/1.25 "PT Serif", Georgia, serif; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.ocap__s { font-size: 14px; line-height: 1.35; color: var(--text-soft); }
.ocap__note { font-size: 14px; line-height: 1.3; color: var(--text-soft); }
@media (max-width: 899px) {
  .others { --H0: min(94vw, 420px); }
  .others__row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding: 0; justify-content: stretch; }
  .oph { grid-column: var(--cm); grid-row: var(--rp); }
  .ocap { grid-column: var(--cm); grid-row: var(--rc); width: auto; min-width: 0; padding: 18px 0 44px; }
  .ocap--0, .ocap--3, .ocap--4 { max-width: 34ch; justify-self: center; text-align: center; align-items: center; }
  .others__board { margin: -8px -2% 0; height: 20px; --bt: 8px; }
  .others__board--1 { grid-row: 2; }
  .others__board--2 { display: block; grid-row: 5; }
  .others__board--3 { display: block; grid-row: 8; }
  .others__board--4 { display: block; grid-row: 11; }
  /* в правом столбце второй снимок выглядывает слева — иначе уходил бы за край экрана */
  .oph--2 .print__photo--back { transform: translate(-12%, -5%) rotate(-2.5deg) !important; }
  .ocap__t { font-size: 24px; }
  .ocap--0 .ocap__t { font-size: 26px; }
  .ocap__q { font-size: 14px; }
}

/* ---------- 4. трогать: тихая сцена фактур перед печью ----------
   Заголовок — по центру; под ним один кадр во всю ширину экрана — кожа глины крупно (губы нос
   к носу), он медленно приближается, пока его прокручивают (app.js, только transform); под
   кадром — её слова её почерком. Ниже — одна полка маленьких кадров «в руке»: фактура и
   масштаб, подписи её почерком прямо на стене, без бумажек. На телефоне полка — лента,
   которая листается пальцем (единственный жест вбок на сайте). */
.touch { padding-bottom: 0; }
.touch__head { margin-bottom: clamp(36px, 4vw, 56px); }
.touch__band { position: relative; margin: 0 calc(50% - 50vw); }
.touch__frame { position: relative; display: block; overflow: hidden; height: min(50vw, 76vh); background: #D8C4A0; }
.touch__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 18px 22px -18px rgba(60, 34, 8, .45), inset 0 -18px 22px -18px rgba(60, 34, 8, .45); }
.touch__zoom { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 44%; transform: scale(var(--z, 1)); transform-origin: 44% 46%; }
.touch.is-live .touch__zoom { will-change: transform; }
.touch__band figcaption { max-width: 34ch; margin: 22px auto 0; padding: 0 var(--gut); text-align: center; font: 400 clamp(20px, 1.8vw, 26px)/1.3 "PT Serif", Georgia, serif; color: var(--ink-deep); }
[data-light="night"] .touch__band figcaption { color: var(--paper); }
.touch__shelf { position: relative; margin-top: clamp(64px, 7vw, 104px); padding-bottom: 96px; }
.touch__strip { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 2vw, 28px); padding: 0 3%; }
.tp { position: relative; margin: 0; flex: 0 1 auto; }
.tp__ph { display: block; }
.tp img { height: clamp(170px, 15vw, 232px); width: auto; max-width: none; border-radius: 2px; transform: rotate(-1.6deg); transform-origin: 50% 100%; box-shadow: var(--print-sx) 14px 22px -14px rgba(50, 25, 0, var(--print-sa)); transition: transform .22s var(--ease-out); }
.tp:nth-child(even) img { transform: rotate(1.4deg); }
.tp:hover img { transform: rotate(0) translateY(-4px); }
/* подписи — её почерком прямо на стене, под доской (без бумажной подложки) */
.tp figcaption { position: absolute; left: 50%; top: calc(100% + 34px); width: max(100%, 176px); translate: -50% 0; font: 400 16px/1.26 "PT Serif", Georgia, serif; color: var(--ink-deep); text-align: center; text-wrap: balance; }
[data-light="night"] .tp figcaption { color: var(--paper); }
.touch__board { position: relative; z-index: 1; height: 22px; margin: 0; --bt: 9px; --rib: 4px; box-shadow: 0 26px 34px -22px rgba(70, 38, 12, .6); }
.touch__shelf .touch__board { position: absolute; left: 0; right: 0; bottom: 76px; }
@media (max-width: 699px) {
  .touch__frame { height: 66vw; }
  .touch__band figcaption { font-size: 19px; }
  /* телефон: снимки листаются пальцем, с прилипанием к кадрам */
  .touch__strip {
    justify-content: flex-start; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 8px var(--gut) 100px;
    scrollbar-width: none;
  }
  .touch__strip::-webkit-scrollbar { display: none; }
  .tp { flex: 0 0 auto; scroll-snap-align: center; }
  .tp img { height: 62vw; }
  .tp figcaption { top: calc(100% + 30px); width: 100%; min-width: 150px; font-size: 15px; }
  .touch__shelf { padding-bottom: 0; }
  .touch__shelf .touch__board { bottom: 76px; }
}

/* ---------- 5. из печи ----------
   Единственная тёмная секция. Перед ней стена на 40vh плавно темнеет до цвета печи — шва нет
   (ТЗ 8.4). Заголовок — самый крупный на сайте после первого экрана, в свете жара. Её печь —
   электрическая, с загрузкой сверху (видео поста 238): крышка откинута, камера светится из
   глубины, огня и кирпичей нет. Перед печью на тёмной доске стоят сырые изделия — ножками на
   доске; подписи — под доской. Выход: обожжённая кружка поднимается на дневную стену и
   остывает до своих цветов. */
.kiln { position: relative; z-index: 1; margin-top: calc(40vh + 32px); color: #F4E9DA; isolation: isolate; overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1fr); }
/* стена перед печью темнеет (40vh) — до самого цвета печи: верх секции без шва */
.kiln::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40vh; pointer-events: none; z-index: -1; background: linear-gradient(to bottom, rgba(23, 17, 12, 0) 0%, rgba(64, 44, 26, .22) 28%, rgba(44, 31, 20, .62) 60%, rgba(28, 20, 14, .9) 84%, var(--kiln) 100%); }
[data-light="night"] .kiln::before { background: linear-gradient(to bottom, rgba(23, 17, 12, 0) 0%, rgba(34, 30, 44, .35) 35%, rgba(26, 20, 22, .75) 70%, var(--kiln) 100%); }
.kiln__bg { position: absolute; inset: 0; grid-row: 1 / 2; background: linear-gradient(to bottom, var(--kiln) 0%, #1E150E 60%, var(--kiln-deep) 100%); z-index: -3; }
/* выход к стене — 180 px, без пустого бурого поля */
.kiln__fade { position: absolute; left: 0; right: 0; top: 0; grid-row: 2 / 3; height: 180px; z-index: -3; pointer-events: none; background: linear-gradient(to bottom, var(--kiln-deep) 0%, rgba(42, 26, 16, .72) 30%, rgba(120, 88, 50, .25) 70%, rgba(168, 136, 86, 0) 100%); }
[data-light="night"] .kiln__fade { background: linear-gradient(to bottom, var(--kiln-deep) 0%, rgba(42, 26, 16, .7) 30%, rgba(44, 40, 60, .3) 70%, rgba(47, 48, 71, 0) 100%); }
/* жар: слой света вокруг проёма печи (место и высоту ставит kiln.js) */
.kiln__heat { position: absolute; left: 0; right: 0; top: 0; height: 100vh; overflow: hidden; z-index: -2; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 220px), transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 220px), transparent 100%); }
.kiln__glow { position: absolute; left: -15%; right: -15%; bottom: 0; height: 100%; background: radial-gradient(36% 48% at 57% 70%, rgba(255, 110, 30, .62), rgba(255, 106, 26, .3) 36%, rgba(255, 90, 20, .1) 62%, rgba(255, 90, 20, 0) 80%); transform: translate(0, 60%); }
.kiln.is-live :is(.kiln__glow, .kiln__core, .kf__hot, .oven__img--hot, .oven__rise, .haze, .kr__stage, .kr__hot) { will-change: transform, opacity; }
.kiln__core { position: absolute; left: 32%; right: 18%; top: 50%; height: 36%; background: radial-gradient(50% 50% at 50% 55%, rgba(255, 240, 200, .8), rgba(255, 210, 122, .5) 30%, rgba(255, 179, 71, .16) 60%, rgba(255, 179, 71, 0) 80%); opacity: 0; }
.kiln__inner { position: relative; grid-row: 1; max-width: calc(var(--maxw) + 2 * var(--gut)); width: 100%; margin: 0 auto; padding: clamp(84px, 9vw, 120px) var(--gut) clamp(40px, 4vw, 56px); }
/* заголовок — по центру, очень крупно, в свете жара: за ним тёплое пятно (прозрачность — kiln.js) */
.kiln__head { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; text-align: center; }
.kiln__head::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1100px, 120vw); height: 440px; translate: -50% -50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 128, 48, .36), rgba(255, 110, 30, .12) 55%, rgba(255, 110, 30, 0)); opacity: var(--glow, .35); }
.kiln__head .rubric { justify-content: center; }
.rubric--kiln { color: #FFD9A8; }
.rubric--kiln::before { background: var(--heat); }
.kiln h2.kiln__title { font: 700 clamp(76px, 13vw, 196px)/.9 "PT Serif", Georgia, serif; color: #FFE9C9; letter-spacing: -.015em; }
.kiln__quote { margin: 24px auto 0; max-width: 620px; font-size: 20px; line-height: 1.45; color: rgba(244, 233, 218, .9); }
.kiln__quote--2 { margin: 28px auto 0; text-align: center; font-family: "PT Serif", Georgia, serif; font-size: 21px; line-height: 1.35; max-width: 560px; }
/* сцена: печь за доской, перед ней на доске — сырые изделия; подписи — под доской */
.kiln__shelf { --ow: min(600px, 46vw); --boardH: 18px; --capH: 92px; position: relative; display: flex; align-items: flex-end; margin-top: clamp(40px, 5vw, 72px); padding: calc(var(--ow) * 560 / 600 * .46) 4% calc(var(--boardH) + var(--capH)); }
.oven { position: absolute; z-index: 0; left: 57%; bottom: calc(var(--boardH) + var(--capH)); width: var(--ow); aspect-ratio: 600 / 560; translate: -50% 0; pointer-events: none; }
.oven__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.oven__img--hot { opacity: .12; }
/* жар поднимается из открытого верха печи: столб тёплого света над проёмом */
.oven__rise { position: absolute; z-index: 3; left: 50%; bottom: calc(100% * 268 / 560); width: 62%; height: 72%; translate: -50% 0; transform-origin: 50% 100%; opacity: 0; background: radial-gradient(50% 62% at 50% 100%, rgba(255, 196, 120, .55), rgba(255, 150, 70, .2) 45%, rgba(255, 120, 40, 0) 76%); }
/* горячий воздух над проёмом дрожит — три прозрачные волны (transform), без искр */
.oven .haze { position: absolute; z-index: 4; left: 24%; right: 24%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 160, .2), rgba(255, 214, 160, 0)); opacity: 0; animation: haze 1.6s ease-in-out infinite alternate; animation-play-state: paused; }
.kiln.is-live .oven .haze { animation-play-state: running; }
.oven .haze--1 { bottom: 54%; }
.oven .haze--2 { bottom: 62%; left: 28%; right: 28%; animation-delay: -.8s; }
.oven .haze--3 { bottom: 70%; left: 33%; right: 33%; animation-delay: -.4s; animation-duration: 2.1s; }
@keyframes haze { from { transform: translate(0, 3px) scaleX(1.03); } to { transform: translate(0, -4px) scaleX(.97); } }
.kiln__board { position: absolute; z-index: 1; left: 0; right: 0; bottom: var(--capH); height: var(--boardH); border-radius: 1px; background: linear-gradient(to bottom, #6A4A33, #4A3424 45%, #2B1D13 100%) !important; box-shadow: 0 1px 0 rgba(255, 180, 110, .22) inset, 0 28px 36px -22px rgba(0, 0, 0, .9); }
.kf { position: relative; z-index: 2; margin: 0; }
.kf__img { position: relative; display: block; }
.kf__img img { width: 100%; height: auto; }
.kf--photo .kf__img img { border-radius: 3px; }
.kf--photo .kf__img { box-shadow: 0 24px 30px -24px rgba(0, 0, 0, .9); }
/* снимок с рукой — меньше и в стороне от печи */
.kf--a { width: 15.5%; margin-left: 1%; transform: rotate(-2.5deg); transform-origin: 50% 100%; margin-bottom: 4px; }
/* носорог — перед левой половиной печи; зубастый — перед правой; проём печи виден над ними */
.kf--b { width: 20%; margin-left: 12%; }
.kf--c { width: 16%; margin-left: 5%; }
.kf--cut .kf__img { margin-bottom: -3px; }
/* «горячая» копия — свет от печи: сверху и со стороны проёма */
.kf__hot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .7) 40%, rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .7) 40%, rgba(0, 0, 0, .25) 100%); }
/* подписи — под доской, её почерком, без подложки */
.kf figcaption { position: absolute; left: 50%; top: calc(100% + var(--boardH) + 16px); width: max(100%, 220px); translate: -50% 0; font: 400 17px/1.3 "PT Serif", Georgia, serif; color: #F1E4D2; text-align: center; }
.kf--a figcaption { transform: rotate(2.5deg); }
/* окно 700–1179 px: изделия стоят теснее — подписи по ширине своего изделия (чуть шире), иначе
   соседние наезжали друг на друга; под доской для них больше места */
@media (min-width: 700px) and (max-width: 1179px) {
  .kiln__shelf { --capH: 116px; }
  .kf figcaption { font-size: 15.5px; line-height: 1.26; }
  .kf--a figcaption { width: 170%; }
  .kf--b figcaption { width: 110%; }
  .kf--c figcaption { width: 125%; }
}
/* результат: обожжённая кружка поднимается из жара и остывает — раскалённая копия гаснет (kiln.js) */
.kiln__result { position: relative; grid-row: 2; max-width: calc(var(--maxw) + 2 * var(--gut)); width: 100%; margin: 0 auto; padding: 24px var(--gut) 48px; display: flex; justify-content: center; }
.kr { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; max-width: 620px; }
.kr__stage { position: relative; display: block; width: min(380px, 60vw); padding: 0 4%; }
.mug--result { width: 100%; height: auto; aspect-ratio: var(--ar); cursor: default; }
.mug--result .mug__body { position: absolute; inset: 0; }
.kr__hot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.kr__board { position: absolute; z-index: 1; left: -8%; right: -8%; bottom: -12px; height: 24px; --bt: 10px; --rib: 4px; box-shadow: 0 30px 40px -26px rgba(70, 38, 12, .6); }
.mug--result .mug__cshadow { z-index: 2; }
.kr figcaption { max-width: 34em; text-align: center; font: 400 22px/1.42 "PT Serif", Georgia, serif; color: var(--ink-deep); }
[data-light="night"] .kr figcaption { color: var(--paper); }
@media (max-width: 699px) {
  .kiln__shelf { --ow: 106vw; --capH: 78px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: end; padding: calc(var(--ow) * 560 / 600 * .5) 0 calc(var(--boardH) + var(--capH)); margin-top: 48px; }
  .oven { left: 50%; }
  .kf--b { grid-column: 1 / -1; grid-row: 1; width: 62%; justify-self: center; margin: 0 0 calc(var(--boardH) + var(--capH) + 28px); }
  /* доска под носорогом — своя; под парой внизу — общая */
  .kf--b::after { content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; bottom: calc(var(--boardH) * -1 + 3px); height: var(--boardH); background: linear-gradient(to bottom, #6A4A33, #4A3424 45%, #2B1D13 100%); box-shadow: 0 1px 0 rgba(255, 180, 110, .22) inset, 0 22px 30px -20px rgba(0, 0, 0, .9); }
  .kf--a { grid-column: 1; grid-row: 2; width: 86%; margin: 0 0 4px 4%; }
  .kf--c { grid-column: 2; grid-row: 2; width: 100%; margin: 0; }
  .kf figcaption { width: 100%; font-size: 15.5px; }
  .kf--b figcaption { width: 150%; }
  .kiln__quote { font-size: 18px; }
  .kr figcaption { font-size: 19px; }
  .kiln__result { padding-top: 20px; }
  .kiln__glow { left: -40%; right: -40%; background: radial-gradient(50% 44% at 50% 70%, rgba(255, 106, 26, .7), rgba(255, 106, 26, .34) 36%, rgba(255, 90, 20, .1) 62%, rgba(255, 90, 20, 0) 80%); }
  .kiln__core { left: 0; right: 0; }
}
/* без JS и при отключённой анимации — сразу спокойное состояние: печь тёплая, кружка остыла */
html:not(.js) .oven__img--hot, .rm .oven__img--hot { opacity: .55; }
html:not(.js) .kr__hot, .rm .kr__hot { opacity: 0; }
html:not(.js) .oven__rise, .rm .oven__rise { opacity: .35; }
/* старые браузеры без overflow: clip (Safari до 16, в том числе во встроенном браузере
   Telegram на таких телефонах): печь — ровно в ширину экрана, страница не сдвигается вбок */
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
  .kiln__shelf { --ow: min(100vw, 600px); }
}

/* ---------- керамические плашки ----------
   Таблички разделов и площадки маркетов — не бумажки, а глазурованная керамика с кобальтовой
   надписью, как её вывеска KOSMO на стенде (фото p465_1): белая глазурь с мягким глянцем,
   неровные «ручные» углы, край глины под глазурью, сверху — полоса глазури цвета раздела.
   Бумага остаётся там, где она правда есть на её стенде: ценники и тент-карточки. */
.tile, .plate--tile {
  color: var(--ink);
  background:
    radial-gradient(110% 85% at 16% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 48%),
    radial-gradient(60% 50% at 88% 100%, rgba(150, 120, 88, .12), rgba(150, 120, 88, 0) 70%),
    linear-gradient(to bottom, #F8F5EF, #EDE7DC 70%, #E3DBCD);
  border-radius: 11px 13px 10px 12px / 13px 10px 13px 11px;
  box-shadow:
    inset 0 0 0 1.5px rgba(150, 118, 84, .34),
    inset 0 -3px 0 rgba(130, 100, 70, .16),
    inset 0 2px 1px rgba(255, 255, 255, .95),
    0 12px 16px -12px rgba(60, 30, 0, .62);
}
.tile::before, .plate--tile::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 6px; border-radius: 0 0 4px 4px; background: var(--accent); background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); opacity: .95; }
.plate--tile { border-radius: 12px 14px 11px 13px / 14px 11px 14px 12px; }
.plate--tile h2, [data-light="night"] .plate--tile h2 { color: var(--ink); }
.plate--tile .rubric, [data-light="night"] .plate--tile .rubric { color: var(--ink-deep); }

/* ---------- 6. Оксана: её слова слева, фото — справа, в розовом домике стенда ----------
   На верхней кромке рамки сидит банда (три маленькие вырезки) и смотрит на её фото (ТЗ 3.2);
   когда посетитель читает её слова (наведение на цитату), банда оборачивается к нему. */
.oksana { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.oksana__scene { grid-column: 2; grid-row: 1; }
.oksana__text { grid-column: 1; grid-row: 1; }
.oksana__frame {
  position: relative; display: block; padding: 3.2cqw 3.2cqw 0; overflow: hidden;
  border: 14px solid var(--pink); border-bottom-width: 0; border-radius: 2px 2px 0 0;
  box-shadow: inset 4px 0 0 -1px var(--orange), inset -4px 0 0 -1px var(--orange), 0 34px 46px -32px rgba(50, 25, 0, .8);
  background: #E7C08A;
}
.oksana__frame::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: 0; height: 16px; background: linear-gradient(to bottom, #E36A95 0 6px, #D9457A 6px 12px, var(--orange) 12px 16px); }
.oksana__led, .where__led { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(to bottom, rgba(255, 226, 170, .8), rgba(255, 217, 160, 0)); pointer-events: none; }
.oksana__photo { container-type: inline-size; }
/* заголовок раздела — керамическая табличка её стенда на верхней кромке розового домика */
.oksana__scene, .where__col--photo { position: relative; padding-top: 44px; }
.plate {
  position: absolute; z-index: 4; left: 50%; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: max-content; max-width: 94%; padding: 15px 26px 12px;
  text-align: center;
  transform: translateX(-50%) rotate(-1.5deg);
  transition: opacity .25s var(--ease-out);
}
.plate .rubric { margin: 0; font-size: 14px; }
.plate .rubric::before { display: none; }
.plate h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1; text-wrap: balance; }
.oksana__frame img { width: 100%; margin-bottom: 16px; }
/* банда на кромке рамки: ножки на розовой балке, смотрят вниз, на неё */
.oksana__gang { position: absolute; z-index: 5; left: 0; right: 0; top: 44px; height: 0; pointer-events: none; }
.mug--story { --h: clamp(50px, 4.6vw, 64px); position: absolute; bottom: calc((1 - var(--fb, 1)) * var(--h) * -1 - 6px); }
.mug--s0 { left: 3%; }
.mug--s1 { left: calc(3% + var(--h) * 1.45 + 6px); }
.mug--s2 { right: 3%; }
.mug--story .mug__wshadow { opacity: calc(var(--shadow-alpha) * .8); }
/* её слова — без розовой черты слева: обычный текст, самая короткая фраза — крупно */
.oq { margin-top: 24px; font: 400 clamp(19px, 1.6vw, 23px)/1.4 "PT Serif", Georgia, serif; color: var(--ink-deep); max-width: 34ch; }
[data-light="night"] .oq { color: var(--text); }
.oq--big { font: 700 clamp(40px, 4.4vw, 68px)/1.04 "PT Serif", Georgia, serif; margin-top: 38px; color: var(--title); max-width: none; }
@media (max-width: 799px) {
  .oksana { grid-template-columns: minmax(0, 1fr); }
  .oksana__scene { grid-column: 1; grid-row: 1; max-width: 420px; width: 100%; }
  .oksana__text { grid-column: 1; grid-row: 2; }
  .mug--story { --h: 50px; }
  .mug--s1 { display: none; }
}

/* ---------- 7. где найти: фото стенда слева, площадки и «как забрать» справа ----------
   Площадки — керамическими плашками разной длины (по длине названия и мест), вразброс, как
   таблички на стене мастерской, а не строками с линейками. */
.where { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 90px); align-items: start; padding-bottom: clamp(56px, 6vw, 88px); }
.where__next { margin-top: 18px; font-size: 20px; color: var(--text-soft); }
.where__next a, .foot__links a, .card__post a { color: var(--ink-deep); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; }
.where__next a { display: inline-block; padding: 10px 0; margin: -10px 0; }
/* ночью ссылки — бумажным цветом с подчёркиванием: бирюзовые на стене, освещённой лампой,
   давали 3,4 : 1 */
[data-light="night"] .where__next a, [data-light="night"] .foot__links a { color: #F6F1E7; }
.where__cap { margin-top: 30px; font-size: 15px; color: var(--text-soft); }
.venues { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 18px; margin-top: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 20px 13px; transform: rotate(var(--r, -.8deg)); }
.tile--2 { --r: 1deg; } .tile--3 { --r: -.4deg; } .tile--4 { --r: 1.3deg; } .tile--5 { --r: -1.2deg; }
.tile--1 { flex-basis: 64%; } .tile--3 { flex-basis: 72%; }
.tile__n { font: 700 clamp(23px, 2vw, 29px)/1.1 "PT Serif", Georgia, serif; color: var(--ink); }
.tile__p { font-size: 14.5px; line-height: 1.35; color: var(--ink-deep); }
/* «недавний маркет» — обычной строкой */
.where__last { margin-top: 26px; font-size: 17px; line-height: 1.4; color: var(--text-soft); }
/* её стенд — на розовой полке с подсветкой, как стоит на маркете */
.where__col--photo { position: sticky; top: calc(var(--hdr) + 32px); max-width: 440px; width: 100%; grid-column: 1; grid-row: 1; }
.where__col:not(.where__col--photo) { grid-column: 2; grid-row: 1; }
.where__photo { container-type: inline-size; max-width: 440px; }
.where__frame { position: relative; display: block; padding: 3cqw 3cqw 0; overflow: hidden; border: 14px solid var(--pink); border-bottom-width: 0; border-radius: 2px 2px 0 0; background: #E7C08A; box-shadow: inset 4px 0 0 -1px var(--orange), inset -4px 0 0 -1px var(--orange), 0 30px 40px -30px rgba(50, 25, 0, .8); }
.where__frame::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: 0; height: 16px; background: linear-gradient(to bottom, #E36A95 0 6px, #D9457A 6px 12px, var(--orange) 12px 16px); }
.where__frame img { width: 100%; margin-bottom: 16px; }
.howto { margin-top: 44px; }
.howto h3 { font: 700 clamp(28px, 2.6vw, 40px)/1.05 "PT Serif", Georgia, serif; color: var(--title); }
.howto__q { margin-top: 14px; font-size: 20px; line-height: 1.4; color: var(--text-soft); }
/* красная кнопка на экране одна (в шапке) — здесь текстовая ссылка */
.howto__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font: 500 20px/1.2 "PT Serif", Georgia, serif; color: var(--ink-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; transition: color .2s; }
.howto__link:hover { color: var(--ink-deep); text-decoration-thickness: 2.5px; }
.howto__arr { display: inline-block; text-decoration: none; transition: transform .22s var(--ease-out); }
.howto__link:hover .howto__arr { transform: translateX(4px); }
[data-light="night"] .howto__link { color: #F6F1E7; }
.howto__small { margin-top: 12px; font-size: 15px; color: var(--text-soft); max-width: 36ch; }
@media (max-width: 799px) {
  .where { grid-template-columns: minmax(0, 1fr); }
  .where__col--photo { position: relative; top: auto; grid-column: 1; grid-row: auto; }
  .where__col:not(.where__col--photo) { grid-column: 1; grid-row: auto; }
  .tile--1, .tile--3 { flex-basis: 100%; }
}

/* ---------- 8. финал: вся банда на последней полке, между ними — красная кнопка ----------
   Над полкой — её слова про то, как банда любит позировать; ближе к подвалу банду клонит в
   сон: веки прикрываются, одна засыпает совсем (app.js). Подвал — мелкой строкой под доской. */
.fin { position: relative; z-index: 1; padding: clamp(48px, 6vw, 88px) var(--gut) 0; text-align: center; overflow-x: clip; }
.fin__shelf { --u: min(0.27vw, 0.46vh); position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 1.8vw, 28px); width: min(86vw, 1240px); margin: 0 auto; padding: 0 1%; }
.fin__gang { position: relative; z-index: 2; display: flex; align-items: flex-end; }
.fin__gang--l { justify-content: flex-end; }
.mug--finale { --h: calc(var(--k) * var(--u) * 1.1); margin: 0 calc(var(--h) * var(--ar) * -0.07); margin-bottom: calc(var(--h) * (var(--fb, 1) - 1) - 6px); }
.fin__cta { position: relative; z-index: 3; align-self: center; margin: 0 0 calc(var(--u) * 3); min-height: 56px; padding: 0 30px; font-size: 18px; border-radius: 28px; }
.fin__board { position: absolute; z-index: 1; left: 0; right: 0; bottom: -18px; height: 30px; --bt: 12px; --rib: 5px; box-shadow: 0 34px 44px -28px rgba(70, 38, 12, .6); }
.fin__line { margin: 0 auto 44px; max-width: 560px; font: 400 clamp(19px, 1.7vw, 22px)/1.4 "PT Serif", Georgia, serif; color: var(--ink-deep); }
/* банда спрыгивает сверху — с полочки-меню; пока не приземлилась, её невидимые тела не ловят
   нажатия (иначе нажатие на соседку или на текст открывало не ту кружку) */
.js:not(.rm) .mug--finale .mug__body, .js:not(.rm) .mug--finale .mug__wshadow { opacity: 0; transform: translate(0, -120px); }
.js:not(.rm) .mug--finale:not(.landed) .mug__body, .js:not(.rm) .mug--hero:not(.landed) .mug__body { pointer-events: none; }
.js:not(.rm) .mug--finale .mug__cshadow { opacity: 0; transform: scale(.4); }
.js:not(.rm) .mug--finale.landed .mug__body { opacity: 1; transform: none; animation: landdown .6s var(--spring) backwards; }
.js:not(.rm) .mug--finale.landed .mug__wshadow { opacity: var(--shadow-alpha); transform: translate(var(--shadow-dx), 0) skewX(var(--shadow-skew)) scaleX(var(--shadow-scale)) scaleY(.94); transition: opacity .3s .3s, transform .5s var(--spring); }
.js:not(.rm) .mug--finale.landed .mug__cshadow { opacity: .86; transform: none; transition: opacity .2s .38s, transform .2s .38s var(--ease-out); }
.js:not(.rm) .mug--finale.landed:is(:hover, .is-lift) .mug__body { animation: none; transform: translate(0, -4px) rotate(var(--tilt, 2.5deg)); }
@keyframes landdown {
  0% { opacity: 0; transform: translate3d(0, -120px, 0); }
  20% { opacity: 1; }
  70% { transform: translate3d(0, 0, 0) scale(1, 1); }
  82% { transform: translate3d(0, 0, 0) scale(1.05, .93); }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 699px) {
  .fin__shelf { --u: 0.62vw; flex-wrap: wrap; width: 100%; row-gap: 0; }
  .fin__gang { flex: 0 0 100%; justify-content: center; }
  .fin__gang--r { order: 3; margin-top: 46px; }
  .fin__cta { order: 5; margin: 44px auto 0; width: 100%; max-width: 360px; }
  .fin__board { display: none; }
  .fin__gang::after { content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: -16px; height: 22px; --bt: 9px; --rib: 4px; box-shadow: 0 22px 26px -20px rgba(70, 38, 12, .6); }
}

/* ---------- подвал — мелкой строкой под последней доской ---------- */
.foot { position: relative; z-index: 1; padding: 46px var(--gut) 40px; text-align: center; max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; font-size: 14px; }
/* телефон и планшет: низ подвала — над нижней полочкой-меню («наверх» не под ней) */
@media (max-width: 899px) { .foot { padding-bottom: calc(var(--bar) + 56px + env(safe-area-inset-bottom)); } }
.foot__brand { font: 500 14px/1 "PT Serif", Georgia, serif; color: var(--ink-deep); letter-spacing: .02em; }
.foot__nav, .foot__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 14px; }
.foot__links { margin-top: 2px; }
.foot__nav a, .foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; font-size: 14px; color: var(--ink-deep); text-underline-offset: .2em; }
[data-light="night"] .foot__nav a, [data-light="night"] .foot__brand { color: var(--paper); }

/* ---------- прыжок к посетителю: сцена, свет, бумажный ценник ---------- */
.stage { position: fixed; inset: 0; z-index: 80; }
/* Плотный кобальт полностью скрывает исходный стенд. */
.stage__dim { position:absolute; inset:0; opacity:0; background:#233158; }
.clone { position:fixed; left:0; top:0; z-index:2; will-change:transform; }
.clone .mug { position:absolute; inset:0; width:100%; height:100%; cursor:default; }
.clone .mug__body { transition:none; transform:none; transform-origin:50% calc(var(--fb) * 100%); }
.clone .mug__cshadow {
  top:calc(var(--fb) * 100% - 4px); bottom:auto; height:8px;
  left:calc(var(--f0) * 100%); width:calc((var(--f1) - var(--f0)) * 100%);
  opacity:.88; transform:none;
  background:radial-gradient(ellipse,rgba(38,16,29,.8) 12%,rgba(38,16,29,.55) 40%,rgba(38,16,29,0) 74%);
}
.clone__board { position:absolute; z-index:0; left:-5%; width:110%; top:calc(var(--foot) * 100% - 4px); height:22px; --bt:8px; --rib:3px; box-shadow:0 10px 16px -10px #10182d; }
.clone .tag { display:none; }
/* Исходная кружка возвращается на то же место без сдвига соседок и досок. */
.is-jumping .mug.is-hidden :is(.mug__wshadow,.mug__cshadow) { visibility:hidden; }
.card__photos { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.card__photo { min-width:44px; min-height:44px; padding:4px 12px; border:1px solid currentColor; border-radius:3px; font:inherit; }
.card__photo[aria-pressed="true"] { background:var(--ink-deep); color:var(--paper); }
/* бумажный ценник-тент: как на её стенде — сгиб сверху полосой с тенью, фактура бумаги,
   стоит на том же полу, что и кружка */
:root {
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='p' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .1  0 0 0 .12 -.03'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
}
.card {
  position: fixed; z-index: 3;
  width: min(380px, calc(100vw - 32px));
  padding: 28px 22px 20px 22px;
  color: var(--ink-deep);
  background:
    linear-gradient(to bottom, #E2D7C1 0, #EAE1CF 8px, rgba(70, 48, 16, .16) 8px, rgba(70, 48, 16, .05) 14px, rgba(70, 48, 16, 0) 22px),
    var(--paper-grain) 0 0 / 180px 180px repeat,
    linear-gradient(to bottom, #FDFAF4 0, var(--paper) 55%, #ECE3D1 100%);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
  font: 400 17px/1.3 "PT Serif", Georgia, serif;
}
.card__fold { position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: rgba(35, 49, 88, .22); box-shadow: 0 1px 0 rgba(255, 255, 255, .7); pointer-events: none; }
.card__shadow { position: absolute; left: 4%; right: 4%; bottom: -10px; height: 18px; z-index: -1; background: url("../img/shadow/ellipse.webp") center / 100% 100% no-repeat; opacity: .6; pointer-events: none; }
.card__desc { font-size: 20px; line-height: 1.22; padding-right: 36px; }
.card__desc b { font-weight: 400; }
.card__price { margin-top: 10px; font: 500 18px/1.2 "PT Serif", Georgia, serif; font-variant-numeric: tabular-nums; }
/* статус — текстом чернил; «в наличии» — с маленькой рисованной галочкой цвета синей глазури */
.card__status { margin-top: 6px; font-size: 17px; }
.card[data-status="here"] .card__status::before {
  content: ""; display: inline-block; width: 16px; height: 13px; margin-right: 6px; vertical-align: -1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13'><path d='M1.6 7.4c1.3.9 2.5 2.1 3.6 3.7 1.9-4.1 4.9-7.4 9.2-9.7' fill='none' stroke='%235E7994' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.card__post { margin-top: 14px; font-size: 16px; line-height: 20px; }
/* ссылка на пост — цель касания не меньше 44 px, до кнопки заказа 12 px */
.card__post a { display: inline-block; padding: 12px 0; margin: -12px 0; line-height: 20px; color: var(--ink-deep); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; }
.card__actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.card__order { position: relative; width: 100%; min-height: 52px; font-size: 17px; border-radius: 26px; }
.card__close { position: absolute; right: 8px; top: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color .15s, transform .2s var(--ease-out); }
.card__close:hover { background: rgba(35, 49, 88, .08); transform: rotate(90deg); }
.card__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }
.card__again { min-height: 44px; border-radius: 22px; border: 1.5px solid var(--ink); font: 400 16px/1 "PT Serif", Georgia, serif; }
.card__again:hover { background: var(--ink); color: var(--paper); }
.card__hint { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px) rotate(-1.5deg); opacity: 0; pointer-events: none; width: max-content; max-width: 280px; padding: 7px 12px; background: var(--paper); color: var(--ink-deep); border-radius: 2px; font: 400 15px/1.2 "PT Serif", Georgia, serif; box-shadow: 0 8px 14px -8px rgba(40, 20, 0, .6); transition: opacity .2s, transform .25s var(--spring); }
.card__hint.is-on { opacity: 1; transform: translate(-50%, 0) rotate(-1.5deg); }
/* низкое окно (телефон боком): ценник справа от кружки и плотнее — целиком в высоте экрана;
   если окно ещё ниже, листается внутри себя, кнопка заказа не уходит за край */
.card.card--side { width: min(340px, 46vw); padding: 22px 18px 16px; }
.card.card--scroll { max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.card--scroll .card__hint { top: 10px; bottom: auto; }
.card--side .card__desc { font-size: 18px; }
.card--side .card__post { margin-top: 10px; }
.card--side .card__actions { margin-top: 16px; }
.card--side .card__close { top: 10px; }
@media (max-width: 699px) {
  /* шторка — тот же бумажный тент: сгиб сверху вместо «ручки» системного окна */
  .card.card--sheet { left: 0; right: 0; bottom: 0; top: auto; width: 100%; border-radius: 3px 3px 0 0; padding: 30px 18px calc(18px + env(safe-area-inset-bottom)); max-height:60svh; overflow-y:auto; overscroll-behavior:contain; font-size: 16px; box-shadow: 0 -18px 30px -20px rgba(10, 15, 40, .6), 0 1px 0 rgba(255, 255, 255, .9) inset; }
  .card--sheet .card__close { top: 14px; }
  .card--sheet .card__desc { font-size: 19px; }
}

/* «Эта выбрала вас» — бумажный тент на стене сбоку от домика (как карточка прыжка: сгиб сверху,
   фактура бумаги); с выбранной его связывают только взгляды банды — без хвостика-стрелки.
   «Пусть выберут ещё раз» — ссылка её почерком. На телефоне — шторкой внизу, над полочкой */
.pick {
  position: absolute; z-index: 20; width: 286px; padding: 28px 18px 14px 20px;
  color: var(--ink-deep); border-radius: 2px;
  background:
    linear-gradient(to bottom, #E2D7C1 0, #EAE1CF 8px, rgba(70, 48, 16, .16) 8px, rgba(70, 48, 16, .05) 14px, rgba(70, 48, 16, 0) 22px),
    var(--paper-grain) 0 0 / 180px 180px repeat,
    linear-gradient(to bottom, #FDFAF4 0, var(--paper) 55%, #ECE3D1 100%);
  box-shadow: 0 22px 30px -20px rgba(40, 20, 0, .7), 0 1px 0 rgba(255, 255, 255, .9) inset;
  font: 400 16px/1.25 "PT Serif", Georgia, serif;
  transform: rotate(var(--pr, -1.2deg));
}
.pick::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: rgba(35, 49, 88, .22); box-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.pick--r { --pr: 1.2deg; }
.pick__t { font: 700 24px/1.05 "PT Serif", Georgia, serif; margin-bottom: 10px; padding-right: 28px; }
.pick__who { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pick__who img { flex: 0 0 auto; width: 58px; height: 44px; object-fit: contain; }
.pick__who span { font-size: 14px; line-height: 1.3; color: var(--ink-deep); }
.pick__who b { display: block; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.pick .btn-red { width: 100%; min-height: 46px; font-size: 15px; white-space: nowrap; padding: 0 16px; }
.pick__again { display: block; margin: 6px auto 0; min-height: 44px; padding: 0 6px; font: 400 17px/44px "PT Serif", Georgia, serif; color: var(--ink-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.pick__again:hover { text-decoration-thickness: 2px; }
.pick__x { position: absolute; right: 2px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; }
.pick__x svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 2; }
.pick.pick--sheet { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(var(--bar, 0px) + 12px + env(safe-area-inset-bottom)); width: auto; max-width: 420px; margin: 0 auto; transform: none; }
.pick.pick--dock { position: fixed; top: auto; bottom: 24px; }
/* низкое окно: карточка рядом с выбранной — плотнее, чтобы уместиться по высоте; нижняя
   полочка-меню телефона на это время уезжает вниз (вернётся, когда карточку закроют) */
.pick.pick--beside { width: min(286px, 44vw); padding: 22px 14px 8px 16px; }
.pick--beside .pick__t { font-size: 21px; margin-bottom: 6px; }
.pick--beside .pick__who { margin-bottom: 8px; }
.pick--beside .pick__again { margin-top: 0; }
@media (max-width: 899px) and (max-height: 559px) {
  .pick-open .snav { transform: translateY(calc(100% + 16px)); }
}
@media (min-width: 900px) { .pick.pick--sheet { bottom: 24px; } }

/* бумажка «текст скопирован» */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 0) rotate(-1deg); padding: 10px 16px; background: var(--paper); color: var(--ink-deep); border-radius: 2px; font: 400 17px/1.2 "PT Serif", Georgia, serif; box-shadow: 0 12px 18px -10px rgba(40, 20, 0, .6); }
@media (max-width: 899px) { .toast { bottom: calc(var(--bar) + 14px + env(safe-area-inset-bottom)); } }

/* ---------- появление: не «всплытие», а механика сайта (со страховкой в JS) ----------
   Кружки и снимки выглядывают из-за кромки своей полки (или рамки): сначала ободок и глаза,
   потом вся — и сразу смотрят на посетителя (app.js). Кромка — низ их собственной коробки
   (ножки на доске), тени появляются, когда она встала. Тексты просто проявляются, без подъёма. */
.js:not(.rm) .rv { opacity: 0; }
.js:not(.rm) .rv.in { opacity: 1; transition: opacity .5s var(--ease-out); transition-delay: calc(var(--rv-i, 0) * 90ms); }
.js:not(.rm) .peek { clip-path: inset(-60% -40% 0 -40%); }
/* кадры «в руке»: выглядывает сама фотография (обёртка), подпись под доской не обрезается */
.js:not(.rm) .tp.peek { clip-path: none; }
.js:not(.rm) .tp.peek .tp__ph { clip-path: inset(-60% -40% 0 -40%); }
.js:not(.rm) .mug.peek .mug__body, .js:not(.rm) .print.peek .print__photo, .js:not(.rm) .tp.peek img { translate: 0 104%; }
.js:not(.rm) .peek :is(.mug__wshadow, .mug__cshadow) { opacity: 0; transition: none; }
.js:not(.rm) .mug.peek.in .mug__body, .js:not(.rm) .print.peek.in .print__photo, .js:not(.rm) .tp.peek.in img { translate: 0 0; transition: translate .66s var(--spring), transform .22s var(--ease-out); transition-delay: calc(var(--rv-i, 0) * 110ms), 0s; }
.js:not(.rm) .peek.in .mug__wshadow { opacity: var(--shadow-alpha); transition: opacity .4s var(--ease-out) calc(var(--rv-i, 0) * 110ms + .4s); }
.js:not(.rm) .peek.in .mug__cshadow { opacity: .86; transition: opacity .3s var(--ease-out) calc(var(--rv-i, 0) * 110ms + .45s); }

/* ---------- ночь: мелочи ---------- */
[data-light="night"] .rubric { color: var(--paper); }
[data-light="night"] .cat__note, [data-light="night"] .where__cap { color: #F6F1E7; }
[data-light="night"] .ocap__note { opacity: 1; }
[data-light="night"] .foot { border-color: rgba(246, 241, 231, .15); }
[data-light="night"] .switch { box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .7); }
[data-light="night"] .fin__line { color: var(--paper); }

/* ---------- цвет раздела ----------
   У каждого раздела свой постоянный акцент: чёрточка рубрики, ленточки ценников, кольцо
   фокуса. Не переключается по прокрутке на <html> (это пересчитывало стили всей страницы). */
#polka, #nalichie { --accent: var(--pink); }
#ne-tolko { --accent: var(--glaze-lilac); }
#trogat { --accent: var(--glaze-blue); }
#pech { --accent: var(--heat); }
#oksana { --accent: var(--glaze-raspberry); }
#gde, .fin { --accent: var(--teal); }
[data-light="night"] #trogat { --accent: var(--glaze-blue-light); }
/* цвет раздела виден не только в чёрточке: у каждого раздела своё пятно солнца на стене —
   с оттенком его цвета (7 %), и лента 6 px на бумажках и плашках раздела. Стеной по-прежнему
   управляет время суток */
/* пятно — фоном самого раздела (не выходит за его края и не раздвигает страницу вбок) */
.sec { background-image: radial-gradient(62% 46% at 50% 30%, rgba(252, 236, 200, .5), rgba(250, 230, 186, .2) 48%, rgba(248, 226, 176, 0) 100%);
  background-image: radial-gradient(62% 46% at 50% 30%, color-mix(in srgb, rgba(252, 236, 200, .5) 93%, var(--accent)), color-mix(in srgb, rgba(250, 230, 186, .2) 92%, var(--accent)) 48%, rgba(248, 226, 176, 0) 100%);
  background-repeat: no-repeat; }
[data-light="night"] .sec { background-image: none; }
.tag__t { border-left-width: 5px; }
.switch { border-top: 6px solid var(--accent); }
.tent { border-top: 6px solid var(--accent); }

/* ---------- отключённая анимация: всё видно сразу, ничего не прыгает ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wall__sun, .wall__leaves, .haze { animation: none !important; }
  .mug:not(.mug--clone):is(:hover, .is-lift) .mug__body { transform: none; }
}

.nw { white-space: nowrap; }
/* пятно солнца за кубком и широкие подписи не раздвигают страницу вбок (на телефоне кубок — во
   всю ширину, пятно шире экрана) */
.others { overflow-x: clip; }
@media (max-width: 899px) { .sec { overflow-x: clip; } }

/* Свежий снимок — настоящая фотография Оксаны, отдельно от живой вырезки. */
.card__fresh { display:flex; align-items:center; gap:10px; margin-top:10px; padding:4px; text-align:left; font:16px/1.2 "PT Serif", Georgia, serif; color:var(--ink-deep); }
.card__fresh img { display:block; width:36px; height:48px; object-fit:cover; border:3px solid #fff; box-shadow:0 2px 4px #23315833; }
.card__fresh span { text-decoration:underline; text-underline-offset:3px; }
.card__photo { display:flex; align-items:center; justify-content:center; padding:3px; width:48px; height:60px; background:transparent; }
.card__photo img { width:100%; height:100%; object-fit:cover; pointer-events:none; }
.card__photo[aria-pressed="true"] { outline:2px solid var(--ink-deep); outline-offset:2px; }
.photo-view { position:absolute; inset:0; z-index:5; display:grid; place-items:center; padding:62px 18px 42px; background:#233158; }
.photo-view img { display:block; max-width:100%; max-height:calc(100svh - 110px); width:auto; height:auto; object-fit:contain; }
.photo-view__close { position:absolute; right:14px; top:10px; width:44px; height:44px; color:#233158; background:#f6f1e7; border-radius:50%; display:grid; place-items:center; }
.photo-view__close svg { width:20px; height:20px; stroke:currentColor; }
.photo-view__caption { position:absolute; bottom:14px; color:#f6f1e7; font:18px/1.2 "PT Serif", Georgia, serif; }


/* ---------- 2026-09-22: кнопка «три черточки» и список всех разделов (просьба Оксаны) ----------
   Справа в шапке: на компьютере — правее красной кнопки, на телефоне — в правом верхнем углу.
   Список — бумажная карточка, как таблички домиков; закрывается крестиком, Esc, тапом мимо */
.burger {
  position: relative; z-index: 4; flex: 0 0 auto; width: 46px; height: 46px; margin-left: 12px; padding: 0;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 0; border-radius: 12px 13px 11px 12px; cursor: pointer; color: var(--ink);
  background: radial-gradient(110% 85% at 16% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 48%), linear-gradient(to bottom, #F8F5EF, #EDE7DC 70%, #E3DBCD);
  box-shadow: inset 0 0 0 1.5px rgba(150, 118, 84, .34), inset 0 2px 1px rgba(255, 255, 255, .95), 0 10px 14px -10px rgba(46, 26, 80, .75);
  transition: transform .35s var(--ease-out);
}
/* три черточки — как на примере, который прислала Оксана 21.09 («три точки или черточки»); открыто — крестик */
.burger__l { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out), opacity .2s linear; }
.burger[aria-expanded="true"] .burger__l:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__l:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__l:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* меню и кнопка — в одной шапке: открытая кнопка-крестик поверх затемнения, а не под ним */
.burger[aria-expanded="true"] { z-index: 80; }
@media (min-width: 900px) {
  .burger { transform: translateY(12px); }
  .is-scrolled .burger, .burger[aria-expanded="true"] { transform: none; }
  .burger:hover { transform: translateY(10px); }
  .is-scrolled .burger:hover { transform: translateY(-2px); }
}
@media (max-width: 899px) { .burger { margin-left: auto; width: 44px; height: 44px; } }
.burger-menu { position: fixed; inset: 0; z-index: 70; }
.burger-menu[hidden] { display: none; }
.burger-menu::before { content: ""; position: absolute; inset: 0; background: rgba(30, 18, 52, .36); }
.burger-menu__card {
  position: absolute; top: calc(var(--hdr) + 10px + env(safe-area-inset-top)); right: var(--gut);
  width: min(320px, calc(100vw - 2 * var(--gut))); max-height: calc(100vh - var(--hdr) - 30px); overflow: auto;
  padding: 20px 20px 20px; color: var(--ink-deep);
  background: linear-gradient(170deg, #FFFCF6, var(--paper) 50%, #EEE6D6);
  border-radius: 12px 14px 11px 13px;
  box-shadow: inset 0 0 0 1.5px rgba(150, 118, 84, .3), 0 26px 40px -20px rgba(30, 18, 52, .85);
  transform: rotate(-1deg); animation: burgerIn .3s var(--spring);
}
.burger-menu__card::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 6px; background: var(--pink); border-radius: 0 0 4px 4px; }
.burger-menu__h { margin: 2px 0 6px; font: 700 13px/1 "PT Serif", Georgia, serif; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-dark); }
.burger-menu__list a {
  display: flex; align-items: center; min-height: 46px; padding: 0 4px;
  font: 400 21px/1.2 "PT Serif", Georgia, serif; color: var(--ink); text-decoration: none;
  border-bottom: 1px dashed rgba(35, 49, 88, .22); transition: color .2s linear, transform .2s var(--ease-out);
}
.burger-menu__list a:hover { color: var(--pink-dark); transform: translateX(3px); }
.burger-menu__list a[aria-current="true"] { font-weight: 700; color: var(--pink-dark); }
.burger-menu__list a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--pink); }
.burger-menu__tg { display: flex; justify-content: center; width: 100%; margin-top: 18px; }
@keyframes burgerIn { from { opacity: 0; transform: translateY(-10px) rotate(-1deg) scale(.96); } to { opacity: 1; transform: rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .burger-menu__card { animation: none; } }
