﻿html.film-loading, html.film-loading body { overflow: hidden !important; }

/* «ЛАБОРАТОРИЯ ВКУСА» — светлый журнальный стенд. next/lab.
   Бумага-миллиметровка, кроп-марки, шкалы, штампы; CG + JBM, акцент — терракота. */

:root {
  --paper: #f6f0e1;
  --paper2: #fffbf0;
  --ink: #241708;
  --brown: #824614;
  --terra: #b4552d;
  --line: rgba(130, 70, 20, .24);
  --line-hi: rgba(130, 70, 20, .5);
  --dim: rgba(36, 23, 8, .62);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --disp: 'Oswald', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; }
body {
  background:
    linear-gradient(rgba(130, 70, 20, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 70, 20, .05) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brown); color: var(--paper2); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 16px;
}
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5.6vw, 64px); line-height: 1.04;
}
h2 em { font-style: italic; color: var(--brown); }

/* ---------- загрузчик ---------- */
#loader {
  position: fixed; inset: 0; z-index: 900;
  background: var(--paper);
  display: grid; place-items: center;
  transition: opacity .6s ease .1s, visibility .6s .1s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-word { font-style: italic; font-size: 20px; color: var(--dim); }
.loader-bar {
  width: min(320px, 62vw); height: 14px;
  border: 1px solid var(--line-hi); border-radius: 2px; padding: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(130, 70, 20, .12) 9px 10px);
}
.loader-bar > span { display: block; height: 100%; width: 0; background: var(--brown); transition: width .25s; }
.loader-pct { font-family: var(--mono); font-size: 12px; color: var(--brown); letter-spacing: .2em; }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; gap: 22px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: linear-gradient(#f6f0e1f2, #f6f0e100);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr-brand img { height: 40px; width: auto; }
.hdr-nav { display: flex; gap: 20px; margin-left: 8px; }
.hdr-nav a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; padding: 6px 2px;
  background: linear-gradient(var(--brown), var(--brown)) left bottom / 0 1px no-repeat;
  transition: color .25s, background-size .3s;
}
.hdr-nav a:hover { color: var(--ink); background-size: 100% 1px; }
.hdr-chapter { display: none; }
.hdr-cta {
  margin-left: auto;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--paper2); background: var(--brown);
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  transition: background .25s;
  display: inline-block;
}
.hdr-cta:hover { background: var(--terra); }
@media (max-width: 700px) { .hdr-nav { display: none; } }

/* ---------- фильм-стенд ---------- */
.film-scroll { height: 430vh; position: relative; }
.film-stage { position: sticky; top: 0; height: 100vh; overflow: clip; }
#film, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-poster { opacity: 0; }
html.film-live .film-poster { opacity: 1; }
.film-vig {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(36, 23, 8, .35) 100%),
    linear-gradient(rgba(246, 240, 225, .1), transparent 12%, transparent 88%, var(--paper));
}
.film-botfade { position: absolute; inset: 0; background: linear-gradient(transparent 80%, var(--paper)); opacity: 0; }

.beat {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 22px; opacity: 0;
}
.beat .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--paper2); margin-bottom: 18px;
  background: rgba(36, 23, 8, .5); padding: 5px 12px; border-radius: 3px;
}
.beat--hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 7.4vw, 104px); line-height: 1.02;
  color: var(--paper2);
  text-shadow:
    0 1px 2px rgba(36, 23, 8, .6),
    0 3px 12px rgba(36, 23, 8, .6),
    0 8px 36px rgba(36, 23, 8, .5);
  max-width: 16ch;
}
.beat--hero h1 em {
  text-shadow:
    0 1px 2px rgba(36, 23, 8, .65),
    0 3px 14px rgba(36, 23, 8, .65);
}
.beat--hero h1 em { font-style: italic; font-weight: 500; color: #e9c98a; font-size: 1.25em; }
.beat-sub {
  font-style: italic; font-size: clamp(16px, 2.3vw, 21px); color: var(--paper2);
  margin-top: 16px; background: rgba(36, 23, 8, .5); padding: 5px 14px; border-radius: 3px;
}
.beat--note {
  align-items: flex-start; justify-content: center; text-align: left;
  width: min(400px, 86vw); padding: 26px;
  background: var(--paper2); border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(36, 23, 8, .35);
}
.note-r { margin-left: auto; margin-right: 7vw; }
.note-l { margin-right: auto; margin-left: 7vw; }
.beat--note h2 {
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 10px;
}
.beat--note p { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.panel {
  background: var(--paper2); color: var(--ink);
  border-radius: 16px; padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(36, 23, 8, .35);
}
.beat--finale h2 { font-size: clamp(32px, 5.4vw, 58px); margin-bottom: 10px; }
.beat--finale p { color: var(--dim); font-style: italic; margin-bottom: 24px; }
.scroll-hint {
  position: absolute; bottom: 10vh; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper2); white-space: nowrap;
  background: rgba(36, 23, 8, .5); padding: 6px 12px; border-radius: 3px;
}
.scroll-hint i { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--paper2), transparent); animation: hintline 1.8s ease-in-out infinite; }
@keyframes hintline { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }

.film-ruler-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }

/* статичный режим */
html.film-static .film-scroll { height: auto; }
html.film-static .film-stage { position: relative; height: auto; overflow: visible; }
html.film-static #film, html.film-static .film-vig, html.film-static .film-botfade,
html.film-static .film-ruler-fade, html.film-static .scroll-hint { display: none; }
html.film-static .film-poster { position: static; opacity: 1; width: 100%; height: auto; }
html.film-static .beat { position: static; opacity: 1; transform: none; max-width: 680px; margin: 26px auto; padding: 20px; }
html.film-static .beat--hero { margin-top: 90px; }

/* ---------- секции ---------- */
section { position: relative; }
.deck, .proto, .meter, .tickets, .finale { padding: clamp(84px, 12vh, 130px) clamp(16px, 4vw, 56px); }
.deck-head, .proto-head, .meter-head, .tickets-head { max-width: 860px; margin: 0 auto clamp(36px, 6vh, 60px); text-align: center; }
.deck-sub, .proto-sub, .meter-sub, .tickets-sub { color: var(--dim); font-style: italic; font-size: clamp(16px, 2vw, 19px); margin-top: 12px; }

/* ---------- колода образцов ---------- */
.deck-stack { max-width: 1020px; margin: 0 auto; display: grid; gap: clamp(24px, 4vh, 40px); }
.specimen {
  position: sticky; top: calc(72px + var(--i) * 16px);
  display: grid; grid-template-columns: 1.15fr .85fr;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(36, 23, 8, .16);
  overflow: hidden;
  transform-origin: top center;
  will-change: transform;
}
.spec-l { padding: clamp(24px, 3.5vw, 46px); position: relative; }
.spec-no {
  font-family: var(--mono); font-size: clamp(48px, 7vw, 84px); font-weight: 400;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-hi); line-height: 1;
  display: block; margin-bottom: 6px;
}
.spec-l h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.spec-taste { color: var(--terra); font-style: italic; font-size: clamp(17px, 2vw, 21px); margin-top: 4px; }
.gauges { display: flex; gap: clamp(14px, 2.5vw, 26px); margin: clamp(18px, 3vh, 28px) 0; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.gauge svg { width: clamp(54px, 7vw, 72px); height: auto; transform: rotate(-90deg); }
.g-bg { fill: none; stroke: var(--line); stroke-width: 5; }
.g-val {
  fill: none; stroke: var(--brown); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 163.36; stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 1.2s cubic-bezier(.22, 1, .36, 1) .15s;
}
.gauge span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: center; line-height: 1.5; }
.spec-eat { font-size: 16px; color: var(--dim); max-width: 420px; }
.spec-eat b { color: var(--ink); font-weight: 600; }
.spec-stamp {
  position: absolute; bottom: 18px; right: 20px;
  transform: rotate(-7deg);
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .22em;
  color: var(--terra); border: 2px solid var(--terra);
  border-radius: 6px; padding: 6px 10px; opacity: .75;
}
.spec-r {
  display: grid; place-items: center;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(130, 70, 20, .08), transparent),
    repeating-linear-gradient(45deg, rgba(130, 70, 20, .04) 0 10px, transparent 10px 20px);
  border-left: 1px solid var(--line);
  padding: 26px;
  min-height: 320px;
}
.spec-r img { max-height: 340px; width: auto; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(36, 23, 8, .25)); }
/* карточка-тест №01: фото во весь блок, вращение по hover */
.spec-r--spin { padding: 0; background: none; position: relative; overflow: hidden; }
.spec-r--spin > img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.spec-r--spin .spec-spin {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .35s ease;
}
@media (hover:hover) and (pointer:fine) {
  .spec-r--spin:hover .spec-spin { opacity: 1; }
}
@media (max-width: 760px) {
  .specimen { grid-template-columns: 1fr; }
  .spec-r { order: -1; min-height: 240px; border-left: 0; border-bottom: 1px solid var(--line); }
  .spec-r img { max-height: 240px; }
  /* карточка №01: фото во всю ширину без полей, пачка целиком */
  .spec-r--spin { min-height: 360px; }
  .spec-r--spin > img { max-height: none; }
  .spec-stamp { position: static; display: inline-block; margin-top: 16px; }
}

/* ---------- протокол ---------- */
.proto { background: var(--paper2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proto-svg svg { width: 100%; height: auto; display: block; }
#protoPath { stroke: var(--brown); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.st circle { fill: var(--paper2); stroke: var(--brown); stroke-width: 2; transition: fill .4s; }
.st text { font-family: var(--disp); font-weight: 600; font-size: 22px; fill: var(--brown); text-anchor: middle; }
.st .st-cap { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; fill: var(--dim); }
.st { opacity: .28; transition: opacity .5s; }
.st.on { opacity: 1; }
.st.on circle { fill: var(--brown); }
.st.on text:not(.st-cap) { fill: var(--paper2); }
.proto-notes {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px; margin-top: 34px;
}
.proto-notes li { font-size: 15px; line-height: 1.55; color: var(--dim); border-top: 2px solid var(--line-hi); padding-top: 10px; }
.proto-notes b { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--terra); display: block; margin-bottom: 6px; }

/* ---------- вкусометр ---------- */
.meter-box {
  max-width: 900px; margin: 0 auto;
  background: var(--paper2); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 26px 60px rgba(36, 23, 8, .14);
}
.meter-q { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.meter-q:last-of-type { border-bottom: 0; }
.q-t {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 12px;
}
.q-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; transition: all .25s;
}
.opt:hover { border-color: var(--line-hi); color: var(--ink); }
.opt.is-active { color: var(--paper2); background: var(--brown); border-color: var(--brown); }
.meter-out { margin-top: 26px; }
.meter-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(135deg, rgba(130, 70, 20, .06), transparent 60%);
  padding: 22px;
}
.meter-card img { max-height: 220px; width: auto; justify-self: center; filter: drop-shadow(0 14px 18px rgba(36, 23, 8, .25)); }
.mv-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.meter-verdict h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1; margin-bottom: 10px; }
#meterWhy { color: var(--dim); font-style: italic; max-width: 460px; margin-bottom: 18px; }
.meter-card.swap { animation: cardswap .55s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes cardswap {
  0% { transform: translateY(10px) rotate(.6deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@media (max-width: 620px) { .meter-card { grid-template-columns: 1fr; text-align: center; } .meter-card img { max-height: 180px; } #meterWhy { margin-inline: auto; } }

/* ---------- билеты ---------- */
.tickets-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 30px);
}
.ticket {
  display: grid; grid-template-columns: 1fr auto;
  background: var(--paper2);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(36, 23, 8, .12);
  transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.ticket::before { /* перфорация */
  content: ''; position: absolute; top: 0; bottom: 0; right: 118px; width: 0;
  border-left: 2px dashed var(--line-hi);
}
.ticket:hover { transform: rotate(-1.2deg) translateY(-5px); box-shadow: 0 30px 60px rgba(36, 23, 8, .2); }
.t-body { padding: clamp(22px, 3vw, 34px); }
.t-city { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .34em; color: var(--terra); }
.t-count { margin-top: 12px; font-family: var(--serif); }
.t-count b {
  font-family: var(--disp); font-weight: 600; font-size: clamp(56px, 7vw, 84px); line-height: 1;
  color: var(--brown); font-variant-numeric: tabular-nums;
}
.t-count { color: var(--dim); font-size: 17px; font-style: italic; }
.t-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }
.t-stub { display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 0 18px; background: rgba(130, 70, 20, .05); }
.t-stub a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; border: 1px solid var(--line-hi);
  border-radius: 999px; padding: 9px 14px; text-align: center; white-space: nowrap;
  transition: all .25s;
}
.t-stub a:hover { background: var(--brown); color: var(--paper2); }
.tickets-src { text-align: center; margin-top: 30px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.tickets-lead {
  max-width: 640px; margin: 18px auto 0;
  text-align: center; font-style: italic;
  font-size: clamp(17px, 2.1vw, 20px); color: var(--brown);
}

/* ---------- Яндекс-карта ---------- */
.lab-map { max-width: none; width: 100%; margin: clamp(36px, 6vh, 56px) 0 0; }
.lab-map .map-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.lab-map .tab {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--line-hi); border-radius: 999px;
  padding: 10px 18px; transition: all .25s;
}
.lab-map .tab:hover { color: var(--ink); border-color: var(--brown); }
.lab-map .tab.is-active { color: var(--paper2); background: var(--brown); border-color: var(--brown); }
.lab-map .ymap {
  display: block; width: 100%; height: clamp(380px, 62vh, 580px);
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper2);
  overflow: hidden;
}
.lab-map.has-ymap .dotmap--fallback { display: none; }
.lab-map:not(.has-ymap) .ymap { display: none; }
.ymap--error::after {
  content: 'Карта временно недоступна — билеты и ссылки работают';
  display: grid; place-items: center; height: 100%;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--dim);
}
.ymap-route {
  display: inline-block; margin-top: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper2); background: var(--brown);
  border-radius: 999px; padding: 6px 12px; text-decoration: none;
}

/* ---------- финал/футер ---------- */
.finale { text-align: center; }
.finale-inner { max-width: 760px; margin: 0 auto; }
.btn {
  display: inline-block; margin-top: 28px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--paper2); background: var(--brown);
  padding: 16px 32px; border-radius: 999px;
  transition: background .25s, transform .2s;
  box-shadow: 0 14px 34px rgba(130, 70, 20, .3);
}
.btn:hover { background: var(--terra); transform: translateY(-2px); }
.btn-big { font-size: 13.5px; padding: 19px 42px; }
.finale-note { margin-top: 24px; font-style: italic; color: var(--dim); }
.ftr { border-top: 1px solid var(--line); padding: 44px 20px 48px; text-align: center; background: var(--paper); }
.ftr p { font-family: var(--mono); font-size: 11px; color: var(--dim); line-height: 1.8; }
.ftr-links { margin-top: 6px; }
.ftr-links a { color: var(--brown); text-decoration: none; border-bottom: 1px solid var(--line-hi); transition: color .2s, border-color .2s; }
.ftr-links a:hover { color: var(--terra); border-color: var(--terra); }
/* ---------- футер: контакты производства и отдела продаж ---------- */
.ftr-contacts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1460px; margin: 0 auto; }
.ftr-col { text-align: left; padding: 4px 32px 8px 0; }
.ftr-col:nth-child(2), .ftr-col:nth-child(3) { border-left: 1px solid var(--line-hi); padding-left: 32px; }
.ftr-cap { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.ftr-col a { color: var(--brown); text-decoration: none; border-bottom: 1px solid var(--line-hi); transition: color .2s, border-color .2s; }
.ftr-col a:hover { color: var(--terra); border-color: var(--terra); }
@media (max-width: 700px) {
  .ftr-contacts { grid-template-columns: 1fr; gap: 22px; }
  .ftr-col { text-align: center; padding: 0; }
  .ftr-col:nth-child(2), .ftr-col:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- кнопка «Понравилось?» ---------- */
.btn-ghost {
  margin-top: 18px; margin-left: 12px; margin-right: 12px;
  background: transparent; color: var(--terra);
  border: 1.5px solid var(--terra);
}
.btn-ghost:hover { background: var(--terra); color: var(--paper2); }

/* ---------- форма отзыва ---------- */
.fb-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(36, 23, 8, .55);
  display: grid; place-items: center; padding: 20px;
}
.fb-overlay[hidden] { display: none; }
.fb-modal {
  position: relative;
  width: min(480px, 94vw); max-height: 92vh; overflow-y: auto;
  background: var(--paper2); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(36, 23, 8, .35);
}
.fb-close {
  position: absolute; top: 12px; right: 14px;
  font-size: 26px; line-height: 1; color: var(--dim);
  width: 34px; height: 34px; border-radius: 50%;
  transition: background .2s, color .2s;
}
.fb-close:hover { background: rgba(36, 23, 8, .08); color: var(--ink); }
.fb-eyebrow {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 8px;
}
.fb-modal h3 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.fb-modal form { display: grid; gap: 14px; }
.fb-modal label {
  display: grid; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim);
}
.fb-modal input, .fb-modal textarea {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-hi); border-radius: 10px;
  padding: 12px 14px; resize: vertical;
}
.fb-modal input:focus, .fb-modal textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
.fb-modal .btn { justify-self: start; margin-top: 4px; }
.fb-status { min-height: 20px; font-style: italic; color: var(--dim); font-size: 15px; }
.fb-status.ok { color: #3e5c36; }
.fb-status.err { color: var(--terra); }
.fb-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--serif); font-size: 15px; line-height: 1.4;
  letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--dim);
}
.fb-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brown); flex: 0 0 auto; }
.fb-consent a { color: var(--brown); text-decoration: underline; }

/* ---------- куки-баннер ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 940;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--paper2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(36, 23, 8, .25);
  padding: 14px 18px;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; font-size: 15px; line-height: 1.45; color: var(--dim); }
.cookie button {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper2); background: var(--brown); border-radius: 999px; padding: 11px 22px;
  transition: background .25s;
}
.cookie button:hover { background: var(--terra); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint i, .meter-card.swap { animation: none; }
  .g-val, .ticket, .btn { transition: none; }
  * { scroll-behavior: auto !important; }
}
/* ---------- мобильный: белые плашки-заметки поверх видео не показываем ---------- */
@media (max-width: 768px) {
  .beat--note { display: none; }
}
/* ---------- ?snap ---------- */
html.snap .beat { opacity: 1 !important; transform: none !important; }
html.snap [data-reveal], html.snap .specimen { opacity: 1 !important; }
