/* ============================================================
   Белые Облака – редизайн: «суми-э / тушь и воздух»
   Атмосфера без орнамента: картина, монохром чернил, пустота.
   Палитра: фарфор #FDFCF9 · чернила #272B39 · шафран #E8641E
   Шрифты: Cormorant Garamond (дисплей) · Golos Text (UI)
   ============================================================ */

:root {
  --porcelain: #FDFCF9;
  --paper: #EFECE5;
  --ink: #272B39;
  --ink-mid: #3A4054;
  --ink-soft: #5C6272;
  --saffron: #E8641E;
  --saffron-deep: #C64F0E;
  --line: rgba(39, 43, 57, 0.1);
  --line-strong: rgba(39, 43, 57, 0.3);
  /* Рамка поля ввода – своя, а не общая с разделителями. Заливка поля совпадает с
     фоном страницы один в один, поэтому рамка – единственное, чем поле себя обозначает,
     и ей нужен контраст 3:1. Разделителю столько не нужно, он всего лишь черта. */
  --field-line: rgba(39, 43, 57, 0.52);

  --font-display: "Advent Pro", "Arial Narrow", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
  overflow-x: clip;
}

/* Шапка прибита к верху окна и занимает 79 пикселей – одинаково на телефоне и на
   большом экране. Без этого отступа переход по внутренней ссылке («В лист ожидания»
   → #zapis и ещё дюжина таких) ставит цель в самый верх окна, то есть под шапку:
   заголовок формы просто не виден, и человек попадает на середину полей. */
:target { scroll-margin-top: 100px; }

body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Кнопки: чернильные, тихие ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--ink {
  background: var(--ink);
  color: var(--porcelain);
}
.btn--ink:hover {
  background: var(--ink-mid);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(39, 43, 57, 0.5);
}

.btn--ghost {
  background: rgba(253, 252, 249, 0.4);
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(253, 252, 249, 0.75);
  transform: translateY(-2px);
}

.btn--sm { padding: 12px 22px; font-size: 12px; }

/* ---------- Бамбуковая рама: линии перекрещиваются за углами ---------- */

.btn--ink,
.btn--ghost,
.event-card,
.shop-card,
.event-feature,
.frame {
  position: relative;
  border-radius: 0;
}

/* горизонтальные мазки: неровная толщина, сужающиеся концы */
.btn--ink::before,
.btn--ghost::before,
.event-card::before,
.shop-card::before,
.event-feature::before,
.frame::before {
  content: "";
  position: absolute;
  left: -9px;
  right: -9px;
  top: -2px;
  bottom: -2px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 6' preserveAspectRatio='none'%3E%3Cpath d='M2 3C50 1.7 110 4.2 180 3.1C250 2.1 320 4 398 2.8C320 4.5 250 3 180 4.1C110 5 50 2.6 2 3Z' fill='%23272B39'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 6' preserveAspectRatio='none'%3E%3Cpath d='M2 3.2C70 4.4 140 1.8 210 3C280 4.1 340 2 398 3.2C340 1.9 280 3.5 210 2.4C140 1.4 70 3.8 2 3.2Z' fill='%23272B39'/%3E%3C/svg%3E");
  background-position: left top, left bottom;
  background-size: 100% 4px, 100% 4px;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* вертикальные мазки */
.btn--ink::after,
.btn--ghost::after,
.event-card::after,
.shop-card::after,
.event-feature::after,
.frame::after {
  content: "";
  position: absolute;
  top: -9px;
  bottom: -9px;
  left: -2px;
  right: -2px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 400' preserveAspectRatio='none'%3E%3Cpath d='M3 2C1.7 50 4.2 110 3.1 180C2.1 250 4 320 2.8 398C4.5 320 3 250 4.1 180C5 110 2.6 50 3 2Z' fill='%23272B39'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 400' preserveAspectRatio='none'%3E%3Cpath d='M3.2 2C4.4 70 1.8 140 3 210C4.1 280 2 340 3.2 398C1.9 340 3.5 280 2.4 210C1.4 140 3.8 70 3.2 2Z' fill='%23272B39'/%3E%3C/svg%3E");
  background-position: left top, right top;
  background-size: 4px 100%, 4px 100%;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn--ink:hover::before, .btn--ink:hover::after,
.btn--ghost:hover::before, .btn--ghost:hover::after,
.event-card:hover::before, .event-card:hover::after,
.shop-card:hover::before, .shop-card:hover::after,
.event-feature:hover::before, .event-feature:hover::after {
  opacity: 1;
}

/* ---------- Хедер: прозрачный, лежит на картине ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease,
              backdrop-filter 0.35s ease;
}

.site-header.menu-open { z-index: 70; }

/* при скролле (или открытом меню) хедер «конденсируется» в фарфор */
.site-header.is-scrolled,
.site-header.menu-open,
.site-header.nav-open,
/* список, открытый наведением, тоже уплотняет шапку: на главной она лежит прозрачной
   поверх видео, и список висел бы в воздухе. Наведение открывает списки средствами CSS,
   поэтому и это правило здесь, а не в скрипте */
.site-header:has(.nav__group:hover) {
  background: rgba(253, 252, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px -22px rgba(39, 43, 57, 0.35);
}

/* подстраницы без видео-хиро: хедер сразу плотный */
.site-header.is-solid {
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar { border-bottom: 1px solid transparent; transition: border-color 0.35s ease; }
.site-header.is-scrolled .navbar,
.site-header.nav-open .navbar,
.site-header:has(.nav__group:hover) .navbar,
.site-header.is-solid .navbar { border-bottom-color: var(--line); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__img {
  height: 58px;
  width: auto;
  transition: transform 0.25s ease;
}
.logo:hover .logo__img { transform: translateY(-2px); }

/*
 * Разделы вместо списка страниц.
 *
 * В строке стояло десять равнозначных пунктов: при любой ширине что-то съезжало на
 * вторую строку, и шапка выглядела случайной. Дело не в размере шрифта – десять дверей
 * никто не читает, а «Аренда залов» и «Реклама» вообще для другого человека, чем
 * «Мероприятия». Четыре раздела, за каждым список с короткими пояснениями: строка
 * держится на любой ширине, а разделов ровно столько, сколько можно окинуть взглядом.
 *
 * Списки открываются наведением средствами CSS, без скриптов; классы `is-open` от
 * скрипта нужны для касания, клавиатуры и мобильного ящика.
 */
.nav {
  display: flex;
  gap: 8px;
  /* во всю высоту шапки – тогда список раскрывается ровно от её нижнего края,
     а не из середины, и между пунктом и списком нет разрыва, где теряется наведение */
  align-self: stretch;
  align-items: stretch;
}

.nav__group { position: relative; display: flex; align-items: center; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav__chev {
  transition: transform 0.25s ease;
  opacity: 0.55;
}
.nav__group:hover > .nav__toggle .nav__chev,
.nav__group.is-open > .nav__toggle .nav__chev { transform: rotate(180deg); }
html:not(.js) .nav__group:focus-within > .nav__toggle .nav__chev { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  /* по самой длинной подписи: на 272px «Книги, благовония, предметы для дома»
     переносилось на вторую строку и ломало ровный ряд */
  min-width: 292px;
  padding: 10px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 26px 52px -30px rgba(39, 43, 57, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
/* последний раздел прижимаем к правому краю: по центру список вылезал бы за шапку */
.nav__menu--end { left: auto; right: 0; transform: translate(0, -8px); }

.nav__group:hover > .nav__menu,
.nav__group.is-open > .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__group:hover > .nav__menu--end,
.nav__group.is-open > .nav__menu--end { transform: translate(0, 0); }

/*
 * Без скриптов список открывает ещё и фокус – иначе с клавиатуры до вложенных ссылок
 * не добраться: у скрытого списка они не берут фокус.
 *
 * Со скриптами это правило вредно, и потому отключено: кнопка раздела лежит ВНУТРИ
 * группы, так что после Esc фокус на ней снова открывал бы список – закрыть его с
 * клавиатуры было бы нельзя. Когда скрипты есть, фокус ведёт класс is-open.
 */
html:not(.js) .nav__group:focus-within > .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
html:not(.js) .nav__group:focus-within > .nav__menu--end { transform: translate(0, 0); }

.nav__item {
  display: block;
  padding: 9px 12px;
  border-radius: 11px;
  transition: background-color 0.2s ease;
}
.nav__item:hover { background: rgba(39, 43, 57, 0.05); }

.nav__item-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__item-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.nav__link {
  position: relative;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 8px 14px;
  transition: color 0.2s ease;
}

/* след кисти: тонкая чернильная линия под пунктом */
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.navbar__actions { display: flex; align-items: center; gap: 16px; }

/* контакты одним жестом: телефон, telegram, карта */
.header-icons { display: flex; align-items: center; gap: 2px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #3A3E4A;
  transition: color 0.2s ease, transform 0.25s ease;
}
.icon-btn:hover {
  color: var(--saffron-deep);
  transform: translateY(-2px);
}

/* самолётик смотрит вверх, как в оригинальном лого Telegram */
.icon-btn--tg svg { transform: rotate(-45deg); }

.nav__link--mobile { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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); }

/* ---------- Хиро: картина тушью, вечный наезд ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

/* обёртка – параллакс за курсором (JS) */
.hero__bg {
  position: absolute;
  inset: -3%;
  transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* дымка для читаемости: слева плотнее, сверху – переход в хедер */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(250, 249, 245, 0.8) 0%, rgba(250, 249, 245, 0) 24%),
    linear-gradient(90deg, rgba(250, 249, 245, 0.9) 0%, rgba(250, 249, 245, 0.55) 40%, rgba(250, 249, 245, 0) 68%);
  pointer-events: none;
}

/* нижняя кромка: видео растворяется в фарфор следующей секции */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 18vh, 200px);
  z-index: 1;
  background: linear-gradient(180deg, rgba(253, 252, 249, 0) 0%, var(--porcelain) 94%);
  pointer-events: none;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* дышащий рассветный диск над храмом – единственное тёплое пятно */
.hero__disc {
  position: absolute;
  top: -14%;
  right: 4%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 100, 30, 0.16) 0%,
    rgba(201, 161, 92, 0.1) 38%,
    rgba(253, 252, 249, 0) 66%);
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  45%      { transform: scale(1.08); opacity: 1; }
  60%      { transform: scale(1.08); opacity: 1; }
}

/* живой туман поверх картины */
.mist {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 46%;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%);
  filter: blur(26px);
}
.mist--a {
  top: 32%;
  animation: mist-drift 46s ease-in-out infinite alternate;
}
.mist--b {
  bottom: -10%;
  height: 58%;
  opacity: 0.85;
  animation: mist-drift 64s ease-in-out infinite alternate-reverse;
}

@keyframes mist-drift {
  from { transform: translateX(-5%); }
  to   { transform: translateX(6%); }
}

/* хиро на весь экран: хедер лежит сверху, отступ учитывает его высоту */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: clamp(64px, 9vh, 110px);
}

.hero__content { max-width: 620px; }

/* штрих туши перед словом – вместо орнамента */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* лого в рост двух строк заголовка */
.hero__brand {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  margin-bottom: 28px;
}
.hero__brand .hero__title { margin-bottom: 0; }

.hero__brand-logo {
  height: clamp(6.5rem, 14.7vw, 12.6rem);
  width: auto;
  flex-shrink: 0;
}

/* лого хедера на главной скрыто, пока плашка в хиро видна ниже хедера;
   класс задан в HTML – без вспышки на первом кадре */
.logo__img--wait {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
body.logo-shown .logo__img--wait {
  opacity: 1;
  transform: none;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 7.2vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: italic;
  color: var(--saffron);
}

/* облачный ореол за словом */
.halo { position: relative; white-space: nowrap; }
.halo::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}

.hero__lead {
  max-width: 44ch;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 38px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

/* соцсети под кнопками хиро */
.hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  margin-left: -8px;
}
.hero__socials .icon-btn { width: 38px; height: 38px; }
.hero__socials .icon-btn svg { width: 22px; height: 22px; }

/* ---------- «Листайте вниз» – вертикально, как надпись на свитке ---------- */

.scrolldown {
  position: absolute;
  right: clamp(18px, 3.5vw, 46px);
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scrolldown__text {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.scrolldown:hover .scrolldown__text { color: var(--ink); }

.scrolldown__line {
  position: relative;
  width: 1px;
  height: 62px;
  background: rgba(39, 43, 57, 0.2);
  overflow: hidden;
}
.scrolldown__line::after {
  content: "";
  position: absolute;
  top: -45%;
  left: 0;
  width: 100%;
  height: 45%;
  background: var(--ink);
  animation: flow 2.6s ease-in-out infinite;
}

@keyframes flow {
  to { top: 115%; }
}

/* ---------- Афиша: ближайшие события ---------- */

.events {
  position: relative;
  background: var(--porcelain);
  padding: clamp(72px, 10vh, 120px) 0 clamp(80px, 11vh, 140px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vh, 56px);
}
.section-head .eyebrow { margin-bottom: 14px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--saffron);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link-arrow svg { transition: transform 0.25s ease; }
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* зазор с запасом: выступы рам (по 7px с двух сторон) не должны смыкаться */
.events__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 30px;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px -26px rgba(39, 43, 57, 0.35);
}

.event-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.event-card:hover .event-card__media img { transform: scale(1.05); }

.event-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 16px 18px;
}

.event-card__date {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.event-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18.5px;
  line-height: 1.2;
}

.event-card__meta {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.event-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.event-card__price {
  font-size: 14px;
  font-weight: 600;
}

.text-link {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.text-link:hover::after { transform: scaleX(1); }

/* ---------- Главный баннер: ближайшее событие ---------- */

.event-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: #fff;
  margin-bottom: 44px;
  transition: box-shadow 0.35s ease;
}
.event-feature:hover {
  box-shadow: 0 30px 50px -30px rgba(39, 43, 57, 0.35);
}

.event-feature__media {
  display: block;
  min-height: 340px;
  overflow: hidden;
}
.event-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.event-feature:hover .event-feature__media img { transform: scale(1.04); }

.event-feature__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 4vw, 48px);
}

.event-feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}
.event-feature__badge::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--saffron);
}

.event-feature__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.event-feature__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.event-feature__price {
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Магазин: новинки ---------- */

.shop {
  background: var(--paper);
  padding: clamp(72px, 10vh, 120px) 0 clamp(80px, 11vh, 140px);
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 30px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px -26px rgba(39, 43, 57, 0.35);
}

.shop-card__media {
  display: flex;
  justify-content: center;
  padding: 30px 30px 0;
}
.shop-card__media img {
  height: 230px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 16px 30px -18px rgba(39, 43, 57, 0.45);
  transition: transform 0.5s ease;
}
.shop-card:hover .shop-card__media img { transform: translateY(-4px); }

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px;
}

.shop-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  flex: 1;
}

.shop-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shop-card__price {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Футер: угольный графит ---------- */

.footer {
  background: #1E2023;
  color: rgba(253, 252, 249, 0.75);
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer__logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(56px, 8vh, 90px) 0 clamp(40px, 6vh, 64px);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  color: var(--porcelain);
}

.footer__brand-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(253, 252, 249, 0.55);
  max-width: 32ch;
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 18px;
  margin-left: -7px;
}
.footer__socials .icon-btn { width: 32px; height: 32px; }
.footer__socials .icon-btn { color: rgba(253, 252, 249, 0.6); }
.footer__socials .icon-btn:hover { color: var(--saffron); }

.footer__col-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* Было 0.45 – контраст 4.3 при нужных 4.5. Мелкий разряженный текст и так на грани. */
  color: rgba(253, 252, 249, 0.56);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  color: rgba(253, 252, 249, 0.78);
  transition: color 0.2s ease;
}
.footer__link:hover { color: #fff; }

/* ---------- Подписка на рассылку в подвале ---------- */

/*
 * Подвал тёмный всегда – и на светлых страницах тоже, поэтому цвета здесь свои, а не
 * из палитры темы: правило .theme-dark сюда не приезжает (см. white-clouds: блоки,
 * написанные под одну палитру, ломаются в другой).
 */
.subscribe {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 0;
  border-top: 1px solid rgba(253, 252, 249, 0.12);
}

.subscribe__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.subscribe__label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #F3F1EB;
}

.subscribe__controls { display: flex; gap: 10px; flex-wrap: wrap; }

.subscribe__input {
  min-width: 260px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #E7E5DF;
  background: rgba(0, 0, 0, 0.28);
  /* Рамка – единственное, чем поле себя обозначает: заливка почти сливается с подвалом. */
  border: 1px solid rgba(253, 252, 249, 0.36);
  border-radius: 2px;
}
.subscribe__input::placeholder { color: rgba(231, 229, 223, 0.58); }
.subscribe__input:focus { outline: none; border-color: rgba(253, 252, 249, 0.6); }

.subscribe__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 60ch;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(253, 252, 249, 0.62);
}
.subscribe__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  border: 1px solid rgba(253, 252, 249, 0.36);
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.subscribe__consent input[type="checkbox"]:checked {
  background-color: var(--saffron);
  border-color: var(--saffron);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.7 9 10 3.3' fill='none' stroke='%23FDFCF9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.subscribe__consent a { color: rgba(253, 252, 249, 0.85); text-decoration: underline; text-underline-offset: 3px; }

.subscribe__done,
.subscribe__error {
  padding: 26px 0;
  border-top: 1px solid rgba(253, 252, 249, 0.12);
  font-size: 14.5px;
  color: rgba(253, 252, 249, 0.78);
}
.subscribe__error { border-top: none; padding: 0; color: #F0A480; }
.subscribe__error a { color: inherit; text-decoration: underline; }

@media (max-width: 720px) {
  .subscribe__row { flex-direction: column; align-items: stretch; }
  .subscribe__controls { flex-direction: column; }
  .subscribe__input { min-width: 0; width: 100%; }
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(253, 252, 249, 0.12);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(253, 252, 249, 0.56);
}

/* ---------- Подстраницы: шапка и страница события ---------- */

.page-head {
  padding: clamp(140px, 18vh, 190px) 0 clamp(20px, 3vh, 36px);
}

.page-head__lead {
  max-width: 52ch;
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 16px;
}

.events--page {
  padding-top: clamp(28px, 4vh, 44px);
}

.event-page {
  padding: clamp(130px, 17vh, 180px) 0 clamp(80px, 11vh, 140px);
}

.link-arrow--back {
  border-bottom: none;
  margin-bottom: clamp(28px, 5vh, 48px);
}
.link-arrow--back:hover svg { transform: translateX(-4px); }

.event-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

/*
 * Колонка со снимком тянется во всю высоту строки, а прилипает карточка внутри неё.
 *
 * Иначе прилипать было бы негде: при `align-items: start` колонка ровно по высоте
 * снимка, и «липкому» элементу некуда ехать. Отступ сверху – высота шапки плюс воздух,
 * чтобы снимок не подлезал под неё.
 */
.event-page__media { align-self: stretch; }

.event-page__photo {
  position: sticky;
  top: 102px;
  background: #fff;
}
.event-page__photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.9);
}

.event-page__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin: 14px 0 12px;
}

.event-page__meta {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.event-page__desc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 36px;
}

.event-page__foot {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.event-page__empty {
  text-align: center;
  padding: 40px 0 60px;
}
.event-page__empty .page-head__lead { margin: 16px auto 32px; }

/* ---------- Появление при скролле ---------- */

/* Блок прячется ДО появления только когда скрипты работают: класс js ставится в самом
   начале страницы. Иначе любая осечка скрипта прятала бы содержимое целиком – а именно
   так и вышло на второй странице каталога ведущих, где новые карточки никто не наблюдал
   после перехода внутри сайта. Содержимое не должно зависеть от скрипта, чтобы быть
   видимым. */
.js .scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.js .scroll-reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Появление при загрузке: тушь проявляется из дымки ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.reveal--d1 { animation-delay: 0.08s; }
.reveal--d2 { animation-delay: 0.18s; }
.reveal--d3 { animation-delay: 0.3s; }
.reveal--d4 { animation-delay: 0.42s; }
.reveal--d5 { animation-delay: 0.7s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1280px) {
  /* Четырём разделам тесно уже не бывает – поджимаем только буквы, не отступы. */
  .nav__link { letter-spacing: 0.11em; }
}

@media (max-width: 1024px) and (min-width: 561px) {
  .events__grid { grid-template-columns: repeat(2, 1fr); }
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* хиро на мобильных: высота по контенту, а не во весь экран */
  .hero, .taro-hero, .consult-hero, .cafe-hero { min-height: 0; }
  .hero__inner,
  .taro-hero__inner,
  .consult-hero__inner,
  .cafe-hero__inner {
    min-height: 0;
    padding-top: 118px;
    padding-bottom: 92px;
  }

  .event-feature { grid-template-columns: 1fr; }
  .event-feature__media { min-height: 240px; max-height: 340px; }
  .event-page__grid { grid-template-columns: 1fr; gap: 40px; }
  /* В одну колонку снимок стоит НАД текстом – прилипать ему незачем, он загородил бы
     половину экрана на всё время чтения. */
  .event-page__photo { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1080px) {
  /* боковой ящик меню */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: min(320px, 85vw);
    padding: 96px 30px 30px;
    background: var(--porcelain);
    box-shadow: -30px 0 60px -30px rgba(39, 43, 57, 0.4);
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.45s;
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
  }
  .nav__link { padding: 12px 0; font-size: 17px; }
  .nav__link::after { display: none; }

  /* В ящике разделы раскрыты сразу: он и так листается, а лишнее касание ради списка
     из трёх ссылок – плата ни за что. Свернуть их всё же можно, кнопка живая. */
  .theme-dark .nav { background: #1E2023; }
  .nav__group { display: block; width: 100%; }
  .nav__toggle { width: 100%; justify-content: space-between; }
  .nav__menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 10px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__group.is-open > .nav__menu { display: block; transform: none; }
  /* наведение в ящике ничего не открывает: палец «наводит» на всё подряд */
  .nav__group:hover > .nav__menu,
  html:not(.js) .nav__group:focus-within > .nav__menu { display: none; }
  .nav__group.is-open:hover > .nav__menu { display: block; }

  .nav__item {
    padding: 9px 0 9px 14px;
    border-radius: 0;
    border-left: 1px solid var(--line);
  }
  .nav__item:hover { background: none; }
  .nav__item-name { font-size: 15px; }
  .nav__item-note { display: none; }
  .theme-dark .nav__item { border-left-color: rgba(253, 252, 249, 0.14); }

  .nav__link--mobile {
    display: block;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-soft);
  }

  /* контакты переезжают из шапки в ящик */
  .navbar__actions .header-icons { display: none; }
  .nav .nav__icons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .burger { display: flex; position: relative; z-index: 70; }
}

@media (max-width: 900px) {

  /* картина уходит в фон – дымка плотнее по всей ширине */
  .hero::before {
    background:
      linear-gradient(180deg, rgba(250, 249, 245, 0.9) 0%, rgba(250, 249, 245, 0.55) 45%, rgba(250, 249, 245, 0.3) 100%);
  }
  .hero__disc { right: -30%; top: 2%; }
}

@media (max-width: 560px) {
  .logo__img { height: 48px; }
  .header-icons { gap: 0; }

  .events__grid { grid-template-columns: 1fr; }
  .shop__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .hero__cta .btn { flex: 1 1 auto; }
  .halo { white-space: normal; }
  .scrolldown { display: none; }
}

/* ============================================================
   Тёмная тема: страница Школы Таро – реверс (графит с фарфором)
   ============================================================ */

.theme-dark {
  background: #1E2023;
  color: #E7E5DF;
  --field-line: rgba(253, 252, 249, 0.36);
}

/* Тёмная тема раньше висела на <body> и потому красила всю страницу целиком. Теперь она
   на обёртке внутри body (см. components/Shell.tsx) – её и растягиваем на весь экран,
   иначе под коротким содержимым проглядывала бы светлая бумага.

   Отдельной строкой – холст: цвет фона за пределами страницы браузер берёт у <html>, и
   без этого правила «резиновая» прокрутка на телефоне открывала бы белую полосу над
   тёмной страницей. Метка --page отличает страницу целиком от тёмного БЛОКА на светлой
   странице: такой есть на главной, и красить из-за него весь холст не надо. */
.theme-dark--page { min-height: 100dvh; }
html:has(.theme-dark--page),
html:has(.theme-dark--page) body { background: #1E2023; }

.theme-dark .site-header.is-solid,
.theme-dark .site-header.is-scrolled,
.theme-dark .site-header.menu-open {
  background: rgba(30, 32, 35, 0.9);
}
.theme-dark .site-header.is-scrolled { box-shadow: 0 10px 32px -22px rgba(0, 0, 0, 0.7); }
.theme-dark .site-header .navbar { border-bottom-color: rgba(253, 252, 249, 0.1); }

.theme-dark .nav__link { color: rgba(253, 252, 249, 0.68); }
.theme-dark .nav__link:hover { color: #fff; }
.theme-dark .nav__link::after { background: #F5F3ED; }
.theme-dark .nav__link--mobile { color: rgba(253, 252, 249, 0.5); }

.theme-dark .nav__menu {
  background: #1E2023;
  border-color: rgba(253, 252, 249, 0.12);
  box-shadow: 0 26px 52px -30px rgba(0, 0, 0, 0.8);
}
.theme-dark .nav__item:hover { background: rgba(253, 252, 249, 0.07); }
.theme-dark .nav__item-name { color: #FDFCF9; }
.theme-dark .nav__item-note { color: rgba(253, 252, 249, 0.55); }

.theme-dark .icon-btn { color: rgba(253, 252, 249, 0.72); }
.theme-dark .icon-btn:hover { color: var(--saffron); }
.theme-dark .burger span { background: #E7E5DF; }

/* кнопки – реверс */
.theme-dark .btn--ink {
  background: var(--porcelain);
  color: var(--ink);
}
.theme-dark .btn--ink:hover {
  background: #fff;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6);
}
.theme-dark .btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #E7E5DF;
}
.theme-dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* мазки туши – фарфоровые */
.theme-dark .btn--ink::before,
.theme-dark .btn--ghost::before,
.theme-dark .event-card::before,
.theme-dark .shop-card::before,
.theme-dark .event-feature::before,
.theme-dark .frame::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 6' preserveAspectRatio='none'%3E%3Cpath d='M2 3C50 1.7 110 4.2 180 3.1C250 2.1 320 4 398 2.8C320 4.5 250 3 180 4.1C110 5 50 2.6 2 3Z' fill='%23F5F3ED'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 6' preserveAspectRatio='none'%3E%3Cpath d='M2 3.2C70 4.4 140 1.8 210 3C280 4.1 340 2 398 3.2C340 1.9 280 3.5 210 2.4C140 1.4 70 3.8 2 3.2Z' fill='%23F5F3ED'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.theme-dark .btn--ink::after,
.theme-dark .btn--ghost::after,
.theme-dark .event-card::after,
.theme-dark .shop-card::after,
.theme-dark .event-feature::after,
.theme-dark .frame::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 400' preserveAspectRatio='none'%3E%3Cpath d='M3 2C1.7 50 4.2 110 3.1 180C2.1 250 4 320 2.8 398C4.5 320 3 250 4.1 180C5 110 2.6 50 3 2Z' fill='%23F5F3ED'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 400' preserveAspectRatio='none'%3E%3Cpath d='M3.2 2C4.4 70 1.8 140 3 210C4.1 280 2 340 3.2 398C1.9 340 3.5 280 2.4 210C1.4 140 3.8 70 3.2 2Z' fill='%23F5F3ED'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.theme-dark .btn--ink:hover::before, .theme-dark .btn--ink:hover::after,
.theme-dark .btn--ghost:hover::before, .theme-dark .btn--ghost:hover::after,
.theme-dark .frame:hover::before, .theme-dark .frame:hover::after {
  opacity: 0.9;
}

.theme-dark .eyebrow { color: var(--saffron); }
.theme-dark .eyebrow::before { background: rgba(253, 252, 249, 0.35); }
.theme-dark .section-title { color: #F3F1EB; }
.theme-dark .hero__title { color: #F3F1EB; }
.theme-dark .hero__lead { color: rgba(253, 252, 249, 0.62); }
.theme-dark .text-link { color: #F3F1EB; }
.theme-dark .text-link::after { background: #F3F1EB; }
.theme-dark .link-arrow { color: rgba(253, 252, 249, 0.6); border-color: rgba(253, 252, 249, 0.35); }
.theme-dark .link-arrow:hover { color: #fff; border-color: #fff; }
.theme-dark :focus-visible { outline-color: #F5F3ED; }
.theme-dark .footer { border-top: 1px solid rgba(253, 252, 249, 0.1); }

/* ---------- Школа Таро: хиро – ночной стол таролога ---------- */

.taro-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100svh;
}

.taro-hero__bg {
  position: absolute;
  inset: -4%;
  background: url("../assets/taro/hero.jpg") center / cover no-repeat;
  filter: saturate(0.6) brightness(0.5);
  animation: kenburns 46s ease-in-out infinite alternate;
}

/* графитовая мгла для читаемости */
.taro-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(30, 32, 35, 0.85) 0%, rgba(30, 32, 35, 0.2) 32%, rgba(30, 32, 35, 0.45) 58%, rgba(30, 32, 35, 0.85) 82%, #1E2023 98%),
    linear-gradient(90deg, rgba(30, 32, 35, 0.85) 0%, rgba(30, 32, 35, 0.35) 55%, rgba(30, 32, 35, 0.15) 100%);
  pointer-events: none;
}

.taro-hero__sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* дышащая луна – ночной двойник рассветного диска */
.taro-hero__moon {
  position: absolute;
  top: -12%;
  right: 6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(245, 243, 237, 0.14) 0%,
    rgba(245, 243, 237, 0.06) 40%,
    rgba(30, 32, 35, 0) 66%);
  animation: breathe 8s ease-in-out infinite;
}

/* дым благовоний: приглушаем белый туман */
.taro-hero .mist { opacity: 0.16; }
.taro-hero .mist--b { opacity: 0.12; }

.taro-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  width: 100%;
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: clamp(70px, 10vh, 110px);
}

/* ---------- Веер Старших Арканов ---------- */

.card-fan {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  height: 400px;
}

.tarot-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 284px;
  perspective: 900px;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* переворот: рубашка → настоящий аркан */
.tarot-card__flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.2, 0.4, 1);
}
.tarot-card:hover .tarot-card__flip { transform: rotateY(180deg); }

.tarot-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}

.tarot-card__face--front {
  background: rgba(38, 40, 44, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tarot-card__face--back {
  transform: rotateY(180deg);
  background: #F5F3ED;
  box-shadow:
    inset 0 0 0 1px rgba(30, 32, 35, 0.25),
    0 30px 60px -25px rgba(0, 0, 0, 0.7);
}
.tarot-card__face--back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarot-card--l { transform: translate(-50%, -50%) translateX(-92px) rotate(-11deg); }
.tarot-card--c { transform: translate(-50%, -50%) translateY(-14px); z-index: 1; }
.tarot-card--r { transform: translate(-50%, -50%) translateX(92px) rotate(11deg); }

/* парение – на GPU-трансформации, без пересчёта раскладки */
.tarot-card__float {
  position: absolute;
  inset: 0;
  animation: card-float 8s ease-in-out infinite;
  will-change: transform;
}
.tarot-card--l .tarot-card__float { animation-duration: 7s; }
.tarot-card--c .tarot-card__float { animation-delay: -2.5s; }
.tarot-card--r .tarot-card__float { animation-duration: 9s; animation-delay: -5s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.tarot-card:hover { z-index: 2; }
.tarot-card--l:hover { transform: translate(-50%, -50%) translateX(-98px) rotate(-13deg) translateY(-10px); }
.tarot-card--c:hover { transform: translate(-50%, -50%) translateY(-26px); }
.tarot-card--r:hover { transform: translate(-50%, -50%) translateX(98px) rotate(13deg) translateY(-10px); }

.tarot-card__numeral {
  position: absolute;
  top: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: rgba(245, 243, 237, 0.55);
}

.tarot-card__symbol {
  font-size: 54px;
  line-height: 1;
  color: var(--saffron);
}

.tarot-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: #F3F1EB;
}

.taro-section {
  padding: clamp(56px, 8vh, 96px) 0;
}

/* ---------- Курсы: расписание-гроссбух ---------- */

.course-ledger {
  border-top: 1px solid rgba(253, 252, 249, 0.14);
}

.course-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 30px 14px;
  border-bottom: 1px solid rgba(253, 252, 249, 0.14);
  transition: background-color 0.35s ease;
}
.course-row:hover { background: #26282B; }

/*
 * При наведении строка отъезжает вправо – но ТРАНСФОРМАЦИЕЙ содержимого, а не отступом.
 *
 * Отступ менял ширину колонки: 617 пикселей под заголовок превращались в 607, и браузер
 * пересчитывал раскладку и перенос текста на каждом кадре. Отсюда и дёрганность, а на
 * длинном названии строка успевала стать выше и толкнуть весь список под собой.
 * Трансформация не трогает раскладку вовсе.
 *
 * Правая колонка стоит на месте – как и раньше: она прижата к краю, и ехать ей некуда.
 */
.course-row > *:not(.course-row__right) {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.course-row:hover > *:not(.course-row__right),
.course-row:focus-visible > *:not(.course-row__right) { transform: translateX(10px); }

.course-row__date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  color: #F3F1EB;
}
.course-row__date span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.45);
}

.course-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.15;
  color: #F3F1EB;
  margin-bottom: 6px;
}

.course-row__meta {
  font-size: 13.5px;
  color: rgba(253, 252, 249, 0.5);
}

.course-row__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.chip {
  display: inline-flex;
  width: fit-content;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--open {
  color: var(--saffron);
  box-shadow: inset 0 0 0 1px rgba(232, 100, 30, 0.5);
}
.chip--closed {
  color: rgba(253, 252, 249, 0.4);
  box-shadow: inset 0 0 0 1px rgba(253, 252, 249, 0.18);
}

/* ---------- Лента направлений ---------- */

.deck-marquee {
  overflow: hidden;
  margin-top: clamp(48px, 7vh, 80px);
  padding: 20px 0;
  border-top: 1px solid rgba(253, 252, 249, 0.1);
  border-bottom: 1px solid rgba(253, 252, 249, 0.1);
}

.deck-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.deck-marquee:hover .deck-marquee__track { animation-play-state: paused; }

.deck-marquee span {
  white-space: nowrap;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.42);
}
.deck-marquee i {
  font-style: normal;
  font-size: 11px;
  color: var(--saffron);
  opacity: 0.7;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Бесплатный урок: Аркан 0 ---------- */

.taro-free { padding: clamp(24px, 4vh, 48px) 0; }

.taro-free__card {
  position: relative;
  background: #26282B;
  padding: clamp(32px, 5vw, 64px);
}

.taro-free__zero {
  position: absolute;
  right: clamp(8px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(220px, 26vw, 400px);
  line-height: 1;
  color: rgba(245, 243, 237, 0.05);
  pointer-events: none;
  user-select: none;
}

.taro-free__content {
  position: relative;
  max-width: 640px;
}

.taro-free__sub {
  margin-top: 18px;
  font-size: 16px;
  color: rgba(253, 252, 249, 0.7);
}

.taro-free__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 34px;
  max-width: 62ch;
  color: rgba(253, 252, 249, 0.68);
  font-size: 15.5px;
}
.taro-free__list li::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 11px;
  transform: translateY(1px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.6 6.2A7.4 7.4 0 1 0 18 11.5' stroke='%23E8641E' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- О школе: редакционный разворот ---------- */

.taro-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.taro-about__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(253, 252, 249, 0.66);
}

/* буквица – как в старинном гримуаре */
.taro-about__text p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 74px;
  line-height: 0.78;
  padding: 8px 14px 0 0;
  color: var(--saffron);
}

.taro-stats {
  display: flex;
  gap: 48px;
  margin-top: 38px;
}
.taro-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: #F3F1EB;
}
.taro-stat small {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(253, 252, 249, 0.5);
  max-width: 16ch;
}

/* ---------- Преподаватели: дуотон и вертикальные подписи ---------- */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
}

.teacher-card {
  position: relative;
  padding-left: 26px;
}

/* роль – вертикально вдоль фото, как подпись на свитке */
.teacher-card__role {
  position: absolute;
  left: 0;
  top: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Шафран на бумаге при 11 пикселях даёт 3.26 – мелкая подпись читается с трудом.
     На тёмном фоне он же читается хорошо, поэтому там цвет остаётся прежним. */
  color: var(--saffron-deep);
  max-height: 100%;
}
.theme-dark .teacher-card__role { color: var(--saffron); }

.teacher-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: #2B2D31;
  margin-bottom: 18px;
}
.teacher-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.teacher-card:hover .teacher-card__media img {
  filter: grayscale(0) saturate(0.9);
  transform: scale(1.04);
}

/* Карточка человека родилась в ТЁМНОЙ секции дизайна, и цвета у неё были светлыми.
   На светлой странице каталога ведущих это давало контраст 1.0–1.1: текст сливался с
   бумагой полностью. Основа теперь чернильная, светлое осталось на тёмном фоне. */
.teacher-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  color: var(--ink);
  margin-bottom: 8px;
}

.teacher-card__bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.theme-dark .teacher-card__name { color: #F3F1EB; }
.theme-dark .teacher-card__bio { color: rgba(253, 252, 249, 0.55); }

/* ---------- Контакты: приглашение ---------- */

.taro-contacts { padding-bottom: clamp(80px, 11vh, 140px); }

.taro-contacts__card {
  background: #26282B;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.taro-contacts__invite {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  color: #F3F1EB;
  margin: 12px 0 20px;
}
.taro-contacts__invite em {
  font-style: italic;
  color: var(--saffron);
}

.taro-contacts__line {
  font-size: 18px;
  line-height: 1.5;
  color: #F3F1EB;
}

.taro-contacts__note {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(253, 252, 249, 0.5);
}

.taro-contacts__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.taro-contacts__btn { margin-top: 20px; }

@media (max-width: 1024px) {
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .taro-hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .card-fan { height: 360px; }
  .taro-about { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 8px; }
  /* Строка сложена в столбец, отъезжать ей некуда – да и наводить на телефоне нечем. */
  .course-row:hover > *:not(.course-row__right) { transform: none; }
  .course-row__right { justify-content: space-between; width: 100%; }
  .taro-free__zero { display: none; }
}

@media (max-width: 560px) {
  .teacher-grid { grid-template-columns: 1fr; }
  .tarot-card { width: 140px; height: 238px; }
  .tarot-card--l { transform: translate(-50%, -50%) translateX(-72px) rotate(-11deg); }
  .tarot-card--r { transform: translate(-50%, -50%) translateX(72px) rotate(11deg); }
}

/* ---------- О нас ---------- */

.about-hero { padding: clamp(140px, 18vh, 190px) 0 clamp(28px, 4vh, 48px); }

.about-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-hero__title { max-width: 15ch; }

.about-hero__media img,
.about-cafe__media img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.9);
}

.about-section { padding: clamp(48px, 7vh, 88px) 0; }

/* манифест: три колонки */
.manifest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}

.manifest__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 16px;
}

.manifest__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.manifest__list li::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 11px;
  transform: translateY(1px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.6 6.2A7.4 7.4 0 1 0 18 11.5' stroke='%23E8641E' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* история: гроссбух годов */
.timeline { border-top: 1px solid var(--line); }

.timeline__row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: 26px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.timeline__row:hover {
  background: #fff;
  padding-left: 24px;
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.timeline__year span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.timeline__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* цитата автора */
.about-quote-wrap { padding-top: clamp(24px, 4vh, 48px); }

.about-quote {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: #fff;
  padding: clamp(28px, 4vw, 56px);
}

.about-quote__media img {
  width: 100%;
  height: auto;
  filter: saturate(0.9);
}

.about-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 22px;
}

.about-quote__author {
  font-weight: 600;
  font-size: 15px;
}

.about-quote__role {
  font-size: 13px;
  color: var(--ink-soft);
}

/* видео */
.about-video {
  aspect-ratio: 16 / 9;
  background: var(--paper);
}
.about-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Обложка ролика ----------
   Ютуб рисует поверх кадра свою панель – аватар, красную кнопку, «Смотреть на
   YouTube». Здесь вместо неё кадр из самого ролика, наша кнопка и наша подпись;
   чужой проигрыватель появляется только после нажатия. */

.film {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
  /* Кнопка целиком – это кадр, поэтому обычная рамка фокуса ей мала. */
  isolation: isolate;
}

.film__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* В покое кадр почти монохромный – так он держится в мире страницы, набранной
     тушью. Цвет возвращается, когда к ролику тянутся. */
  filter: grayscale(0.82) contrast(1.06) brightness(0.96);
  transition: filter 0.6s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.film:hover .film__poster,
.film:focus-visible .film__poster {
  filter: none;
  transform: scale(1.03);
}

.film__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21, 23, 31, 0.72) 0%,
    rgba(21, 23, 31, 0.28) 26%,
    rgba(21, 23, 31, 0) 52%
  );
  transition: opacity 0.5s ease;
}

/* Кнопка – незамкнутый круг одним мазком: энсо. Заливка приходит на наведении, и
   приходит шафраном, акцентом сайта, а не красным кружком видеосервиса.
   Центрируется трансформацией, а не отрицательными полями: полям пришлось бы знать
   размер, и любая правка размера ломала бы центровку. */
.film__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 94px;
  height: 94px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--porcelain);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.35s ease;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.35));
}

.film__ring,
.film__tri {
  grid-area: 1 / 1;
}

.film__ring {
  width: 100%;
  height: 100%;
}

/* Длина окружности при r=48 – 301.6. Оставляем разрыв в 34: столько отнимает кисть,
   когда не доводит круг. */
.film__ring circle {
  fill: rgba(21, 23, 31, 0.24);
  stroke: rgba(253, 252, 249, 0.9);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 268 34;
  transform: rotate(-24deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              fill 0.4s ease, stroke 0.4s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.film__tri {
  width: 22px;
  height: 22px;
}

.film:hover .film__play,
.film:focus-visible .film__play {
  transform: translate(-50%, -50%) scale(1.05);
  filter: drop-shadow(0 12px 30px rgba(232, 100, 30, 0.4));
}

.film:hover .film__ring circle,
.film:focus-visible .film__ring circle {
  fill: var(--saffron);
  stroke: var(--saffron);
  stroke-dasharray: 302 0;
  transform: rotate(0deg);
}

.film__meta {
  position: absolute;
  left: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(18px, 2.6vw, 30px);
  display: grid;
  gap: 4px;
  text-align: left;
}

.film__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.15;
  color: var(--porcelain);
}

.film__note {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.72);
}

.film__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* На телефоне кадр всего 176 пикселей в высоту – кольцо в 88 занимало его половину. */
@media (max-width: 560px) {
  .film__play { width: 64px; height: 64px; }
  .film__tri { width: 17px; height: 17px; }
  .film__note { font-size: 11px; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  .course-row > *:not(.course-row__right) { transition: none; }
  .course-row:hover > *:not(.course-row__right) { transform: none; }

  .film__poster,
  .film__play,
  .film__ring circle { transition: none; }
  .film:hover .film__poster,
  .film:focus-visible .film__poster { transform: none; }
  .film:hover .film__play,
  .film:focus-visible .film__play { transform: translate(-50%, -50%); }
}

/* кафе */
.about-cafe-wrap {
  background: var(--paper);
  padding-bottom: clamp(80px, 11vh, 140px);
}

.about-cafe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-cafe__text { margin: 16px 0 30px; }

@media (max-width: 900px) {
  .about-hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .manifest { grid-template-columns: 1fr; }
  .timeline__row { grid-template-columns: 1fr; gap: 10px; }
  .timeline__row:hover { padding-left: 14px; }
  .about-quote { grid-template-columns: 1fr; }
  .about-quote__media { max-width: 260px; }
  .about-cafe { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Кафе ---------- */

.cafe-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100svh;
  background: var(--paper);
}

.cafe-hero__bg {
  position: absolute;
  inset: -3%;
  background: url("../assets/cafe/hero.jpg") center / cover no-repeat;
  animation: kenburns 44s ease-in-out infinite alternate;
}

/* фарфоровая дымка: слева плотнее, снизу – переход в страницу */
.cafe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(250, 249, 245, 0.75) 0%, rgba(250, 249, 245, 0) 26%),
    linear-gradient(90deg, rgba(250, 249, 245, 0.94) 0%, rgba(250, 249, 245, 0.6) 44%, rgba(250, 249, 245, 0.08) 75%),
    linear-gradient(0deg, var(--porcelain) 0%, rgba(253, 252, 249, 0) 22%);
  pointer-events: none;
}

.cafe-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: clamp(70px, 10vh, 110px);
}

/* ---------- Инфо-полоса: часы и место ---------- */

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  padding: clamp(24px, 3vw, 40px);
}

.info-strip__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 8px;
}

.info-strip__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
}
.info-strip__value span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Чайные церемонии ---------- */

.cafe-tea-wrap { background: var(--paper); }

.cafe-tea {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.cafe-tea__media { margin: 0; }
.cafe-tea__media img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92);
}

.cafe-tea__body { text-align: center; }
.cafe-tea__body .page-head__lead {
  max-width: 38ch;
  margin: 0 auto 22px;
}

/* ---------- Меню и бронь ---------- */

.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.menu-links__note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-soft);
}

.cafe-book { background: #fff; }

.cafe-book__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin: 12px 0 16px;
}
.cafe-book__title em {
  font-style: italic;
  color: var(--saffron);
}

.cafe-book__note {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 40ch;
}

.cafe-book__link { color: var(--ink); }
.cafe-book__link:hover { color: var(--saffron-deep); }

@media (max-width: 900px) {
  .info-strip { grid-template-columns: 1fr 1fr; }
  .cafe-tea { grid-template-columns: 1fr; }
  .cafe-tea__media:last-child { display: none; }
}

@media (max-width: 560px) {
  .info-strip { grid-template-columns: 1fr; }
}

/* ---------- Реклама ---------- */

.adv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 30px;
}

.adv-stat {
  background: #fff;
  padding: 28px 26px;
}
.adv-stat--wide { grid-column: span 4; }

.adv-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 10px;
}
.adv-stat--wide b { font-size: clamp(2.8rem, 5vw, 4.2rem); }

.adv-stat small {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* оффер: слева макет письма, справа условия */
.adv-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: #fff;
  padding: clamp(26px, 3.5vw, 48px);
  margin-bottom: 26px;
}

/* мини-письмо рассылки */
.mail {
  max-width: 340px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px -28px rgba(39, 43, 57, 0.4);
  transform: rotate(-1.5deg);
}

.mail__bar {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}
.mail__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(39, 43, 57, 0.18);
}

.mail__from {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mail__section {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 12px;
}

.mail__slot {
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px dashed rgba(39, 43, 57, 0.35);
  background: rgba(232, 100, 30, 0.05);
  margin-bottom: 12px;
}

.mail__slot-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
}

.mail__slot-size {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.mail__btn {
  display: inline-block;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--porcelain);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mail__line {
  height: 7px;
  background: rgba(39, 43, 57, 0.08);
  margin-bottom: 7px;
}
.mail__line--short { width: 62%; margin-bottom: 0; }

/* условия справа */
.adv-banner__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 22px;
}

.adv-banner__rows {
  display: flex;
  flex-direction: column;
}

.adv-banner__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.adv-banner__row .info-strip__label { margin-bottom: 0; }

.adv-banner__value {
  font-size: 15px;
  line-height: 1.55;
}

.adv-banner__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.adv-banner__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--saffron-deep);
}

@media (max-width: 900px) {
  .adv-stats { grid-template-columns: 1fr 1fr; }
  .adv-stat--wide { grid-column: span 2; }
  .adv-banner { grid-template-columns: 1fr; }
  .adv-banner__row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .adv-stats { grid-template-columns: 1fr; }
  .adv-stat--wide { grid-column: auto; }
}

/* ---------- Вакансии ---------- */

.jobs-ideal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px clamp(36px, 5vw, 80px);
}

.vac-list { border-top: 1px solid var(--line); }

.vac { border-bottom: 1px solid var(--line); }

/* плавное раскрытие: анимируем контент details */
.vac::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    content-visibility 0.45s allow-discrete;
}
.vac[open]::details-content { block-size: auto; }

.vac__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 24px 14px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.vac__head::-webkit-details-marker { display: none; }
.vac__head:hover {
  background: #fff;
  padding-left: 24px;
}

.vac__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.15;
}

/* ---------- Плата в вакансиях ----------
   Шесть вакансий писали шесть раз по-своему: «60 000 ₽/мес», «от 43 000 ₽»,
   «40 000 ₽ за 15 смен + бонусы». Сравнить их взглядом было нельзя – цифра каждый раз
   стояла в другом месте строки.
   Формула одна на всех: сумма и под ней условие. Разница между вакансиями настоящая –
   где-то вилка, где-то смены, где-то бонусы, – и она никуда не делась, просто переехала
   во вторую строку, а первая у всех устроена одинаково. */

.pay {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.pay__sum {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  /* Цифры одной ширины: суммы стоят столбцом и должны сравниваться по разрядам. */
  font-variant-numeric: tabular-nums;
  color: var(--saffron-deep);
  white-space: nowrap;
}

/* «От» – не часть суммы, а оговорка к ней, и звучать должна тише. */
.pay__from {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
}

.pay__note {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.vac__pay {
  white-space: nowrap;
}

/* плюс, поворачивающийся в крест */
.vac__toggle {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
  transition: transform 0.35s ease;
}
.vac__toggle::before,
.vac__toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.vac__toggle::before {
  left: 0;
  right: 0;
  top: 8px;
  height: 1.5px;
}
.vac__toggle::after {
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1.5px;
}
.vac[open] .vac__toggle { transform: rotate(45deg); }

.vac__body {
  padding: 4px 14px 30px;
}

.vac__intro {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.vac__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(28px, 4vw, 64px);
  margin-bottom: 26px;
}
.vac__cols .info-strip__label { margin-bottom: 10px; }
.vac__cols .manifest__list { font-size: 14px; }

@media (max-width: 900px) {
  .jobs-ideal { grid-template-columns: 1fr; gap: 10px; }
  /* Место в сетке задаём ВСЕМ троим. Если у части ячеек координаты есть, а у части
     нет, грид сперва расставляет определённые и лишь потом ищет дырки для остальных:
     заголовок улетал в колонку под плюсик и рассыпался по слову в строку. */
  .vac__head { grid-template-columns: minmax(0, 1fr) 22px; }
  .vac__title { grid-column: 1; grid-row: 1; }
  .vac__toggle { grid-column: 2; grid-row: 1; }
  .vac__pay { grid-column: 1 / -1; grid-row: 2; }
  /* Плата уехала под заголовок – там она читается строкой слева направо. */
  .pay {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-items: start;
    text-align: left;
  }
  .vac__head:hover { padding-left: 14px; }
  .vac__cols { grid-template-columns: 1fr; }
}

/* мини-список вакансий на «О нас» */
.vac-mini { border-top: 1px solid var(--line); }

.vac-mini__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.vac-mini__row:hover {
  background: #fff;
  padding-left: 24px;
}

.vac-mini__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.vac-mini__pay { white-space: nowrap; }

/* ---------- Аренда залов ---------- */

.hall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}

.hall-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.hall-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hall-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hall-card:hover .hall-card__media img { transform: scale(1.05); }

.hall-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 22px;
}

.hall-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
}

.hall-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hall-card__specs span {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.hall-card__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hall-card__price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
  color: var(--saffron-deep);
}

@media (max-width: 1024px) {
  .hall-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hall-grid { grid-template-columns: 1fr; }
}

/* ---------- Блог ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
  margin-bottom: 10px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }

/* Дата над заголовком карточки: по ней видно, свежая это запись или прошлогодняя акция. */
.post-card__date {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.theme-dark .post-card__date { color: rgba(253, 252, 249, 0.5); }

/* Дата и время чтения под заголовком статьи. */
.post-page__meta {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/*
 * «Поделиться»: ссылки, а не чужой виджет со слежением.
 *
 * Кнопка копирования выглядит так же, как ссылки рядом: для человека это один и тот же
 * жест, и разделять их оформлением незачем.
 */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.share__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.share__link {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(39, 43, 57, 0.35);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.share__link:hover,
.share__link:focus-visible { color: var(--saffron-deep); border-bottom-color: var(--saffron); }

.theme-dark .share { border-top-color: rgba(253, 252, 249, 0.14); }
.theme-dark .share__label { color: rgba(253, 252, 249, 0.5); }
.theme-dark .share__link { color: #F0EEE8; border-bottom-color: rgba(253, 252, 249, 0.42); }
.theme-dark .share__link:hover,
.theme-dark .share__link:focus-visible { color: #fff; border-bottom-color: var(--saffron); }

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 22px;
}

.post-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
}

.post-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}

.post-card .text-link { align-self: flex-start; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ---------- Страница статьи ---------- */

.post-page { max-width: 880px; }

.post-page__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  margin: 14px 0 28px;
}

.post-page__media { margin-bottom: clamp(28px, 4vh, 44px); }
.post-page__media img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92);
}

/*
 * Тело статьи – ОБЫЧНЫЙ поток, а не колонка флекса.
 *
 * Флекс делает блоком каждый свой дочерний элемент, включая строчные. Разметка же
 * приезжает из админки центра сплошь строчной: абзацев в половине статей нет вовсе,
 * текст разделён парами <br>, а куски обёрнуты в <span> с цветом. Каждый такой кусок
 * становился отдельной строкой с отступом в 18 пикселей – фраза «Каждое воскресенье, с
 * 12:00 до 16:00» разваливалась на пять строк лесенкой.
 *
 * В обычном потоке строчное течёт текстом, <br> переносит строку, а ритм задают блоки:
 * вертикальные поля к строчным элементам не применяются, поэтому правило ниже их и не
 * касается.
 */
.post-page__body {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-mid);
}

.post-page__body p,
.post-page__body ul,
.post-page__body ol,
.post-page__body blockquote,
.post-page__body table,
.post-page__body figure,
.post-page__body h2,
.post-page__body h3,
.post-page__body h4 { margin: 18px 0; }

.post-page__body h2,
.post-page__body h3,
.post-page__body h4 {
  margin-top: 34px;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.post-page__body h2 { font-size: 1.6rem; }
.post-page__body h3 { font-size: 1.3rem; }
.post-page__body h4 { font-size: 1.1rem; }
.theme-dark .post-page__body h2,
.theme-dark .post-page__body h3,
.theme-dark .post-page__body h4 { color: #F3F1EB; }

/* Общий сброс обнулил отступы у всего – спискам маркеры вернуть надо вручную. */
.post-page__body ul,
.post-page__body ol { padding-left: 1.4em; }
.post-page__body li { margin: 6px 0; }

/* Картинки внутри текста: отдельной строкой и не шире колонки. */
.post-page__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 26px 0;
}

.post-page__body a {
  color: var(--ink);
  border-bottom: 1px solid rgba(39, 43, 57, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.post-page__body a:hover,
.post-page__body a:focus-visible { color: var(--saffron-deep); border-bottom-color: var(--saffron); }
.theme-dark .post-page__body a { color: #F0EEE8; border-bottom-color: rgba(253, 252, 249, 0.42); }
.theme-dark .post-page__body a:hover,
.theme-dark .post-page__body a:focus-visible { color: #fff; border-bottom-color: var(--saffron); }

/* буквица первого абзаца, как на «О нас» */
.post-page__body p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.8;
  padding: 6px 12px 0 0;
  color: var(--saffron);
}

.post-page__foot {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vh, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Главная: угольная полоса школы Таро ---------- */

.home-taro {
  padding: clamp(64px, 9vh, 110px) 0;
}

.home-taro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.home-taro__text { margin: 16px 0 30px; }

.home-taro__media img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.8) brightness(0.85);
}

@media (max-width: 900px) {
  .home-taro__inner { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Консультации: угольная ночь, зодиак ---------- */

.consult-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100svh;
  background: #1E2023;
}

.consult-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(30, 32, 35, 0.85) 0%, rgba(30, 32, 35, 0.2) 32%, rgba(30, 32, 35, 0.45) 58%, rgba(30, 32, 35, 0.85) 82%, #1E2023 98%),
    linear-gradient(90deg, rgba(30, 32, 35, 0.85) 0%, rgba(30, 32, 35, 0.35) 55%, rgba(30, 32, 35, 0.15) 100%);
  pointer-events: none;
}

.consult-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: clamp(70px, 10vh, 110px);
}

.consult-hero__content {
  max-width: 620px;
}

/* фото-фон: расклад на столе, как у школы Таро */
.consult-hero__bg {
  position: absolute;
  inset: -4%;
  background: url("../assets/consult/hero.jpg") 70% 45% / cover no-repeat;
  filter: saturate(0.8) brightness(0.5);
  animation: kenburns 46s ease-in-out infinite alternate;
}

/* ---------- Темы консультаций ---------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #26282B;
  padding: 28px;
}

/* фото старого сайта под плашкой, притемнённое углём */
.topic-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.topic-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.38);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}
.topic-card:hover .topic-card__media img {
  transform: scale(1.05);
  filter: saturate(0.85) brightness(0.46);
}

/* мгла снизу, чтобы список читался */
.topic-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 32, 35, 0.25) 0%, rgba(30, 32, 35, 0.85) 100%);
}

.topic-card__title,
.topic-card__list,
.topic-card__text {
  position: relative;
}

.topic-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
}

.topic-card__title--light { color: #F3F1EB; }

.topic-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(253, 252, 249, 0.62);
}
.topic-card__list li::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 11px;
  transform: translateY(1px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.6 6.2A7.4 7.4 0 1 0 18 11.5' stroke='%23E8641E' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

.topic-card--cta {
  justify-content: center;
  align-items: flex-start;
  background: #2B2D31;
}
.topic-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(253, 252, 249, 0.62);
  max-width: 34ch;
  margin-bottom: 8px;
}

/* ---------- Стоимость ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: #26282B;
  padding: 36px 28px 32px;
}

.price-card--best { background: #2B2D31; }
/* Плашка стоит внизу карточки. Сверху она сдвигала «30 минут» и цену ниже соседей –
   три цены переставали стоять в одну линию, и средняя карточка выглядела съехавшей.
   Плашка идёт последней, поэтому подписи и цены наверху совпадают у всех трёх.
   Отступ полем, а не набивкой: набивка перекашивает саму пилюлю. */
.price-card--best .chip { margin-top: 14px; }

.price-card__time {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.55);
}

.price-card__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.1;
  color: #F3F1EB;
}

.price-card__note {
  font-size: 13.5px;
  color: rgba(253, 252, 249, 0.5);
}

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

@media (min-width: 561px) and (max-width: 1024px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Страница курса и каталог программ (тёмные) ---------- */

.course-page__group {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.55);
  margin: 8px 0 28px;
}

.theme-dark .info-strip { background: #26282B; }
.theme-dark .info-strip__value { color: #F3F1EB; }
.theme-dark .info-strip__value span { color: rgba(253, 252, 249, 0.5); }
.info-strip__value--sm { font-size: 16px; }

.course-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(32px, 5vh, 48px);
}

.theme-dark .post-page__body { color: rgba(253, 252, 249, 0.72); }
.theme-dark .post-page__body p:first-child::first-letter { color: var(--saffron); }

.course-page__subhead {
  margin: 34px 0 14px;
}

.theme-dark .timeline { border-color: rgba(253, 252, 249, 0.12); }
.theme-dark .timeline__row { border-color: rgba(253, 252, 249, 0.12); }
.theme-dark .timeline__row:hover { background: #26282B; }
.theme-dark .timeline__year { color: #F3F1EB; }
.theme-dark .timeline__text { color: rgba(253, 252, 249, 0.6); }
.timeline__year--sm { font-size: 19px; line-height: 1.3; }

.course-page__teachers {
  margin-top: 30px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(253, 252, 249, 0.6);
}

.course-page__note {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(253, 252, 249, 0.45);
}

.course-page__aside {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #26282B;
  padding: 28px;
}

.course-page__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: #F3F1EB;
}

.course-page__price-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(253, 252, 249, 0.55);
  margin-bottom: 14px;
}

.course-page__pay {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(253, 252, 249, 0.45);
}

/* каталог направлений */
.program-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
}

.program-chip {
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.75);
  box-shadow: inset 0 0 0 1px rgba(253, 252, 249, 0.25);
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.program-chip:hover {
  color: var(--saffron);
  box-shadow: inset 0 0 0 1px rgba(232, 100, 30, 0.6);
  transform: translateY(-2px);
}

.page-head .link-arrow--back { margin-bottom: 26px; }

/* аккордеон учебного плана на тёмных страницах */
.theme-dark .vac-list,
.theme-dark .vac { border-color: rgba(253, 252, 249, 0.14); }
.theme-dark .vac__head:hover { background: #26282B; }
.theme-dark .vac__title { color: #F3F1EB; }
.theme-dark .vac__toggle::before,
.theme-dark .vac__toggle::after { background: #F3F1EB; }
.theme-dark .vac__body .manifest__list { color: rgba(253, 252, 249, 0.65); }

.vac__head--syllabus { grid-template-columns: minmax(0, 1fr) 22px; padding: 20px 14px; }
.vac__title--sm { font-size: clamp(1.1rem, 1.9vw, 1.4rem); }

.course-page__bonus { align-self: flex-start; margin-bottom: 6px; }

/* занятия внутри учебного плана */
.lesson { margin-bottom: 22px; }
.lesson:last-child { margin-bottom: 6px; }

.lesson__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: #F3F1EB;
  margin-bottom: 10px;
}

.lesson__subhead {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.45);
  margin: 14px 0 8px;
}

.lesson .manifest__list { gap: 7px; font-size: 14px; }

.course-page__price-modules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(253, 252, 249, 0.12);
  font-size: 13.5px;
  color: rgba(253, 252, 249, 0.65);
}

@media (max-width: 900px) {
  .course-page__grid { grid-template-columns: 1fr; }
  .course-page__aside { position: static; }
}

/* подложка бокового меню */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(30, 32, 35, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* клоны контактов в ящике скрыты на десктопе */
.nav__icons { display: none; }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(30, 32, 35, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

/* Картинка со стрелками – в ряд, полоса миниатюр под ними. */
.lightbox__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(860px, 86vw);
  min-height: 0;
}

/* Окно, в котором живёт картинка: приближенная не должна вылезать за его края. */
.lightbox__stage {
  display: flex;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  cursor: zoom-in;
  /* иначе браузер на телефоне перехватывает движение пальца под свою прокрутку */
  touch-action: none;
}
/*
 * Окно всегда облегает лист: оно и есть лупа. Раскрывать его при увеличении нельзя –
 * лист под курсором прыгал бы вместе с рамкой ровно в тот момент, когда человек в него
 * всматривается. А заодно щелчок рядом с листом остаётся закрывающим, как и ждёшь от
 * тёмного фона.
 */
.lightbox.is-zoomed .lightbox__stage { cursor: grab; }
.lightbox.is-zoomed .lightbox__stage:active { cursor: grabbing; }
/* Мышью лист не таскают – его показывает лупа, поэтому и курсор другой. */
@media (hover: hover) and (pointer: fine) {
  .lightbox__stage,
  .lightbox.is-zoomed .lightbox__stage { cursor: zoom-in; }
}

.lightbox__img {
  max-width: 100%;
  max-height: 68vh;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.7);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: rgba(253, 252, 249, 0.8);
  transition: color 0.2s ease, transform 0.25s ease;
}
.lightbox__close:hover { color: #fff; transform: rotate(90deg); }

.lightbox__nav {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: rgba(253, 252, 249, 0.65);
  transition: color 0.2s ease, transform 0.25s ease;
}
.lightbox__nav:hover { color: #fff; transform: translateY(-2px); }

/* Приближение: кнопки и текущий масштаб, напротив крестика. */
.lightbox__zoom {
  position: absolute;
  top: 22px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.lightbox__zoom button {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(253, 252, 249, 0.22);
  border-radius: 2px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: rgba(253, 252, 249, 0.8);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lightbox__zoom button:hover { color: #fff; border-color: rgba(253, 252, 249, 0.5); }

.lightbox__scale {
  min-width: 56px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(253, 252, 249, 0.6);
}

/* Полоса миниатюр: видно, что будет дальше, и можно прыгнуть сразу к нужному листу. */
.lightbox__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.lightbox__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.is-on { opacity: 1; }

.lightbox__thumb img {
  display: block;
  width: 46px;
  height: 62px;
  object-fit: cover;
  object-position: top;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.lightbox__thumb.is-on img { border-color: var(--saffron); }

.lightbox__thumb span {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.75);
}

@media (max-width: 640px) {
  .lightbox { gap: 12px; padding: 12px; }
  .lightbox__row { gap: 6px; }
  .lightbox__img { max-height: 60vh; }

  /*
   * Стрелки перестают быть колонками: так они забирали 92 пикселя из 351, и лист
   * оставался 259 в ширину – меню кафе в таком размере не прочесть, приходилось
   * увеличивать каждый раз. Освободив ширину, лист выходит 348, вдвое больше по площади.
   *
   * Кладём их не поверх кадра посередине, а в пустую полосу под ним: высота листа
   * ограничена 60vh, а строка занимает почти всё окно, поэтому там всегда остаётся
   * около 190 пикселей. Посередине стрелка накрывала строку меню.
   */
  .lightbox__row { position: relative; }
  .lightbox__figure { max-width: 100%; }
  .lightbox__nav {
    position: absolute;
    bottom: 4px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(253, 252, 249, 0.12);
  }
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { right: 0; }
  /* На телефоне подписи под миниатюрами не помещаются в ряд – остаются картинки. */
  .lightbox__thumb span { display: none; }
  /* Кнопки масштаба остаются наверху: внизу они наезжали бы на полосу миниатюр. */
  .lightbox__zoom { top: 14px; left: 14px; }
  .lightbox__zoom button { width: 32px; height: 32px; }
  .lightbox__scale { min-width: 46px; }
}

/* ---------- Уважение к reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__disc,
  .mist,
  .scrolldown__line::after,
  .taro-hero__bg,
  .taro-hero__moon,
  .tarot-card,
  .deck-marquee__track {
    animation: none;
  }
  .tarot-card__flip { transition: none; }
  .vac::details-content { transition: none; }
  .tarot-card__float { animation: none; }
  .consult-hero__bg { animation: none; }
  .hero__bg { transition: none; }
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Страница заявки на курс ---------- */

.order-page__inner { max-width: 640px; margin: 0 auto; }

.order-page__lead { margin-top: 14px; }

.order-summary {
  padding: 20px 26px;
  margin: 30px 0 38px;
  background: #26282B;
}

.order-summary__course {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.order-summary__meta {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(231, 229, 223, 0.6);
}

.order-form__label { margin-bottom: 14px; }

.order-form__tariffs { margin-bottom: 30px; }

.tariff {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  border: 1px solid rgba(253, 252, 249, 0.16);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.tariff:hover { border-color: rgba(253, 252, 249, 0.34); }

.tariff:has(input:checked) {
  border-color: rgba(232, 100, 30, 0.6);
  background: rgba(232, 100, 30, 0.07);
}

.tariff input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tariff__mark {
  flex: none;
  width: 16px;
  height: 16px;
  align-self: center;
  border-radius: 50%;
  border: 1.5px solid rgba(231, 229, 223, 0.4);
  position: relative;
  transition: border-color 0.25s ease;
}

.tariff input:checked + .tariff__mark { border-color: var(--saffron); }

.tariff input:checked + .tariff__mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--saffron);
}

.tariff input:focus-visible + .tariff__mark {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.tariff__name { font-weight: 600; font-size: 15px; }

.tariff__price {
  margin-left: auto;
  text-align: right;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(231, 229, 223, 0.62);
  max-width: 55%;
}

.field { display: grid; gap: 6px; margin-bottom: 18px; }

/* Поля заявки писались для ТЁМНОЙ страницы записи на курс. На светлых – аренда, реклама,
   вакансии – это давало чёрные прямоугольники на бумаге и подписи, которых почти не
   видно. Основа теперь светлая, тёмная палитра осталась там, где тёмный фон. */
.field > span {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.theme-dark .field > span { color: rgba(231, 229, 223, 0.6); }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--field-line);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.25s ease;
}
/* Рамку задаёт --field-line из палитры темы: заливка поля #26282B на фоне #1E2023 даёт
   контраст 1.1 – её на тёмном попросту не видно, и поле опознаётся одной рамкой. */
.theme-dark .field input,
.theme-dark .field select,
.theme-dark .field textarea {
  color: #E7E5DF;
  background: #26282B;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-soft); }
/* Подсказка остаётся отчётливо тише введённого значения (150 против 231), но при 0.35
   контраст к заливке был 2.7 – её приходилось разглядывать. */
.theme-dark .field input::placeholder,
.theme-dark .field textarea::placeholder { color: rgba(231, 229, 223, 0.58); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--saffron);
}

.form-tried .field input:invalid { border-color: var(--saffron-deep); }

.order-form__submit {
  width: 100%;
  margin-top: 10px;
  font: inherit;
  cursor: pointer;
}

.order-form__submit.is-busy {
  pointer-events: none;
  animation: order-busy 1.1s ease-in-out infinite;
}

@keyframes order-busy {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.order-form__fine {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(231, 229, 223, 0.48);
}

/* успешная отправка: энсо и галочка рисуются мазком */

.order-done {
  text-align: center;
  padding: 44px 20px 30px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.order-done.is-on { opacity: 1; transform: none; }

.order-done__mark { display: block; margin: 0 auto 22px; }

.order-done__ring {
  stroke: var(--saffron);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 205 226.2;
  stroke-dashoffset: 205;
}

.order-done__check {
  stroke: var(--saffron);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
}

.order-done.is-on .order-done__ring { animation: order-draw 1s ease 0.2s forwards; }
.order-done.is-on .order-done__check { animation: order-draw 0.45s ease 1.1s forwards; }

@keyframes order-draw {
  to { stroke-dashoffset: 0; }
}

.order-done__title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
}

.order-done__text {
  margin: 12px auto 0;
  max-width: 460px;
  color: rgba(231, 229, 223, 0.72);
}

.order-done__timer {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(231, 229, 223, 0.45);
}

@media (max-width: 560px) {
  .tariff { flex-wrap: wrap; }
  .tariff__price {
    margin-left: 28px;
    max-width: none;
    text-align: left;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-done { opacity: 1; transform: none; transition: none; }
  .order-done__ring, .order-done__check { stroke-dashoffset: 0; animation: none; }
  .order-form__submit.is-busy { animation: none; opacity: 0.7; }
}

/* ============================================================
   ПРАВОВЫЕ СТРАНИЦЫ (оферта, политика, cookie)

   Тексты длинные и читаются по диагонали: человек ищет один пункт, а не
   погружается в чтение. Поэтому колонка уже обычной, нумерованные заголовки
   держатся на виду, а списки не сливаются в стену. Буквицы, как в статьях
   блога, здесь неуместны – это документ, а не материал.
   ============================================================ */
.legal-page {
  padding: clamp(120px, 16vh, 180px) 0 clamp(72px, 10vh, 120px);
}

.legal { max-width: 780px; }

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 500;
  margin: 10px 0 28px;
  text-wrap: balance;
}

.legal__body {
  color: var(--ink-mid);
  font-size: 16px;
  line-height: 1.75;
}

.legal__body h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.legal__body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 10px;
}

.legal__body p { margin: 0 0 14px; }

.legal__body ul,
.legal__body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legal__body li { margin: 0; }

/* Номер пункта («1.1.») – опора для глаза при поиске нужного места. */
.legal__body strong { color: var(--ink); font-weight: 600; }

.legal__body a {
  color: var(--saffron-deep);
  text-underline-offset: 3px;
}
.legal__body a:hover { color: var(--ink); }

.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}
.legal__body th,
.legal__body td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal__body th { background: var(--paper); font-weight: 600; color: var(--ink); }

/* Широкая таблица не должна разъезжать страницу вбок на телефоне. */
.legal__body { overflow-x: auto; }

.theme-dark .legal__body { color: rgba(253, 252, 249, 0.72); }
.theme-dark .legal__body h2,
.theme-dark .legal__body h3,
.theme-dark .legal__body strong { color: var(--porcelain); }

/* ============================================================
   ПЛАШКА COOKIE

   Появляется снизу и не перекрывает содержимое: сайт можно читать, не отвечая.
   Ответ помним в localStorage, поэтому второй раз она не приходит.
   ============================================================ */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 16px 20px;
  background: var(--porcelain);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(39, 43, 57, 0.16);
  transform: translateY(140%);
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cookie-bar.is-shown { transform: translateY(0); }

/* Кнопка онлайн-записи yclients (страница консультаций). Виджет чужой: он вешает свою
   круглую кнопку прямо в body с z-index: 10000, а окно записи – с 10001, и про наши
   слои ничего не знает. Наши плашка согласия и мобильное меню живут на 60, поэтому
   зелёный круг ложился поверх них: на телефоне он закрывал правый край кнопки «Хорошо».

   Поднимать своё до его высоты нельзя – тогда шапка окажется НАД окном записи, и
   закрыть его будет нечем. Поэтому убираем кнопку с дороги, пока на экране плашка или
   раскрытое меню; оба состояния человек снимает одним касанием, и кнопка возвращается.

   Через :has() у body, а не соседним селектором: порядок этих трёх элементов в body
   зависит от того, чей скрипт доехал первым, и на него закладываться нельзя. */
body:has(.cookie-bar.is-shown) .yButton,
body:has(.site-header.menu-open) .yButton { display: none !important; }

.cookie-bar__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
}

.cookie-bar__text a { color: var(--saffron-deep); text-underline-offset: 3px; }
.cookie-bar__text a:hover { color: var(--ink); }

.cookie-bar__btn { flex: 0 0 auto; }

@media (max-width: 640px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-bar__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; }
}

/* Правовые ссылки в подвале: тише основного меню – их ищут осознанно, а не глазами. */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer__legal a {
  /* Ссылки правового блока – тот же случай, что подписи колонок: 0.45 давали 4.3. */
  color: rgba(253, 252, 249, 0.56);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--porcelain);
  border-bottom-color: rgba(253, 252, 249, 0.4);
}

/* Согласие в форме: обязательный чекбокс вместо фразы мелким шрифтом под кнопкой.
   Фраза ни к чему не обязывает и ничего не подтверждает – галочка фиксирует согласие. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

/*
 * Свой флажок.
 *
 * Системный подчинялся только accent-color: рамка, скругление и размер оставались от
 * операционной системы, и на тёмных страницах школы он светился белым квадратом среди
 * наших полей с чернильными рамками. Здесь тот же элемент – со своим оформлением.
 *
 * Это по-прежнему НАСТОЯЩИЙ <input type="checkbox">, а не выдумка из div-ов: за ним
 * остаются фокус, пробел, required и сообщение браузера при отправке. Мы забираем у
 * него только внешность.
 *
 * Галочка нарисована фоном, а не псевдоэлементом: у полей ввода псевдоэлементы
 * поддерживаются не везде одинаково. Она всегда на месте и лишь меняет размер – поэтому
 * появляется и исчезает плавно.
 */
.check,
.consent input[type="checkbox"],
.order__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  /* Пустой чекбокс – это рамка и ничего больше: заливка у него порцелановая, как фон. */
  border: 1px solid var(--field-line);
  border-radius: 3px;
  background-color: var(--porcelain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.7 9 10 3.3' fill='none' stroke='%23FDFCF9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0 0;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, background-size 0.18s ease;
}

.check:hover,
.consent input[type="checkbox"]:hover,
.order__consent input[type="checkbox"]:hover { border-color: var(--ink-soft); }

.check:checked,
.consent input[type="checkbox"]:checked,
.order__consent input[type="checkbox"]:checked {
  background-color: var(--saffron);
  border-color: var(--saffron);
  background-size: 12px 12px;
}

.check:focus-visible,
.consent input[type="checkbox"]:focus-visible,
.order__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

/* На тёмных страницах пустой флажок – провал в бумаге, а не белый квадрат. */
.theme-dark .check,
/* Рамку не переопределяем: она приходит из --field-line, как у полей ввода. При своих
   0.28 чекбокс давал 2.5 – меньше, чем поля рядом, хотя опознать его труднее всего. */
.theme-dark .consent input[type="checkbox"],
.theme-dark .order__consent input[type="checkbox"] {
  background-color: rgba(0, 0, 0, 0.28);
}
.theme-dark .check:hover,
.theme-dark .consent input[type="checkbox"]:hover,
.theme-dark .order__consent input[type="checkbox"]:hover { border-color: rgba(253, 252, 249, 0.55); }
.theme-dark .check:checked,
.theme-dark .consent input[type="checkbox"]:checked,
.theme-dark .order__consent input[type="checkbox"]:checked {
  background-color: var(--saffron);
  border-color: var(--saffron);
}

@media (prefers-reduced-motion: reduce) {
  .check,
  .consent input[type="checkbox"],
  .order__consent input[type="checkbox"] { transition: none; }
}

/*
 * Две ссылки в строке согласия: политика и оферта. Их нужно ВИДЕТЬ – это два разных
 * документа, и человек ставит одну галочку сразу за оба.
 *
 * В приложении подчёркивание рисовалось чернильной линией в 30% непрозрачности: на
 * тёмных страницах школы оно пропадало совсем, и обе ссылки читались как обычный текст.
 * На статических страницах, наоборот, они были шафранными без подчёркивания – две
 * разные манеры в одном и том же по смыслу месте.
 *
 * Теперь одинаково: буквы ярче окружающего текста плюс волосок под ними, при наведении
 * и с клавиатуры – шафран.
 */
.consent a,
.order__consent a {
  color: var(--ink);
  border-bottom: 1px solid rgba(39, 43, 57, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.consent a:hover,
.consent a:focus-visible,
.order__consent a:hover,
.order__consent a:focus-visible {
  color: var(--saffron-deep);
  border-bottom-color: var(--saffron);
}

/* Не отмеченная галочка после попытки отправки – подсвечиваем, иначе человек ищет,
   что не так, глазами по всей форме. */
/* Селектор требовал класс order-form, которого нет ни на одной форме сайта: подсветка
   не срабатывала никогда. Рядом стоящее правило для текстовых полей обходится без него. */
.form-tried .consent input:invalid,
.form-tried .order__consent input:invalid {
  border-color: var(--saffron);
  outline: 2px solid rgba(232, 100, 30, 0.35);
  outline-offset: 2px;
}

/* ============================================================
   ФОРМЫ ЗАЯВОК (бронь столика, аренда зала, реклама)

   Раньше на этих страницах была только кнопка «Написать в Telegram»: человек,
   которому неудобно писать в мессенджер, уходил ни с чем. Форма ставится ПЕРЕД
   блоком контактов – телефон и Telegram остаются рядом как запасной путь.
   ============================================================ */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin-bottom: 28px;
}

.lead-form .field { display: flex; flex-direction: column; gap: 6px; }

.lead-form__submit { align-self: flex-start; margin-top: 4px; }

.lead-form__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.lead-form__status.is-error {
  color: var(--saffron-deep);
  border-left: 2px solid var(--saffron);
  padding-left: 12px;
}

/* Экран после отправки: форма исчезает, остаётся ответ. */
.lead-form__done {
  max-width: 460px;
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(253, 252, 249, 0.6);
}

.lead-form__done-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.lead-form__done-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.lead-form__done-text a { color: var(--saffron-deep); text-underline-offset: 3px; }

.theme-dark .lead-form__done { background: rgba(39, 43, 57, 0.4); border-color: rgba(253, 252, 249, 0.14); }
.theme-dark .lead-form__done-title { color: var(--porcelain); }
.theme-dark .lead-form__done-text { color: rgba(253, 252, 249, 0.72); }

/* ============================================================
   СТРАНИЦА СОБЫТИЯ: описание из Битрикса, билеты, заметки

   Описание приходит готовой разметкой – с подзаголовками, списками, картинками и
   иногда видео. Прежний лендинг показывал вместо неё пару абзацев простого текста,
   поэтому правил для этой разметки в дизайне просто не было.
   ============================================================ */

/* Разметка внутри описания. Селекторы потомков – единственный способ достать до
   тегов, которые приходят из чужой системы и класса не имеют. */
.event-page__desc h2,
.event-page__desc h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 10px 0 -4px;
}

.event-page__desc p { margin: 0; }

.event-page__desc ul,
.event-page__desc ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-page__desc a { color: var(--saffron-deep); text-underline-offset: 3px; }
.event-page__desc a:hover { color: var(--ink); }

/* Картинки и видео внутри описания: ширину ограничиваем, иначе широкий снимок
   растягивает колонку и ломает сетку страницы. */
.event-page__desc img,
.event-page__desc iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 6px 0;
}

.event-page__desc iframe { aspect-ratio: 16 / 9; width: 100%; }

/* Строка-заметка: «событие прошло», «ближайшие занятия». Тише описания, но заметнее
   мелкого текста – это то, что человек должен прочесть до того, как решит идти. */
.event-page__note {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--saffron);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.event-page__note a { color: var(--saffron-deep); text-underline-offset: 3px; }
.event-page__note strong { color: var(--ink); font-weight: 600; }

/* Билеты. У события их бывает три – полная стоимость, по предоплате, для двоих, –
   поэтому список, а не одна цена. */
.event-tickets { margin: 0 0 30px; }

.event-tickets__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.event-tickets__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.event-tickets__item:last-child { border-bottom: none; }

.event-tickets__title { flex: 1 1 auto; font-size: 15.5px; color: var(--ink); }

.event-tickets__price {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Остаток показывается редко – только там, где его действительно считают. */
.event-tickets__left {
  flex: 0 0 auto;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .event-tickets__item { flex-wrap: wrap; gap: 4px 12px; }
  .event-tickets__title { flex-basis: 100%; }
}

/* ============================================================
   КАТАЛОГ ВЕДУЩИХ

   Карточка человека уже есть в дизайне (teacher-card) – здесь только то, чего в
   статических страницах не было: имя ссылкой, постраничность и приглушённые карточки
   прошедших занятий.
   ============================================================ */
.teacher-card__name a { color: inherit; text-decoration: none; }
.teacher-card__name a:hover { color: var(--saffron-deep); }

.teacher-card__media { display: block; }

/* Постраничность каталога: людей больше пятисот, одной лентой это не листается. */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vh, 44px);
}

.pager__count {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Прошедшее занятие на странице ведущего: тише, чем ближайшие, но читается. */
.event-card--past { opacity: 0.72; }
.event-card--past:hover { opacity: 1; }

/* ---------- Отбор в афише ---------- */

.filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(28px, 4vh, 44px);
  padding-bottom: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid var(--line);
}

.filters__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Подпись строки фиксированной ширины: «где», «тема», «формат» встают в столбик,
   и глаз находит нужную строку, не перечитывая варианты. */
.filters__label {
  flex: 0 0 auto;
  width: 72px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-chip:hover {
  background: rgba(39, 43, 57, 0.06);
}
.filter-chip.is-on {
  color: var(--porcelain);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.filter-chip__count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.filter-chip.is-on .filter-chip__count { color: rgba(253, 252, 249, 0.6); }

.filters__search,
.filters__dates {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters__search input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--field-line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(253, 252, 249, 0.6);
}
.filters__search input[type="search"]:focus {
  outline: none;
  border-color: var(--ink);
}

.filters__dates label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Поле периода: то же самое и для родного поля даты (пока не запустились скрипты),
   и для своего календаря, который встаёт на его место. */
.filters__dates .picker { width: 148px; }
.filters__dates .picker__button { width: 32px; }
.filters__dates .picker__value { padding: 9px 34px 9px 12px; font-size: 13px; }

.filters__dates input[type="date"],
.filters__dates .picker__value {
  padding: 9px 12px;
  border: 1px solid var(--field-line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: rgba(253, 252, 249, 0.6);
}

/* Кнопки в строке отбора – не такие громкие, как призывы на странице. */
.filters .btn { padding: 12px 22px; font-size: 12px; }

.filters__found {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}
.filters__found strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.filters__empty {
  margin: clamp(24px, 4vh, 40px) 0;
}

/* Сколько ещё раз пройдёт – приписка к дате, а не отдельная строка. */
.event-card__repeat { color: var(--ink-soft); }

@media (max-width: 720px) {
  .filters__label {
    width: 100%;
    margin-bottom: -4px;
  }
  .filters__dates { width: 100%; }
  .filters__dates .btn { flex: 1 1 auto; }
}

/* Вариант, который в текущем отборе ничего не даст: виден, но не зовёт нажать. */
.filter-chip.is-off {
  color: rgba(39, 43, 57, 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}
.filter-chip.is-off .filter-chip__count { color: rgba(39, 43, 57, 0.3); }

/* ---------- Покупка билетов ---------- */

/* Отступ сверху нужен, когда заявка идёт ЗА содержимым – списком билетов, рассказом о
   курсе. Когда она первая в разделе, он ложится поверх отступа самого раздела: на
   странице сотрудничества между рассказом и первой формой набиралось 140 пикселей
   пустоты вместо обычных для сайта 100. */
.order:first-child { margin-top: 0; }

.order {
  margin-top: clamp(28px, 4vh, 44px);
  padding: clamp(20px, 3vw, 32px);
  background: rgba(253, 252, 249, 0.5);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 2px;
}

.order__tickets {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Подсветка «выбирать здесь»: включается на пару секунд, когда человек нажал «Оформить»,
   не выбрав билет. Прокрутка к списку сама по себе не объясняет, ЧТО именно от него
   хотят – страница просто уезжает, и на ней всё выглядит как прежде.
   Через box-shadow, а не border: рамка сдвинула бы содержимое на два пикселя. */
.order__tickets--ask {
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--saffron-deep);
  animation: ticket-ask 2.2s ease-out;
}

@keyframes ticket-ask {
  0%, 60% { box-shadow: 0 0 0 2px var(--saffron-deep); }
  100% { box-shadow: 0 0 0 2px rgba(198, 79, 14, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .order__tickets--ask { animation: none; }
}

.order__ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order__ticket:last-child { border-bottom: none; }

.order__ticket-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.order__ticket-title { font-size: 15px; }
.order__ticket-price {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.order__ticket-left {
  grid-column: 1;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Счётчик: три равные клетки, чтобы цифра не прыгала при 9 → 10. */
.order__counter {
  grid-row: span 2;
  display: inline-grid;
  grid-template-columns: 34px 40px 34px;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border-radius: 2px;
}
.order__counter button {
  height: 34px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  background: none;
}
.order__counter button:hover { background: rgba(39, 43, 57, 0.06); }
.order__counter span { font-variant-numeric: tabular-nums; }

/*
 * Шапка заявки.
 *
 * Раньше название стояло мелкими оранжевыми прописными – той же строкой, какой на
 * сайте подписывают полоски с фактами. Форм на странице две, и обе для РАЗНЫХ людей:
 * одна для поставщика чая, другая для ведущего. Двумя одинаковыми серыми
 * прямоугольниками они не различались вовсе, а подпись под названием липла к первому
 * полю – между рассказом и вопросом не было воздуха.
 */
.order__head {
  padding-bottom: 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.order__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
}

.order__lead {
  max-width: 60ch;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/*
 * Выбор карточками вместо системного списка.
 *
 * Вариантов два-три, и это главный вопрос формы – с него человек начинает. Список
 * показывал вместо ответа слово «Выберите», требовал нажатия, чтобы просто увидеть
 * варианты, и выглядел деталью чужого интерфейса среди наших полей: у дат и времени
 * на сайте давно свои.
 */
.pick {
  margin-top: 22px;
  padding: 0;
  border: 0;
}

.pick__legend {
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pick__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pick__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--porcelain);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pick__opt:hover { border-color: var(--ink-soft); }
.pick__opt.is-on {
  border-color: var(--saffron);
  background: rgba(232, 100, 30, 0.07);
}
.pick__opt input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--saffron);
  cursor: pointer;
}

.order__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

/*
 * «Когда»: день и промежуток времени одной строкой.
 *
 * Это один ответ на один вопрос, а стоял он в двух разных рядах – время выше, дата
 * ниже и вдобавок рядом с названием мероприятия. Собирать ответ глазами обратно
 * приходилось человеку.
 */
.order__when {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

/* Контакты – три коротких поля в ряд. В два столбца третье оставалось сиротой:
   половина строки под телефон и половина пустоты рядом. Столбцы считает сама сетка:
   на узком экране их станет два, потом один, и отдельных правил для этого не нужно. */
.order__fields--three { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.order__group { margin-top: 26px; }

.order__group-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.order__group .order__fields { margin-top: 10px; }

.order__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.order__field--wide { grid-column: 1 / -1; }

/* Подпись слева, счётчик знаков справа – по верхнему краю поля. */
.order__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.order__count {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--saffron-deep);
}
/* Порог взят – счётчик перестаёт требовать и просто показывает, сколько написано. */
.order__count.is-ok { color: var(--ink-soft); }

.order__field input,
.order__field select {
  padding: 13px 14px;
  border: 1px solid var(--field-line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--porcelain);
}
.order__field input:focus,
.order__field select:focus {
  outline: none;
  border-color: var(--ink);
}

.order__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
/* Оформление флажка и ссылок внутри согласия – в общих правилах выше (.check и
   `.consent a, .order__consent a`): они одинаковы во всех формах сайта, и в приложении,
   и на статических страницах. */

.order__rules {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Заметка о том, чего в заявку класть не нужно. Отбита линейкой: иначе она читается
   как ещё одна строка формы и теряется между полями и согласием. */
.order__note {
  margin-top: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--saffron);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.order__error {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--saffron-deep);
  box-shadow: inset 0 0 0 1px rgba(232, 100, 30, 0.4);
  border-radius: 2px;
}

.order__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Что будет после нажатия. Не заглавным шрифтом: в форме билетов на этом месте стоит
   сумма заказа, и крупная строка там уместна – здесь она просто спорила с кнопкой. */
.order__promise {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.order__total {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-variant-numeric: tabular-nums;
}

.order__done {
  margin: 12px 0 18px;
  font-size: 16px;
}

@media (max-width: 640px) {
  .order__fields,
  .order__fields--three { grid-template-columns: minmax(0, 1fr); }
  .order__foot .btn { flex: 1 1 auto; }
}

/* ---------- Запись на курс школы ---------- */

/* Поле-ловушка для роботов: человек его не видит и не встретит табом. */
.lead-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.order__tariffs { margin: 16px 0 4px; }

/* Тарифы рисовались для тёмной страницы записи (order.html был theme-dark).
   Внутри светлого блока записи возвращаем им чернильную палитру – иначе рамка
   и подсветка выбранного просто не видны на бумаге. */
.order .tariff {
  border-color: var(--line-strong);
  border-radius: 2px;
}
.order .tariff:hover { border-color: var(--ink-soft); }
.order .tariff:has(input:checked) {
  border-color: var(--saffron);
  background: rgba(232, 100, 30, 0.08);
}
.order .tariff__name { color: var(--ink); }
.order .tariff__price {
  margin-left: auto;
  color: var(--ink-soft);
  white-space: nowrap;
}

/*
 * Подсказка о том, что ждут в ответе, живёт В САМОМ поле.
 *
 * Раньше она стояла строкой под полем – и оказывалась вплотную к подписи следующего:
 * «Оборудование, расстановка зала, время на подготовку» читалось как пояснение к
 * «Условиям для участников», стоявшим ниже. В пустом поле подсказка стоит там, где
 * человек и пишет ответ, и ни с чем не путается.
 */
.order__field input::placeholder,
.order__fields textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.75;
}

.order__fields textarea {
  padding: 13px 14px;
  border: 1px solid var(--field-line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--porcelain);
  resize: vertical;
}
.order__fields textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* Формы «Сотрудничества» идут одна за другой – между ними нужен воздух. */
.order + .order { margin-top: clamp(32px, 5vh, 56px); }

/* ---------- Отзывы: снимки, а не тексты ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.reviews-grid__item {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--card, rgba(253, 252, 249, 0.5));
}
.reviews-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.4s ease;
}
.reviews-grid__item:hover img { transform: scale(1.04); }

@media (max-width: 520px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Блок записи на тёмной странице ---------- */

/* Оформление заявки писалось для светлых страниц – событий и кафе. На страницах Школы
   Таро фон тёмный, и светлая полупрозрачная панель с чернильным текстом давала контраст
   1.8: подписи полей, согласие и цены тарифов читались с трудом. Здесь тот же блок в
   тёмной палитре. */
.theme-dark .order {
  background: rgba(253, 252, 249, 0.04);
  box-shadow: inset 0 0 0 1px rgba(253, 252, 249, 0.14);
}

.theme-dark .order__rules,
.theme-dark .order__lead,
.theme-dark .order__note,
.theme-dark .order__promise,
.theme-dark .order__consent { color: rgba(253, 252, 249, 0.68); }

/* Сама обёртка, а не только подпись внутри: она задаёт цвет по наследству, и всё,
   что в поле добавят потом, иначе достанется чернильным от светлой формы. */
.theme-dark .order__field,
.theme-dark .order__field span,
.theme-dark .pick__legend { color: rgba(253, 252, 249, 0.6); }
.theme-dark .order__count.is-ok { color: rgba(253, 252, 249, 0.6); }

.theme-dark .order__title,
.theme-dark .order__group-label,
.theme-dark .order__total,
.theme-dark .order__done { color: #E7E5DF; }

.theme-dark .order__head,
.theme-dark .order__foot { border-color: rgba(253, 252, 249, 0.14); }

.theme-dark .pick__opt {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(253, 252, 249, 0.22);
  color: #E7E5DF;
}
.theme-dark .pick__opt:hover { border-color: rgba(253, 252, 249, 0.44); }
.theme-dark .pick__opt.is-on {
  border-color: rgba(232, 100, 30, 0.6);
  background: rgba(232, 100, 30, 0.07);
}

.theme-dark .order__field input,
.theme-dark .order__field select,
.theme-dark .order__fields textarea {
  background: rgba(0, 0, 0, 0.28);
  color: #E7E5DF;
}
.theme-dark .order__field input:focus,
.theme-dark .order__field select:focus,
.theme-dark .order__fields textarea:focus { border-color: rgba(253, 252, 249, 0.6); }

/* Тёмного правила у подсказок не было вовсе: на страницах курсов они доставались
   чернильными от светлой формы и давали к заливке 2.9. */
.theme-dark .order__field input::placeholder,
.theme-dark .order__fields textarea::placeholder { color: rgba(231, 229, 223, 0.58); }

/* Тарифы возвращаются к своей исходной, тёмной палитре: светлые правила выше писались
   для формы на бумаге. */
.theme-dark .order .tariff { border-color: rgba(253, 252, 249, 0.16); }
.theme-dark .order .tariff:hover { border-color: rgba(253, 252, 249, 0.34); }
.theme-dark .order .tariff:has(input:checked) {
  border-color: rgba(232, 100, 30, 0.6);
  background: rgba(232, 100, 30, 0.07);
}
.theme-dark .order .tariff__name { color: #E7E5DF; }
.theme-dark .order .tariff__price { color: rgba(253, 252, 249, 0.65); }

.theme-dark .order__error {
  color: #F0A88A;
  box-shadow: inset 0 0 0 1px rgba(240, 168, 138, 0.45);
}

/* ---------- Мелкий текст на тёмном: доводка контраста ---------- */

/* Замер по всем страницам показал четыре подписи ниже нормы. Все мелкие и разряженные –
   то есть именно те, где недобор контраста читается тяжелее всего. Цифры до правки:
   «листайте вниз» 2.68, «Набор закрыт» 3.69, подпись группы 4.3, надзаголовок 4.41. */
.theme-dark .scrolldown__text { color: rgba(253, 252, 249, 0.62); }
.theme-dark .scrolldown:hover .scrolldown__text { color: #F5F3ED; }
.theme-dark .chip--closed {
  color: rgba(253, 252, 249, 0.62);
  box-shadow: inset 0 0 0 1px rgba(253, 252, 249, 0.28);
}
.theme-dark .course-row__date span { color: rgba(253, 252, 249, 0.62); }
.theme-dark .eyebrow { color: #F08A4B; }

/* ---------- Тёмные страницы школы: остатки недобора контраста ---------- */

/* Замер на месте (внутри самой тёмной страницы) нашёл шесть подписей ниже нормы.
   Все – мелкий текст пониженной яркости: на бумаге такие оттенки читаются, на
   тёмном фоне 0.45 прозрачности дают 4.1–4.3 при нужных 4.5. */
.theme-dark .lesson__subhead,
.theme-dark .course-page__note,
.theme-dark .course-page__pay { color: rgba(253, 252, 249, 0.62); }

/* Надпись «Старт», «Расписание», «О колоде» – шафран поглубже на тёмном теряется. */
.theme-dark .info-strip__label { color: #F08A4B; }

/* Перечисления «кому подойдёт» и учебный план. */
.theme-dark .manifest__list { color: rgba(253, 252, 249, 0.78); }

/* Лента направлений и плитки каталога программ. */
.theme-dark .deck-marquee span,
.theme-dark .program-chip { color: rgba(253, 252, 249, 0.82); }

/* Вводный абзац в тёмном блоке. На главной блок Школы Таро – «окно в ночную часть
   сайта», и чернильно-серый текст там даёт 2.68: цвет писался для бумаги. */
.theme-dark .page-head__lead { color: rgba(253, 252, 249, 0.72); }

/* Согласие рядом с формой: на светлых страницах чернильно-серое, на тёмных – светлое.
   Раньше цвет был один, и на тёмной странице консультаций строка почти пропадала. */
.theme-dark .consent { color: rgba(231, 229, 223, 0.68); }
.theme-dark .consent a,
.theme-dark .order__consent a {
  color: #F0EEE8;
  border-bottom-color: rgba(253, 252, 249, 0.42);
}
.theme-dark .consent a:hover,
.theme-dark .consent a:focus-visible,
.theme-dark .order__consent a:hover,
.theme-dark .order__consent a:focus-visible {
  color: #fff;
  border-bottom-color: var(--saffron);
}

/* Мелкие подписи на тёмной странице консультаций: 4.12 и 4.41 при нужных 4.5. */
.theme-dark .chip--open { color: #F08A4B; box-shadow: inset 0 0 0 1px rgba(240, 138, 75, 0.5); }
.theme-dark .topic-card__title { color: rgba(231, 229, 223, 0.92); }

/* ============================================================
   Свои календарь и часы вместо браузерных
   ------------------------------------------------------------
   Календарь и барабан времени рисует сам браузер – своим шрифтом, своей рамкой и
   своим синим, у каждой системы разным. В форме, где всё остальное сделано тушью на
   фарфоре, это выглядит вставкой с другого сайта. Разметку полей не трогаем: внутри
   .field и .order__field лежит обычный input, поэтому рамка, отступы и тёмная тема
   достаются от них.
   ============================================================ */

.picker { position: relative; display: block; }

.picker .picker__value { width: 100%; padding-right: 42px; cursor: pointer; }

.picker__button {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}
.picker__button:hover { color: var(--ink); }

.picker__pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  padding: 14px;
  border-radius: 2px;
  background: var(--porcelain);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px rgba(39, 43, 57, 0.16);
  /* Подписи полей набраны прописными вразрядку – окошку это наследовать нельзя. */
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

/* На узком экране поля даты и времени стоят парой, и сорок пикселей под значок
   съедали место у самой даты – «31.08.2026» обрезалось на середине. */
@media (max-width: 560px) {
  .picker .picker__value { padding-left: 12px; padding-right: 34px; }
  .picker__button { width: 32px; }
}

/* Вынесенное окошко живёт в конце документа и ставится по координатам экрана: внутри
   прокручиваемой панели обычное окошко обрезалось её краями. Координаты задаёт placeFixed. */
.picker__pop--fixed { position: fixed; top: 0; left: 0; z-index: 70; }

.picker__pop--up { top: auto; bottom: calc(100% + 6px); }
.picker__pop--right { left: auto; right: 0; }

/* ---------- Календарь ---------- */

.cal { width: min(292px, calc(100vw - 40px)); }

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cal__title {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}

.cal__nav {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cal__nav:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.cal__nav:disabled { opacity: 0.25; cursor: default; }

.cal__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  padding-top: 6px;
}

/*
 * Заголовок календаря – кнопка: он раскрывает уровень выше (дни → месяцы → годы).
 * Дню рождения одних месячных стрелок мало, до сорокового года их пришлось бы нажать
 * почти пятьсот раз.
 */
.cal__title--btn {
  background: none;
  border: 0;
  padding: 2px 8px;
  border-radius: 2px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.cal__title--btn:hover { background: rgba(39, 43, 57, 0.06); }

/* Месяцы и годы: три ряда по четыре – дюжина укладывается в ту же ширину, что и дни. */
.cal__choice {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-top: 8px;
}

.cal__choice-item {
  padding: 12px 4px;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.cal__choice-item:hover:not(:disabled) { background: rgba(39, 43, 57, 0.06); }
.cal__choice-item.is-picked { border-color: var(--saffron); color: var(--saffron-deep); }
.cal__choice-item:disabled { opacity: 0.3; cursor: default; }

.theme-dark .cal__title--btn:hover { background: rgba(253, 252, 249, 0.08); }
.theme-dark .cal__choice-item { color: #E7E5DF; }
.theme-dark .cal__choice-item:hover:not(:disabled) { background: rgba(253, 252, 249, 0.08); }

.cal__day {
  position: relative;
  height: 34px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cal__day:hover:not(:disabled) { background: var(--paper); }
/* Дни соседнего месяца бледнее, но не бледнее нормы: они кликабельны, и 1 сентября
   в хвосте августа человек выбирает так же часто, как 31 августа. */
.cal__day.is-outside { color: rgba(39, 43, 57, 0.65); }
.cal__day:disabled { color: rgba(39, 43, 57, 0.22); cursor: default; }
.cal__day.is-picked { background: var(--ink); color: var(--porcelain); }

/* Сегодняшний день помечаем точкой, а не цветом цифры: шафран на фарфоре не добирает
   контраста для мелкого текста, и день читался бы хуже соседних. */
.cal__day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--saffron);
}
.cal__day.is-picked.is-today::after { background: var(--porcelain); }

.cal__foot {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cal__quick {
  padding: 6px 12px;
  border: 0;
  border-radius: 2px;
  background: var(--paper);
  font: inherit;
  font-size: 13px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cal__quick:hover { background: var(--ink); color: var(--porcelain); }

/* ---------- Часы ---------- */

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: min(212px, calc(100vw - 40px));
  max-height: 236px;
  overflow-y: auto;
  padding: 8px;
}

.slot {
  padding: 8px 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.slot:hover { background: var(--paper); }
.slot.is-picked { background: var(--ink); color: var(--porcelain); }

/* ---------- Тёмные страницы ---------- */

.theme-dark .picker__pop {
  background: #26282B;
  color: #E7E5DF;
  box-shadow: inset 0 0 0 1px rgba(253, 252, 249, 0.16), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.theme-dark .picker__button { color: rgba(231, 229, 223, 0.6); }
.theme-dark .picker__button:hover { color: #E7E5DF; }
.theme-dark .cal__week,
.theme-dark .cal__nav { color: rgba(231, 229, 223, 0.6); }
.theme-dark .cal__week { border-bottom-color: rgba(253, 252, 249, 0.14); }
.theme-dark .cal__foot { border-top-color: rgba(253, 252, 249, 0.14); }
.theme-dark .cal__day,
.theme-dark .slot { color: #E7E5DF; }
.theme-dark .cal__day:hover:not(:disabled),
.theme-dark .cal__nav:hover:not(:disabled),
.theme-dark .slot:hover { background: rgba(253, 252, 249, 0.1); }
.theme-dark .cal__day.is-outside { color: rgba(231, 229, 223, 0.62); }
.theme-dark .cal__day:disabled { color: rgba(231, 229, 223, 0.22); }
.theme-dark .cal__day.is-picked,
.theme-dark .slot.is-picked { background: #E7E5DF; color: #26282B; }
.theme-dark .cal__quick { background: rgba(253, 252, 249, 0.1); color: #E7E5DF; }
.theme-dark .cal__quick:hover { background: #E7E5DF; color: #26282B; }

/* ============================================================
   Заявка на аренду зала: бланк в два столбца
   ------------------------------------------------------------
   Было: заголовок с абзацем слева, семь полей в один столбик справа – левая
   колонка кончалась через двести пикселей, а форма шла ещё восемьсот, и между
   ними висела пустота. Пустота на этом сайте – приём, но приём требует, чтобы её
   держали: здесь держать было нечем.
   Стало: левый столбец получил содержание (факты о залах и способы связаться
   голосом), а форма сложилась вдвое – короткие значения встали парами.
   ============================================================ */

.book {
  background: #fff;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.book__aside { position: sticky; top: 110px; }

.book__facts {
  display: grid;
  gap: 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.book__contacts {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.book__contacts-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.book__link {
  font-size: 16px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.book__link:hover { color: var(--saffron-deep); }

/* У формы заявки на статических страницах стоит своя предельная ширина – в бланке
   она лишняя: столбец и так задан сеткой, а лимит оставлял справа мёртвую полосу. */
.book__form { max-width: none; }

.book__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
/* Отступ снизу поля мешает сетке: расстояние между рядами задаёт gap. */
.book__grid .field { margin-bottom: 0; }
.book__grid .field--wide { grid-column: 1 / -1; }

.book__pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Рассказ о мероприятии – в три строки, тянется вниз, но не вширь: горизонтальная
   растяжка ломала бы сетку бланка. */
.book__grid textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.book .consent { margin-top: 22px; }
/* Кнопка во всю ширину бланка: она закрывает форму, и её край должен совпасть с
   краем полей – иначе бланк кончается ничем. */
.book .lead-form__submit { align-self: stretch; margin-top: 16px; }

@media (max-width: 1000px) {
  .book { grid-template-columns: 1fr; gap: 36px; }
  .book__aside { position: static; }
}

@media (max-width: 560px) {
  /* В один столбец – кроме даты со временем: значения короткие, и разводить их
     по разным строкам значит растянуть бланк без пользы. Дате даём больше:
     «31.08.2026» длиннее, чем «19:00». */
  .book__grid { grid-template-columns: 1fr; }
  .book__pair { grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
  .book__facts { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ============================================================
   Обязательные поля и выключенная кнопка отправки
   ------------------------------------------------------------
   Кнопка выключена «по сути», а не атрибутом disabled: Chrome не шлёт выключенным
   полям события мыши, и на настоящей disabled-кнопке не срабатывают ни :hover, ни
   title – объяснить причину было бы нечем. Поэтому она помечена aria-disabled,
   отправку не делает, но остаётся наводимой и достижимой с клавиатуры.
   ============================================================ */

.req { color: var(--saffron-deep); }
.theme-dark .req { color: var(--saffron); }

.why-wrap {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
}
.why-wrap > .btn { width: 100%; }

/* В бланке аренды кнопка идёт по краю полей – обёртка тянется вместе с ней. */
.book .why-wrap { align-self: stretch; }

.btn.is-off,
.btn.is-off:hover {
  background: #E6E3DC;
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
/* Мазок под кнопкой – украшение действия; у выключенной его быть не должно. */
.btn.is-off::before { opacity: 0; }

.theme-dark .btn.is-off,
.theme-dark .btn.is-off:hover {
  background: rgba(253, 252, 249, 0.14);
  color: rgba(231, 229, 223, 0.65);
}

/* Подсказка висит ПОД кнопкой, а не над ней: сверху стоит согласие, о котором она
   как раз и напоминает, и закрывать его собой было бы издевательством. */
/* ---------- Сертификационная программа ---------- */

.cert {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.cert:first-child { padding-top: 0; margin-top: 0; border-top: 0; }

.cert__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
}

.cert__text {
  max-width: 68ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mid);
}

.cert__label {
  margin-top: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cert__label + .club-card__perks { margin-top: 12px; max-width: 68ch; }

/*
 * Раздел школы идёт в тёмной палитре, а цвета выше – чернильные, для бумаги. На тёмном
 * фоне (яркость 32) заголовок разделов давал яркость 43, текст – 64: буквы почти
 * сливались с фоном. Здесь та же вёрстка в тёмных цветах.
 */
.theme-dark .cert { border-top-color: rgba(253, 252, 249, 0.14); }
.theme-dark .cert__title { color: #F3F1EB; }
.theme-dark .cert__text { color: rgba(253, 252, 249, 0.72); }
.theme-dark .cert__label { color: rgba(253, 252, 249, 0.5); }
.theme-dark .club-card__perks { color: rgba(253, 252, 249, 0.72); }
/* Подпись под каталогом программ: класс родом со светлых страниц кафе и рекламы,
   там он чернильный. В школе фон тёмный – без этого контраст падал до 2.7. */
.theme-dark .menu-links__note { color: rgba(253, 252, 249, 0.68); }

/* ---------- Поиск по сайту ---------- */

.search-form {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  max-width: 560px;
}

.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--porcelain);
}
.search-form input:focus { outline: none; border-color: var(--ink); }
.search-form input::placeholder { color: var(--ink-soft); opacity: 0.75; }

/*
 * Находки строками, а не карточками: в выдаче человек сравнивает названия и даты, и
 * ровный столбец читается быстрее сетки картинок. Обложки тут только мешали бы – их
 * два десятка, и все разные по яркости.
 */
.found { border-top: 1px solid var(--line); }

.found__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 0.7fr) auto;
  gap: 10px 24px;
  align-items: baseline;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}
.found__row:hover { background: rgba(39, 43, 57, 0.04); }

.found__when {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.found__past {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.found__name { font-size: 16.5px; color: var(--ink); }
.found__aside { font-size: 13.5px; color: var(--ink-soft); }
.found__price { font-size: 14px; color: var(--ink-mid); white-space: nowrap; }

@media (max-width: 900px) {
  .found__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
  .search-form { flex-direction: column; }
}

/* ---------- Клубная карта ---------- */

.club-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.club-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--porcelain);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 2px;
}
/* Золотую отмечаем шафраном – она дальняя цель, и по ней видно, куда копить. */
.club-card--best { box-shadow: inset 0 0 0 1px var(--saffron); }

.club-card__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.club-card__name {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}
.club-card--best .club-card__name { color: var(--saffron-deep); }

.club-card__how {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.club-card__perks {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-mid);
}
/* Метка вместо маркера: общий сброс обнулил отступы, а с ней строка не «висит». */
.club-card__perks li {
  position: relative;
  padding-left: 20px;
}
.club-card__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--saffron);
}

/* ---------- Подсказки ---------- */

/*
 * Своя подсказка вместо системной.
 *
 * Системная приходит из операционной системы: серый ярлычок чужого вида, появляется
 * через секунду с лишним и не поддаётся оформлению. На иконках подвала и шапки она была
 * единственным способом узнать, куда ведёт кружок со значком, – и выглядела деталью
 * другого интерфейса.
 *
 * Никаких скриптов: содержимое берётся из атрибута data-tip, показ – по наведению и по
 * фокусу с клавиатуры. Поэтому подсказка одинаково работает и в приложении, и на
 * статических страницах.
 *
 * Имя для экранной читалки живёт в aria-label и остаётся при элементе: подсказка – это
 * то, что ВИДНО, а не то, что читается вслух.
 */
[data-tip] { position: relative; }

[data-tip]::before,
[data-tip]::after {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 40;
  width: max-content;
  max-width: min(260px, 68vw);
  padding: 7px 11px;
  border-radius: 2px;
  background: var(--saffron);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  white-space: normal;
  box-shadow: 0 10px 24px -12px rgba(39, 43, 57, 0.55);
  transform: translate(-50%, -5px);
}

/* Уголок к подсказке: без него ярлычок висит сам по себе и не показывает, к чему он. */
[data-tip]::before {
  content: "";
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  z-index: 40;
  border: 5px solid transparent;
  border-bottom-color: var(--saffron);
  transform: translate(-50%, -5px);
}

[data-tip]:hover::before,
[data-tip]:hover::after,
[data-tip]:focus-visible::before,
[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* У края экрана подсказку прижимаем к своему краю, иначе она уезжает за границу окна. */
[data-tip][data-tip-align="end"]::after { left: auto; right: 0; transform: translate(0, -5px); }
[data-tip][data-tip-align="end"]:hover::after,
[data-tip][data-tip-align="end"]:focus-visible::after { transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) {
  [data-tip]::before,
  [data-tip]::after { transition: none; }
}

.why {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  width: max-content;
  max-width: min(340px, 92vw);
  padding: 10px 14px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--porcelain);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  box-shadow: 0 12px 30px rgba(39, 43, 57, 0.22);
}
.why[hidden] { display: none; }

.why::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 24px;
  border: 6px solid transparent;
  border-bottom-color: var(--ink);
}

.theme-dark .why { background: #E7E5DF; color: #26282B; }
.theme-dark .why::after { border-bottom-color: #E7E5DF; }

/* ============================================================
   Отклик на вакансию: две двери
   ------------------------------------------------------------
   Было: два адреса подряд и общая кнопка «Отправить резюме». Кнопка вела в почту
   культурного центра, хотя пять вакансий из шести – магазин: соискатель продавца
   писал не туда. Стало: у каждого отдела своя строка со своим адресом и своей темой
   письма, общей кнопки нет – ошибиться ящиком нечем.
   Строки живут в том же ритме, что список вакансий выше: волосяная линия, наезд
   вправо при наведении, стрелка. Один язык на всю страницу.
   ============================================================ */

.doors { border-top: 1px solid var(--line); }

.door {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 2px 20px;
  padding: 20px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.door:hover { background: #fff; padding-left: 24px; }

.door__name {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.15;
  color: var(--ink);
}

.door__what {
  grid-column: 1;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Адрес – подпись к двери, а не заголовок: цифровой ящик центра плохо читается и
   ничего не объясняет, поэтому стоит последним и тише названия отдела. */
.door__mail {
  grid-column: 1;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--saffron-deep);
  word-break: break-word;
}

.door__arrow {
  grid-column: 2;
  grid-row: 1 / -1;
  color: var(--ink-soft);
  transition: transform 0.3s ease, color 0.3s ease;
}
.door:hover .door__arrow { transform: translateX(4px); color: var(--ink); }

.doors__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .door,
  .door__arrow { transition: none; }
  .door:hover { padding-left: 14px; }
  .door:hover .door__arrow { transform: none; }
}

/* ============================================================
   Контакты Школы Таро: способы связи строками
   ------------------------------------------------------------
   Было: столбик из трёх ссылок и кнопка. Номер напечатан дважды – сам по себе и внутри
   «WhatsApp, Telegram: …», – и это читалось как два разных контакта; при этом ссылка
   вела только в Telegram. Стало: строка = один способ связи со своим адресом, теми же
   строками, что «двери» отклика на вакансию. Язык на весь сайт один.
   ============================================================ */

.taro-contacts__card.school {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.school__cta { margin-top: 22px; }

@media (max-width: 1000px) {
  .taro-contacts__card.school { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- «Двери» на тёмной карточке ---------- */

.theme-dark .doors { border-top-color: rgba(253, 252, 249, 0.14); }
/* Волосяные линии и подписи фактов на тёмной карточке: чернильные токены здесь
   невидимы – линия сливается с фоном, а пояснение под числом становится нечитаемым. */
.theme-dark .book__facts { border-top-color: rgba(253, 252, 249, 0.14); }
.theme-dark .info-strip__value span { color: rgba(253, 252, 249, 0.62); }
.theme-dark .door { border-bottom-color: rgba(253, 252, 249, 0.14); }
.theme-dark .door:hover { background: rgba(253, 252, 249, 0.06); }
.theme-dark .door__name { color: #F3F1EB; }
.theme-dark .door__what { color: rgba(253, 252, 249, 0.62); }
/* На тёмном шафран берём светлее самого шафрана: и густой (--saffron-deep), и обычный
   на почти чёрном не добирают до нормы (4.41 при нужных 4.5) – адрес пришлось бы
   разглядывать. Замерено на странице, а не на глаз. */
.theme-dark .door__mail { color: #F08A4B; }
.theme-dark .door__arrow { color: rgba(253, 252, 249, 0.6); }
.theme-dark .door:hover .door__arrow { color: #F3F1EB; }
.theme-dark .doors__note { color: rgba(253, 252, 249, 0.62); }

.school__facts { margin-top: 26px; padding-top: 22px; }

/* Форма брони внутри бланка: своя рамка и подложка ей больше не нужны – она и так
   стоит в белой карточке, а коробка в коробке читается как чужая вставка. */
.book .order {
  margin-top: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
/* Подпись и кнопка в бланке идут столбиком: в ряд они помещались впритык, кнопка
   упиралась в край столбца, а обещание «перезвоним и подтвердим» жалось к ней вплотную.
   Кнопка во всю ширину – как в остальных бланках. */
.book .order__foot {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 22px;
}
.book .order__foot .btn { width: 100%; }
.book .order__total { font-size: clamp(18px, 2.2vw, 22px); }
.book .order__fields { margin-top: 0; }

/* «Когда и на сколько» – одна строка на три поля: дата, время и число гостей отвечают
   на один вопрос, и разводить их по разным рядам значит растягивать форму без пользы.
   Значения короткие, поэтому строка держится и на узком экране. */
.order__trio {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 14px;
}

@media (max-width: 560px) {
  /* На телефоне тройка не помещается: дата с временем остаются парой, гости уходят
     на свою строку – так ни одно значение не обрезается. */
  .order__trio { grid-template-columns: 1.15fr 0.85fr; }
  .order__trio > :last-child { grid-column: 1 / -1; }
}

/* ============================================================
   Отбор афиши: панель, выезжающая слева
   ------------------------------------------------------------
   Отбор занимал четыре строки над списком и отодвигал сами события вниз. Теперь он
   за кнопкой: панель выезжает слева, страница под ней не едет, закрывается по клику
   мимо, по Escape и по крестику. Разметка внутри та же – панель только оборачивает.
   ============================================================ */

/* Строка над списком: отбор слева, поиск справа. Отступ снизу теперь у строки, а не
   у кнопки – иначе поиск и кнопка расходились бы по вертикали. */
.events-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
/* Поиск занимает всю ширину, оставшуюся от кнопки отбора: строка над списком идёт во
   всю ширину раздела, и обрывать поле на середине незачем. */
.events-bar__search { flex: 1 1 auto; min-width: 0; }

@media (max-width: 700px) {
  .events-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .events-bar__search { flex: 1 1 auto; }
}

.fdrawer__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.fdrawer__toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }

/* Сколько условий включено – видно, не открывая панель. */
.fdrawer__count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--saffron);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--porcelain);
}

/* Пока панель открыта, страница под ней стоит. Запрет на корневом элементе, а не на
   body: прокручивается именно он. Отступ на ширину исчезнувшей полосы прокрутки держит
   страницу и шапку на месте – без него они прыгали бы вбок в момент открытия. */
html.is-locked { overflow: hidden; }
/* Тело прибито на месте и сдвинуто на величину прокрутки: иначе браузер, запретив
   прокрутку, прижал бы страницу к верху. */
html.is-locked body {
  position: fixed;
  top: var(--lock-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
}
html.is-locked body,
html.is-locked .site-header { padding-right: var(--lock-gap, 0px); }

.fdrawer__veil {
  position: fixed;
  inset: 0;
  /* Пальцем по занавесу страницу не утащить. */
  touch-action: none;
  z-index: 55;
  border: 0;
  padding: 0;
  background: rgba(30, 32, 35, 0.5);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fdrawer.is-open .fdrawer__veil { opacity: 1; visibility: visible; }

.fdrawer__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--porcelain);
  box-shadow: 18px 0 60px rgba(39, 43, 57, 0.18);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fdrawer.is-open .fdrawer__panel { transform: none; }

.fdrawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.fdrawer__head .eyebrow { margin: 0; }

.fdrawer__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fdrawer__close:hover { background: var(--paper); color: var(--ink); }

/* Условий бывает много – список внутри панели прокручивается сам. */
.fdrawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Докрутив список до конца, дальше тянуть страницу нельзя: прокрутка не передаётся. */
  overscroll-behavior: contain;
  padding: 20px 24px 28px;
}

/* Внутри панели строки отбора идут столбиком: ширины на «подпись – чипы» в ряд здесь
   нет, а перенос делал бы ступеньку. */
.fdrawer__body .filters { margin: 0; }
.fdrawer__body .filters__row {
  display: block;
  padding: 0 0 18px;
}
.fdrawer__body .filters__label { display: block; margin-bottom: 10px; }
.fdrawer__body .filters__dates { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .fdrawer__panel { transition: none; }
  .fdrawer__veil { transition: none; }
}

/* ============================================================
   Варианты отбора – строками
   ------------------------------------------------------------
   Плашками они лезли в четыре рваных ряда, а числа стояли вразнобой: понять, где
   событий больше, можно было только вчитываясь. Строка ставит число в один столбец,
   и длинное название не ломает ряд.
   ============================================================ */

.fgroup { margin-bottom: 26px; }
.fgroup:last-child { margin-bottom: 0; }

.fgroup__title {
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fopt {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  border-radius: 2px;
  font-size: 15px;
  color: var(--ink);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.fopt:hover { background: var(--paper); padding-left: 14px; }

/* Метка выбранного: точка тушью. Цвет не единственный признак – у выбранной строки
   ещё и жирнее начертание, иначе выбор не читался бы в чёрно-белом режиме. */
.fopt__mark {
  width: 8px;
  height: 8px;
  margin-left: 3px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.fopt.is-on .fopt__mark { background: var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); }
.fopt.is-on { font-weight: 600; }

.fopt__name { min-width: 0; }

/* Числа в один столбец и одной ширины – иначе сравнивать их глазами бесполезно. */
.fopt__count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.fopt.is-off {
  color: rgba(39, 43, 57, 0.38);
  cursor: default;
}
.fopt.is-off:hover { background: transparent; padding-left: 8px; }
.fopt.is-off .fopt__count { color: rgba(39, 43, 57, 0.38); }

/* Период: «с» и «по» в одну строку, кнопка под ними во всю ширину. */
.fgroup--dates .filters__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.fgroup--dates .filters__dates .btn { grid-column: 1 / -1; }
.fgroup--dates .filters__dates label {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.fgroup--dates .filters__dates .picker { width: 100%; }
.fgroup--dates .filters__dates .btn { width: 100%; }
/* Подпись «с»/«по» короткая – столбец под неё держим узким, всё остальное полю. */
.fgroup--dates .filters__dates label { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
/* Значение даты в узком поле панели: те же поджатые отступы, что на телефоне, иначе
   «31.08.2026» обрезается. */
.fgroup--dates .picker .picker__value { padding-left: 12px; padding-right: 34px; }
.fgroup--dates .picker__button { width: 32px; }

/* На телефоне два поля периода в одной строке дают 57 пикселей под текст, а «31.08.2026»
   просит 66 – значок съедал ровно недостающее. Внутри панели он и не нужен: поле само
   открывает календарь по нажатию, а «дд.мм.гггг» уже говорит, что это дата. */
@media (max-width: 560px) {
  .fgroup--dates .picker__button { display: none; }
  .fgroup--dates .picker .picker__value { padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fopt { transition: none; }
  .fopt:hover { padding-left: 8px; }
}

/* Рассказ о магазине: текст слева, адреса справа. Пропорции обратные бланкам заявок –
   здесь ведёт текст, а не форма. */
.shop-about { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.shop-about .book__aside { position: static; }
/* Буквица открывает рассказ – в узкой колонке она была бы больше самой строки. */
.shop-about .post-page__body { max-width: none; }

/* Строка без действия: часы работы никуда не ведут, поэтому и не притворяются ссылкой –
   ни наездом при наведении, ни шафрановым значением. */
.door--plain { cursor: default; }
.door--plain:hover { background: transparent; padding-left: 8px; }
.door--plain .door__mail { color: var(--ink); }

@media (max-width: 1000px) {
  .shop-about { grid-template-columns: 1fr; }
}

/* Рубрики афиши – ссылки на страницы тем и залов. Не путать с отбором: отбор
   складывает условия и живёт в панели, рубрика показывает одно, зато своим адресом. */
.rubrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 28px;
}
.rubrics__label {
  margin-right: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rubrics__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.rubrics__link:hover { background: var(--ink); border-color: var(--ink); color: var(--porcelain); }
.rubrics__count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.rubrics__link:hover .rubrics__count { color: rgba(253, 252, 249, 0.7); }

/* Внизу страницы рубрики список ведёт к соседним темам – отделяем его линией. */
.events--page .rubrics:last-child {
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* Заголовок дня в списке событий: тянется на всю ширину сетки, поэтому карточки
   продолжают стоять ровными столбцами, а список читается расписанием. */
.events__day {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 10px 0 -6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink);
}
/* Волосяная линия вправо от заголовка – она отделяет день, не крича об этом. */
.events__day::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
/* Первый день в списке не нуждается в отбивке сверху. */
.events__grid > .events__day:first-child { margin-top: 0; }
