/* ==========================================================================
   ПЕРЕПЛЁТ · Components
   Переиспользуемые элементы дизайн-системы. Не знают о секциях страницы.
   ========================================================================== */

/* ==========================================================
   1. Кнопки
   ========================================================== */
.btn {
  /* Светлая кнопка — точно из Figma (Rectangle 454): #dddbd4, белая обводка 1px,
     радиус 5, тень 0 2 2 / .25. Тёплый бежевый, а не холодный серый. */
  --btn-bg: #dddbd4;
  --btn-fg: var(--ink-900);
  --btn-bg-hover: #e8e6e0;
  --btn-edge: #a9a69e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-small);   /* один кегль у всех кнопок (правка 10.09) */
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-align: center;
  line-height: var(--lh-ui);
  border: 1px solid #fff;
  border-radius: var(--radius-sm);
  /* «Клавиша»: собственный борт снизу + тень из макета */
  box-shadow: 0 3px 0 var(--btn-edge), var(--shadow-btn);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: 0 4px 0 var(--btn-edge), var(--shadow-btn-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--btn-edge), 0 1px 2px rgba(0, 0, 0, 0.3); }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }

/* Тёмная кнопка — точно из Figma (Rectangle 454 в форме):
   gradient 95.19° #242121 0% → #393939 54.37% → #000 100%, обводка 1px #000, радиус 5. */
.btn--ink {
  --btn-bg: linear-gradient(95.19deg, #242121 0%, #393939 54.37%, #000 100%);
  --btn-fg: #fff;
  --btn-bg-hover: linear-gradient(95.19deg, #393939 0%, #4a4747 54.37%, #1a1818 100%);
  --btn-edge: #000;
  border-color: #000;
}
/* Контурная — вторичное действие на тёмном */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bg-hover: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.btn--ghost:hover { border-color: #fff; box-shadow: none; transform: translateY(-1px); }
.btn--ghost:active { transform: translateY(1px); box-shadow: none; }
.theme-paper .btn--ghost, .theme-warm .btn--ghost {
  --btn-fg: var(--ink-900);
  --btn-bg-hover: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.45);
}
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 3.75rem; padding-inline: 2.5rem; }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.1rem; }
.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Текстовая ссылка с подчёркиванием, «печатная» */
.link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur-fast);
}
.link:hover { text-decoration-color: transparent; }

/* Маркер-стрелка (Figma: лаймовая полоска под «Посмотреть описание») */
.marker-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.6rem 0.5rem 1.1rem;
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--ink-900);
  isolation: isolate;
}
.marker-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime-300);
  -webkit-clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  transform: translate(-16px, 0) skewX(-2deg);
  opacity: 0.9;
  transition: transform var(--dur-base) var(--ease-out);
}
.marker-link:hover::before { transform: translate(-16px, 0) skewX(-2deg) scaleX(1.06); transform-origin: left; }

/* ==========================================================
   2. «Скотч»-плашки, стикеры, булавки, скрепки, штампы
   ========================================================== */
/* Полупрозрачная полоска малярного скотча с текстом */
.tape {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  min-height: 2.75rem;
  background: linear-gradient(90deg, rgba(230, 228, 222, 0.92), rgba(214, 212, 205, 0.88) 50%, rgba(226, 224, 218, 0.92));
  color: var(--ink-900);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-align: center;
  -webkit-clip-path: polygon(0 4%, 2% 0, 98% 3%, 100% 10%, 99.4% 92%, 98% 100%, 1.5% 97%, 0 90%);
  clip-path: polygon(0 4%, 2% 0, 98% 3%, 100% 10%, 99.4% 92%, 98% 100%, 1.5% 97%, 0 90%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--tape-rotate, -0.6deg));
}
.tape--dark {
  background: linear-gradient(90deg, rgba(90, 88, 88, 0.95), rgba(70, 68, 68, 0.95));
  color: #fff;
}
.tape--strip { display: block; width: 100%; min-height: 0; padding: 0.35rem; }

/* Клейкая лента: тонкая прозрачная полоска (крепит фото/стикер) */
.sticky-tape {
  position: absolute;
  width: 110px;
  height: 32px;
  background: url("../assets/ui/tape-piece.webp") no-repeat center / 100% 100%;
  opacity: 0.92;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  transform: rotate(var(--r, -4deg));
  pointer-events: none;
}
.sticky-tape--alt { background-image: url("../assets/ui/tape-piece-2.webp"); }
.sticky-tape--tl { top: -10px; left: -28px; }
.sticky-tape--tr { top: -10px; right: -28px; --r: 5deg; }
.sticky-tape--top { top: -12px; left: 50%; margin-left: -55px; --r: -2deg; }

/* Жёлтый стикер (Figma: Зина «Привет, я Зина») */
.sticker {
  position: relative;
  width: min(100%, 15rem);
  padding: 1.25rem 1.1rem 1.4rem;
  background: url("../assets/ui/sticker.png") no-repeat center / 100% 100%;
  color: var(--navy-700);
  filter: drop-shadow(2px 6px 10px rgba(0, 0, 0, 0.35));
  transform: rotate(var(--sticker-rotate, 2deg));
  transform-origin: top center;
  transition: transform var(--dur-base) var(--ease-out);
}
/* Ховер-поворот убран: он выносил стикер в отдельный слой и в Safari рисовал рамку (09.09) */
.sticker__photo {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: var(--paper-500);
  margin-bottom: 0.6rem;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.sticker__title { font-family: var(--font-hand); font-size: 1.5rem; line-height: var(--lh-flat); margin-bottom: 0.35rem; }
.sticker__text { font-family: var(--font-hand); font-size: 1.05rem; line-height: var(--lh-hand); }

/* Красная булавка — PNG из Figma (pin_PNG64) */
.pin {
  position: absolute;
  width: 42px; height: 37px;
  pointer-events: none;
  background: url("../assets/ui/pin.png") no-repeat center / contain;
}
.pin--tl { top: -14px; left: 12px; }
.pin--tr { top: -14px; right: 12px; }
.pin--top { top: -16px; left: 50%; margin-left: -18px; }
.pin--lg { width: 48px; height: 42px; }

/* Скрепка — PNG из Figma */
.clip {
  position: absolute;
  width: 22px; height: 84px;
  pointer-events: none;
  background: url("../assets/ui/clip.png") no-repeat center / contain;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.35));
}

/* Штамп: «ЗАЯВКА ПРИНЯТА», «БРОНЬ БЕСПЛАТНО» */
.stamp {
  display: inline-block;
  padding: 0.35em 0.7em;
  border: 3px solid var(--red-600);
  border-radius: 6px;
  color: var(--red-600);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(--lh-flat);
  transform: rotate(-8deg);
  opacity: 0.9;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stamp.is-in { animation: stamp-in 500ms var(--ease-spring) both; }
@keyframes stamp-in {
  0% { transform: rotate(-8deg) scale(2.2); opacity: 0; }
  60% { transform: rotate(-8deg) scale(0.96); opacity: 1; }
  100% { transform: rotate(-8deg) scale(1); opacity: 0.9; }
}

/* ==========================================================
   3. Бумага, папка, полароид, контейнер
   ========================================================== */
/* Лист бумаги (белый) */
/* Текстура бумаги возвращена (решение 10.09): Диана — «потерялась текстура,
   ушёл реализм». Не псевдоэлементом, а фоновым слоем: ::before на .paper
   в Safari уходил в отдельный слой и подсвечивал края (история с наклейками). */
.paper {
  position: relative;
  background-color: var(--paper-100);
  background-image: var(--paper-texture);
  background-size: 180px 180px;
  color: var(--paper-fg);
  box-shadow: var(--shadow-paper), var(--shadow-paper-inset);
}
/* Серая карточка внутри папки (Figma #bcbcbc color-burn) */
.paper--grey { background: var(--paper-500); box-shadow: none; }
.paper .kicker, .paper .muted { color: var(--paper-fg-muted); }
.paper--outline { background: transparent; color: inherit; box-shadow: none; border: 1px solid var(--paper-line); }
.theme-dark .paper--outline, .theme-dark-alt .paper--outline, .theme-black .paper--outline { border-color: rgba(255, 255, 255, 0.35); }
.theme-dark .paper--outline .kicker, .theme-dark-alt .paper--outline .kicker, .theme-black .paper--outline .kicker,
.theme-dark .paper--outline .muted, .theme-dark-alt .paper--outline .muted, .theme-black .paper--outline .muted { color: var(--fg-muted); }
.paper--dark { background: var(--ink-800); color: var(--fg); box-shadow: var(--shadow-card); }

/* Папка дела — фон секции калькулятора задаётся в blocks.css (.calc__stage) */
.folder { position: relative; }

/* Полароид: белая рамка, толстый низ, тень, поворот */
.polaroid {
  --rot: 0deg;
  position: relative;
  display: block;
  background-color: #f7f7f5;
  background-image: var(--paper-texture);
  background-size: 180px 180px;
  /* Правка 10.09 (Диана): было 10/10/40 — поле снизу вчетверо шире боковых,
     на полароид не похоже. Приводим к двойному. */
  --polaroid-foot: 32px;
  padding: 12px 12px var(--polaroid-foot);
  box-shadow: var(--shadow-polaroid);
  transform: rotate(var(--rot));
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
  will-change: transform;
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); z-index: 2; }
.polaroid > img, .polaroid > picture > img {
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.polaroid--wide { --ar: 16 / 10; }
.polaroid--square { --ar: 1; }
.polaroid--portrait { --ar: 3 / 4; }
/* Подпись стоит по центру белого поля под снимком. Раньше она была привязана
   к нижнему краю и при высоком кегле заезжала на фотографию (правка 10.09). */
.polaroid__caption {
  position: absolute;
  left: 10px; right: 10px; bottom: 0;
  height: var(--polaroid-foot);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--ink-700);
  text-align: center;
  overflow: hidden;
}
.polaroid--tight { --polaroid-foot: 12px; }
@media (max-width: 900px) {
  .polaroid { --polaroid-foot: 56px; }
  .polaroid__caption { font-size: 1.1rem; }
  .polaroid--tight { --polaroid-foot: 12px; }
}

/* Серый пластиковый контейнер — PNG из Figma (коробка 1–5), подпись внутри */
.crate { position: relative; }
.crate__box { position: relative; aspect-ratio: 0.8; }
.crate__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  /* Тень была 0 30px 40px/.5 — силуэт ящика уезжал на 70px вниз, ложился
     прямо под подпись и давал видимый перепад тона («цвет скачет», 10.09).
     Прижимаем к ящику: тень остаётся, в текст не заходит. */
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
  transition: transform var(--dur-slow) var(--ease-out);
}
/* Подъём картинки убран: в Safari он выносил ящик в отдельный слой и подсвечивал подпись (09.09) */
.crate:hover .crate__img { transform: none; }
.crate__label { color: #fff; padding-top: 1rem; }
.crate__label h4 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.crate__label p { font-size: var(--fs-small); line-height: var(--lh-compact); color: var(--fg-muted); }

/* ==========================================================
   4. Карточки с механиками: переворот, загиб уголка
   ========================================================== */
.flip {
  perspective: 1400px;
}
.flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-in-out);
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: rotateY(0deg) translateZ(1px);
  /* страховка для Safari: скрываем невидимую сторону по факту, а не только 3D-режимом */
  transition: visibility 0s linear 350ms;
}
/* Правка 10.09: visibility переключалась мгновенно, а поворот идёт --dur-slow,
   поэтому первую половину флипа было видно не ту сторону. Теперь переключение
   происходит на середине поворота — до этого стороны прячет backface-visibility. */
.flip__face { transition: visibility 0s linear calc(var(--dur-slow) / 2); }
.flip__face--back { transform: rotateY(180deg) translateZ(1px); visibility: hidden; }
.flip.is-flipped .flip__face--back { visibility: visible; }
.flip.is-flipped .flip__face--front { visibility: hidden; }

/* Загиб уголка при наведении — реализация ниже, в блоке правок:
   два треугольника (дыра + лоскут). */
.curl { position: relative; }
.flip__face.curl { position: absolute; }

/* ==========================================================
   5. Формы
   ========================================================== */
.field { position: relative; display: block; }
.field + .field { margin-top: 0.75rem; }
.calc__fields input[type="hidden"],
.manager__fields input[type="hidden"],
.proof__fields input[type="hidden"] { display: none; }
.field__label {
  display: block;
  font-size: var(--fs-caption);
  color: var(--paper-fg-muted);
  margin-bottom: 0.35rem;
}
.field__required::before {
  content: "*";
  position: absolute;
  left: -0.9rem; top: 0.55rem;
  color: var(--red-600);
  font-size: var(--fs-caption);
}
.input, .select, .textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper-200);
  color: var(--ink-900);
  border: 1px solid transparent;
  border-radius: 0;
  font-size: var(--fs-small);
  line-height: var(--lh-compact);
  transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--paper-fg-muted); opacity: 1; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(36, 33, 33, 0.12);
}
.textarea { min-height: 5.5rem; resize: vertical; }
.select-wrap { position: relative; display: block; }
.select { padding-right: 2.5rem; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.9rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-900);
  border-bottom: 1.5px solid var(--ink-900);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea {
  border-color: var(--red-600);
  background: #fff5f5;
}
.field__error {
  display: none;
  margin-top: 0.3rem;
  font-size: var(--fs-caption);
  color: var(--red-600);
}
.field.is-invalid .field__error { display: block; }

.suggest {
  position: fixed;
  z-index: var(--z-dropdown);
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  background: var(--paper-100);
  color: var(--ink-900);
  border: 1px solid var(--ink-900);
  max-height: 16rem;
  overflow: auto;
  box-shadow: 4px 6px 0 rgba(36, 33, 33, 0.12);
}
.suggest[hidden] { display: none; }
.suggest__item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.9rem;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: var(--fs-small);
  line-height: var(--lh-compact);
  cursor: pointer;
}
.suggest__item.is-active,
.suggest__item:hover { background: var(--paper-300); }
.suggest__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-caption);
  color: var(--paper-fg-muted);
}

/* Тёмная версия полей (форма Коли на тёмном) */
.form--dark .input, .form--dark .select, .form--dark .textarea {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.form--dark .input::placeholder, .form--dark .textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form--dark .input:focus, .form--dark .select:focus, .form--dark .textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.form--dark .select-wrap::after { border-color: #fff; }
.form--dark .field__label, .form--dark .check { color: rgba(255, 255, 255, 0.75); }
.form--dark .check__box {
  background: #fff;
  border-color: #fff;
}

/* Чекбокс «квадрат с галочкой от руки» */
.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: var(--fs-caption);
  color: var(--paper-fg-muted);
  line-height: var(--lh-caption);
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.check__box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0;
  border: 1px solid var(--ink-500);
  background: #fff;
  position: relative;
  transition: border-color var(--dur-fast);
}
.check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--ink-900);
  border-bottom: 2px solid var(--ink-900);
  transform: rotate(40deg) scale(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-spring);
}
.check input:checked + .check__box::after { transform: rotate(40deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: var(--red-600); box-shadow: 0 0 0 2px rgba(188, 7, 7, 0.2); }
.check--strong { color: var(--ink-900); font-weight: 700; letter-spacing: 0.04em; }

/* Ползунок «количество сотрудников» — линейка с делениями и красной булавкой (Figma) */
.range {
  --pct: 0%;
  position: relative;
  padding: 1.4rem 0 1.6rem;
}
.range__track {
  position: relative;
  height: 2px;
  background: var(--ink-900);
}
.range__ticks {
  position: absolute;
  left: 0; right: 0; top: 50%;
  pointer-events: none;
}
.range__ticks span {
  position: absolute;
  left: var(--p, 0%);
  width: 1px; height: 14px;
  margin-top: -7px;
  background: var(--ink-900);
}
.range__ticks span::after {
  content: attr(data-label);
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  color: var(--ink-900);
  white-space: nowrap;
}
.range__ticks span:first-child::after { transform: translateX(0); }
.range__ticks span:last-child::after { transform: translateX(-100%); }
.range input[type="range"] {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100%; height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  z-index: 2;
}
.range input[type="range"]::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.range input[type="range"]::-moz-range-track { height: 100%; background: transparent; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  cursor: grab;
}
.range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.range__thumb { /* визуальная булавка, двигается из JS */
  position: absolute;
  top: calc(1.4rem + 1px);
  left: var(--pct);
  width: 40px; height: 40px;
  margin: -30px 0 0 0;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  transition: transform var(--dur-fast);
}
.range:has(input:active) .range__thumb { transform: translateX(-50%) scale(1.1); }

/* Календарь: сетка дней в стиле «печатной таблицы» */
.cal { --cell: 2.1rem; }
.cal__title { margin-bottom: 0.75rem; }
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, var(--cell));
  gap: 0.25rem 0.5rem;
  justify-content: start;
}
.cal__wd {
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-900);
  padding-bottom: 0.35rem;
}
.cal__day {
  position: relative;
  width: var(--cell); height: var(--cell);
  display: grid;
  place-items: center;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--ink-900);
  border-radius: 2px;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.cal__day:hover:not([disabled]) { background: rgba(0, 0, 0, 0.07); }
.cal__day[disabled] { color: var(--ink-400); cursor: not-allowed; text-decoration: line-through; }
.cal__day.is-booked::before, .cal__day.is-booked::after { /* крестик карандашом, от руки */
  content: "";
  position: absolute;
  width: 44%; height: 1px;   /* было 88% — ровно вдвое меньше, правка 10.09 */
  background: var(--ink-700);
  transform: rotate(24deg);
  opacity: 0.45;   /* тише: крестик обозначает дату, а не спорит с ней */
  border-radius: 1px;
}
.cal__day.is-booked::after { transform: rotate(-21deg); }
.cal__day.is-booked { text-decoration: none; color: var(--ink-500); }
.cal__day.is-scarce { background: rgba(0, 0, 0, 0.13); } /* мало мест — серая плашка */
.cal__day.is-scarce::after { display: none; }
.cal__day.is-selected { font-weight: 700; }
.cal__day svg { /* красная обводка «от руки» */
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px); height: calc(100% + 8px);
  pointer-events: none;
  overflow: visible;
}
.cal__day svg path {
  fill: none;
  stroke: var(--red-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  transition: stroke-dashoffset 450ms var(--ease-out);
}
.cal__day.is-selected svg path { stroke-dashoffset: 0; }
.cal__legend {
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-caption);
  color: var(--ink-900);
}
.cal__legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend-swatch {
  display: inline-block;
  width: 22px; height: 16px;
  background: rgba(0, 0, 0, 0.13);
}
.legend-cross {
  position: relative;
  display: inline-block;
  width: 14px; height: 10px;
}
/* Тот же вес, что и у крестика в сетке дат: 1px и opacity .45 (правка 10.09) */
.legend-cross::before, .legend-cross::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--ink-700); opacity: 0.45; transform: rotate(28deg);
}
.legend-cross::after { transform: rotate(-28deg); }

/* ==========================================================
   6. Аккордеон (FAQ) — «дело с папками»
   ========================================================== */
.acc { border-top: 1px solid var(--line-on-dark); }
.acc__item { border-bottom: 1px solid var(--line-on-dark); }
.theme-paper .acc, .theme-paper .acc__item, .theme-warm .acc, .theme-warm .acc__item { border-color: rgba(0, 0, 0, 0.2); }
.acc__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  text-transform: uppercase;
  color: inherit;
  transition: color var(--dur-fast);
}
.acc__btn:hover { color: var(--fg-muted); }
.theme-paper .acc__btn:hover { color: var(--ink-600); }
.acc__icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transition: transform var(--dur-base) var(--ease-out);
}
.acc__icon::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.acc__icon::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.acc__item.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__panel {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { max-height: 80rem; }
/* Ответы FAQ — тот же кегль, что и текст во всех остальных блоках (10.09) */
.acc__body { padding: 0 3rem 1.4rem 0; max-width: 64ch; color: var(--fg-muted); font-size: var(--fs-small); }
.theme-paper .acc__body, .theme-warm .acc__body { color: var(--ink-700); }

/* ==========================================================
   7. Модальные окна
   ========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 18, 18, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base), visibility 0s linear var(--dur-base);
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-base); }
.modal__dialog {
  position: relative;
  width: min(100%, 44rem);
  max-height: min(92vh, 60rem);
  overflow: auto;
  transform: translateY(24px) rotate(-0.4deg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__dialog--sm { width: min(100%, 30rem); }
.modal__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: inherit;
  transition: background var(--dur-fast), transform var(--dur-fast);
  z-index: 2;
}
.modal__close:hover { background: rgba(0, 0, 0, 0.08); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { padding: clamp(1.5rem, 4vw, 3rem); }
body.has-modal { overflow: hidden; }

/* ==========================================================
   8. Шапка сайта (тёплая светлая плашка, Figma #dddbd4)
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper-300);
  color: var(--ink-900);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform var(--dur-base) var(--ease-out);
}
/* Шапка закреплена всегда (правка 10.09) — .is-hidden больше не ставится.
   При отрыве от верха страницы усиливаем тень, чтобы плашка отделялась. */
.header.is-stuck { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.28); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
}
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(--lh-flat);
  transform: translateY(0.04em); /* оптическая компенсация: у Fatal нет нижних выносных */
}
.header__tag {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: var(--lh-flat);
  color: var(--ink-500);
  padding-left: 0.9rem;
  border-left: 1px solid var(--ink-400);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  line-height: var(--lh-ui);
  font-size: var(--fs-nav);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__item { position: relative; }
.nav__item--has-menu > .nav__link { padding-right: 1rem; }
.nav__item--has-menu > .nav__link::before {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -1rem;
  min-width: 16rem;
  padding: 0.5rem;
  background: var(--paper-100);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) rotate(-0.5deg);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  z-index: var(--z-dropdown);
}
.nav__item--has-menu:hover .nav__menu, .nav__item--has-menu:focus-within .nav__menu, .nav__item.is-open .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.nav__menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--dur-fast);
}
.nav__menu a:hover { background: var(--paper-200); }
.nav__menu a.is-active { background: var(--ink-900); color: #fff; }
.header__cta { margin-left: 0.5rem; }

/* Бургер и мобильное меню */
.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink-900);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) - 1);
  padding: 5.5rem var(--gutter) 2rem;
  background: var(--paper-300);
  color: var(--ink-900);
  overflow: auto;
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.mobile-menu.is-open { transform: none; }
.mobile-menu__group + .mobile-menu__group { margin-top: 1.5rem; }
.mobile-menu__title { font-size: var(--fs-caption); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-500); margin-bottom: 0.5rem; }
.mobile-menu a.mobile-menu__link {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  text-transform: uppercase;
  line-height: var(--lh-h4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.mobile-menu__sub a { display: block; padding: 0.5rem 0 0.5rem 1rem; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; }
.mobile-menu__foot { margin-top: 2rem; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta--desktop { display: none; }
}

/* Нижняя липкая панель CTA на мобильных */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-cta);
  display: none;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(36, 33, 33, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-on-dark);
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 900px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 4.75rem; }
  .toast { bottom: 5.75rem; width: calc(100% - 2rem); }
}

/* ==========================================================
   9. Прочее: бегущая лента скотча, числа-статистика, тосты
   ========================================================== */
/* Скотч лежит НА стыке секций: у ленты нет собственной полосы фона,
   поэтому чёрных краёв сверху и снизу больше нет (замечание 6, 09.09) */
.tape-strip-wrap {
  position: relative;
  z-index: 5;
  height: 64px;
  margin-block: -32px;
  padding: 0;
  background: none;
  overflow: hidden;
  pointer-events: none;
}
.tape-strip {
  position: absolute;
  left: -2%; right: -2%;
  top: 0; bottom: 0;
  background: url("../assets/ui/tape-strip.webp") repeat-x left center / auto 100%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
  transform: rotate(-0.5deg);
}
@media (max-width: 700px) { .tape-strip-wrap { height: 44px; margin-block: -22px; } }
.marquee {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-size: var(--fs-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1818;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.marquee span::after { content: "·"; margin-left: 3rem; opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tape-strip:hover .marquee { animation-play-state: paused; }

.stat { display: grid; gap: 0.25rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: var(--lh-display-lg);
  text-transform: uppercase;
}
/* Подпись показателя — та же роль, что и кикер: моно, капс, разрядка (13.09) */
.stat__label { font-size: var(--fs-caption); color: var(--fg-muted); max-width: 18ch; text-transform: uppercase; letter-spacing: var(--ls-wide); }

.num-badge {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);   /* был Fatal — на экране четыре шрифта разом (07.09) */
  font-weight: 700;
  font-size: 1rem;
  line-height: var(--lh-flat);
}
/* Один кегль у всех крупных номеров: 01/02/03 и «3 пункта» (10.09) */
.num-plain {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-flat);
}

.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: var(--z-toast);
  transform: translate(-50%, 20px);
  padding: 0.85rem 1.25rem;
  background: var(--paper-100);
  color: var(--ink-900);
  font-size: var(--fs-small);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out); }
.toast--error { background: var(--red-600); color: #fff; }

/* Горизонтальный скролл-трек с перетаскиванием */
.scroller {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 1rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
}
.scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.scroller > * { flex: 0 0 auto; scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 3px; }
.scroller-hint {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.scroller-hint::after { content: "→"; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* Чек-лист «С вашей стороны / с нашей» */
.checklist { display: grid; gap: 0.9rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--fs-small); line-height: var(--lh-compact); }
.checklist__box {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 0.05rem;
  border: 1.5px solid currentColor;
  position: relative;
}
.checklist__box--checked::after {
  content: "";
  position: absolute;
  left: -2px; top: -9px;
  width: 24px; height: 24px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 13.5c1.6 1.2 3 2.9 4.2 4.6C11 13 15 9 21.5 4.2' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  transform: none;
}
.theme-dark .checklist__box--checked::after, .theme-dark-alt .checklist__box--checked::after, .theme-black .checklist__box--checked::after,
.paper--outline .checklist__box--checked::after { filter: invert(1); }
.paper:not(.paper--outline) .checklist__box--checked::after { filter: none; }
/* анимированное «проставление галочек» при появлении */
[data-reveal] .checklist__box--checked::after { transform: scale(0); transform-origin: bottom left; transition: transform 600ms var(--ease-spring); transition-delay: calc(var(--i, 0) * 240ms + 600ms); }
[data-reveal].is-in .checklist__box--checked::after { transform: scale(1); }

/* ==========================================================================
   ПРАВКИ 09.09 — компоненты
   ========================================================================== */

/* Подписи под фото: не мельче 13px (замечание 2) */
.product__cap {
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* Загиб уголка карточки: под завернувшимся углом видно фон секции (замечание 10) */
.curl::before,
.curl::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.curl::before { /* «дыра» — сквозь неё виден фон секции; цвет задаёт блок */
  background: var(--curl-hole, var(--ink-800));
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.curl::after {  /* сам завернувшийся уголок бумаги */
  background: linear-gradient(45deg, #fdfdfd 0%, #eceae4 45%, #c3c1ba 100%);
  filter: drop-shadow(-3px 3px 5px rgba(0, 0, 0, 0.45));
  -webkit-clip-path: polygon(0 0, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.curl:hover::before, .curl:focus-within::before,
.curl:hover::after, .curl:focus-within::after { width: 46px; height: 46px; }

/* Жёлтая закладка: канонический стикерный жёлтый, текст по центру плашки (замечание 11) */
.marker-link {
  padding: 0.5rem 1.6rem 0.5rem 1.1rem;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
/* Полупрозрачность закладок вернули (правка 10.09): непрозрачный жёлтый
   читался как пластик, а не как наклейка поверх бумаги. */
.marker-link::before { background: var(--yellow-400); opacity: 0.82; }

/* Горизонтальный стикер: фото слева, текст справа (замечание 23) */
.sticker--wide {
  /* Ровный прямоугольник вместо рваного PNG: фигура правильная, и под ней
     больше нет прямоугольного следа от drop-shadow (правки 09.09). */
  background: linear-gradient(163deg, #ffe45c 0%, #f7d63d 62%, #f0cd2f 100%);
  border-radius: 2px;
  filter: none;
  box-shadow: 2px 7px 16px rgba(0, 0, 0, 0.32);
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.1rem 1.2rem;
}
/* Карточка на фирменной тёмной текстуре — блок персонализации (решение 10.09).
   Текстура вынута из Figma: страница «лендинг», слой Textures 1. Тень —
   box-shadow, не filter: filter в Safari рисует прямоугольный след. */
.sticker--slate {
  background: url("../assets/ui/texture-dark.webp") repeat, var(--ink-900);
  background-size: 256px 256px;
  color: var(--fg);
  border-radius: 2px;
  filter: none;
  box-shadow: 3px 9px 22px rgba(0, 0, 0, 0.45);
}
/* Жёлтого в блоке шагов не осталось совсем (решение 10.09) */
.sticker--slate .sticker__title { color: var(--paper-50); }
.sticker--slate .sticker__text { color: rgba(255, 255, 255, 0.86); }
/* Правка 10.09: рукописный шрифт наклонный и на тёмном читался плохо —
   переводим карточку на прямой моношрифт страницы. */
.sticker--slate .sticker__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-mono-title);
  line-height: var(--lh-title-mono);
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.sticker--slate .sticker__text {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}
/* Карточка качается на булавке, когда экран открывается */
@keyframes pin-swing {
  0%   { transform: rotate(calc(var(--sticker-rotate, 0deg) - 7deg)); }
  35%  { transform: rotate(calc(var(--sticker-rotate, 0deg) + 3.5deg)); }
  65%  { transform: rotate(calc(var(--sticker-rotate, 0deg) - 1.6deg)); }
  100% { transform: rotate(var(--sticker-rotate, 0deg)); }
}
.sticker--slate { transform-origin: 50% 8%; }
/* Наклон карточки переживает reveal: [data-reveal].is-in сбрасывает transform
   в none, поэтому возвращаем поворот правилом выше по весу. */
.sticker--slate[data-reveal].is-in { transform: rotate(var(--sticker-rotate, 0deg)); }
[data-reveal].is-in .sticker--slate,
.sticker--slate[data-reveal].is-in {
  animation: pin-swing 2200ms var(--ease-out) backwards;
  animation-delay: 300ms;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal].is-in .sticker--slate,
  .sticker--slate[data-reveal].is-in { animation: none; }
}

.sticker--wide .sticker__photo { align-self: stretch; height: auto; margin: 0; }
.sticker--wide .sticker__body { display: flex; flex-direction: column; justify-content: center; }

/* Календарь: месяц по центру, стрелки листания (замечание 22) */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.cal-nav__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-display-md);
  font-size: var(--fs-h3);
  line-height: var(--lh-display);
  color: var(--ink-900);
}
.cal-nav__btn {
  flex: 0 0 auto;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border: 1px solid var(--ink-500);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-900);
  font-size: 1.35rem;
  line-height: var(--lh-flat);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.cal-nav__btn:hover:not([disabled]) { background: #fff; border-color: var(--ink-900); transform: translateY(-1px); }
.cal-nav__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.cal-body .cal { width: 100%; }
/* Суббота и воскресенье — жирным (замечание 22) */
.cal__wd--we, .cal__day--we { font-weight: 700; }
/* Горизонтальный стикер на узких экранах: фото — квадрат слева */
@media (max-width: 899px) {
  .sticker--wide { grid-template-columns: 5rem minmax(0, 1fr); gap: 0.9rem; padding: 1rem 1.6rem 1.1rem 1rem; }
  .sticker--wide .sticker__photo { align-self: start; width: 5rem; height: 5rem; border-radius: 3px; }
  .sticker--wide .sticker__title { font-size: 1.3rem; }
  .sticker--wide .sticker__text { font-size: 0.95rem; }
}

/* Красный круг в легенде — «ваш выбор» (правка 09.09) */
.legend-circle {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--red-600);
  border-radius: 50%;
  transform: rotate(-4deg) scaleX(1.08);
}

.form__consents { display: grid; gap: 0.7rem; margin: 0.4rem 0 0.6rem; }
.form__consents .check { align-items: flex-start; }
.form__consents .check__box { margin-top: 0.2em; }
.form__consents a,
.form__note a {
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.form__submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}
.form__note {
  margin: 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
}
.footer__ip { margin-top: 0.75rem; max-width: 36ch; font-size: var(--fs-caption); color: var(--fg-muted); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.55rem; align-items: center; }
@media (max-width: 390px) {
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

.legal-page__wrap { max-width: 720px; }
.legal-page__body { display: grid; gap: 1rem; font-size: 1rem; }
.legal-toc { margin: 0 0 1.25rem; }
.legal-toc ol { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.legal-body h2 { margin: 1.4rem 0 0.5rem; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-caption); }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 0.45rem 0.5rem; text-align: left; vertical-align: top; }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}
.cookie-banner__card {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(26rem, 100%);
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 0.35rem 1.1rem 1.1rem;
  background: var(--ink-900, #242121);
  color: #fff;
  gap: 0.75rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
}
.cookie-banner__text {
  font-family: var(--font-mono, inherit);
  font-size: var(--fs-caption);
  line-height: 1.45;
}
.cookie-banner__text a { color: #fff; text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.cookie-banner__actions .btn { min-height: 44px; }
body.has-cookie-banner #sticky-cta { display: none; }
@media (max-width: 900px) {
  .cookie-banner { padding: 0 16px 16px; }
  .cookie-banner__card {
    width: 100%;
    max-width: 100%;
  }
  .cookie-banner__text {
    width: auto;
    min-width: 0;
  }
  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    white-space: normal;
  }
}
