/* NAMAN MASTERY, версия с видео v0.3 (17.11.2026), на основе скелета v0.2
   Все цвета только из переменных палитры ниже. Палитра: html[data-palette], шрифт: html[data-font]. */

/* ---------- Палитры ---------- */
/* Токены: основной фон (bg, surface, ink, ink-2, line, ph-1..3) и «обратный» фон (alt-*) для блока сета.
   btn берётся как инверсия ink/bg, поэтому кнопка всегда контрастна. */
:root,
html[data-palette="box"] {
  --bg: #15191d; --surface: #1d2227; --ink: #eeeade; --ink-2: #a6a59d; --line: #3a4046;
  --ph-1: #1c2126; --ph-2: #2c3238; --ph-3: #6d6f6c;
  --alt-bg: #eeeade; --alt-surface: #e2ddcf; --alt-ink: #15191d; --alt-ink-2: #555853; --alt-line: #b9b5a9;
  --alt-ph-1: #e2ddcf; --alt-ph-2: #c9c5b9; --alt-ph-3: #6d6f6c;
  --scrim: rgb(21 25 29 / .72); --grain: .10; --grain-blend: overlay;
}
html[data-palette="noir"] {
  --bg: #000000; --surface: #141414; --ink: #f5f5f5; --ink-2: #9a9a9a; --line: #3a3a3a;
  --ph-1: #121212; --ph-2: #2a2a2a; --ph-3: #6b6b6b;
  --alt-bg: #f5f5f5; --alt-surface: #ffffff; --alt-ink: #000000; --alt-ink-2: #5c5c5c; --alt-line: #c4c4c4;
  --alt-ph-1: #e4e4e4; --alt-ph-2: #c4c4c4; --alt-ph-3: #6b6b6b;
  --scrim: rgb(0 0 0 / .74); --grain: .10; --grain-blend: overlay;
}
html[data-palette="blanc"] {
  --bg: #f7f7f5; --surface: #ffffff; --ink: #111111; --ink-2: #5f5f5f; --line: #cfcfcc;
  --ph-1: #ececea; --ph-2: #d2d2ce; --ph-3: #8f8f8b;
  --alt-bg: #000000; --alt-surface: #141414; --alt-ink: #f7f7f5; --alt-ink-2: #a0a0a0; --alt-line: #3a3a3a;
  --alt-ph-1: #161616; --alt-ph-2: #333333; --alt-ph-3: #8f8f8b;
  --scrim: rgb(247 247 245 / .78); --grain: .07; --grain-blend: multiply;
}
html[data-palette="stone"] {
  --bg: #d5cdbf; --surface: #e2dbcf; --ink: #1e1e1d; --ink-2: #4a463f; --line: #aaa192;
  --ph-1: #c9c0b1; --ph-2: #aaa192; --ph-3: #6f685d;
  --alt-bg: #2b2b2a; --alt-surface: #353534; --alt-ink: #e6dfd2; --alt-ink-2: #aaa396; --alt-line: #55544f;
  --alt-ph-1: #353534; --alt-ph-2: #4c4b48; --alt-ph-3: #8a8378;
  --scrim: rgb(43 43 42 / .70); --grain: .14; --grain-blend: multiply;
}
html[data-palette="apothecary"] {
  --bg: #e8dcc4; --surface: #f1e7d3; --ink: #2a1b0e; --ink-2: #654c31; --line: #c2ab84;
  --ph-1: #dccba9; --ph-2: #8a5a2b; --ph-3: #4a2c12;
  --alt-bg: #3b2413; --alt-surface: #462c18; --alt-ink: #f0e3c8; --alt-ink-2: #c7ad86; --alt-line: #6a4a2f;
  --alt-ph-1: #462c18; --alt-ph-2: #6e4521; --alt-ph-3: #a8743c;
  --scrim: rgb(59 36 19 / .66); --grain: .12; --grain-blend: multiply;
}

/* ---------- Шрифты ---------- */
html[data-font="a"], :root {
  --f-display: "Prata", "Times New Roman", serif;
  --display-weight: 400; --display-track: .08em; --display-scale: 1; --display-case: uppercase;
  --f-text: "Golos Text", system-ui, sans-serif;
}
html[data-font="b"] {
  --f-display: "Unbounded", "Arial Black", sans-serif;
  --display-weight: 800; --display-track: .01em; --display-scale: .74; --display-case: uppercase;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--f-text); overflow-x: clip;
  transition: background-color .4s, color .4s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
.display {
  font-family: var(--f-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-track); text-transform: var(--display-case);
  line-height: 1.08;
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--bg); }

/* Обратный фон: переназначаем токены локально */
.alt {
  --bg: var(--alt-bg); --surface: var(--alt-surface); --ink: var(--alt-ink); --ink-2: var(--alt-ink-2);
  --line: var(--alt-line); --ph-1: var(--alt-ph-1); --ph-2: var(--alt-ph-2); --ph-3: var(--alt-ph-3);
  background: var(--bg); color: var(--ink);
}

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Подпись заглушки */
.ph-note {
  font: 400 .75rem/1.3 var(--f-text); letter-spacing: .04em; color: var(--ink-2);
  background: var(--bg); padding: 4px 8px; width: max-content; max-width: 100%;
}
.ph-inline { font-size: .8125rem; color: var(--ink-2); letter-spacing: .02em; }

/* Зерно: нейтральный шум, тон даёт палитра через режим наложения */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Силуэт флакона */
.b-cap { fill: var(--ph-3); }
.b-body { fill: var(--ph-2); }
.b-line, .b-cap-line { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-facet { fill: none; stroke: var(--line); stroke-width: 1; opacity: .6; vector-effect: non-scaling-stroke; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none;
  font: 500 .9375rem/1 var(--f-text); letter-spacing: .06em;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:focus-visible { outline-offset: 3px; }
.btn--big { min-height: 64px; padding: 0 40px; font-size: 1.0625rem; }
.link {
  background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer;
  font: 500 .9375rem/1.4 var(--f-text); letter-spacing: .02em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color .3s, transform .4s;
}
.nav.is-solid { background: var(--bg); }
.nav__mark { display: block; color: var(--ink); }
.nav__mark svg { width: 84px; height: auto; }
.nav__list { display: flex; gap: 18px; }
.nav__list a { font-size: .8125rem; letter-spacing: .06em; text-decoration: none; padding: 8px 0; color: var(--ink); }
.nav__list a:hover { text-decoration: underline; text-underline-offset: .4em; }
@media (min-width: 900px) {
  .nav { padding: 22px 40px; }
  .nav__mark svg { width: 104px; }
  .nav__list { gap: 36px; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
}
.hero__film { position: absolute; inset: 0; z-index: -1; transform: translate3d(0, calc(var(--hp, 0) * 18vh), 0); }
.hero__light { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero__light--a {
  width: 90vmax; height: 90vmax; left: 50%; top: 58%; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--ph-2), transparent);
  animation: breathe 14s ease-in-out infinite alternate;
}
.hero__light--b {
  width: 50vmax; height: 50vmax; left: 30%; top: 30%; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--ph-1), transparent);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__ghost {
  position: absolute; left: 50%; bottom: -14vh; width: min(120vw, 900px); height: auto; translate: -50% 0;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to top, black 10%, transparent 75%); mask-image: linear-gradient(to top, black 10%, transparent 75%);
}
.hero__ghost .b-body { fill: var(--ph-1); }
.hero__ghost .b-cap { fill: var(--ph-1); }
.hero__content {
  position: relative; text-align: center; padding: 0 16px;
  transform: scale(calc(1 - var(--hp, 0) * .12)); opacity: calc(1 - var(--hp, 0) * 1.4);
}
.hero__title { color: var(--ink); }
.hero__wm { width: min(84vw, 860px); height: auto; margin: 0 auto; }
.hero__slogan { margin-top: clamp(20px, 4vw, 44px); font-size: calc(clamp(.95rem, 2.4vw, 1.5rem) * var(--display-scale)); letter-spacing: calc(var(--display-track) + .14em); color: var(--ink); }
/* Подпись заглушки стоит над строкой консьержа, чтобы они не перекрывались */
.hero__note { position: absolute; left: 16px; bottom: 76px; }
@media (min-width: 900px) { .hero__note { left: 40px; bottom: 88px; } }
@keyframes breathe { from { scale: 1; opacity: .85; } to { scale: 1.12; opacity: 1; } }
@keyframes drift { from { translate: -50% -50%; } to { translate: 10% -30%; } }

/* ---------- 2. Дом мастеров ---------- */
.dom {
  display: grid; gap: 48px; padding: 120px 16px 112px;
  max-width: 1440px; margin: 0 auto;
}
.dom__title { font-size: calc(clamp(1.45rem, 4.4vw, 3.4rem) * var(--display-scale)); max-width: 17ch; line-height: 1.12; }
.dom__lead { margin-top: 28px; max-width: 36ch; font-size: 1.0625rem; color: var(--ink-2); }
.dom__granite { margin-top: 56px; font-size: calc(clamp(1.15rem, 2.4vw, 1.75rem) * var(--display-scale)); max-width: 24ch; line-height: 1.3; }
.dom__unique { margin-top: 12px; color: var(--ink-2); }
.clip { display: grid; gap: 12px; }
.clip__frame { position: relative; aspect-ratio: 4 / 5; background: var(--ph-1); overflow: hidden; }
.clip__light {
  position: absolute; inset: -20%;
  background: radial-gradient(40% 50% at 70% 30%, var(--ph-2), transparent 70%);
  animation: drift2 18s ease-in-out infinite alternate;
}
.clip__bottle { position: absolute; left: 50%; top: 52%; width: 46%; height: auto; translate: -50% -50%; }
.clip__liquid { fill: var(--ph-2); }
.clip__stone { fill: var(--ph-3); animation: drop 4.8s cubic-bezier(.55, 0, .7, .4) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drop {
  0%, 12% { transform: translateY(-140px) rotate(-12deg); opacity: 0; }
  20% { opacity: 1; }
  58% { transform: translateY(186px) rotate(8deg); }
  66% { transform: translateY(176px) rotate(4deg); }
  74%, 100% { transform: translateY(186px) rotate(6deg); opacity: 1; }
}
@keyframes drift2 { to { transform: translate(-10%, 12%); } }
@media (min-width: 900px) {
  .dom { grid-template-columns: 5fr 6fr; gap: 6vw; align-items: center; padding: 180px 40px 160px; }
  .clip__frame { aspect-ratio: 5 / 6; }
}

/* ---------- Сет: главный эмоциональный блок ---------- */
.set { position: relative; overflow: hidden; }
.set__inner {
  max-width: 1440px; margin: 0 auto; padding: 104px 16px 112px;
  display: grid; gap: 48px;
}
.set__title { font-size: calc(clamp(2.6rem, 10vw, 8.6rem) * var(--display-scale)); line-height: 1.06; max-width: 9ch; }
.set__vials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 40px); align-items: end; max-width: 520px; }
.vial { display: grid; gap: 14px; justify-items: center; }
.vial__glass {
  display: block; width: clamp(30px, 7vw, 56px); aspect-ratio: 1 / 4.6; position: relative;
  background: linear-gradient(180deg, var(--ph-3) 0 12%, var(--ph-1) 12% 22%, var(--ph-2) 22% 100%);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.vial:nth-child(2) .vial__glass { aspect-ratio: 1 / 5.4; }
.vial__name { font: 500 .6875rem/1 var(--f-text); letter-spacing: .12em; color: var(--ink-2); }
.set__note { grid-column: 1 / -1; justify-self: start; }
.set__name { font: 500 .875rem/1.4 var(--f-text); letter-spacing: .06em; }
.set__what { margin-top: 10px; color: var(--ink-2); }
.set__entry { margin-top: 28px; font: 400 calc(clamp(1.15rem, 2.2vw, 1.6rem) * var(--display-scale)) / 1.35 var(--f-display); max-width: 30ch; }
html[data-font="b"] .set__entry { font-weight: 500; }
.set__row { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.set__price { font: var(--display-weight) calc(clamp(2.6rem, 7vw, 5rem) * var(--display-scale)) / 1 var(--f-display); letter-spacing: .01em; }
@media (max-width: 479px) { .set__row .btn { width: 100%; } }
@media (min-width: 900px) {
  .set__inner { grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; padding: 160px 40px; column-gap: 6vw; min-height: 100vh; align-content: center; }
  .set__title { grid-column: 1; grid-row: 1; }
  .set__vials { grid-column: 1; grid-row: 2; align-self: end; }
  .set__buy { grid-column: 2; grid-row: 1 / 3; align-self: end; }
}

/* ---------- 4. Соцсети ---------- */
.follow { padding: 120px 16px; max-width: 1440px; margin: 0 auto; }
.follow__title { font: 500 .875rem/1.4 var(--f-text); letter-spacing: .06em; color: var(--ink-2); }
.follow__main {
  display: inline-block; margin-top: 20px; text-decoration: none; color: var(--ink);
  font-size: calc(clamp(2.8rem, 13vw, 11rem) * var(--display-scale)); line-height: 1;
  border-bottom: 1px solid var(--line); padding-bottom: .08em; transition: border-color .3s;
}
.follow__main:hover { border-color: var(--ink); }
.follow__sub { margin-top: 20px; color: var(--ink-2); max-width: 40ch; }
.follow__more { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.follow__more a { font-size: 1rem; text-underline-offset: .35em; text-decoration-thickness: 1px; padding: 6px 0; display: inline-block; }
@media (min-width: 900px) { .follow { padding: 180px 40px; } }

/* ---------- 5. Шоурум ---------- */
.showroom {
  display: grid; gap: 32px; padding: 0 16px 120px; max-width: 1440px; margin: 0 auto;
}
.showroom__photo { display: grid; gap: 12px; }
.showroom__field {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 62%, var(--ph-2) 62% 63%, transparent 63%),
    linear-gradient(180deg, var(--ph-1) 0 70%, var(--ph-2) 70%);
}
.showroom__title { font-size: calc(clamp(1.6rem, 4vw, 3rem) * var(--display-scale)); max-width: 14ch; }
.showroom__text { display: grid; gap: 20px; align-content: start; justify-items: start; }
.showroom__text > p:not(.showroom__addr) { color: var(--ink-2); max-width: 40ch; }
.showroom__addr { font-size: 1.0625rem; }
@media (min-width: 900px) {
  .showroom { grid-template-columns: 7fr 4fr; gap: 6vw; align-items: end; padding: 0 40px 180px; }
  .showroom__field { aspect-ratio: 16 / 10; }
}

/* ---------- Подвал ---------- */
.foot {
  border-top: 1px solid var(--line); padding: 40px 16px calc(96px + env(safe-area-inset-bottom));
  display: grid; gap: 20px; font-size: .8125rem; color: var(--ink-2);
}
.foot__mark { width: 96px; height: auto; color: var(--ink); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__legal a { color: var(--ink-2); text-underline-offset: .3em; }
.foot__legal a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .foot { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 40px; padding: 40px 40px 96px; }
}

/* ---------- Плавающие элементы ---------- */
/* Уступают место: когда кнопка покупки проходит под ними, они уезжают (класс .yield ставит skeleton.js) */
.yieldable { transition: transform .35s ease, opacity .35s ease; }
.yieldable.yield { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }

.concierge {
  position: fixed; z-index: 30; left: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--bg); color: var(--ink); border: 0; border-bottom: 1px solid var(--ink);
  padding: 8px 2px 6px; cursor: pointer;
  font: 400 calc(.8125rem * (2 - var(--display-scale))) / 1.2 var(--f-display); letter-spacing: var(--display-track); text-transform: none;
}
html[data-font="b"] .concierge { font-weight: 500; font-size: .75rem; }
.concierge:hover { border-bottom-width: 2px; }
/* На широком экране консьерж стоит вертикальной строкой в правом поле страницы и не ложится на текст.
   Центрируется без transform, чтобы расчёт «уступить кнопке» в skeleton.js видел его настоящее место. */
@media (min-width: 900px) {
  .concierge {
    left: auto; right: 4px; top: 0; bottom: 0; margin: auto 0; height: fit-content;
    writing-mode: vertical-rl; font-size: .9375rem;
    border-bottom: 0; border-left: 1px solid var(--ink); padding: 14px 6px 14px 7px;
  }
  .concierge:hover { border-bottom-width: 0; border-left-width: 2px; }
  .yieldable.concierge.yield { transform: translateX(calc(100% + 12px)); }
}

/* Пульт команды: системный шрифт и пунктир, чтобы не путали с сайтом */
.team {
  position: fixed; z-index: 40; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  font: 400 12px/1.3 ui-monospace, Menlo, monospace; color: var(--ink);
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100vw - 24px);
}
@media (min-width: 900px) { .team { right: 48px; } } /* правое поле занято строкой консьержа */
html[data-clean] .team { display: none; }
.team__toggle {
  font: inherit; color: var(--ink); background: var(--surface); cursor: pointer;
  border: 1px dashed var(--ink-2); padding: 8px 10px; order: 2;
}
.team__short { display: none; }
@media (max-width: 559px) { .team__long { display: none; } .team__short { display: inline; } }
.team__panel {
  order: 1; background: var(--surface); border: 1px dashed var(--ink-2); padding: 12px;
  width: 248px; max-width: 100%; display: grid; gap: 6px;
}
.team__panel[hidden] { display: none; }
.team__head { color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.team__label { margin-top: 6px; color: var(--ink-2); }
.team__group { display: grid; gap: 4px; }
.team__group--row { grid-template-columns: 1fr 1fr; }
.team__group button {
  font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent;
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; text-align: left; cursor: pointer; min-height: 36px;
}
.team__group button:hover { border-color: var(--line); }
.team__group button[aria-pressed="true"] { border-color: var(--ink); }
/* Образцы в пульте показывают чужие палитры, поэтому их цвета заданы прямо в разметке */
.team__group i { width: 18px; height: 18px; flex: none; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50%); outline: 1px solid var(--line); }

/* ---------- Диалоги ---------- */
.dlg {
  border: 0; padding: 0; background: var(--surface); color: var(--ink);
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
}
.dlg::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.dlg[open] { animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.dlg__body { position: relative; padding: 56px 24px 28px; display: grid; gap: 18px; }
.dlg__x {
  position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--ink-2); cursor: pointer;
  font: 500 .8125rem/1 var(--f-text); letter-spacing: .04em; padding: 10px 6px; text-decoration: underline; text-underline-offset: .35em;
}
.dlg__x:hover { color: var(--ink); }
.dlg__kicker { font-size: .8125rem; letter-spacing: .06em; color: var(--ink-2); }
.dlg__title { font-size: calc(clamp(1.6rem, 6vw, 2.2rem) * var(--display-scale)); }
.dlg p { color: var(--ink); }
.dlg__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
@media (max-width: 479px) { .dlg__actions .btn { width: 100%; } }
@media (min-width: 600px) { .dlg__body { padding: 64px 40px 40px; } }
.dlg--side { margin: auto 0 0 0; width: 100%; max-width: 100%; }
@media (min-width: 600px) { .dlg--side { margin: auto auto 80px 40px; width: 380px; max-width: calc(100vw - 80px); } }
@media (min-width: 900px) { .dlg--side { margin: auto 56px auto auto; } }

.field { display: grid; gap: 8px; }
.field__label { font-size: .8125rem; letter-spacing: .04em; color: var(--ink-2); }
.field input {
  font: 400 1rem/1.4 var(--f-text); color: var(--ink); background: var(--bg);
  border: 0; border-bottom: 1px solid var(--ink-2); padding: 12px 2px; border-radius: 0; width: 100%;
}
.field input::placeholder { color: var(--ink-2); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { color: var(--ink); text-underline-offset: .25em; }
.form-status { font-size: .875rem; color: var(--ink); border-left: 2px solid var(--ink); padding-left: 12px; }
.form-status:empty { display: none; }

.order { margin: 0; display: grid; }
.order div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order dt { font-weight: 500; }
.order dd { margin: 0; white-space: nowrap; }
.order__sub dt, .order__sub dd { font-weight: 400; color: var(--ink-2); font-size: .875rem; }
.order__total dt, .order__total dd { font: 400 calc(1.4rem * var(--display-scale)) / 1.2 var(--f-display); }
.order__entry { font-size: .875rem; }

/* ---------- Появление при прокрутке (только если JS включил движение) ---------- */
.rv.rv-wait { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.rv-wait.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__film, .hero__content { transform: none !important; opacity: 1 !important; }
}

/* Гротеск (пара B): высокие кириллические диакритики требуют чуть больше интерлиньяжа */
html[data-font="b"] .set__title { line-height: 1.12; }
html[data-font="b"] .dom__title, html[data-font="b"] .showroom__title { line-height: 1.14; }

/* ==========================================================================
   Версия с видео, v0.3 (17.11.2026). Всё ниже добавлено поверх скелета v0.2.
   ========================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Зоны с видео ----------
   Плёнка всегда тёмная, текст поверх неё светлый в любой палитре.
   Палитра задаёт только тон плёнки (--film-tint): видео обесцвечено, сверху цветовой слой. */
:root { --film-ink: #f2efe6; --film-ink-2: #c4c1b7; --film-bg: #0b0c0d; --film-tint: #808080; --film-tint-a: 0; }
html[data-palette="box"] { --film-tint: #33485a; --film-tint-a: .55; }
html[data-palette="stone"] { --film-tint: #7a6d57; --film-tint-a: .5; }
html[data-palette="apothecary"] { --film-tint: #8a5a2b; --film-tint-a: .75; }
.film {
  --bg: var(--film-bg); --ink: var(--film-ink); --ink-2: var(--film-ink-2); --line: rgb(255 255 255 / .3);
  color: var(--ink); background-color: var(--film-bg);
}
.film__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.film__tint { position: absolute; inset: 0; background: var(--film-tint); mix-blend-mode: color; opacity: var(--film-tint-a); pointer-events: none; }
.film__shade { position: absolute; inset: 0; pointer-events: none; }
.film__shade--hero {
  background:
    radial-gradient(70% 50% at 50% 54%, rgb(0 0 0 / .5), rgb(0 0 0 / .18) 75%),
    linear-gradient(to bottom, rgb(0 0 0 / .45), transparent 26%, transparent 62%, rgb(0 0 0 / .6));
}
.film__shade--stone { background: rgb(0 0 0 / .58); }
.film .grain { opacity: .12; mix-blend-mode: overlay; }
/* Шапка над первым экраном стоит на плёнке, поэтому светлая, пока не получила фон */
.nav:not(.is-solid) { --ink: var(--film-ink); }

/* ---------- 2. Дом мастеров: руки мастера и полоса с камнем ---------- */
.clip__frame { background: var(--film-bg); }
.clip__frame .film__v { filter: grayscale(1) contrast(1.08) brightness(.92); }
.stone {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; min-height: 72vh; padding: 96px 16px;
}
.stone__film { position: absolute; inset: 0; z-index: -1; }
.stone__text { width: 100%; max-width: 1440px; margin: 0 auto; }
.stone__line { font-size: calc(clamp(1.5rem, 4.8vw, 3.8rem) * var(--display-scale)); line-height: 1.16; max-width: 18ch; }
.stone__sub { margin-top: 20px; color: var(--ink-2); font-size: 1.0625rem; }
@media (min-width: 900px) { .stone { min-height: 86vh; padding: 140px 40px; } }

/* ---------- 3. Выбор: одна сцена, три аромата ---------- */
.choose__pin { max-width: 1440px; margin: 0 auto; padding: 88px 16px 80px; }
.choose__title { font: 500 .875rem/1.4 var(--f-text); letter-spacing: .06em; color: var(--ink-2); }
.tabs {
  margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 14px;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px;
  padding: 10px 0 14px; cursor: pointer; color: var(--ink-2);
  font-size: calc(clamp(.8rem, 4.1vw, 3.1rem) * var(--display-scale)); line-height: 1;
  transition: color .3s, border-color .3s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 599px) { .tab { letter-spacing: .04em; } }

.stage { margin-top: 36px; display: grid; gap: 36px; }
.stage__bottle { display: grid; gap: 14px; justify-items: center; }

/* Флакон: пропорции по рендеру команды (прямоугольный корпус со скруглением, шейка, чёрная крышка, этикетка).
   Видео нот идёт внутри стекла. Цвета крышки и этикетки — цвета самого предмета, палитра их не меняет. */
.bottle { position: relative; width: min(64vw, 280px); aspect-ratio: 2 / 3; container-type: inline-size; }
.bottle__cap {
  position: absolute; left: 19.5%; top: .7%; width: 61%; height: 16.6%; border-radius: 3px;
  background: #0c0d0e; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}
.bottle__neck {
  position: absolute; left: 41%; top: 17.3%; width: 18%; height: 4.2%;
  background: linear-gradient(90deg, #4f483c, #b3a78f 45%, #4f483c);
}
.bottle__glass {
  position: absolute; left: 9.75%; top: 21.4%; width: 80.5%; height: 77.9%;
  border-radius: 14px; border-radius: 5.5cqw; overflow: hidden; isolation: isolate;
  background: var(--film-bg); box-shadow: 0 0 0 1px var(--line);
}
.bottle__glass video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease; filter: saturate(.82) contrast(1.03);
}
.bottle__glass video.is-active { opacity: 1; }
.bottle__sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, rgb(255 255 255 / .2) 0 5%, rgb(255 255 255 / 0) 16% 84%, rgb(0 0 0 / .3) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22), inset 0 -18px 30px -18px rgb(0 0 0 / .5);
}
.bottle__label {
  position: absolute; left: 25%; top: 13%; width: 50%; aspect-ratio: 78 / 46;
  background: #e9e4d6; color: #15191d;
  display: grid; align-content: center; justify-items: center; gap: 4px; gap: 1.8cqw;
}
.bottle__label svg { width: 58%; height: auto; }
.bottle__label-name { font: 500 8px/1 var(--f-text); font-size: 3.1cqw; letter-spacing: .3em; margin-right: -.3em; }

.stage__texts { display: grid; }
.stage__texts .scent {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.stage__texts .scent.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease .15s, visibility 0s; }
.scent__desc { max-width: 42ch; font-size: 1.0625rem; }
.scent__floors-title { margin-top: 28px; font-size: .8125rem; letter-spacing: .06em; color: var(--ink-2); }
.floors { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 0; max-width: 44ch; color: var(--ink); }
.floors li { font-size: .9375rem; }
.floors li:not(:last-child)::after { content: "/"; margin: 0 .6em; color: var(--ink-2); }
.buy { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; max-width: 520px; }
.buy__meta { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-2); letter-spacing: .02em; }
.buy__price { font: 400 calc(1.9rem * var(--display-scale)) / 1 var(--f-display); letter-spacing: .02em; }
.buy .btn { grid-column: 2; grid-row: 2; }
.buy__alt { grid-column: 1 / -1; margin-top: 12px; font-size: .875rem; color: var(--ink-2); text-underline-offset: .3em; }
.buy__alt:hover { color: var(--ink); }
@media (max-width: 419px) {
  .buy { grid-template-columns: 1fr; }
  .buy .btn { grid-column: 1; grid-row: auto; margin-top: 12px; width: 100%; }
}
@media (min-width: 900px) {
  .choose__pin { padding: 120px 40px 96px; }
  .tabs { justify-content: flex-start; gap: 0 56px; }
  .stage { grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; margin-top: 48px; }
  .bottle { width: auto; height: min(54vh, 540px); }
  /* Сцена закреплена, аромат меняется прокруткой (класс pin ставит film.js; без него сцена обычная, с вкладками) */
  html.pin .choose { height: 250vh; }
  html.pin .choose__pin {
    position: sticky; top: 0; height: 100vh;
    display: grid; grid-template-rows: auto 1fr; padding: 84px 40px 40px;
  }
  html.pin .stage { margin-top: 24px; min-height: 0; }
}

/* ---------- Сет: три пробника с теми же видео ---------- */
.set__vials { align-items: end; }
.vial__tube { position: relative; display: block; width: clamp(32px, 7vw, 58px); aspect-ratio: 1 / 4.6; }
.vial__cap {
  position: absolute; left: 6%; right: 6%; top: 0; height: 14%;
  background: #0c0d0e; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}
.vial__glass, .vial:nth-child(2) .vial__glass {
  position: absolute; inset: 15% 0 0 0; display: block; width: auto; aspect-ratio: auto;
  overflow: hidden; border-radius: 3px 3px 8px 8px; outline: 0;
  background: var(--film-bg); box-shadow: 0 0 0 1px var(--line);
}
.vial__glass video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); }

/* На узком экране колонки не шире экрана: длинная подпись под видео переносится, а не распирает сетку */
.clip, .stage__bottle, .stage__texts, .showroom__photo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) {
  .dom, .stage, .set__inner, .showroom { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .dom { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .showroom { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

/* ---------- 5. Шоурум ---------- */
.showroom__field { background: var(--film-bg); }
.showroom__field .film__v { filter: grayscale(1) contrast(1.05) brightness(.95); }

/* ==========================================================================
   Правки 19.11.2026 по замечаниям к макету.
   ========================================================================== */
/* Этажи стоят друг над другом, как этажи */
.scent__floors { margin-top: 28px; }
.scent__floors .scent__floors-title { margin-top: 0; }
.floors { display: grid; gap: 0; max-width: 30ch; }
.floors li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.floors li:last-child { border-bottom: 1px solid var(--line); }
.floors li:not(:last-child)::after { content: none; }
@media (min-width: 1200px) {
  /* На широком экране этажи стоят отдельной колонкой справа от описания */
  .stage__texts .scent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 15rem); column-gap: 48px; align-items: start; }
  .stage__texts .scent .scent__desc { grid-column: 1; grid-row: 1; }
  .stage__texts .scent .buy { grid-column: 1; grid-row: 2; }
  .stage__texts .scent .scent__floors { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
}

/* Помощь с выбором появляется с четвёртого экрана, когда все покупки уже показаны */
.concierge { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility 0s linear .4s, transform .35s ease; }
.concierge.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .4s ease, visibility 0s, transform .35s ease; }
.concierge.is-on.yield { opacity: 0; pointer-events: none; }
html:not(.js) .concierge { opacity: 1; visibility: visible; pointer-events: auto; }

/* Акцент палитры живёт в коротких чертах */
.hero__slogan::after { content: ""; display: block; width: 44px; height: 2px; margin: 22px auto 0; background: var(--accent); }
.choose__title::before, .follow__title::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--accent); }
