/* Сайт: лендинг и личный кабинет. Цвета — те же переменные, что у Mini App (там их задаёт Telegram). */
:root {
  --tg-theme-secondary-bg-color: #f2f3f7;
  --tg-theme-section-bg-color: #ffffff;
  --tg-theme-text-color: #111418;
  --tg-theme-hint-color: #7a808a;
  --tg-theme-link-color: #2481cc;
  --tg-theme-button-color: #2481cc;
  --tg-theme-button-text-color: #ffffff;
  --tg-theme-destructive-text-color: #e53935;
  --grad: linear-gradient(135deg, #2aabee 0%, #2481cc 55%, #5b5fe6 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --tg-theme-secondary-bg-color: #0f1115;
    --tg-theme-section-bg-color: #1b1e24;
    --tg-theme-text-color: #eef0f3;
    --tg-theme-hint-color: #8b919c;
    --tg-theme-link-color: #5eb5f7;
    --tg-theme-button-color: #3b8fe0;
    --tg-theme-destructive-text-color: #ff6b6b;
  }
}

/* --- шапка (лендинг и кабинет) --- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--section) 85%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--sep); }
.topbar-in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: inline-block; }
.spacer { flex: 1; }
.who { color: var(--hint); font-size: 14px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { border: 0; background: transparent; color: var(--link); font: inherit; cursor: pointer; padding: 4px 6px 4px 0; }

/* --- кабинет: та же вёрстка, что в Mini App, но шире --- */
body.cabinet main { max-width: 760px; padding-top: 20px; }
@media (min-width: 900px) { body.cabinet .tabbar { max-width: 600px; } }

/* --- лендинг --- */
body.landing { background: var(--bg); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.1; margin: 0 auto 16px; max-width: 820px; letter-spacing: -.02em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); color: var(--hint); max-width: 640px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; text-decoration: none; display: inline-block; }
.login-box { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.small-note { color: var(--hint); font-size: 13px; margin-top: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 56px; }
.feature { background: var(--section); border-radius: 18px; padding: 20px; }
.feature .ico { font-size: 26px; }
.feature h3 { margin: 10px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--hint); font-size: 14px; line-height: 1.5; }

.block-title { text-align: center; font-size: clamp(22px, 4vw, 32px); margin: 0 0 8px; letter-spacing: -.01em; }
.block-sub { text-align: center; color: var(--hint); margin: 0 auto 8px; max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 56px; counter-reset: s; }
.step { background: var(--section); border-radius: 18px; padding: 20px; counter-increment: s; }
.step::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--hint); font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 56px; }
.plan { background: var(--section); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan.main { outline: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 26px; font-weight: 700; }
.plan ul { margin: 6px 0 0; padding-left: 18px; color: var(--hint); font-size: 14px; line-height: 1.6; }
.soon { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

footer.site { border-top: 1px solid var(--sep); padding: 24px 0 40px; color: var(--hint); font-size: 13px; }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
