/* Слотборд — лендинг. Дизайн-система «Hyper-Bloom · стекло и свет» (docs/design-tokens.md).
   Три слоя: свечение закреплено за окном, стеклянные пластины над ним, содержание без своего фона. */

:root {
  --bg: #07040F;
  --rose: #FF2E8B;
  --iris: #6B4BFF;
  --cyan: #12D6E8;
  --amber: #FFB020;

  --text: #FFFFFF;
  --text-2: #EAE5F7;
  --text-3: #DCD5EC;

  --glass: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
  --glass-flat: rgba(255, 255, 255, .09);
  --glass-border: rgba(255, 255, 255, .18);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .28);
  --glass-shadow: 0 18px 40px rgba(0, 0, 0, .38);

  --r-chip: 12px;
  --r-slot: 18px;
  --r-plate: 26px;
  --r-pill: 999px;

  --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: Unbounded, Onest, system-ui, sans-serif; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; margin-bottom: 28px; }
h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--text); text-decoration: none; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* — Слой 1: свечение. Закреплено за окном, не прокручивается — */
.bloom {
  position: fixed;
  inset: -10vh -10vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 18% 12%, rgba(176, 28, 94, .62), transparent 70%),
    radial-gradient(42vw 42vw at 82% 30%, rgba(70, 50, 168, .58), transparent 70%),
    radial-gradient(34vw 34vw at 30% 82%, rgba(18, 214, 232, .18), transparent 70%),
    radial-gradient(36vw 36vw at 88% 92%, rgba(107, 75, 255, .40), transparent 70%);
  /* Без filter: blur — градиенты и так мягкие, а размытие слоя во весь экран
     заставляет браузер перерисовывать его при каждой прокрутке. */
}

/* — Слой 2: стекло — */
.plate {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-plate);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  padding: 24px;
}
@supports (backdrop-filter: blur(28px)) or (-webkit-backdrop-filter: blur(28px)) {
  .plate {
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 9vw, 104px); }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text-2); max-width: 34em; }

.statement {
  margin-top: 28px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: var(--text);
  max-width: 32em;
}
.statement--quiet { font-size: 16px; font-weight: 400; color: var(--text-3); }

/* — Кнопки. Светится ровно одна на экран — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.btn--primary {
  min-height: 56px;
  padding: 0 30px;
  color: #fff;
  background: linear-gradient(100deg, var(--rose), var(--iris) 55%, var(--cyan));
  box-shadow: 0 0 34px rgba(107, 75, 255, .55), var(--glass-edge);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary, .btn--ghost {
  min-height: 48px;
  padding: 0 22px;
  color: var(--text);
  background: var(--glass-flat);
  border-color: var(--glass-border);
  box-shadow: var(--glass-edge);
}
.btn--secondary:hover, .btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--ghost { min-height: 40px; font-size: 14px; }

/* — Шапка — */
.topbar { position: relative; z-index: 2; padding-block: 18px; }
.topbar__inner { display: flex; align-items: center; gap: 20px; }
.topbar__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.topbar__nav a:hover { color: var(--text); }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(135deg, var(--rose), var(--iris) 55%, var(--cyan));
  box-shadow: 0 0 18px rgba(107, 75, 255, .6);
}
.logo__word { font-family: Unbounded, sans-serif; font-weight: 600; font-size: 17px; }

/* — Hero — */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px);
}
.cta { margin-top: 32px; }
.cta__note { margin-top: 14px; font-size: 14px; color: var(--text-3); }

/* Демо: одна бронь держит и ресурсы, и людей */
.hero__demo { margin: 0; }
.demo { padding: 20px; }
.demo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.demo__venue { font-weight: 600; font-size: 15px; }
.demo__day { font-size: 13px; color: var(--text-3); }

.days { display: flex; gap: 8px; margin-bottom: 16px; }
.day {
  flex: 1 1 0;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px; color: var(--text-3);
}
.day b { font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.day--on {
  background: linear-gradient(180deg, rgba(107, 75, 255, .55), rgba(107, 75, 255, .3));
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 0 20px rgba(107, 75, 255, .5);
  color: var(--text-2);
}
.day--off { opacity: .45; }

.slots { display: flex; gap: 8px; margin-bottom: 16px; }
.slot {
  flex: 1 1 0;
  min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 10px;
  border-radius: var(--r-slot);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px; color: var(--text-3);
}
.slot b { font-size: 17px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.slot--free {
  background: linear-gradient(180deg, rgba(18, 214, 232, .26), rgba(18, 214, 232, .10));
  border-color: rgba(18, 214, 232, .5);
  box-shadow: 0 0 22px rgba(18, 214, 232, .30);
  color: #BEF4FA;
}

.booking {
  padding: 16px;
  border-radius: var(--r-slot);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.booking__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.booking__time { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.booking__time i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); }
.booking__title { font-size: 15px; font-weight: 500; }
.booking__price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.booking__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.tag {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}
.tag--thing { background: rgba(18, 214, 232, .16); border-color: rgba(18, 214, 232, .42); color: #BEF4FA; }
.tag--people { background: rgba(107, 75, 255, .24); border-color: rgba(140, 118, 255, .52); color: #DCD5FF; }

.hero__demo figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}

/* — Карточки — */
.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card__kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .10);
  border: 1px solid var(--glass-border);
  font-size: 12px; font-weight: 500; color: var(--text-2);
}
.card__line { font-size: 16px; font-weight: 500; color: var(--text); }
.card__sub { font-size: 14px; color: var(--text-3); }
.card p { font-size: 15px; color: var(--text-2); }
.card__sub { font-size: 14px; }

.card--who { text-align: left; }
.who__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: var(--r-chip);
  background: linear-gradient(135deg, rgba(255, 46, 139, .30), rgba(107, 75, 255, .30));
  border: 1px solid var(--glass-border);
  color: #E6DEFF;
}
.who__icon svg { width: 22px; height: 22px; }

/* — Шаги — */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}
.step { padding-top: 22px; }
.step__num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--rose), var(--iris));
  font-family: Unbounded, sans-serif; font-weight: 600; font-size: 15px;
  box-shadow: 0 0 18px rgba(255, 46, 139, .40);
}
.step p { font-size: 15px; color: var(--text-2); }

/* — Сравнение — */
.table-wrap { padding: 8px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; vertical-align: top; }
.compare thead th {
  font-family: Unbounded, sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-3); border-bottom: 1px solid var(--glass-border);
}
.compare tbody th { font-weight: 500; color: var(--text-2); width: 26%; }
.compare tbody td { color: var(--text-3); }
.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid rgba(255, 255, 255, .09); }
.compare .compare__us { color: var(--text); font-weight: 500; background: rgba(107, 75, 255, .14); }
.compare thead .compare__us { color: var(--text); }
.compare tbody tr:last-child .compare__us { border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }

/* — Цена — */
.price-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.price__label {
  display: block; margin-bottom: 12px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.price__value { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price__value b {
  font-family: Unbounded, sans-serif; font-size: clamp(34px, 4.6vw, 46px); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price__value span { color: var(--text-3); font-size: 15px; }
.price__year { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.price .btn { width: 100%; }
.price__note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text-2); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

/* — Запуск, финал — */
.launch, .final { text-align: center; padding: clamp(28px, 4vw, 44px); }
.launch p, .final p { max-width: 46em; margin-inline: auto; color: var(--text-2); }
.launch__title { margin-bottom: 14px; }
.launch .btn, .final .btn { margin-top: 22px; }
.final h2 { margin-bottom: 14px; }

/* — FAQ — */
.faq { display: grid; gap: 12px; }
.faq__item { padding: 0; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-size: 16px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute; right: 26px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; max-width: 54em; }

/* — Подвал — */
.footer { position: relative; z-index: 1; padding-block: 40px 56px; border-top: 1px solid rgba(255, 255, 255, .10); }
.footer__inner { display: grid; gap: 12px; justify-items: start; }
.footer__line { font-size: 14px; color: var(--text-3); max-width: 46em; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__meta a { color: var(--text-2); border-bottom: 1px solid rgba(255, 255, 255, .28); }
.footer__meta a:hover { color: var(--text); border-bottom-color: var(--text); }

/* — Адаптация — */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .cards--3, .cards--4, .steps, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__nav { display: none; }
  .topbar__login { margin-left: auto; }
}

@media (max-width: 620px) {
  .cards--3, .cards--4, .steps, .price-grid { grid-template-columns: 1fr; }
  .plate { padding: 20px; border-radius: 22px; }
  .shell { padding-inline: 16px; }
  .btn--primary { width: 100%; padding-inline: 20px; }
  .slots .slot { padding: 10px 8px; }
  .day { padding: 7px 2px; }
  .booking__price { margin-left: 0; }
  .faq__item summary { padding: 18px 48px 18px 20px; }
  .faq__item p { padding: 0 20px 20px; }
}
