/* FillWindow — лендинг. Один файл стилей, без сборки и препроцессоров.
   Токены синхронны со светлой темой приложения (frontend/src/styles/global.css). */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #e9edf4;
  --accent: #33527f;
  --accent-strong: #2e5288;
  --accent-deep: #0f1e38;
  --text: #171d2b;
  --text-2: #626b7e;
  --text-3: #9aa3b5;
  --border: #e1e5ee;
  /* жемчуг — заполненный слот из логотипа */
  --pearl-1: #eaf2ff;
  --pearl-2: #a9c4ea;
  --ok: #2fa37a;
  --on-deep: #eef3fb;
  --on-deep-2: #b6c6e2;

  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Menlo, Consolas, monospace;

  --fs-display: clamp(2rem, 4.4vw, 3.4rem);
  --fs-h2: clamp(1.65rem, 3.4vw, 2.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.72rem;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;
  --gap: clamp(1.5rem, 4vw, 3.5rem);

  --sapphire: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  --shadow-sm: 0 1px 2px rgba(15, 30, 56, 0.05), 0 8px 24px rgba(15, 30, 56, 0.06);
  --shadow-lg: 0 18px 50px -18px rgba(15, 30, 56, 0.34);
}

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

/* hidden должен побеждать любой display у самих элементов (цены тарифов — flex) */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* якорные ссылки не должны прятать заголовок под липкой шапкой */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
}

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

/* ссылка для клавиатуры и скринридеров: видна только при фокусе */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 0.7em 1.2em;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.muted {
  color: var(--text-2);
}
.hl {
  color: var(--accent);
}

/* ---------- логотип ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.logo svg {
  display: block;
  flex: 0 0 auto;
}
.wordmark {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  line-height: 1;
  white-space: nowrap;
  font-weight: 300;
  font-size: 1rem;
}
.wordmark b {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.26em;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 0.8em 1.4em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--sapphire);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(15, 30, 56, 0.6);
}
.btn-primary:hover {
  filter: brightness(1.12);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm {
  padding: 0.55em 1.1em;
  font-size: 0.94rem;
}
.btn-lg {
  padding: 1em 1.7em;
  font-size: 1.05rem;
}

/* ---------- шапка ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links .link {
  font-size: 0.95rem;
  color: var(--text-2);
  font-weight: 550;
}
.nav-links .link:hover {
  color: var(--text);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-cta .btn {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 520px) {
  /* на узком экране в шапке остаётся одно действие — регистрация */
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-cta .btn-sm {
    padding: 0.5em 0.95em;
    font-size: 0.88rem;
  }
  .wordmark {
    font-size: 0.86rem;
    letter-spacing: 0.2em;
  }
  .wordmark b {
    letter-spacing: 0.2em;
  }
}

/* ---------- секции ---------- */
section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sec-head {
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 62ch;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-head h2 {
  font-size: var(--fs-h2);
  font-weight: 780;
  margin: 0.7rem 0 0.8rem;
}
.sec-head p {
  color: var(--text-2);
  font-size: 1.08rem;
}
.fine-print {
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
  margin: 1.6rem auto 0;
  max-width: 52ch;
  line-height: 1.5;
}
.fine-print--wide {
  max-width: 72ch;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--gap);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  margin: 0.6rem 0 1.1rem;
}
.hero .sub {
  font-size: 1.14rem;
  color: var(--text-2);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: var(--fs-small);
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
  flex: 0 0 auto;
}

/* ---------- расписание (визуально повторяет ScheduleGrid приложения) ---------- */
.schedule {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  /* цвет текста задан явно: в тёмной сцене переменные переопределяются здесь,
     а унаследованный от body color иначе остался бы светлым */
  color: var(--text);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}
/* Тёмная сцена расписания. Токены — из тёмной темы самого приложения
   (frontend/src/styles/global.css, .theme-dark): на лендинге должно быть видно
   настоящий интерфейс, а не выдуманную тёмную картинку. */
.schedule[data-theme='dark'] {
  --bg: #0d1322;
  --surface: #151d31;
  --accent: #8fafdc;
  --text: #e8ecf4;
  --text-2: #97a1b5;
  --text-3: #6e7890;
  --border: #263251;
  --sapphire: linear-gradient(135deg, #4d74b4, #2b4a7d);
  --shadow-lg: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}
.sg {
  display: grid;
  grid-template-rows: 56px var(--sg-body-h);
  grid-template-columns: 52px repeat(3, minmax(0, 1fr));
  transition: opacity 0.45s ease;
}
/* пауза между сценами: сетка гаснет, карточка в это время перекрашивается */
.sg.is-switching {
  opacity: 0;
}
.sg__frame {
  grid-column: 2 / -1;
  grid-row: 1 / -1;
  z-index: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.sg__corner {
  grid-column: 1;
  grid-row: 1;
}
.sg__axis {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
}
.sg__hour {
  position: absolute;
  right: 6px;
  transform: translateY(-8px);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  white-space: nowrap;
}
.sg__head {
  grid-row: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  text-align: center;
}
.sg__head--first {
  border-left: none;
}
.sg__head--today {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 8px 8px 0 0;
}
.sg__head-title {
  font-size: 12px;
  color: var(--text-3);
}
.sg__head-sub {
  font-size: 15px;
  font-weight: 700;
}
.sg__col {
  grid-row: 2;
  position: relative;
  z-index: 1;
  border-left: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--border) 0,
    var(--border) 1px,
    transparent 1px,
    transparent var(--sg-hour-h)
  );
}
.sg__col--first {
  border-left: none;
}
.sg__col--today {
  background-color: color-mix(in srgb, var(--accent) 4%, transparent);
}

.sg__ev {
  position: absolute;
  left: 2px;
  right: 2px;
  z-index: 2;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 6px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.sg__ev-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg__ev-sub {
  display: block;
  font-size: 11px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg__ev--done {
  background: #18a058;
}
.sg__ev--busy {
  background: #2080f0;
}
/* ---- демонстрация петли: запись → отмена → клиент из листа ожидания ---- */
.sg__slot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
}
.sg__slot .sg__ev {
  top: 0;
  bottom: 0;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
/* по умолчанию (и без JS) виден только исходный вариант — занятая запись */
.sg__ev--free,
.sg__ev--new {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.sg__ev--free {
  background: repeating-linear-gradient(135deg, #eef3fb 0 8px, #dde8ff 8px 16px);
  border: 1px dashed #7fa2e0;
  color: #33527f;
  box-shadow: none;
}
.sg__ev--new {
  background: var(--sapphire);
}
/* штриховка свободного окна собрана из конкретных цветов, а не токенов —
   для тёмной сцены нужен свой набор */
.schedule[data-theme='dark'] .sg__ev--free {
  background: repeating-linear-gradient(135deg, #1b2540 0 8px, #223058 8px 16px);
  border-color: #4a63a0;
  color: #a9c4ea;
}
/* активную фазу подсвечивает JS: data-phase на слоте */
.sg__slot[data-phase='free'] .sg__ev--busy,
.sg__slot[data-phase='new'] .sg__ev--busy {
  opacity: 0;
  transform: translateY(6px);
}
.sg__slot[data-phase='free'] .sg__ev--free {
  opacity: 1;
  transform: none;
}
.sg__slot[data-phase='new'] .sg__ev--new {
  opacity: 1;
  transform: none;
}

.schedule-caption {
  margin-top: 12px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-2);
  min-height: 2.6em;
}

/* ---------- для кого (аудитория) ---------- */
.sec-head--center {
  text-align: center;
  margin-inline: auto;
}
.aud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .aud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .aud-grid {
    grid-template-columns: 1fr;
  }
}
.aud-more {
  text-align: center;
  color: var(--text-2);
  font-size: 0.98rem;
  margin-top: 1.6rem;
}

/* ---------- проблема → решение ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 820px) {
  .compare {
    grid-template-columns: 1fr;
  }
}
.cmp-card {
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
}
.cmp-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.cmp-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cmp-card li {
  display: flex;
  gap: 0.7rem;
  font-size: 1rem;
}
.cmp-card .ic {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  margin-top: 0.15rem;
  font-weight: 700;
}
.cmp-new {
  background: var(--sapphire);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--on-deep);
}
.cmp-new h3,
.cmp-new .hl {
  color: #fff;
}
.cmp-new .ic {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
}
.cmp-old {
  background: var(--surface-2);
}
.cmp-old h3 {
  color: var(--text-2);
}
.cmp-old .ic {
  background: color-mix(in srgb, var(--text-2) 22%, transparent);
  color: var(--text-2);
}

/* ---------- шаги ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  padding-top: 1rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 0.8rem;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--text-2);
  font-size: 0.97rem;
}

/* ---------- возможности ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feat .fic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.feat h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feat p {
  color: var(--text-2);
  font-size: 0.96rem;
}

/* ---------- тарифы ---------- */
.bill-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
}
.bill-toggle button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: 100px;
  padding: 0.45em 1.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  transition: background 0.15s ease, color 0.15s ease;
}
.bill-toggle button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.bt-off {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ok);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}
.plan {
  position: relative;
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.section-alt .plan {
  background: var(--bg);
}
.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1rem 0 0.3rem;
}
.plan .price b {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.plan .price em {
  font-style: normal;
  color: var(--text-2);
  font-size: 0.95rem;
}
.plan-incl {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-2);
}
.plan ul {
  list-style: none;
  margin: 0.7rem 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.plan li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.96rem;
}
.plan li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex: 0 0 auto;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
}

.plan.featured {
  background: var(--sapphire);
  color: var(--on-deep);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.plan.featured h3,
.plan.featured .price b {
  color: #fff;
}
.plan.featured p,
.plan.featured .price em,
.plan.featured .plan-incl {
  color: var(--on-deep-2);
}
.plan.featured li::before {
  color: var(--pearl-2);
}
.plan.featured .btn-primary {
  background: #fff;
  color: var(--accent-deep);
}
.plan .promo-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  border-radius: 100px;
  padding: 0.35em 0.85em;
}
.plan .glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pearl-2) 40%, transparent), transparent 70%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1.3rem;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 620;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary .pm {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  position: relative;
}
.qa summary .pm::before,
.qa summary .pm::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.qa summary .pm::before {
  width: 14px;
  height: 2px;
}
.qa summary .pm::after {
  width: 2px;
  height: 14px;
  transition: transform 0.2s ease;
}
.qa[open] summary .pm::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.qa .ans {
  padding: 0 0 1.2rem;
  color: var(--text-2);
  max-width: 66ch;
}
.qa .ans a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- финальный призыв ---------- */
.final {
  position: relative;
  overflow: hidden;
  background: var(--sapphire);
  color: var(--on-deep);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.final h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.9rem;
}
.final p {
  color: var(--on-deep-2);
  max-width: 46ch;
  margin: 0 auto 1.8rem;
}
.final .btn-primary {
  background: #fff;
  color: var(--accent-deep);
}
.final .grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% -10%, color-mix(in srgb, var(--pearl-2) 30%, transparent), transparent 70%);
  pointer-events: none;
}

/* ---------- подвал ---------- */
.ft {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 3rem;
  border-top: 1px solid var(--border);
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 1.8rem 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .ft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .ft-grid {
    grid-template-columns: 1fr;
  }
}
.ft-col {
  min-width: 0;
}
.ft-col--brand {
  max-width: 290px;
}
/* .ft-col a — блочные ссылки списка; логотип остаётся строкой с иконкой */
.ft-col .logo {
  display: inline-flex;
}
.ft-col--brand .muted {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}
.ft-col h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin: 0 0 0.8rem;
  font-weight: 650;
}
.ft-col a,
.ft-col p {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.ft-col a:hover {
  color: var(--accent);
}
/* специфичность класса ниже, чем у `.ft-col p` выше, — поэтому селектор с .ft-col */
.ft-col .ft-support {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.ft-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}
.beta-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 100px;
  padding: 0.25em 0.7em;
}

/* ---------- страница 404 ---------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.error-page p {
  color: var(--text-2);
  margin: 1rem auto 2rem;
  max-width: 42ch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- главная v2: тарифы в 2 колонки, шаги в 3, список листа ожидания ---------- */
.price-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width: 700px) {
  .price-grid--two {
    grid-template-columns: 1fr;
  }
}
.steps--three {
  grid-template-columns: repeat(3, 1fr);
}
/* шаг по центру: кружок-номер, заголовок и текст выровнены по середине колонки */
.steps--three .step {
  text-align: center;
}
@media (max-width: 780px) {
  .steps--three {
    grid-template-columns: 1fr;
  }
}
.plain-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.plain-list li {
  display: flex;
  gap: 0.7rem;
}
.plain-list .ic {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- уведомление о файлах cookie ---------- */
/* Плашка внизу экрана: информирует, но не перекрывает страницу и ничего не блокирует —
   согласие по политике (п. 12.4) выражается продолжением пользования сайтом. */
.cookie-note {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.cookie-note p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-2);
}
.cookie-note a {
  color: var(--accent);
}
.cookie-note .btn {
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .cookie-note {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Счётчик мест акции в шапке блока тарифов (заполняется main.js). */
/* ---------- акция: большой блок после hero и малый в тарифах ---------- */
.promo {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-strong));
  color: #fff;
  padding: 56px 0;
}
.promo-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.promo-eyebrow { color: var(--pearl-2); }
.promo-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.15; margin: 0; color: #fff; }
.promo-lead { margin: 6px 0 0; color: var(--pearl-1); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.promo-seats { margin: 0; font-size: 18px; font-weight: 600; color: var(--pearl-1); }
.promo .btn-primary { margin-top: 6px; background: #fff; color: var(--accent-deep); }
.promo .btn-primary:hover { background: var(--pearl-1); }

.countdown { display: flex; gap: 12px; justify-content: center; font-variant-numeric: tabular-nums; }
.cd { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.cd b { display: block; font-weight: 800; line-height: 1; }
.cd span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-top: 6px; }
.countdown--big .cd { min-width: 96px; padding: 14px 8px; border-radius: 16px; background: rgba(255,255,255,.1); }
.countdown--big .cd b { font-size: clamp(40px, 7vw, 72px); }
.countdown--small { gap: 8px; margin-top: 4px; }
.countdown--small .cd { min-width: 56px; padding: 8px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--accent-deep); }
.countdown--small .cd b { font-size: 28px; }
.countdown--small .cd span { color: var(--text-3); }

.promo-mini { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.promo-counter {
  display: inline-block;
  margin-top: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #33527f) 12%, transparent);
  color: var(--accent, #33527f);
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 480px) {
  .promo { padding: 40px 0; }
  .countdown--big { gap: 8px; }
  .countdown--big .cd { min-width: 0; flex: 1; padding: 10px 4px; }
  .promo .btn-primary { width: 100%; }
}
