/* kz-docs: юр. документы и служебные страницы herosjourney.kz.
   Светлая тема — документы и форма удаления (как в Tilda: белый фон, серые
   «таблетки»), тёмная — инструкции и онбординг (чёрный фон, фиолетовый). */

:root {
  --violet: #6422ff;
  --violet-soft: #8b6cff;
  --pill: #ebebeb;
  --pill-active: #d6d6d6;
  --muted: #7c7c7c;
  --card: #1e1e1e;
  --card-2: #0b0b0b;
  --radius: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.theme-light { background: #fff; color: #000; }
.theme-dark { background: #000; color: #fff; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
/* Онбординг и инструкция в Tilda были свёрстаны только под телефон —
   на компьютере показываем ту же колонку по центру. */
.phone { max-width: 420px; margin: 0 auto; padding: 0 12px; }

/* ---------- Документы ---------- */

.doc { padding-top: 56px; padding-bottom: 64px; }
.doc__brand { margin: 0 0 24px; font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.pills + .pills { margin-top: 28px; }
.pills a {
  display: inline-block;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--pill);
  color: #474747;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.pills a[aria-current="page"] { background: var(--pill-active); color: var(--muted); }

.doc h1,
.doc h2 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.doc h1 { margin: 56px 0 32px; font-size: clamp(28px, 6vw, 40px); }
.doc h2 { margin: 40px 0 16px; font-size: 22px; }
.doc .lead { margin: 0 0 24px; color: #474747; }
.legal-text { margin: 0 0 32px; overflow-wrap: anywhere; }
.legal-text a { text-decoration: underline; }

/* Вкладки без JS: radio + label. */
.tabs { margin-top: 32px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs__bar { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs__bar label {
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--pill);
  color: #474747;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tabs__panel { display: none; }
.tabs > input:nth-of-type(1):checked ~ .tabs__panels > .tabs__panel:nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .tabs__panels > .tabs__panel:nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .tabs__panels > .tabs__panel:nth-child(3) { display: block; }
.tabs > input:nth-of-type(1):checked ~ .tabs__bar > label:nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .tabs__bar > label:nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .tabs__bar > label:nth-child(3) { background: var(--pill-active); color: var(--muted); }
.tabs > input:focus-visible ~ .tabs__bar label { outline-offset: 2px; }

/* ---------- Форма удаления аккаунта ---------- */

.form-page { padding-top: 96px; padding-bottom: 64px; }
.form-page__kicker { margin: 0; color: #c4c4c4; font-size: 30px; font-weight: 800; line-height: 1.1; }
.form-page h1 { margin: 0 0 40px; font-size: 30px; font-weight: 800; line-height: 1.15; }
.field { display: block; margin: 0 0 24px; }
.field__label { display: block; margin-bottom: 8px; }
.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  font: inherit;
}
.field textarea { min-height: 100px; resize: vertical; }
.field .phone-input { display: flex; align-items: center; border: 1px solid #000; }
.phone-input b { padding: 0 4px 0 16px; font-weight: 400; }
.field .phone-input input { border: 0; padding-left: 4px; }
.button {
  display: block;
  width: 100%;
  padding: 18px;
  border: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.button[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 20px 0 0; }
.form-status[data-state="error"] { color: #c00; }

/* ---------- Простые экраны: спасибо, оплата ---------- */

.center {
  min-height: 70vh;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 48px 20px;
  text-align: center;
}
.center img { margin: 0 auto; }
.center h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; }
.center p { margin: 0; color: #bdbdbd; }
.stores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stores a { display: block; width: 168px; }

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

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px 48px;
  font-size: 13px;
  color: var(--muted);
}
.footer a { color: inherit; }
/* Логотип Astana Hub между ссылкой на соглашение и ©. */
.footer .astanahub { display: inline-flex; opacity: .8; transition: opacity .2s; }
.footer .astanahub:hover, .footer .astanahub:focus-visible { opacity: 1; }
.footer .astanahub img { width: auto; height: 30px; }

/* ---------- Тёмные страницы: инструкция, онбординг ---------- */

.section { padding: 40px 0; }
.section + .section { border-top: 1px solid #1a1a1a; }
.h-xl { margin: 0 0 24px; font-size: 40px; font-weight: 800; line-height: 1.05; text-align: center; }
.h-l { margin: 0 0 24px; font-size: 28px; font-weight: 800; line-height: 1.15; }
.h-m { margin: 0 0 16px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.accent { color: var(--violet-soft); }
.text-c { text-align: center; }
.muted { color: #bdbdbd; }

.hero-grad { background: linear-gradient(0deg, #000 0%, var(--violet) 100%); }
.outro-grad { background: linear-gradient(0deg, var(--violet) 0%, #000 100%); }

.logo-mark { width: 35px; margin: 0 auto; }

.hero-card { position: relative; margin: 140px 0 120px; }
.hero-card__text { position: absolute; inset: 25% 4.5% auto 4.5%; color: #000; }
.hero-card__text h1 { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 21px; }
.hero-card__text p { margin: 0; max-width: 246px; font-size: 13px; line-height: 15px; }

/* Три экрана приложения сменяют друг друга, как в Tilda. */
.fade { position: relative; aspect-ratio: 379 / 367; margin: 24px -12px; }
.fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation: fade 9s infinite; }
.fade img:nth-child(2) { animation-delay: 3s; }
.fade img:nth-child(3) { animation-delay: 6s; }
@keyframes fade { 0%, 100% { opacity: 0; } 5%, 30% { opacity: 1; } 38% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fade img { animation: none; }
  .fade img:first-child { opacity: 1; }
}

.store-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 24px 0; }

.fs-icon { display: grid; grid-template-columns: 101px 1fr; gap: 20px; align-items: center; margin: 32px 0; font-size: 14px; }
.fs-grid { position: relative; aspect-ratio: 1; background-size: 100% 100%; }
.fs-grid span { position: absolute; width: 44%; font-size: 12px; line-height: 1.2; }
.fs-grid span:nth-child(1) { left: 3.5%; top: 40%; }
.fs-grid span:nth-child(2) { left: 52%; top: 40%; }
.fs-grid span:nth-child(3) { left: 3.5%; top: 90%; }
.fs-grid span:nth-child(4) { left: 52%; top: 90%; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cards-2 a { display: block; border-radius: 12px; overflow: hidden; }

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 293 / 641;
  border: 0;
  border-radius: var(--radius);
  background: #111;
}

.steps-group { display: grid; grid-template-columns: 117px 1fr; gap: 9px; margin: 0 0 24px; }
.steps-group__label { display: grid; align-content: center; padding: 12px; min-height: 84px; border-radius: 12px; background: var(--card); font-size: 14px; font-weight: 600; align-self: start; }
.steps-group ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.step { padding: 8px 12px 12px; border-radius: 12px; background: var(--card); font-size: 14px; }
.step img { width: 41px; margin-bottom: 6px; }
.step img.step__wide { width: 100%; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--card); font-size: 14px; text-align: center; }

.row { display: grid; grid-template-columns: 117px 1fr; gap: 9px; margin: 0 0 16px; align-items: start; }
.row h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; line-height: 1.2; }
.row p { margin: 0 0 12px; font-size: 12px; color: #bdbdbd; }

.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: 0 0 82%; scroll-snap-align: start; }

.sys-card { position: relative; padding: 11px; border-radius: var(--radius); background: var(--card); }
.sys-card .video { aspect-ratio: 281 / 445; }
.sys-card__media { display: grid; place-items: center; aspect-ratio: 281 / 445; border-radius: 12px; background: var(--card-2); }
.sys-card p { margin: 14px 0 6px; font-size: 13px; }
.sys-card__sign { position: absolute; right: -14px; top: 45%; z-index: 1; font-size: 22px; font-weight: 800; }

.stack { display: grid; gap: 16px; }

/* Попапы описаний тренировок: открываются по #якорю, без JS. */
.modal { position: fixed; inset: 0; z-index: 10; display: none; overflow-y: auto; background: rgba(0, 0, 0, 0.85); }
.modal:target { display: block; }
.modal__box { position: relative; max-width: 420px; margin: 40px auto; padding: 0 0 24px; border-radius: var(--radius); background: #111; overflow: hidden; }
.modal__box h2 { margin: 20px 20px 10px; font-size: 22px; font-weight: 800; }
.modal__box p { margin: 0 20px; font-size: 14px; color: #d0d0d0; }
.modal__close { position: absolute; top: 10px; right: 12px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 22px; text-decoration: none; }

/* Онбординг */
.ob-hero { padding: 28px 0 24px; }
.ob-kicker { margin: 60px 0 16px; font-size: 13px; font-weight: 600; }
.ob-kicker span { margin-left: 8px; color: var(--violet-soft); }
.ob-title { margin: 0 0 32px; font-size: 28px; font-weight: 800; line-height: 1.15; }
.ob-photos > * { flex-basis: 56%; }
.ob-photos img { border-radius: 12px; aspect-ratio: 206 / 293; object-fit: cover; width: 100%; }
.club-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 305 / 293; background: #111 center / cover no-repeat; }
.club-card h3 { position: absolute; left: 16px; top: 18px; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.15; max-width: 220px; }
.club-card ul { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.club-card li { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #000; font-size: 13px; font-weight: 600; }
.ob-step { margin: 0 0 32px; }
.ob-step p { margin: 0 0 16px; }
.ob-step img { margin: 0 auto; border-radius: 12px; }
.ob-shot { width: 75%; }
.ob-gallery > * { flex-basis: 75%; }
.ob-gallery img { border-radius: 12px; }
.ob-num { display: grid; grid-template-columns: 30px 1fr; gap: 4px; margin: 14px 0 28px; }
.ob-num b { color: var(--violet-soft); }
.burn { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.burn li { padding: 18px 16px; border-radius: 12px; background: var(--card); }
.wa { display: block; margin: 16px auto 32px; padding: 14px; max-width: 300px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; text-align: center; text-decoration: none; }
.ob-stores { display: grid; gap: 12px; justify-items: center; margin: 24px 0; }
.ob-stores a { width: 125px; }
