/* =====================================================================
   КОСТЁР — дизайн-система прототипа
   Токены → база → компоненты → блоки → анимации → адаптив
   ===================================================================== */

/* ============ 1. ТОКЕНЫ ============ */
:root {
  /* фон и поверхности */
  --ink: #0a0806;
  --ink-2: #100c09;
  --surface: #17110d;
  --surface-2: #1f1712;
  --surface-3: #2a1f18;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* текст */
  --text: #f8f3ec;
  --muted: #a89a8e;
  --faint: #7a6d62;

  /* светлая тема секций */
  --paper: #f4ede4;
  --paper-2: #eae0d3;
  --paper-line: rgba(20, 12, 8, 0.12);
  --paper-text: #1b1310;
  --paper-muted: #6d5c50;

  /* акценты */
  --fire: #ff4d17;
  --flame: #ff8a00;
  --ember: #ffc23c;
  --coal: #3a2b22;
  --accent: var(--fire);
  --accent-2: var(--ember);
  --grad-fire: linear-gradient(120deg, #ffb703 0%, #ff6b1a 45%, #e02b0a 100%);
  --grad-accent: var(--grad-fire);

  /* геометрия */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --container: 1240px;
  --container-narrow: 880px;
  --nav-h: 76px;

  /* тени */
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 14px 44px rgba(255, 77, 23, 0.35);

  /* типографика */
  --font-display: "Anton", "Archivo", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-heading: var(--font-display);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* B2B-контур: спокойнее, золото вместо алого, больше структуры */
body[data-theme="b2b"] {
  --accent: #ffb020;
  --accent-2: #ffd479;
  --grad-accent: linear-gradient(120deg, #ffd479 0%, #ffb020 50%, #e08a00 100%);
  --shadow-accent: 0 14px 44px rgba(255, 176, 32, 0.28);
}

/* Регистр «Семья»: свадьбы, дети, подарки — мягче и теплее */
body[data-register="family"] {
  --font-heading: var(--font-serif);
  --accent: #ff7a3d;
  --accent-2: #ffcf8a;
  --grad-accent: linear-gradient(120deg, #ffd9a3 0%, #ff9b4d 55%, #e8622a 100%);
}

/* ============ 2. БАЗА ============ */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4,
.display,
.ghost,
.brand,
.stat__num {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-wrap: balance;
}
body[data-register="family"] h1,
body[data-register="family"] h2,
body[data-register="family"] h3,
body[data-register="family"] .display {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: none;
}

h1, .h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2, .h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3, .h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); }

p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

/* ============ 3. УТИЛИТЫ ============ */
.accent { color: var(--accent); }
.fire-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--muted);
  max-width: 62ch;
}
.small { font-size: 0.86rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.nowrap { white-space: nowrap; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 44px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: var(--grad-accent);
  box-shadow: 0 0 14px rgba(255, 122, 26, 0.7);
  transition: width 0.1s linear;
}

/* ============ 4. КНОПКИ ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s, color 0.25s, border-color 0.25s;
  overflow: hidden;
}
.btn--primary {
  background: var(--grad-accent);
  color: #180b02;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { transform: translate(-2px, -3px); box-shadow: 5px 8px 0 #6f1c06; }
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translate(-2px, -3px); }
.btn--dark { background: var(--paper-text); color: var(--paper); }
.btn--dark:hover { transform: translate(-2px, -3px); box-shadow: 5px 8px 0 rgba(0, 0, 0, 0.25); }
.btn--sm { padding: 11px 20px; font-size: 0.76rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ============ 5. НАВИГАЦИЯ ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
}
.nav .container { max-width: 1480px; padding-left: 20px; padding-right: 20px; }
.nav.is-scrolled {
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--nav-h);
  min-width: 0;
}
/* CTA в шапке: не сжимать и не клипать текст (у .btn стоит overflow:hidden) */
.nav .btn--sm {
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  overflow: visible;
  padding: 10px 16px;
  letter-spacing: 0.6px;
}
.nav__phone { display: none; }
.nav__cab { flex-shrink: 0; }
.seg { flex-shrink: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  letter-spacing: 2px;
  flex-shrink: 0;
}
/* Логотип — файл, а не текст. Высота приходит из разметки,
   ширину браузер считает сам по пропорции картинки. */
.logo-img { display: block; width: auto; flex-shrink: 0; }
.logo-icon { display: block; border-radius: 22%; }
.nav__spacer { flex: 1; }

.nav__menu { display: flex; align-items: center; gap: 2px; flex-shrink: 1; min-width: 0; }
.nav__item { position: relative; flex-shrink: 0; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__link:hover,
.nav__item.is-open > .nav__link { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link.is-active { color: var(--accent); }
.nav__link i {
  font-style: normal;
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.25s;
}
.nav__item.is-open .nav__link i { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(720px, 90vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__title {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 800;
  margin-bottom: 4px;
}
.mega__link {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  transition: background 0.2s, transform 0.2s;
}
.mega__link:hover { background: var(--surface-2); transform: translateX(3px); }
.mega__num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.8rem;
  padding-top: 3px;
}
.mega__name { font-weight: 700; font-size: 0.92rem; display: block; }
.mega__desc { font-size: 0.78rem; color: var(--faint); display: block; line-height: 1.4; }

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.seg a {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--faint);
  transition: 0.25s;
  white-space: nowrap;
}
.seg a:hover { color: var(--text); }
.seg a.is-active { background: var(--grad-accent); color: #180b02; }

.nav__phone {
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
  color: var(--text);
}
/* кнопка личного кабинета — есть на каждой странице сайта */
.nav__cab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.nav__cab:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 122, 26, 0.12);
  transform: translateY(-1px);
}
.nav__cab-ico { display: grid; place-items: center; }
.nav__cab-ico .ico { width: 19px; height: 19px; }
.nav__cab.is-in {
  color: var(--text);
  border-color: rgba(255, 122, 26, 0.5);
  background: rgba(255, 122, 26, 0.1);
}
.nav__cab.is-active { color: var(--accent); border-color: var(--accent); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильная панель */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 890;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 26px 24px 80px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s var(--ease);
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer__group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.drawer__group > strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.drawer a { display: block; padding: 9px 0; font-weight: 700; font-size: 1.02rem; }
.drawer a:hover { color: var(--accent); }
.drawer .seg { margin-bottom: 18px; width: 100%; }
.drawer .seg a { flex: 1; text-align: center; padding: 10px; }

/* ============ 6. СЕКЦИИ ============ */
.section {
  position: relative;
  padding: clamp(70px, 9vw, 130px) 0;
  overflow: hidden;
}
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper {
  background: var(--paper);
  color: var(--paper-text);
}
.section--paper .lead,
.section--paper .muted { color: var(--paper-muted); }
.section--paper .outline { -webkit-text-stroke-color: var(--paper-text); }
.section--surface { background: var(--surface); }
.section--gradient {
  background: radial-gradient(900px 500px at 80% -10%, rgba(255, 122, 26, 0.18), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--surface) 100%);
}

.ghost {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(5rem, 19vw, 17rem);
  color: rgba(255, 255, 255, 0.026);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  letter-spacing: 4px;
}
.section--paper .ghost { color: rgba(20, 12, 8, 0.05); }

.section__head { position: relative; z-index: 1; max-width: 760px; margin-bottom: 52px; }
.section__head.center { margin-inline: auto; }
.section__head p.lead { margin-top: 20px; }

/* ============ 7. HERO ============ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 70px) 0 60px;
  overflow: hidden;
}
.hero--page { min-height: 74svh; align-items: center; }
.hero--slim { min-height: 52svh; padding-bottom: 40px; }
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.72) 0%, rgba(10, 8, 6, 0.82) 45%, var(--ink) 100%);
}
.hero__glow {
  position: absolute;
  width: 60vw;
  max-width: 700px;
  aspect-ratio: 1;
  border-radius: 50%;
  top: -18%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.4), transparent 62%);
  filter: blur(50px);
  z-index: 0;
  animation: pulse 7s ease-in-out infinite;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__title { margin-bottom: 26px; }
.hero__title .line { display: block; }
.hero__lead { max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.24rem); color: #cbbfb4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__scroll {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: bob 2.4s ease-in-out infinite;
}

.stats { display: flex; flex-wrap: wrap; gap: 18px 46px; margin-top: 42px; }
.stat__num { display: block; font-size: clamp(2rem, 4vw, 3rem); color: var(--accent); }
.stat__label {
  font-size: 0.74rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
  max-width: 16ch;
  display: block;
  margin-top: 4px;
}

/* ============ 8. БЕГУЩАЯ СТРОКА ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  background: var(--surface);
}
.marquee--accent { background: var(--grad-accent); border-color: transparent; }
.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee--accent .marquee__track { animation-duration: 26s; }
.marquee__track--rev { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.marquee--accent .marquee__track span { color: #180b02; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============ 9. СЕТКИ И КАРТОЧКИ ============ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split--rev > *:first-child { order: 2; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.card__img {
  position: relative;
  aspect-ratio: 16 / 11;
  /* подложка видна, пока фотография грузится, и остаётся, если файла ещё нет:
     тёмный уголь вместо белого пролома в карточке */
  background-color: #1a120c;
  background-image: linear-gradient(150deg, #241811, #120c08);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 8, 6, 0.85) 100%);
}
.card:hover .card__img { transform: scale(1.05); transition: transform 0.7s var(--ease); }
/* Позиция, для которой кадр ещё не снят: спокойная плашка вместо пустоты */
.card__img--soon {
  display: grid;
  place-items: center;
  background-image: radial-gradient(circle at 50% 118%, rgba(255, 138, 0, 0.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 26px),
    linear-gradient(150deg, #241811, #120c08);
}
.card__soon {
  position: relative;
  z-index: 2;
  padding: 0 18px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9a8878;
}
.card:hover .card__soon { color: var(--accent); transition: color 0.4s var(--ease); }
.card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  color: #180b02;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card__num {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.22);
}
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__name { font-size: 1.15rem; }
.card__desc { font-size: 0.9rem; color: var(--muted); flex: 1; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.card__price { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); }
.card__price small { font-family: var(--font-body); font-size: 0.72rem; color: var(--faint); font-weight: 700; }
.section--paper .card {
  background: #fff;
  border-color: var(--paper-line);
}
.section--paper .card__desc { color: var(--paper-muted); }
.section--paper .card__foot { border-top-color: var(--paper-line); }

/* карточка формата — крупная, с номером */
.fmt {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--surface), transparent 70%);
  transition: 0.35s var(--ease);
  overflow: hidden;
}
.fmt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.fmt:hover { background: var(--surface-2); transform: translateX(6px); }
.fmt:hover::before { transform: scaleY(1); }
.fmt__num { font-family: var(--font-display); font-size: 2.3rem; color: rgba(255, 255, 255, 0.14); }
.fmt:hover .fmt__num { color: var(--accent); }
.fmt__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: 6px;
}
body[data-register="family"] .fmt__name { text-transform: none; }
.fmt__desc { display: block; font-size: 0.92rem; color: var(--muted); max-width: 62ch; }
.fmt__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fmt__price { text-align: right; }
.fmt__price b { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); display: block; }
.fmt__price span { font-size: 0.74rem; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.pill--accent { border-color: var(--accent); color: var(--accent); }
.section--paper .pill { border-color: var(--paper-line); color: var(--paper-muted); background: rgba(20, 12, 8, 0.03); }

/* плитка повода */
.occ {
  position: relative;
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: 0.3s var(--ease);
  overflow: hidden;
}
/* угли под плиткой: разгораются при наведении */
.occ::after {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}
.occ:hover { transform: translateY(-4px); border-color: var(--accent); }
.occ:hover::after { opacity: 0.14; transform: scale(1); }
.occ__name { position: relative; display: block; font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.occ__desc { position: relative; display: block; font-size: 0.82rem; color: var(--faint); line-height: 1.45; }
.section--paper .occ { background: #fff; border-color: var(--paper-line); }
.section--paper .occ__desc { color: var(--paper-muted); }

/* стрелка у плиток, ведущих на отдельную страницу */
.occ__go {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: 0.35s var(--ease);
}
.occ--link:hover .occ__go { opacity: 1; transform: translateX(0); }
/* на тач-устройствах наведения нет — показываем стрелку сразу */
@media (hover: none) {
  .occ--link .occ__go { opacity: 0.6; transform: none; }
}

/* последняя плитка-приглашение: пунктир вместо рамки, чтобы читалась как пустая строка */
.occ--cta { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.occ--cta .occ__name { color: var(--accent); }
.occ--cta .occ__go { opacity: 0.7; transform: none; }
.occ--cta:hover .occ__go { opacity: 1; transform: translateX(4px); }
.occ--cta .occ__ico { border-style: dashed; }
.section--paper .occ--cta { background: transparent; border-color: rgba(20, 12, 8, 0.28); }
.section--paper .occ--cta .occ__ico { background: transparent; }

/* ============ 9б. ИКОНКИ ============ */
/* клеймо под иконку: то же скругление и та же линия, что у карточек */
.occ__ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  color: var(--text);
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.section--paper .occ__ico {
  border-color: var(--paper-line);
  background: linear-gradient(150deg, rgba(20, 12, 8, 0.05), rgba(20, 12, 8, 0.01));
  color: var(--paper-text);
}
.ico {
  width: 26px;
  height: 26px;
  display: block;
  overflow: visible;
  transition: transform 0.45s var(--ease);
}
.ico__hot { transform-origin: 50% 70%; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }

.occ:hover .occ__ico {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-2);
  transform: rotate(-5deg) scale(1.07);
  box-shadow: 0 10px 26px rgba(255, 77, 23, 0.16);
}
/* на бумаге линия остаётся чернильной: горячий элемент и так акцентный */
.section--paper .occ:hover .occ__ico { color: var(--paper-text); }
.occ:hover .ico { transform: rotate(5deg) scale(1.04); }
.occ:hover .ico__hot { animation: hotFlicker 1.1s var(--ease) infinite alternate; }

@keyframes hotFlicker {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  35% { transform: translateY(-1.4px) scale(1.16, 1.1); opacity: 0.92; }
  70% { transform: translateY(-0.6px) scale(0.96, 1.12); opacity: 1; }
  100% { transform: translateY(-1.8px) scale(1.14, 1.2); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .occ:hover .occ__ico, .occ:hover .ico { transform: none; }
  .occ:hover .ico__hot { animation: none; }
}

/* иконка вместо буквы в карточке оборудования */
.member__ico { display: grid; place-items: center; width: 92px; height: 92px; color: var(--accent); }
.member__ico .ico { width: 58px; height: 58px; }
.member:hover .ico__hot { animation: hotFlicker 1.1s var(--ease) infinite alternate; }

/* острота соуса пламенем вместо эмодзи */
.heat { display: inline-flex; gap: 3px; align-items: center; }
.heat__i { display: block; line-height: 0; opacity: 0.22; color: var(--muted); }
.heat__i .ico { width: 15px; height: 15px; }
.heat__i .ico__hot { fill: currentColor; }
.heat__i.is-on { opacity: 1; color: var(--accent); }
.heat__i.is-on .ico__hot { fill: var(--accent); }
.card:hover .heat__i.is-on .ico__hot { animation: hotFlicker 1.1s var(--ease) infinite alternate; }

/* ============ 10. РИТУАЛЫ / ТАЙМЛАЙН ============ */
.ritual { position: relative; padding-left: 74px; padding-bottom: 40px; }
.ritual:last-child { padding-bottom: 0; }
.ritual::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 42px;
  bottom: -6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.ritual:last-child::before { display: none; }
.ritual__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--accent);
  background: var(--ink);
}
.ritual h3 { font-size: 1.12rem; margin-bottom: 8px; }
.ritual p { color: var(--muted); font-size: 0.94rem; }

/* ============ 11. ДОВЕРИЕ / ПРУФЫ ============ */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust__item { background: var(--ink); padding: 26px 22px; }
.trust__item b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); margin-bottom: 8px; }
.trust__item span { font-size: 0.88rem; color: var(--muted); }
.section--paper .trust { background: var(--paper-line); border-color: var(--paper-line); }
.section--paper .trust__item { background: var(--paper); }
.section--paper .trust__item span { color: var(--paper-muted); }

.check {
  display: grid;
  gap: 14px;
}
.check li {
  position: relative;
  padding-left: 34px;
  font-size: 0.96rem;
}
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 30%, transparent 32%);
}
.check li b { color: var(--text); }
.section--paper .check li b { color: var(--paper-text); }

/* ============ 12. КАЛЬКУЛЯТОР ============ */
.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 24px; }
.field > label,
.field__title {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.field__range { display: flex; align-items: center; gap: 18px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent) var(--fill, 30%), rgba(255, 255, 255, 0.12) var(--fill, 30%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-accent);
  border: 3px solid var(--ink);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--flame);
  cursor: pointer;
}
output.bignum {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  min-width: 3.4ch;
  text-align: right;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.is-active { background: var(--grad-accent); color: #180b02; border-color: transparent; }

.packs { display: grid; gap: 10px; }
.pack { cursor: pointer; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: 0.25s;
}
.pack:hover .pack__body { border-color: var(--line-strong); }
.pack input:checked + .pack__body {
  border-color: var(--accent);
  background: rgba(255, 122, 26, 0.07);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pack__name { font-weight: 800; font-size: 1rem; }
.pack__price { font-family: var(--font-display); color: var(--accent); }
.pack__desc { grid-column: 1 / -1; font-size: 0.82rem; color: var(--faint); }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 9px 0; }
.switch input { position: absolute; opacity: 0; }
.switch__box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: 0.2s;
  margin-top: 1px;
}
.switch__box::after {
  content: "✓";
  font-size: 0.8rem;
  color: #180b02;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.2s;
}
.switch input:checked + .switch__box { background: var(--grad-accent); border-color: transparent; }
.switch input:checked + .switch__box::after { opacity: 1; transform: scale(1); }
.switch__text { font-size: 0.9rem; }
.switch__text b { display: block; }
.switch__text span { color: var(--faint); font-size: 0.82rem; }

.calc__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.calc__label { font-size: 0.74rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); display: block; }
.calc__sum { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent); }
.calc__note { font-size: 0.78rem; color: var(--faint); margin-top: 14px; }

/* ============ 13. ГРИЛЬ-КОНСТРУКТОР ============ */
.builder {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--ink));
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
}
.builder__stage {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 30px 10px 26px;
  border-radius: var(--r-md);
  background: radial-gradient(500px 180px at 50% 100%, rgba(255, 90, 20, 0.28), transparent 70%);
  overflow-x: auto;
}
.builder__stage::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 18px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}
.block {
  position: relative;
  width: 96px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #2c211a, #16100c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  animation: blockIn 0.45s var(--ease) both;
}
.block:hover { transform: translateY(-6px); border-color: var(--accent); }
.block__grate {
  height: 32px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #4a382c 0 3px, transparent 3px 8px);
  box-shadow: inset 0 0 12px rgba(255, 90, 20, 0.55);
}
.block--flat .block__grate { background: linear-gradient(180deg, #52402f, #33261c); }
.block--perf .block__grate { background: repeating-radial-gradient(circle at 6px 6px, #4a382c 0 2px, transparent 2px 7px); }
.block--skew .block__grate { background: repeating-linear-gradient(0deg, #4a382c 0 3px, transparent 3px 9px); }
.block--kazan .block__grate { border-radius: 50%; height: 34px; background: radial-gradient(circle, #40312a, #1b1310); }
.block__label {
  font-size: 0.62rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}
.block__fire {
  position: absolute;
  inset: auto 8px 40px;
  height: 26px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 190, 60, 0.9), rgba(255, 80, 20, 0.25) 60%, transparent 72%);
  filter: blur(3px);
  animation: flicker 1.5s ease-in-out infinite alternate;
  pointer-events: none;
}
.block__x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.2s;
}
.block:hover .block__x { opacity: 1; }
.block__x:hover { background: var(--fire); color: #fff; border-color: transparent; }

.builder__empty { color: var(--faint); font-size: 0.9rem; align-self: center; padding: 40px 0; }
.builder__palette { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.builder__readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 22px;
  overflow: hidden;
}
.builder__readout div { background: var(--ink); padding: 16px 18px; }
.builder__readout b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.builder__readout span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); }
.ro__link { color: inherit; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.18); transition: 0.25s var(--ease); }
.ro__link:hover { border-bottom-color: currentColor; }
#roHint a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
#roHint a:hover { border-bottom-color: var(--accent); }

/* ============ 13.5 ТАБЛИЦЫ ============ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.section--paper .table-wrap { border-color: var(--paper-line); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 660px; }
.table th,
.table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.table th {
  font-size: 0.7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255, 122, 26, 0.05); }
.table td b { color: var(--accent); font-family: var(--font-heading); font-weight: 400; font-size: 1.02rem; }
.section--paper .table th,
.section--paper .table td { border-bottom-color: var(--paper-line); }
.section--paper .table th { background: rgba(20, 12, 8, 0.04); }

/* ============ 14. АККОРДЕОН ============ */
.acc { border-top: 1px solid var(--line); }
.section--paper .acc, .section--paper .acc__item { border-color: var(--paper-line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 44px 22px 0;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.acc__q:hover { color: var(--accent); }
.acc__q::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.acc__item.is-open .acc__q::after { transform: translateY(-50%) rotate(45deg); }
.acc__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.acc__a p { padding: 0 60px 24px 0; color: var(--muted); }
.section--paper .acc__a p { color: var(--paper-muted); }

/* ============ 15. ОТЗЫВЫ ============ */
.quote {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: relative;
}
.quote::before {
  content: "«";
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 5rem;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.35;
  display: block;
  margin-bottom: 8px;
}
.quote p { font-size: 1rem; }
.quote footer { margin-top: 18px; font-size: 0.8rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.section--paper .quote { background: #fff; border-color: var(--paper-line); }

/* ============ 16. КЕЙСЫ / ГАЛЕРЕЯ ============ */
.case {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: transform 0.4s var(--ease);
}
.case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 4, 0.1) 20%, rgba(8, 6, 4, 0.75) 62%, rgba(8, 6, 4, 0.97) 100%);
}
.case:hover { transform: translateY(-6px); }
.case__body { position: relative; z-index: 2; }
.case__no {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.case__title { font-size: 1.2rem; margin-bottom: 6px; }
.case__meta { font-size: 0.8rem; color: var(--muted); }

.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--coal); border-radius: 3px; }
.strip > * { flex: 0 0 clamp(240px, 30vw, 340px); scroll-snap-align: start; }

/* ============ 17. КОМАНДА ============ */
.member { text-align: left; }
.member__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
  filter: grayscale(0.35) contrast(1.05);
  transition: 0.4s var(--ease);
}
.member:hover .member__photo { filter: none; transform: translateY(-5px); }
.member__role { font-size: 0.76rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); display: block; margin: 6px 0 8px; }
.member p { font-size: 0.88rem; color: var(--muted); }

/* ============ 18. ФОРМЫ И КВИЗ ============ */
.form { display: grid; gap: 18px; }
.input,
textarea.input,
select.input {
  width: 100%;
  padding: 15px 18px;
  /* сплошной фон: полупрозрачный + нативный select на Windows даёт щели по краям */
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
  font-size: 0.96rem;
  color: var(--text);
  box-shadow: none;
}
.input::placeholder { color: var(--faint); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface-3);
}
.section--paper { color-scheme: light; }
.section--paper .input {
  background-color: #fff;
  border-color: var(--paper-line);
  color: var(--paper-text);
}
.section--paper .input:focus { background-color: #fff; }

/* select: убираем системную «коробку», иначе белые/тёмные просветы слева-справа */
select.input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23a89a8e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
select.input:focus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23ff4d17' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
select.input option,
select.input optgroup {
  background-color: var(--surface-2);
  color: var(--text);
}
.section--paper select.input option,
.section--paper select.input optgroup {
  background-color: #fff;
  color: var(--paper-text);
}

/* date/number — системные иконки и спиннеры не должны светить белым */
input[type="date"].input,
input[type="time"].input,
input[type="number"].input {
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"].input::-webkit-calendar-picker-indicator {
  opacity: 0.65;
  cursor: pointer;
  filter: invert(0.85);
}
.section--paper input[type="date"].input::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.55;
}
input[type="number"].input::-webkit-outer-spin-button,
input[type="number"].input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"].input { -moz-appearance: textfield; appearance: textfield; }

.form__note {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid var(--accent);
  font-size: 0.9rem;
}
.form__note:empty { display: none; }
/* Заявка не ушла: тот же блок, но красным — человек должен это заметить */
.form__note.is-bad {
  background: rgba(255, 78, 48, 0.12);
  border-color: #ff4e30;
}
.form__note.is-bad a { text-decoration: underline; font-weight: 700; }
.form__legal { font-size: 0.74rem; color: var(--faint); }
.form__legal a { text-decoration: underline; }

.quiz { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.quiz__bar { height: 4px; background: rgba(255, 255, 255, 0.08); }
.quiz__bar i { display: block; height: 100%; width: 12%; background: var(--grad-accent); transition: width 0.4s var(--ease); }
.quiz__body { padding: clamp(24px, 4vw, 44px); }
.quiz__step { display: none; animation: fadeUp 0.45s var(--ease) both; }
.quiz__step.is-active { display: block; }
.quiz__count { font-size: 0.74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.quiz__q { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 24px; }
.quiz__opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.quiz__opt {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: 0.25s var(--ease);
  font-weight: 700;
  color: var(--text);
}
.quiz__opt small { display: block; font-weight: 500; color: var(--faint); font-size: 0.8rem; margin-top: 4px; }
.quiz__opt:hover { border-color: var(--accent); transform: translateY(-3px); }
.quiz__opt.is-active {
  border-color: var(--accent);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.35);
}
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; }
.quiz__back { background: none; border: none; color: var(--faint); cursor: pointer; font-weight: 700; font-size: 0.84rem; }
.quiz__back:hover { color: var(--text); }

/* ============ 18.5 ТЕКСТ СТАТЬИ ============ */
.prose { max-width: 72ch; }
.prose > p,
.prose > ul,
.prose > ol { margin-bottom: 22px; font-size: 1.06rem; color: var(--muted); }
.prose > p:first-of-type { font-size: 1.2rem; color: var(--text); }
.prose h2 { margin: 48px 0 18px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.prose h3 { margin: 34px 0 12px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1.02rem;
  color: var(--muted);
}
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--text);
}
.prose figure { margin: 32px 0; }
.prose figure img,
.prose figure > div {
  border-radius: var(--r-md);
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.prose figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--faint); }
.section--paper .prose > p,
.section--paper .prose > ul,
.section--paper .prose li { color: var(--paper-muted); }
.section--paper .prose > p:first-of-type,
.section--paper .prose strong,
.section--paper .prose blockquote { color: var(--paper-text); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}

/* ============ 19. CTA-ПОЛОСА ============ */
.cta {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0;
  overflow: hidden;
  background: radial-gradient(800px 400px at 20% 0%, rgba(255, 122, 26, 0.25), transparent 60%), var(--surface);
  border-top: 1px solid var(--line);
}
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { max-width: 22ch; }
.cta p { color: var(--muted); max-width: 46ch; margin-top: 14px; }

/* ============ 20. ФУТЕР ============ */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px 28px;
}
.footer__col h4 { font-size: 0.76rem; letter-spacing: 2px; color: var(--faint); margin-bottom: 16px; }
.footer__col a, .footer__col li { display: block; padding: 5px 0; font-size: 0.9rem; color: var(--muted); }
.footer__col a:hover { color: var(--accent); }
.footer__tag { color: var(--muted); font-size: 0.92rem; margin: 16px 0 22px; max-width: 34ch; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  transition: 0.25s;
}
.footer__socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--faint);
}

/* ============ 21. МОБИЛЬНАЯ CTA-ПОЛОСА ============ */
.dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 880;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 8, 6, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.dock .btn { flex: 1; padding: 13px 14px; font-size: 0.74rem; }

/* ============ 22. ЛАЙТБОКС ============ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(6, 4, 3, 0.94);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow); }
.lb__close { position: absolute; top: 20px; right: 24px; font-size: 2rem; background: none; border: none; color: var(--text); cursor: pointer; }

/* ============ Меню: попап позиции ============ */
.card__foot .btn--sm {
  flex-shrink: 0;
  white-space: nowrap;
}
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.menu-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.menu-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, 0.88);
  cursor: pointer;
}
.menu-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.menu-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.menu-modal__close:hover { background: var(--accent); color: #180b02; }
.menu-modal__media {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #1a1410;
}
.menu-modal__media--soon {
  display: grid;
  place-items: center;
  background-image: radial-gradient(circle at 50% 118%, rgba(255, 138, 0, 0.18), transparent 60%),
    linear-gradient(150deg, #241811, #120c08);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #9a8878;
}
.menu-modal__body {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-modal__tag {
  align-self: flex-start;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  color: #180b02;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.menu-modal__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.menu-modal__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.menu-modal__meta {
  display: grid;
  gap: 12px;
  margin: 6px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.menu-modal__meta dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.menu-modal__meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}
.menu-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .menu-modal__panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .menu-modal__media { min-height: 200px; }
  .menu-modal__body { padding: 22px 18px 20px; }
  .menu-modal__foot { flex-wrap: wrap; }
}

/* ============ 23. АНИМАЦИИ ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.14); }
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@keyframes flicker {
  0% { opacity: 0.55; transform: scaleY(0.9); }
  100% { opacity: 1; transform: scaleY(1.1); }
}
@keyframes blockIn {
  from { opacity: 0; transform: translateY(24px) scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 24. АДАПТИВ ============ */
@media (min-width: 1700px) {
  .nav__phone { display: inline; }
}
@media (max-width: 1600px) {
  .nav__link { padding: 9px 8px; font-size: 0.8rem; }
}
@media (max-width: 1480px) {
  .nav__cab-label { display: none; }
  .nav__cab { padding: 8px 10px; }
  .nav__link { padding: 9px 6px; font-size: 0.76rem; }
  .seg a { padding: 7px 9px; font-size: 0.68rem; }
  .nav .btn--sm { padding: 10px 14px; font-size: 0.72rem; }
}
@media (max-width: 1280px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  .nav .seg { display: none; }
  .nav__cab-label { display: inline; }
  .nav__cab { margin-left: auto; padding: 8px 14px 8px 10px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }
  .dock { display: flex; }
  body { padding-bottom: 68px; }
}
@media (max-width: 700px) {
  .nav .btn--sm { display: none; }
  .nav .logo-img { height: 34px; }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4, .trust { grid-template-columns: 1fr; }
  .fmt { grid-template-columns: 54px 1fr; }
  .fmt__price { grid-column: 2; text-align: left; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .ghost { font-size: 22vw; }
  .stats { gap: 18px 28px; }
}

/* ============ 25. ЛИЧНЫЙ КАБИНЕТ ============ */
body[data-cabinet] .dock { display: none; }
body[data-cabinet] [hidden] { display: none !important; }

.cab-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 700;
  background: rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.cab-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cab-bar__brand {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--accent);
}
.cab-bar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.cab-bar__nav a,
.cab-bar__ghost {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.cab-bar__nav a:hover,
.cab-bar__ghost:hover { color: var(--text); }
.cab-bar__nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.cab-bar__who {
  font-size: 0.78rem;
  color: var(--faint);
}

.cab-auth {
  min-height: calc(100vh - var(--nav-h) - 80px);
  display: flex;
  align-items: center;
}
.cab-auth__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.cab-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(22px, 3vw, 36px);
}
.section--paper .cab-panel {
  background: #fff;
  border-color: var(--paper-line);
  color: var(--paper-text);
}
.cab-panel__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.cab-panel .field { margin-bottom: 16px; }
.cab-panel .field:last-of-type { margin-bottom: 8px; }
.cab-fields-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
.input.is-locked {
  opacity: 0.75;
  cursor: not-allowed;
}
.cab-error {
  color: #ff6b4a;
  font-size: 0.86rem;
  margin: 8px 0 14px;
  font-weight: 600;
}
.cab-invite-result {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.cab-invite-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--ember);
  margin: 10px 0 14px;
  line-height: 1.45;
}
.cab-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Конструктор меню в админке */
.admin-builder__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  align-items: start;
}
.admin-builder__picked {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.admin-builder__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated, #1a120c) 88%, transparent);
}
.admin-builder__row-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.admin-builder__row-main b {
  font-size: 0.95rem;
}
.admin-builder__row .input--sm,
.input.input--sm {
  padding: 8px 12px;
  font-size: 0.82rem;
  min-height: 0;
}
.admin-builder__custom {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.field--check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.35;
  cursor: pointer;
}
.field--check input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.admin-builder__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-builder__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}
.admin-builder__card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
}
.admin-builder__card:hover {
  border-color: var(--line-strong);
}
.admin-builder__card.is-picked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.admin-builder__card b {
  font-size: 0.9rem;
  line-height: 1.25;
}
.admin-builder__card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.admin-builder__card .pill {
  align-self: flex-start;
  margin-top: auto;
}
.cab-card__meta {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--ember);
  font-weight: 600;
}
.admin-builder__extras {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.admin-builder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .admin-builder__grid { grid-template-columns: 1fr; }
}

/* Выбор способа подтверждения номера: бот, почта, звонок */
.conf-ways {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.conf-way {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  color: inherit;
  padding: 14px 16px;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.conf-way:hover {
  border-color: var(--flame);
  background: rgba(255, 92, 30, 0.06);
  transform: translateY(-2px);
}
.conf-way__title {
  display: block;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.conf-way__title i {
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flame);
  margin-left: 8px;
}
.conf-way__note {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  opacity: 0.72;
}

.cab-welcome-hero .hero__meta { margin-top: 22px; }
.cab-event {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.cab-event__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cab-menu {
  display: grid;
  gap: 12px;
}
.cab-dish {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.05), transparent 55%), var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cab-dish:hover {
  border-color: rgba(255, 122, 26, 0.45);
  transform: translateY(-2px);
}
.cab-dish__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 4px;
}
.cab-dish__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cab-dish h3 {
  font-size: 1.15rem;
  margin: 0;
}
.cab-dish p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .cab-auth__grid { grid-template-columns: 1fr; }
  .cab-bar { top: 64px; }
  .cab-bar__who { width: 100%; order: 3; }
  .cab-fields-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cab-dish { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; }
  .cab-event { align-items: flex-start; }
}

/* плавающие кнопки меню — всегда видны */
.cab-menu-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 920;
  width: min(520px, calc(100% - 24px));
  pointer-events: none;
}
.cab-menu-dock__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(10, 8, 6, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}
.cab-menu-dock__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s var(--ease);
}
.cab-menu-dock__btn:hover {
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.1);
}
.cab-menu-dock__btn--accent {
  background: linear-gradient(120deg, rgba(255, 183, 3, 0.18), rgba(255, 77, 23, 0.22));
  border-color: rgba(255, 122, 26, 0.35);
}
.cab-menu-dock__btn.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.35);
}
.cab-menu-dock__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.cab-menu-dock__hint {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body[data-cabinet] { padding-bottom: 96px; }
body[data-cabinet="admin"] { padding-bottom: 0; }
body[data-cabinet="admin"] .cab-menu-dock { display: none; }

/* на страницах сайта переключатель меню встаёт над мобильной CTA-полосой */
body[data-cab-dock] { padding-bottom: 96px; }
@media (max-width: 980px) {
  body[data-cab-dock] { padding-bottom: 160px; }
  body[data-cab-dock] .cab-menu-dock { bottom: 78px; }
}

.cab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.cab-cat-block { margin-bottom: 36px; }
.cab-cat-block__title {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section--paper .cab-cat-block__title { border-color: var(--paper-line); color: var(--paper-text); }

.cab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cab-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cab-card:hover {
  border-color: rgba(255, 122, 26, 0.4);
  transform: translateY(-2px);
}
.section--paper .cab-card {
  background: #fff;
  border-color: var(--paper-line);
  color: var(--paper-text);
}
.cab-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}
.cab-card__name {
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.25;
}
.cab-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.section--paper .cab-card__desc { color: var(--paper-muted); }
.cab-card__note {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}
.cab-card__extra {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.cab-card__status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section--paper .cab-card__note { color: var(--accent); }
.section--paper .card {
  background: #fff;
  border-color: var(--paper-line);
  color: var(--paper-text);
}
.section--paper .card__desc { color: var(--paper-muted); }
.section--paper .card__name { color: var(--paper-text); }
.section--paper .card__foot { border-top-color: var(--paper-line); }
.cab-extra-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cab-extra-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(20, 12, 8, 0.04);
  border: 1px solid var(--paper-line);
  font-weight: 600;
}

@media (max-width: 980px) {
  .cab-menu-dock { bottom: 14px; }
}
@media (max-width: 680px) {
  .cab-cards { grid-template-columns: 1fr; }
  .cab-menu-dock__label { font-size: 0.95rem; }
  .cab-menu-dock__hint { font-size: 0.62rem; }
}
