/* ============================================================
   Компоненты и секции лендинга
   ============================================================ */

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 1.0625rem 1.875rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--accent {
  background-color: var(--accent-fill);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--accent:hover:not(:disabled) {
  background-color: var(--accent-fill-hover);
  box-shadow: var(--shadow-accent-lg);
}

.btn--dark {
  background-color: var(--coal-900);
  color: var(--on-dark);
}

.btn--dark:hover:not(:disabled) {
  background-color: var(--coal-700);
}

.btn--outline-light {
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
}

.btn--outline-light:hover:not(:disabled) {
  background-color: rgba(248, 246, 242, 0.08);
  border-color: transparent;
}

.btn--outline {
  border: 1px solid var(--line);
  color: var(--fg);
}

.btn--outline:hover:not(:disabled) {
  border-color: var(--fg);
}

.btn--sm {
  padding: 0.8125rem 1.375rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1.25rem 2.25rem;
  font-size: var(--fs-md);
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}

.btn:hover:not(:disabled) .btn__arrow {
  transform: translateX(4px);
}

.btn.is-loading {
  pointer-events: none;
  color: transparent;
  position: relative;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 74px;
}

.brand {
  flex-shrink: 0;
  display: block;
}

.brand img {
  height: 28px;
  width: auto;
}

.header__label {
  padding-left: var(--s-5);
  border-left: 1px solid var(--line);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-62);
  white-space: nowrap;
}

.header__nav {
  margin-left: auto;
  display: flex;
  gap: var(--s-6);
}

.header__nav a {
  font-size: var(--fs-sm);
  color: var(--fg-70);
  transition: color var(--t-fast) var(--ease);
}

.header__nav a:hover {
  color: var(--fg);
}

@media (max-width: 1080px) {
  .header__nav {
    display: none;
  }

  .header__inner {
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .header__label {
    display: none;
  }
}

/* ---------- Герой ---------- */

.hero {
  padding-top: var(--s-4);
}

.hero__card {
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: min(88vh, 900px);
  padding: clamp(1.5rem, 0.8rem + 2.6vw, 3.5rem);
  border-radius: var(--r-xl);
  background-color: var(--coal-900);
  overflow: hidden;
  isolation: isolate;
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-65);
}

.tag--live {
  color: var(--on-dark);
  border-color: rgba(30, 214, 155, 0.45);
}

.tag--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-on-dark);
  box-shadow: 0 0 0 4px rgba(30, 214, 155, 0.2);
}

.hero__body {
  margin-top: auto;
  padding-top: var(--s-12);
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  max-width: 16ch;
}

.hero__title em {
  /* у Manrope нет курсива — браузер подделал бы наклон, выделяем цветом */
  font-style: normal;
  color: var(--accent-on-dark);
}

.hero__hook {
  max-width: 46ch;
  margin-top: var(--s-8);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--on-dark-65);
}

.hero__hook b {
  color: var(--on-dark);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-10);
}

/* Нижняя информационная лента внутри карточки */
.hero__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
  margin-top: clamp(2.5rem, 1.2rem + 4vw, 4.5rem);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-dark);
}

.strip-item {
  display: grid;
  gap: var(--s-2);
  padding-right: var(--s-5);
  border-right: 1px solid var(--line-dark);
}

.strip-item:last-child {
  border-right: 0;
}

.strip-item__label {
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-50);
}

.strip-item__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 0.9rem + 1.1vw, 1.875rem);
  line-height: 1.05;
  color: var(--on-dark);
}

.strip-item__note {
  font-size: var(--fs-xs);
  color: var(--on-dark-50);
}

@media (max-width: 860px) {
  .hero__strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
  }

  .strip-item:nth-child(2n) {
    border-right: 0;
  }
}

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

  .strip-item {
    border-right: 0;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line-dark);
  }

  .strip-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* ---------- Программа разбора ---------- */

.topics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.topic {
  display: grid;
  align-content: space-between;
  gap: var(--s-10);
  min-height: 210px;
  padding: var(--s-6);
  border-radius: var(--r-md);
  background-color: var(--white);
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.topic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.topic__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fg-40);
}

.topic__text {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Акцентная плитка — «красные флаги» */
.topic--accent {
  background-color: var(--accent-fill);
  color: #fff;
}

.topic--accent .topic__num {
  color: rgba(255, 255, 255, 0.75);
}

.topic--dark {
  background-color: var(--coal-900);
  color: var(--on-dark);
}

.topic--dark .topic__num {
  color: var(--accent-on-dark);
}

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

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

/* ---------- Цифры и главная ценность ---------- */

.value {
  position: relative;
  overflow: hidden;
  background-color: var(--cream-2);
}

.value__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: var(--s-4);
}

.claim {
  grid-column: span 2;
  display: grid;
  align-content: center;
  gap: var(--s-5);
  padding-right: var(--s-8);
}

.claim__text {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.claim__text s {
  text-decoration-thickness: 1px;
  text-decoration-color: var(--fg-40);
  color: var(--fg-62);
}

.claim__text em {
  font-style: normal;
  color: var(--accent-on-light);
}

.stat {
  display: grid;
  align-content: start;
  gap: var(--s-4);
  min-height: 200px;
  padding: var(--s-6);
  border-radius: var(--r-md);
  background-color: var(--white);
}

.stat__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-stat);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--fg-70);
  max-width: 20ch;
}

.stat--accent {
  background-color: var(--accent-fill);
  color: #fff;
}

.stat--accent .stat__label {
  color: #fff;
}

.stat--dark {
  background-color: var(--coal-900);
  color: var(--on-dark);
}

.stat--dark .stat__label {
  color: var(--on-dark-50);
}

.stat--wide {
  grid-column: span 2;
}

/* Широкие плитки несут не число, а фразу — ей нужен кегль поменьше
   и больше воздуха, иначе подпись поджимается ко дну. */
.stat--text {
  min-height: 260px;
  gap: var(--s-5);
}

.stat--text .stat__value {
  font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.75rem);
  line-height: 1.02;
  max-width: 14ch;
}

.stat--text .stat__label {
  max-width: 38ch;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

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

  .claim {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: var(--s-4);
  }
}

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

  .stat--wide {
    grid-column: auto;
  }
}

/* ---------- Тайминг ---------- */

.timing__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 3.4vw, 4.5rem);
  align-items: start;
}

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

.slot {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t) var(--ease);
}

.slot:hover {
  padding-left: var(--s-3);
}

.slot__time {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--accent-on-light);
  font-variant-numeric: tabular-nums;
}

.slot__title {
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.35;
}

.slot__note {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--fg-70);
}

/* Ключевой слот выделен янтарём */
.slot--key {
  background: linear-gradient(90deg, rgba(12, 128, 96, 0.13), transparent 62%);
  margin-inline: calc(var(--s-4) * -1);
  padding-inline: var(--s-4);
  border-radius: var(--r-sm);
}

.slot--key .slot__time {
  color: var(--accent-on-light);
}

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

/* ---------- Регистрация ---------- */

.register__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-6);
  align-items: start;
}

.ticket {
  position: sticky;
  box-shadow: var(--shadow-lg);
  top: 100px;
  display: grid;
  gap: var(--s-8);
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  border-radius: var(--r-xl);
  background-color: var(--coal-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.ticket__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 1.8rem + 3.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ticket__note {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--on-dark-50);
}

.includes {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-dark);
}

.includes li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--on-dark-65);
}

.includes svg {
  width: 15px;
  height: 15px;
  margin-top: 5px;
  color: var(--accent-on-dark);
}

.form-card {
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  border-radius: var(--r-xl);
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--fg-70);
}

.field__label span {
  color: var(--accent-on-light);
}

.field__input,
.field__textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background-color: var(--cream);
  font-size: var(--fs-sm);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.field__textarea {
  min-height: 88px;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--fg-40);
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 3px rgba(12, 128, 96, 0.18);
}

.field.has-error .field__input,
.field.has-error .field__textarea {
  border-color: var(--warn);
}

.field__error {
  font-size: var(--fs-xs);
  color: var(--warn);
  min-height: 1em;
}

.form__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--s-3);
  align-items: start;
  margin-top: var(--s-6);
  font-size: var(--fs-xs);
  color: var(--fg-62);
}

.form__consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-fill);
}

.form__consent a {
  text-decoration: underline;
}

.form__submit {
  margin-top: var(--s-6);
}

.form__status {
  margin-top: var(--s-4);
  min-height: 1.4em;
  font-size: var(--fs-sm);
}

.form__status[data-kind='error'] {
  color: var(--warn);
}

.form__status[data-kind='success'] {
  color: var(--accent-on-light);
}

.form__secure {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--fg-62);
}

.form__secure svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Логотип платёжного провайдера в строке под кнопкой. Размер подобран
   под кегль строки: крупнее он спорит с текстом, мельче — не читается. */
.form__secure-logo {
  display: inline-flex;
  align-items: center;
}

.form__secure-logo img {
  display: block;
  height: 21px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--t-fast) var(--ease);
}

.form__secure-logo:hover img {
  opacity: 1;
}

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

  .ticket {
    position: relative; /* не static: псевдоэлементы с inset:0 требуют позиционированного предка */
    /* top от sticky действует и на relative: без сброса карточка съезжает
       на 100px вниз и наезжает на форму регистрации */
    top: auto;
  }
}

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

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

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

.faq-item__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  padding: var(--s-6) 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.2;
  transition: color var(--t-fast) var(--ease);
}

.faq-item__btn:hover {
  color: var(--accent-on-light);
}

.faq-item__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition:
    transform var(--t) var(--ease),
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.faq-item__icon svg {
  width: 12px;
  height: 12px;
}

.faq-item__btn[aria-expanded='true'] .faq-item__icon {
  transform: rotate(45deg);
  background-color: var(--accent-fill);
  border-color: var(--accent-fill);
  color: #fff;
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}

.faq-item__panel[data-open='true'] {
  grid-template-rows: 1fr;
}

.faq-item__inner {
  overflow: hidden;
}

.faq-item__inner p {
  padding-bottom: var(--s-6);
  max-width: 64ch;
  color: var(--fg);
  font-size: var(--fs-md);
  line-height: 1.6;
}

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

/* ---------- Финальный призыв ---------- */

.final {
  padding-bottom: var(--section);
}

.final__card {
  position: relative;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--s-8);
  justify-items: center;
  text-align: center;
  padding: clamp(3rem, 1.6rem + 5vw, 6rem) var(--pad);
  border-radius: var(--r-xl);
  background-color: var(--coal-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.final__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-wrap: balance;
}

.final__title em {
  font-style: normal;
  color: var(--accent-on-dark);
}

.final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
}

/* ---------- Подвал ---------- */

.footer {
  padding-block: var(--s-10) var(--s-8);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
}

.footer__brand img {
  height: 26px;
  width: auto;
}

.footer__tagline {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--fg-62);
}

.footer__contacts {
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.footer__contacts a {
  font-size: var(--fs-lead);
  transition: color var(--t-fast) var(--ease);
}

.footer__contacts a:hover {
  color: var(--accent-on-light);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--fg-62);
}

/* Логотип платёжного провайдера рядом с нашим: выравниваем по базовой
   линии текста, иначе картинка "подпрыгивает" над строкой. */
.footer__pay {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.footer__pay img {
  display: block;
  height: 26px;
  width: auto;
  /* Логотип цветной и на светлом фоне выглядит ярче окружающего текста —
     чуть приглушаем, чтобы не перетягивал внимание с нашего бренда. */
  opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease);
}

.footer__pay a:hover img {
  opacity: 1;
}

/* ---------- Липкая панель на мобильном ---------- */

.sticky-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background-color: var(--coal-900);
  transform: translateY(110%);
  transition: transform var(--t) var(--ease);
}

.sticky-bar.is-visible {
  transform: none;
}

.sticky-bar__info {
  display: grid;
  color: var(--on-dark);
  line-height: 1.25;
}

.sticky-bar__info b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
}

.sticky-bar__info small {
  font-size: var(--fs-2xs);
  color: var(--on-dark-50);
}

@media (max-width: 720px) {
  .sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 74px;
  }
}

/* ============================================================
   Атмосфера: подложка-знак, зерно, бегущая строка, прогресс
   ============================================================ */

/* ---------- Знак «А» фоном ----------
   PNG-иконка используется как маска: так знак можно красить
   в любой цвет и прозрачность, не заводя отдельных файлов. */

.watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  aspect-ratio: 722 / 737;
  -webkit-mask-image: url('/img/icon-color.png');
  mask-image: url('/img/icon-color.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.watermark--on-dark {
  background-color: var(--on-dark);
  opacity: 0.045;
}

.watermark--on-light {
  background-color: var(--fg);
  opacity: 0.04;
}

.watermark--accent {
  background-color: var(--accent-on-dark);
  opacity: 0.05;
}

/* Раскладка знака по секциям */
.hero .watermark {
  right: -40%;
  bottom: -18%;
  width: min(74%, 860px);
  /* Лёгкий сдвиг за курсором: узора здесь больше нет,
     знак остался единственной фактурой — пусть живёт. */
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.9s var(--ease-out);
}

.value .watermark {
  left: -8%;
  top: 8%;
  width: min(38%, 420px);
  rotate: -8deg;
}

.final .watermark {
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(62%, 560px);
}

.ticket .watermark {
  right: -18%;
  bottom: -12%;
  width: 72%;
}

@media (max-width: 720px) {
  .value .watermark,
  .ticket .watermark {
    display: none;
  }

  .hero .watermark {
    right: -48%;
    bottom: -8%;
    width: 96%;
  }
}

/* ---------- Зерно ----------
   Едва заметный шум убирает «пластиковость» больших заливок. */

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Полоса прочтения ---------- */

.progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-fill), var(--accent-on-dark));
  transition: transform 0.1s linear;
}

/* ---------- Бегущая строка ---------- */

.ticker {
  overflow: hidden;
  padding-block: var(--s-4);
  border-block: 1px solid var(--line);
  background-color: var(--cream);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-5);
  padding-inline: var(--s-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-70);
  white-space: nowrap;
}

.ticker__item::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-on-light);
  opacity: 0.55;
}

.ticker__item--accent {
  color: var(--accent-on-light);
}

@keyframes ticker {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- Живое свечение героя ---------- */

/* Плоское свечение дышит яркостью — двигать его нельзя,
   оно привязано к краю карточки. */
@keyframes breathe {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

.hero__card::before {
  animation: breathe 9s ease-in-out infinite;
}



/* ---------- Наведение: плитки и слоты ---------- */

.topic {
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t) var(--ease-spring),
    box-shadow var(--t) var(--ease);
}

.topic:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.topic--accent:hover,
.stat--accent:hover {
  box-shadow: var(--shadow-accent-lg);
}

.stat {
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t) var(--ease-spring),
    box-shadow var(--t) var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Слот подсвечивается полоской слева */
.slot {
  position: relative;
}

.slot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 2px;
  border-radius: 2px;
  background-color: var(--accent-fill);
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: 50% 50%;
  transition:
    opacity var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.slot:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Карточки внутри тёмных секций тоже должны лежать поверх знака */
/* :not(.watermark) обязательно: иначе абсолютная подложка становится
   обычным элементом сетки, растягивает карточку и перекрывает градиент. */
.hero__top,
.hero__body,
.hero__strip,
.value__grid,
.final__card > *:not(.watermark),
.ticket > *:not(.watermark) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track,
  .hero__card::before {
    animation: none;
  }

  .grain {
    display: none;
  }
}

/* ---------- Плотность на узких экранах ----------
   На десктопе плитки тянутся по высоте колонки и пустота внутри
   создаёт ритм. В одну колонку та же пустота превращается в дыры
   и раздувает страницу — здесь содержимое прижимается друг к другу. */

@media (max-width: 620px) {
  .topic,
  .stat,
  .stat--text {
    min-height: 0;
    gap: var(--s-3);
  }

  .topic {
    padding: var(--s-5);
  }

  .stat__label,
  .stat--text .stat__label {
    max-width: none;
  }

  .stat--text .stat__value {
    font-size: 1.625rem;
  }

  /* Герою хватает содержимого — жёсткая высота только растягивает экран */
  .hero__card {
    min-height: 0;
    padding-block: var(--s-8);
  }

  .hero__body {
    padding-top: var(--s-10);
  }

  .hero__strip {
    margin-top: var(--s-8);
  }
}

/* ---------- Фон страницы ----------
   Узора здесь нет намеренно: он живёт только на тёмных карточках.
   Остаётся лишь мягкая засветка, чтобы кремовый не выглядел мёртвым. */

body {
  background-image: var(--sheen-light);
  background-attachment: fixed;
}

/* ---------- Тёмные карточки: свечение и дуги ----------
   Два слоя на каждой карточке, больше ничего:
   ::before — плоское свечение, заходит с одной стороны и тает;
   ::after  — концентрические дуги от той же стороны, гаснут маской.
   Направление у каждой карточки своё, задаётся переменными. */

.hero__card,
.ticket,
.final__card {
  /* точка схода дуг и угол свечения */
  --arc-x: 100%;
  --arc-y: 100%;
  --glow-angle: 315deg;
}

.hero__card::before,
.ticket::before,
.final__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    var(--glow-angle),
    rgba(30, 214, 155, 0.26) 0%,
    rgba(30, 214, 155, 0.09) 30%,
    transparent 62%
  );
}

.ticket::after,
.final__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: var(--chevron-opacity);
  background-image: var(--chevron);
  background-size: var(--chevron-size);
  /* Гаснет дважды: от точки схода вглубь карточки и по всем краям.
     Две маски перемножаются — mask-composite: intersect. */
  --fade-origin: radial-gradient(
    150% 150% at var(--arc-x) var(--arc-y),
    #000 0%,
    rgba(0, 0, 0, 0.55) 45%,
    transparent 92%
  );
  --fade-edges: radial-gradient(125% 125% at 50% 50%, #000 42%, transparent 99%);

  -webkit-mask-image: var(--fade-origin), var(--fade-edges);
  mask-image: var(--fade-origin), var(--fade-edges);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Свечение и дуги заходят с правого верхнего угла */
.ticket {
  --arc-x: 100%;
  --arc-y: 0%;
  --glow-angle: 215deg;
}

/* Снизу по центру — карточка симметричная */
.final__card {
  --arc-x: 50%;
  --arc-y: 100%;
  --glow-angle: 0deg;
}

/* ============================================================
   Мест нет

   Все 35 мест проданы (03.10.2026). Блок держим одним куском:
   когда продажи откроются снова, он удаляется целиком, а разметка
   формы возвращается из истории git.
   ============================================================ */

/* Не кнопка, а метка в форме кнопки: нажимать нечего. */
.btn--sold {
  background-color: rgba(248, 246, 242, 0.08);
  border: 1px solid var(--line-dark);
  color: var(--on-dark-65);
  cursor: default;
}

.btn--sold:hover {
  transform: none;
}

/* Плашка на тёмных карточках — героя и билета. */
.tag--sold {
  color: var(--on-dark);
  border-color: rgba(248, 246, 242, 0.35);
}

/* Объяснение вместо формы регистрации. */
.soldout__text {
  margin-top: var(--s-5);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--fg-62);
}

.soldout__cta {
  margin-top: var(--s-6);
}

/* Главная строка панели: самое важное человек должен прочитать первым. */
.soldout__lead {
  margin-top: var(--s-5);
  font-size: var(--fs-lead);
  font-weight: 700;
  color: var(--fg);
}

.soldout__socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.soldout__thanks {
  margin-top: var(--s-6);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--fg);
}
