/* ═══════════════════════════════════════════════════════════════════
   PO.BOOST — оформление.

   Айдентика взята с мобильного приложения: чистый чёрный холст, крупные
   мягкие скругления, много воздуха, почти монохром. Правила:
   • фон — настоящий чёрный, карточки всплывают над ним мягким серым;
   • радиусы большие (20–28px), никаких острых углов и засечек;
   • цвет один — мятный, и только для положительных значений и статусов;
   • разделяют не линии, а промежутки между карточками;
   • строки списка: иконка в круге, заголовок с подписью, значение справа.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:          #000000;
  --surface:     #0E0F10;
  --surface-2:   #141516;
  --surface-3:   #1B1C1E;

  --line:        rgba(255, 255, 255, 0.07);
  --line-soft:   rgba(255, 255, 255, 0.045);

  --text:        #FFFFFF;
  --text-2:      #9B9CA0;
  --text-3:      #6A6B70;
  --text-4:      #46474B;

  --mint:        #55DFA0;
  --mint-dim:    rgba(85, 223, 160, 0.12);

  /* Палитра акцентов: каждый блок интерфейса получает свой оттенок,
     чтобы экран не был сплошным чёрным полотном с одной мятой. */
  --accent-1:    #55DFA0;   /* мята — сигналы, успех */
  --accent-2:    #5BA8F5;   /* синий — настройки, данные */
  --accent-3:    #A98CF0;   /* сирень — активы */
  --accent-4:    #E8B45C;   /* янтарь — время, лимиты */
  --accent-1-dim: rgba(85, 223, 160, 0.13);
  --accent-2-dim: rgba(91, 168, 245, 0.13);
  --accent-3-dim: rgba(169, 140, 240, 0.13);
  --accent-4-dim: rgba(232, 180, 92, 0.13);
  /* Замок закрытого раздела: рисуется маской, чтобы наследовать цвет текста. */
  --lock-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V4.8a4 4 0 0 1 8 0V7h.6A1.4 1.4 0 0 1 13 8.4v5.2A1.4 1.4 0 0 1 11.6 15H2.4A1.4 1.4 0 0 1 1 13.6V8.4A1.4 1.4 0 0 1 2.4 7H3Zm2 0h4V4.8a2 2 0 0 0-4 0V7Z' fill='%23000'/%3E%3C/svg%3E");
  --red:         #F4756F;

  --r-card:      26px;
  --r-mid:       18px;
  --r-small:     12px;
  --r-pill:      999px;

  --maxw:        1120px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Логика прячет узлы атрибутом hidden, а наши display: flex/grid его
   перебивали — так на экране оставались отсчёт входа и кнопки сигнала. */
[hidden] { display: none !important; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ─────────────────── типографика ─────────────────── */

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }

.h-display { font-size: clamp(40px, 6vw, 74px); }
.h-page    { font-size: clamp(30px, 4vw, 44px); }
.h-sect    { font-size: clamp(24px, 3vw, 32px); }
.h-row     { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.lead { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 56ch; }
.muted { color: var(--text-3); }
.mint { color: var(--mint); }

/* заголовок секции: слева жирный, справа серая приписка */
.sect-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.sect-head__meta { color: var(--text-3); font-size: 15px; white-space: nowrap; }

/* ─────────────────── карточки ─────────────────── */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 42%), var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 26px;
}
.card--flat { background: var(--surface); border-color: transparent; }
.card--tight { padding: 20px; }

/* строка списка — основной кирпич интерфейса */
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  transition: background 0.18s ease;
}
.row + .row { margin-top: 10px; }
a.row:hover, .row--link:hover { background: var(--surface-2); }

.row__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--text-2);
  font-size: 13px; font-weight: 700;
}
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.row__sub { margin-top: 2px; font-size: 14px; color: var(--text-3); }
.row__side { text-align: right; flex-shrink: 0; }
.row__value { font-size: 17px; font-weight: 700; }
.row__note { margin-top: 2px; font-size: 13.5px; color: var(--text-3); }
.row__chev { color: var(--text-4); flex-shrink: 0; }

/* пары «подпись — значение», разделённые тонкой линией */
.kv { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; }
.kv + .kv { border-top: 1px solid var(--line-soft); }
.kv__key { color: var(--text-3); font-size: 15.5px; }
.kv__val { font-weight: 700; font-size: 15.5px; text-align: right; }

/* ─────────────────── кнопки ─────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.12); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn--primary { background: var(--text); border-color: var(--text); color: #000; }
.btn--primary:hover { background: #E9E9EC; border-color: #E9E9EC; }

.btn--mint { background: var(--mint-dim); border-color: rgba(85, 223, 160, 0.3); color: var(--mint); }
.btn--mint:hover { background: rgba(85, 223, 160, 0.18); }

.btn--ghost { background: transparent; }
.btn--wide { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }

/* ─────────────────── метки ─────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.chip--mint { background: var(--mint-dim); color: var(--mint); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* ─────────────────── поля ─────────────────── */

.field { margin-bottom: 12px; }
.field label {
  display: block;
  margin: 0 0 8px 4px;
  font-size: 14px;
  color: var(--text-3);
}
.field input, .field select {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-mid);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field input::placeholder { color: var(--text-4); }
.field input:focus, .field select:focus {
  outline: none;
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ─────────────────── сетки и секции ─────────────────── */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ─────────────────── плавность переходов ─────────────────── */

/* Страница проявляется при загрузке и гаснет перед уходом — переход
   между разделами перестаёт быть рывком. */
/* Сдвиг задаём секциям, а не body: трансформация на body сделала бы его
   точкой отсчёта для position:fixed и уронила бы модалки в поток. */
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }
@keyframes sectionEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
body { animation: pageEnter 0.18s ease both; }
body > section { animation: sectionEnter 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
body > section:nth-of-type(2) { animation-delay: 0.04s; }
body > section:nth-of-type(3) { animation-delay: 0.08s; }
body > section:nth-of-type(n + 4) { animation-delay: 0.1s; }
html.is-leaving body {
  opacity: 0;
  transition: opacity 0.1s ease;
  animation: none;
}

/* Списки проявляются по очереди: карточки разделов, уроки, записи журнала.
   Задержка задаётся переменной --i, её проставляет код при отрисовке. */
@keyframes itemEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.feature, .lesson, .unlock, .step, .card--enter {
  animation: itemEnter 0.44s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* Наведение приподнимает карточку — интерфейс перестаёт быть статичным. */
.feature, .card, .lesson {
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.22s ease, background 0.22s ease;
}
.feature:hover, .lesson:not(.is-locked):hover { transform: translateY(-2px); }

/* Всплывающие панели и окна */
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body, body > section, html.is-leaving body,
  .feature, .lesson, .unlock, .step, .card--enter {
    animation: none; opacity: 1; transform: none; transition: none;
  }
}

.section { padding: 84px 0; }
.section--tight { padding: 52px 0; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 56px 0; }
  .card { padding: 20px; border-radius: 22px; }
  .row { padding: 16px 18px; border-radius: 22px; }
  .btn { width: 100%; }
}

/* ─────────────────── шапка: плавающая капсула ─────────────────── */

.topbar { position: sticky; top: 0; z-index: 60; padding: 14px 0 0; }
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
  background: rgba(14, 15, 16, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
}

.mark { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mark__logo { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; }
.mark__logo img { width: 38px; height: 38px; display: block; }
.mark__name {
  font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
  /* «BOOST» был приглушён и читался как неактивный — выводим его
     наравне с «PO» и подсвечиваем мятным свечением. */
  text-shadow: 0 0 18px rgba(85, 223, 160, 0.28);
}
.mark__name span { color: var(--text); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); background: var(--surface-3); }

.topbar__side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar__link {
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.18s ease, background 0.18s ease;
}
.topbar__link:hover { color: var(--text); background: var(--surface-2); }
.topbar__link--cta { background: var(--text); color: #000; font-weight: 700; }
.topbar__link--tg { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-2); }
.topbar__link--tg:hover { background: var(--accent-2-dim); color: var(--accent-2); }
.footer__tg { color: var(--accent-2) !important; }

/* капсула пользователя в шапке */
.userPill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.userPill:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.14); }
.userPill__ava {
  width: 30px; height: 30px; border-radius: var(--r-pill); flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #3FC489, #55DFA0); color: #04120B;
  font-size: 13px; font-weight: 800;
  box-shadow: 0 0 16px rgba(85, 223, 160, 0.35);
}
.userPill__name {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.userPill__chev {
  width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 1.8px solid var(--text-4); border-bottom: 1.8px solid var(--text-4);
  transform: translateY(-2px) rotate(45deg);
}
.topbar__link--cta:hover { background: #E9E9EC; color: #000; }

/* ─────────────────── шапка-профиль (как в приложении) ─────────────────── */

.idcard {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
}
.idcard__av {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--text-3);
}
.idcard__name { font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.idcard__sub { margin-top: 1px; font-size: 14.5px; color: var(--text-3); }
.idcard__side { margin-left: auto; text-align: right; }
.idcard__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700;
}
.idcard__note { margin-top: 2px; font-size: 14px; color: var(--text-3); }

/* ─────────────────── плитка результата ─────────────────── */

.result {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
}
.result__label {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.result__value { margin-top: 10px; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.result__side { text-align: right; }
.result__big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.result__note { margin-top: 2px; font-size: 14px; color: var(--text-3); }

/* ─────────────────── быстрые действия ─────────────────── */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile {
  padding: 26px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  text-align: center;
  transition: background 0.18s ease;
}
.tile:hover { background: var(--surface-2); }
.tile__ico { margin: 0 auto 14px; color: var(--text-2); }
.tile__label { font-size: 15.5px; font-weight: 600; }

/* ─────────────────── герой ─────────────────── */

.hero { padding: 72px 0 40px; }
.hero__title { margin-top: 20px; }
.hero__lead { margin-top: 22px; font-size: 18px; }
.hero__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* раскрывающиеся строки */
.acc { border-top: 1px solid var(--line-soft); }
.acc__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0;
  background: none; border: 0;
  font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); text-align: left; cursor: pointer;
}
.acc__q::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--text-3); transition: transform 0.2s ease; }
.acc.is-open .acc__q::after { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.acc__a p { margin: 0 0 20px; color: var(--text-2); font-size: 15.5px; max-width: 70ch; }

/* ─────────────────── подвал ─────────────────── */

.footer { padding: 46px 0 40px; margin-top: 30px; }
.footer__card { padding: 26px 28px; background: var(--surface); border-radius: var(--r-card); }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px; align-items: start;
}
.footer__brand .mark { margin-bottom: 14px; }
.footer__tagline { margin: 0; max-width: 34ch; font-size: 14.5px; line-height: 1.6; color: var(--text-3); }
.footer__col { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.footer__colTitle {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 3px;
}
.footer__col a { font-size: 14.5px; color: var(--text-3); transition: color 0.18s ease; }
.footer__col a:hover { color: var(--text); }
.footer__tg {
  /* flex-start, иначе при переносе на две строки значок уезжает в середину */
  display: inline-flex; align-items: flex-start; gap: 8px; color: var(--accent-2) !important;
}
.footer__tg svg { flex: none; margin-top: 3px; }
.footer__tg:hover { color: #8CC8FF !important; }
.footer__bottom {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 26px; margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--text-4);
}
.footer__note { margin: 0; max-width: 62ch; line-height: 1.6; text-align: right; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer__brand { grid-column: 1 / -1; }
  /* «Связь» во всю ширину: иначе ссылка на Telegram ломается пополам */
  .footer__grid > .footer__col:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 12px; }
  .footer__note { text-align: left; }
}

/* ─────────────────── меню на узком экране ─────────────────── */

.burger {
  display: none; flex-shrink: 0;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface-2); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--text-2); }
.burger[aria-expanded="true"] span { background: var(--text); }

.navSheet {
  max-width: var(--maxw); margin: 8px auto 0; padding: 14px;
  background: rgba(14, 15, 16, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-soft); border-radius: var(--r-card);
}
.navSheet[hidden] { display: none; }
.navSheet__links { display: flex; flex-direction: column; gap: 2px; }
.navSheet__links a {
  padding: 13px 16px; border-radius: var(--r-mid);
  font-size: 16px; font-weight: 600; color: var(--text-2);
}
.navSheet__links a:hover { background: var(--surface-2); color: var(--text); }
.navSheet__side {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.navSheet__side .topbar__sep { display: none; }
.navSheet__side .topbar__link { flex: 1 1 auto; justify-content: center; text-align: center; }

@media (max-width: 900px) {
  /* капсула и панель не должны упираться в края экрана */
  .topbar { padding-left: 16px; padding-right: 16px; }
  /* на телефоне от капсулы пользователя остаётся только кружок —
     иначе шапка не помещается и страница уезжает вбок */
  .userPill { padding: 4px; gap: 0; }
  .userPill__name, .userPill__chev { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  /* в капсуле остаются только знак, язык и кнопка меню */
  .topbar__side .topbar__link, .topbar__side .topbar__sep { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .navSheet { display: none; }
}
@media (max-width: 620px) {
  .topbar { padding: 10px 0 0; }
  .topbar__inner { padding: 10px 10px 10px 16px; gap: 10px; }
  .mark__logo { width: 34px; height: 34px; }
  .topbar__link { padding: 9px 14px; font-size: 14px; }
  .hero { padding: 44px 0 28px; }
  .result { flex-direction: column; align-items: flex-start; gap: 16px; }
  .result__side { text-align: left; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ─────────────────── наборы индикаторов ─────────────────── */

.pack {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
}
.pack + .pack { margin-top: 10px; }
.pack.is-unlocked { border-color: rgba(85, 223, 160, 0.22); }

.pack__price {
  width: 74px; height: 74px; flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 800; letter-spacing: -0.03em;
}
.pack.is-unlocked .pack__price { background: var(--mint-dim); color: var(--mint); }

.pack__main { flex: 1; min-width: 0; }
.pack__name { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.pack__desc { margin-top: 3px; font-size: 14.5px; color: var(--text-3); }
.pack__features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pack__feature {
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface-2); font-size: 13px; color: var(--text-2);
}
.pack.is-unlocked .pack__feature { background: var(--mint-dim); color: var(--mint); }

.pack__side { flex-shrink: 0; text-align: right; min-width: 170px; }
.pack__status { font-size: 15px; font-weight: 700; color: var(--text-3); }
.pack.is-unlocked .pack__status { color: var(--mint); }
.pack__hint { margin-top: 3px; font-size: 13.5px; color: var(--text-4); }
.pack__bar { height: 4px; margin-top: 10px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.pack__bar span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--text-2); }
.pack__side .btn { margin-top: 12px; }

.auth-tab { flex: 1; }
.auth-tab.is-active { background: var(--text); border-color: var(--text); color: #000; }
.auth-msg { min-height: 20px; margin: 4px 0 14px; font-size: 14px; color: var(--red); }
.auth-msg.is-ok { color: var(--mint); }

@media (max-width: 720px) {
  .pack { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pack__side { text-align: left; min-width: 0; width: 100%; }
}

/* ─────────────────── календарь журнала ─────────────────── */

.cal { padding: 24px 26px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.cal__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cal__month { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.cal__nav { display: flex; gap: 8px; }
.cal__btn {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-2); cursor: pointer;
  display: grid; place-items: center; font-size: 17px;
  transition: background 0.18s ease, color 0.18s ease;
}
.cal__btn:hover { background: var(--surface-3); color: var(--text); }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  text-align: center; padding: 8px 0 12px;
  font-size: 13px; color: var(--text-4);
}
.cal__day {
  position: relative;
  min-height: 62px;
  border-radius: var(--r-mid);
  border: 1px solid transparent;
  background: none;
  color: var(--text-2);
  font-family: inherit; font-size: 16px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.cal__day:hover { background: var(--surface-2); }
.cal__day.is-empty { cursor: default; }
.cal__day.is-empty:hover { background: none; }
.cal__day.is-selected { border-color: var(--line); background: var(--surface-2); color: var(--text); }
.cal__day.has-data { color: var(--text); font-weight: 600; }
.cal__sum { font-size: 12.5px; font-weight: 600; }
.cal__sum.up { color: var(--mint); }
.cal__sum.down { color: var(--red); }

.day-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 14px; }
.day-head__title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.day-head__sub { margin-top: 2px; font-size: 14.5px; color: var(--text-3); }
.day-head__act { display: flex; gap: 10px; }
.icon-btn {
  width: 54px; height: 54px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center; font-size: 22px;
  transition: background 0.18s ease;
}
.icon-btn:hover { background: var(--surface-2); }

/* ─────────────────── обучение ─────────────────── */

.lesson { display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); width: 100%; text-align: left;
  font-family: inherit; color: inherit; cursor: pointer;
  transition: background 0.18s ease; }
.lesson + .lesson { margin-top: 6px; }
.lesson:hover { background: var(--surface-2); }
.lesson.is-locked { cursor: default; }
.lesson.is-locked:hover { background: var(--surface); }
.lesson.is-locked .lesson__title { color: var(--text-3); }

.lesson__ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-pill);
  background: var(--surface-3); display: grid; place-items: center; color: var(--text-3);
}
.lesson.is-done .lesson__ico { background: var(--mint-dim); color: var(--mint); }
/* Название и подпись урока — соседние span: без display:block они
   склеивались в одну строку. */
.lesson__main { flex: 1; min-width: 0; }
.lesson__title { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.35; }
.lesson__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--text-4); line-height: 1.4; }
.lesson__act { flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 15px; }

.level-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; margin: 34px 0 14px; }
.level-head__title { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.level-head__meta { font-size: 14.5px; color: var(--text-3); text-align: right; }

/* ─────────────────── уровни доступа ─────────────────── */

.steps { margin-top: 8px; }

/* Кнопка следующего шага под лестницей доступа. */
.accessCta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.accessCta__note { color: var(--text-3); font-size: 13px; line-height: 1.5; flex: 1 1 260px; }
@media (max-width: 600px) { .accessCta .btn { width: 100%; justify-content: center; } }
.step { display: flex; gap: 16px; padding: 4px 0; }
.step__rail { display: flex; flex-direction: column; align-items: center; }
.step__dot {
  width: 30px; height: 30px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); display: grid; place-items: center;
  color: var(--text-4); flex-shrink: 0; font-size: 14px;
}
.step.is-done .step__dot { border-color: rgba(85, 223, 160, 0.4); color: var(--mint); }
.step__line { flex: 1; width: 1.5px; background: var(--line); margin: 4px 0; min-height: 22px; }
.step:last-child .step__line { display: none; }
.step__body { padding-bottom: 18px; }
.step__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.step.is-locked .step__title { color: var(--text-3); }
.step__sub { margin-top: 2px; font-size: 14.5px; color: var(--text-3); }

.unlocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; }
.unlock { padding: 20px 22px; border-left: 1px solid var(--line-soft); }
.unlock:first-child { border-left: 0; padding-left: 0; }
.unlock__sum { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.unlock__text { margin-top: 6px; font-size: 14.5px; color: var(--text-3); line-height: 1.5; }

@media (max-width: 720px) {
  .cal { padding: 18px 16px; }
  .cal__day { min-height: 52px; font-size: 15px; }
  .unlocks { grid-template-columns: minmax(0, 1fr); }
  .unlock { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
  .unlock:first-child { border-top: 0; padding-top: 0; }
}

/* ─────────────────── переключатель языка ─────────────────── */

.langs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); }
.lang {
  padding: 7px 11px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--text-4);
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: color 0.16s ease, background 0.16s ease;
}
.lang:hover { color: var(--text-2); }
.lang.is-active { background: var(--surface-3); color: var(--text); }

/* ─────────────────── фон ─────────────────── */

/* Статичный: мягкое свечение сверху и крупный полупрозрачный знак.
   Без анимации — движение на фоне отвлекало от цифр. */
.backdrop, .siteBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Терминал грузит тот же core.css, но держит фон в одном пустом узле —
   собираем ему всё слоями на псевдоэлементах. */
.siteBg::before, .siteBg::after { content: ""; position: absolute; }
.siteBg::before {
  inset: 0;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(85, 223, 160, 0.16), transparent 68%),
    radial-gradient(720px 360px at 88% 2%, rgba(120, 150, 200, 0.10), transparent 66%),
    radial-gradient(760px 420px at 6% 96%, rgba(85, 223, 160, 0.07), transparent 70%),
    radial-gradient(640px 380px at 96% 88%, rgba(140, 120, 200, 0.055), transparent 70%);
}
.siteBg::after {
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, #000 35%, transparent 92%);
}

/* холодный подсвет сверху — отделяет шапку от полотна */
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 440px at 50% -6%, rgba(85, 223, 160, 0.16), transparent 68%),
    radial-gradient(720px 360px at 90% 4%, rgba(120, 150, 200, 0.10), transparent 66%),
    radial-gradient(780px 440px at 4% 94%, rgba(85, 223, 160, 0.075), transparent 70%),
    radial-gradient(660px 400px at 97% 86%, rgba(140, 120, 200, 0.06), transparent 70%);
}

/* фирменный знак крупно и почти незаметно */
.backdrop__sign {
  position: absolute;
  top: 46%;
  right: -6%;
  width: min(760px, 66vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.05;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21c-1.6 0-2.8-1.2-2.8-2.8V9.5a2.8 2.8 0 0 1 5.6 0v7' stroke='%23fff' stroke-width='.7' stroke-linecap='round'/%3E%3Cpath d='M6.4 18.2V9.6a5.6 5.6 0 0 1 11.2 0v5.2' stroke='%23fff' stroke-width='.7' stroke-linecap='round'/%3E%3Cpath d='M3.6 14.4V9.8a8.4 8.4 0 0 1 16.8 0v2.4' stroke='%23fff' stroke-width='.7' stroke-linecap='round'/%3E%3Cpath d='M0.9 12.4V10a11.1 11.1 0 0 1 22.2 0v1.2' stroke='%23fff' stroke-width='.6' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E");
}

/* сетка, растворяющаяся к краям */
.backdrop__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, #000 35%, transparent 92%);
}

/* Правило поднимает содержимое над фоном, но оно же перебивало
   position: fixed у перекрывающих окон — те разворачивались внизу страницы
   вместо экрана. Перечисляем их явно. */
body > *:not(.backdrop):not(.siteBg):not(.cgate):not(.tunModal):not(.infoModal):not(.authModal):not(.modal):not(.sigMarketModal):not(.toast):not(.mobileNav) {
  position: relative; z-index: 1;
}

/* ─────────────────── сводка журнала ─────────────────── */

.jStats {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px; margin-top: 18px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); overflow: hidden;
}
.jStat { padding: 18px 16px; background: var(--surface); min-width: 0; }
.jStat b {
  display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.jStat b.up { color: var(--mint); }
.jStat b.down { color: var(--red); }
.jStat span {
  display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); line-height: 1.3;
}
@media (max-width: 900px) { .jStats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .jStats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─────────────────── первый экран ─────────────────── */

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px; align-items: center;
}
.hero__col { min-width: 0; }
.hero__stats {
  /* Сетка, а не flex-wrap: при длинной подписи третий показатель
     срывался на вторую строку и ряд выглядел кривым. */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px; margin-top: 40px;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.hero__stats > div { min-width: 0; }
.hero__stats b {
  display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.hero__stats span {
  display: block; margin-top: 3px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4);
}

.heroCard {
  position: relative; overflow: hidden;
  padding: 26px; border-radius: var(--r-card);
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(85, 223, 160, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
/* Световая полоса по карточке: медленная, чтобы не раздражала. */
.heroCard::after {
  content: ''; position: absolute; top: -40%; left: -60%;
  width: 45%; height: 180%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07) 45%, transparent);
  transform: rotate(8deg);
  animation: heroSheen 5.5s ease-in-out infinite;
}
@keyframes heroSheen {
  0%, 62% { left: -60%; opacity: 0; }
  68%     { opacity: 1; }
  92%     { left: 115%; opacity: 0; }
  100%    { left: 115%; opacity: 0; }
}
.heroCard:hover::after { animation-duration: 2.4s; }
@media (prefers-reduced-motion: reduce) { .heroCard::after { animation: none; } }

.heroCard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.heroCard__tf {
  padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--text-3);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em;
}
.heroCard__dir {
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 800;
}
.heroCard__dir.up { background: var(--mint-dim); color: var(--mint); }
.heroCard__dir.down { background: rgba(244, 117, 111, 0.13); color: var(--red); }
.heroCard__pair {
  margin-top: 22px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em;
}
.heroCard__price {
  margin-top: 4px; font-size: clamp(34px, 4.4vw, 48px); font-weight: 800;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums; line-height: 1.05;
}
.heroCard__timer {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 22px;
}
.heroCard__timerLbl {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-4);
}
.heroCard__timerVal {
  font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text);
}
.heroCard__bar {
  height: 4px; margin-top: 10px; border-radius: 2px;
  background: var(--surface-3); overflow: hidden;
}
.heroCard__bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: var(--mint); transition: width 0.9s linear;
}
.heroCard__recent { margin-top: 24px; }
.heroCard__recentLbl {
  display: block; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-4);
}
.heroCard__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.heroChip {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: 12.5px; font-weight: 700;
}
.heroChip.up { color: var(--mint); }
.heroChip.down { color: var(--red); }
.heroCard__note {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; line-height: 1.5; color: var(--text-4);
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .heroCard { max-width: 460px; }
}
@media (max-width: 560px) {
  .hero__stats { gap: 14px 20px; }
  .hero__stats b { font-size: 25px; }
}

/* ─────────────────── инструкция по доступу ─────────────────── */

.accSteps { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.accStep {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  animation: itemEnter 0.44s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.accStep__n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--surface-3);
  font-size: 14px; font-weight: 800; color: var(--text-4);
}
.accStep.is-done .accStep__n { background: var(--mint-dim); color: var(--mint); }
.accStep.is-now { border-color: rgba(85, 223, 160, 0.3); }
.accStep.is-now .accStep__n { background: var(--mint); color: #000; }
.accStep.is-goal { background: var(--mint-dim); border-color: rgba(85, 223, 160, 0.26); }
.accStep.is-goal .accStep__n { background: var(--mint); color: #000; }
.accStep__body b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.accStep__body em {
  display: block; margin-top: 5px; font-style: normal;
  font-size: 14.5px; line-height: 1.55; color: var(--text-3);
}

.accCta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px;
}
.accCta__note { font-size: 14.5px; color: var(--text-4); }

.accVideo { margin-top: 36px; }
.accVideo__frame {
  position: relative; display: grid; place-items: center; gap: 14px;
  aspect-ratio: 16 / 9; border-radius: var(--r-card);
  background:
    radial-gradient(420px 200px at 50% 40%, rgba(85, 223, 160, 0.08), transparent 70%),
    var(--surface);
  border: 1px dashed var(--line);
}
.accVideo__play {
  width: 62px; height: 62px; border-radius: var(--r-pill);
  background: var(--mint-dim); border: 1px solid rgba(85, 223, 160, 0.3);
  display: grid; place-items: center;
}
.accVideo__play::after {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-left: 16px solid var(--mint);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.accVideo__label { font-size: 15px; font-weight: 600; color: var(--text-3); }
.accVideo__note { margin: 12px 0 0; font-size: 14px; color: var(--text-4); }

.accLead { margin: 10px 0 0; max-width: 70ch; font-size: 15.5px; line-height: 1.6; color: var(--text-3); }

/* ─────────────────── уровни по сумме ─────────────────── */

.tiers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 20px;
}
.tier {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 26px 22px 22px; border-radius: var(--r-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.22s ease;
}
/* цветная кромка сверху отличает уровни на взгляд */
.tier::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--tier-accent, var(--text-4));
}
.tiers .tier:nth-child(1) { --tier-accent: linear-gradient(90deg, #5B8DEF, #7FB2FF); }
.tiers .tier:nth-child(2) { --tier-accent: linear-gradient(90deg, #4FA8E8, #6FD3F5); }
.tiers .tier:nth-child(3) { --tier-accent: linear-gradient(90deg, #3FC489, #55DFA0); }
.tiers .tier:nth-child(4) { --tier-accent: linear-gradient(90deg, #E0B25C, #F2D08A); }
.tier:hover { transform: translateY(-3px); }
.tier.is-open { border-color: rgba(85, 223, 160, 0.32); }
.tier__head { display: flex; flex-direction: column; gap: 3px; }
.tier__name { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; }
.tier__sub { font-size: 13px; color: var(--text-4); }
.tier__sum {
  margin: 16px 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -0.04em;
}
.tier__sum i { font-style: normal; font-size: 14px; font-weight: 600; color: var(--text-4); }
.tier.is-open .tier__sum { color: var(--mint); }
.tier__metrics {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin: 0 0 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.tier__metrics span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tier__metrics b {
  font-size: 17px; font-weight: 800; letter-spacing: -0.03em;
  /* «Безлимит» длиннее числа — ужимаем, чтобы не рвалось по буквам */
  overflow-wrap: normal; white-space: nowrap;
  font-size: clamp(13px, 1.1vw, 17px);
}
.tier__metrics i { font-style: normal; font-size: 12px; line-height: 1.3; color: var(--text-4); }

.tier__desc { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.tier__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.tier__list li {
  position: relative; padding-left: 24px; font-size: 14px; line-height: 1.45; color: var(--text-2);
}
.tier__list li::before {
  content: ''; position: absolute; left: 2px; top: 6px;
  width: 9px; height: 5px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.tier__state {
  margin-top: auto; padding: 10px 14px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-4);
  font-size: 13.5px; font-weight: 700; text-align: center;
}
.tier__state.is-open { background: var(--mint-dim); color: var(--mint); }

@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .accCta .btn { width: 100%; justify-content: center; }
}

/* ─────────────────── обязательная привязка счёта ─────────────────── */

body.cgate-open { overflow: hidden; }
.cgate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 5, 6, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: pageEnter 0.24s ease both;
  overflow-y: auto;
}
.cgate__card {
  width: 100%; max-width: 560px; padding: 32px;
  border-radius: var(--r-card); border: 1px solid var(--line);
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(85, 223, 160, 0.12), transparent 70%),
    var(--surface);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
  animation: popIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
/* попытка закрыть мимо — лёгкий толчок вместо закрытия */
.cgate__card.is-nudge { animation: cgateNudge 0.3s ease; }
@keyframes cgateNudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.cgate__kicker {
  display: block; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint);
}
.cgate__title { margin: 10px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
.cgate__lead { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text-3); }

.cgate__steps { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cgate__step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-mid);
}
.cgate__step.is-now { background: var(--mint-dim); }
.cgate__dot {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--surface-3);
  font-size: 12px; font-weight: 800; color: var(--text-4);
}
.cgate__step.is-done .cgate__dot { background: var(--mint-dim); color: var(--mint); }
.cgate__step.is-now .cgate__dot { background: var(--mint); color: #000; }
.cgate__step b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.cgate__step em {
  display: block; margin-top: 3px; font-style: normal;
  font-size: 13.5px; line-height: 1.5; color: var(--text-3);
}
.cgate__step:not(.is-now):not(.is-done) b { color: var(--text-3); }

.cgate .btn--wide { margin-top: 20px; }
.cgate__wait {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  font-size: 14px; color: var(--mint);
}
.cgate__dots { display: flex; gap: 4px; }
.cgate__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: waitDot 1.2s ease-in-out infinite; }
.cgate__dots i:nth-child(2) { animation-delay: 0.16s; }
.cgate__dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes waitDot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.cgate__or {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 14px;
  font-size: 13px; color: var(--text-4);
}
.cgate__or::before, .cgate__or::after {
  content: ''; flex: 1; height: 1px; background: var(--line-soft);
}
.cgate__row { display: flex; gap: 10px; }
.cgate__input {
  flex: 1; min-width: 0; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: var(--r-mid);
  background: var(--surface-2); color: var(--text);
  font-family: inherit; font-size: 16px;
}
.cgate__input:focus { outline: none; border-color: rgba(85, 223, 160, 0.4); }
.cgate__row .btn { flex: 0 0 auto; }
.cgate__msg { margin: 10px 0 0; min-height: 1.2em; font-size: 14px; color: var(--text-3); }
.cgate__msg.is-ok { color: var(--mint); }
.cgate__msg.is-bad { color: var(--red); }
.cgate__note { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-4); }

@media (max-width: 560px) {
  .cgate__card { padding: 24px 20px; }
  .cgate__title { font-size: 25px; }
  .cgate__row { flex-direction: column; }
  .cgate__row .btn { width: 100%; justify-content: center; }
}

/* ─────────────────── страница урока ─────────────────── */

.h-page__sub { margin: 10px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text-3); }

.lesson__loading { color: var(--text-3); }
.lesson__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--text-3);
  transition: color 0.18s ease;
}
.lesson__back:hover { color: var(--text); }
.lesson__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.lesson__level { color: var(--mint); }
.lesson__count { color: var(--text-4); }
.lesson__done {
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--mint-dim); color: var(--mint); letter-spacing: 0.06em;
}
.lessonPage__title {
  margin: 12px 0 0; font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.14;
}
.lesson__body { margin-top: 26px; }
.lesson__lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.lesson__block {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  animation: itemEnter 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.lesson__block:nth-of-type(2) { animation-delay: 0.05s; }
.lesson__block:nth-of-type(3) { animation-delay: 0.1s; }
.lesson__block:nth-of-type(4) { animation-delay: 0.15s; }
.lesson__block h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.lesson__block p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-3); }
.lesson__take {
  margin-top: 30px; padding: 20px 22px; border-radius: var(--r-card);
  background: var(--mint-dim); border: 1px solid rgba(85, 223, 160, 0.26);
}
.lesson__take span {
  display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint);
}
.lesson__take p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.lesson__foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft);
}
.lesson__next { font-size: 14.5px; color: var(--text-4); }
@media (max-width: 560px) {
  .lesson__foot .btn { width: 100%; justify-content: center; }
}

/* ─────────────────── страница «О нас» ─────────────────── */

.kick {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mint);
}
.kick::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.grad {
  background: linear-gradient(100deg, #55DFA0, #8CF5C8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.aboutStats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 32px; margin-top: 42px; padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.aboutStats b {
  display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.aboutStats span {
  display: block; margin-top: 4px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-4); line-height: 1.35;
}

.twoCols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.doCard {
  position: relative; overflow: hidden;
  padding: 26px 24px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.doCard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; }
.doCard--yes::before { background: linear-gradient(90deg, #3FC489, #8CF5C8); }
.doCard--no::before { background: linear-gradient(90deg, #C9544E, #F4756F); }
.doCard__kick {
  display: block; margin-bottom: 18px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-4);
}
.doCard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.doCard li {
  position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; color: var(--text-2);
}
.doCard li::before {
  content: ''; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: var(--r-pill);
}
.doCard li::after { content: ''; position: absolute; }
.doCard--yes li::before { background: var(--mint-dim); }
.doCard--yes li::after {
  left: 5px; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.doCard--no li::before { background: rgba(244, 117, 111, 0.14); }
.doCard--no li::after {
  left: 6.5px; top: 6px; width: 7px; height: 7px;
  background:
    linear-gradient(45deg, transparent 44%, var(--red) 44%, var(--red) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--red) 44%, var(--red) 56%, transparent 56%);
}

.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.pipe { position: relative; padding-top: 26px; }
.pipe::before {
  content: ''; position: absolute; left: 0; right: -20px; top: 7px;
  height: 1px; background: var(--line);
}
.pipe:last-child::before { right: 0; }
.pipe::after {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px rgba(85, 223, 160, 0.6);
}
.pipe__n {
  display: block; margin-bottom: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-4);
}
.pipe h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.pipe p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-3); }

@media (max-width: 1000px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe::before { right: 0; }
  .aboutStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .twoCols { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
}

/* ─────────────────── сводка кабинета ─────────────────── */

.dashTop {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r-card); overflow: hidden;
}
.dashStat {
  padding: 22px 20px; background: var(--surface); min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 45%), var(--surface);
}
.dashStat__lbl {
  display: block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4);
}
.dashStat__val {
  display: block; margin: 9px 0 5px; font-size: 27px; font-weight: 800;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.dashStat__val.is-mint { color: var(--mint); text-shadow: 0 0 22px rgba(85, 223, 160, 0.3); }
.dashStat__val.is-warn { color: var(--text-3); }
.dashStat__hint { display: block; font-size: 13px; color: var(--text-4); line-height: 1.4; }

.dashActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

@media (max-width: 900px) { .dashTop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .dashTop { grid-template-columns: minmax(0, 1fr); }
  .dashActions .btn { width: 100%; justify-content: center; }
}

/* ─────────────────── история сделок в кабинете ─────────────────── */

.deals { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.deal {
  display: grid; grid-template-columns: 30px minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.3fr) auto;
  align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: var(--r-mid); background: var(--surface-2);
  font-size: 14.5px;
  animation: itemEnter 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.deal__n { color: var(--text-4); font-size: 13px; font-weight: 700; }
.deal__pair { font-weight: 700; color: var(--text); }
.deal__dir.up { color: var(--mint); font-weight: 600; }
.deal__dir.down { color: var(--red); font-weight: 600; }
.deal__meta { color: var(--text-4); font-size: 13.5px; }
.deal__res {
  justify-self: end; font-variant-numeric: tabular-nums; padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--text-3);
}
.deal__res.up { background: var(--mint-dim); color: var(--mint); }
.deal__res.down { background: rgba(244, 117, 111, 0.12); color: var(--red); }
.deals__empty { margin: 12px 0 0; color: var(--text-3); font-size: 15px; }

@media (max-width: 760px) {
  .deal { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .deal__n { display: none; }
  .deal__meta { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .deal { animation: none; } }

/* ─────────────────── сравнение с голым брокером ─────────────────── */

.vs {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden;
}
.vs__head, .vs__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 16px; padding: 16px 22px; align-items: center;
}
.vs__head {
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
}
.vs__col--plain { color: var(--text-4); }
.vs__col--ours { color: var(--mint); }
.vs__row + .vs__row { border-top: 1px solid var(--line-soft); }
.vs__row:hover { background: rgba(255, 255, 255, 0.015); }
.vs__name { font-size: 15px; font-weight: 700; color: var(--text); }
.vs__cell { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-3); }
.vs__cell--ours { color: var(--text-2); }
.vs__cell b { font-weight: 600; }
.vs__yes, .vs__no {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: var(--r-pill);
  display: inline-grid; place-items: center; font-style: normal;
}
.vs__yes { background: var(--mint-dim); }
.vs__yes::before {
  content: ''; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.vs__no { background: var(--surface-3); }
.vs__no::before { content: ''; width: 9px; height: 2px; background: var(--text-4); }

@media (max-width: 760px) {
  .vs__head { display: none; }
  .vs__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vs__name { font-size: 16px; }
}

/* ─────────────────── путь сигнала ─────────────────── */

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow__i {
  position: relative; padding: 22px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.flow__i h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.flow__i p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-3); }
.flow__n {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-pill); background: var(--mint-dim); color: var(--mint);
  font-size: 14px; font-weight: 800;
}
/* соединительная линия между шагами */
.flow__i:not(:last-child)::after {
  content: ''; position: absolute; top: 39px; right: -12px; width: 12px; height: 1px;
  background: var(--line);
}
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__i::after { display: none; }
}
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────────── сетка возможностей ─────────────────── */

.tiles9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile9 {
  padding: 20px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.22s ease;
}
.tile9:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.12); }
.tile9 h3 { margin: 0 0 7px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.tile9 p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-3); }
@media (max-width: 900px) { .tiles9 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles9 { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────────── частые вопросы ─────────────────── */

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__i {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden;
  transition: border-color 0.22s ease;
}
.faq__i[open] { border-color: rgba(85, 223, 160, 0.26); }
.faq__i summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px; padding: 19px 22px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--text);
}
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary::after {
  content: ''; margin-left: auto; flex: 0 0 auto; width: 9px; height: 9px;
  border-right: 2px solid var(--text-4); border-bottom: 2px solid var(--text-4);
  transform: translateY(-2px) rotate(45deg); transition: transform 0.22s ease;
}
.faq__i[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq__i summary:hover { background: var(--surface-2); }
.faq__i p {
  margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--text-3);
  animation: faqOpen 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────── финальный призыв ─────────────────── */

.finalCta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; padding: 36px 34px;
  border-radius: var(--r-card); border: 1px solid var(--line);
  background:
    radial-gradient(520px 200px at 12% 0%, rgba(85, 223, 160, 0.10), transparent 70%),
    var(--surface);
}
.finalCta__lead { margin: 10px 0 0; max-width: 56ch; font-size: 15.5px; line-height: 1.6; color: var(--text-3); }
.finalCta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .finalCta { padding: 26px 22px; }
  .finalCta__btns .btn { width: 100%; justify-content: center; }
}

/* ─────────────────── витрина разделов ─────────────────── */

.feature {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  transition: background 0.18s ease;
}
.feature + .feature { margin-top: 10px; }
a.feature:hover { background: var(--surface-2); }
.feature__ico {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--r-pill);
  background: var(--surface-3); display: grid; place-items: center; color: var(--text-2);
}
.feature__main { flex: 1; min-width: 0; }
.feature__title { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.feature__text { display: block; margin-top: 6px; font-size: 15px; color: var(--text-3); line-height: 1.55; }
.feature__side { flex-shrink: 0; align-self: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-3);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.badge--open { background: var(--mint-dim); color: var(--mint); }

@media (max-width: 720px) {
  .feature { flex-direction: column; gap: 14px; }
  .feature__side { align-self: flex-start; }
}
