:root { color-scheme: dark; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f2f6ed; background: #101817; --muted: #b4c0b8; --border: #354a41; --yellow: #f3ee32; --cyan: #18c8d9; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 85% 0, #174a32 0, transparent 42rem), radial-gradient(ellipse at 0 70%, #123b41 0, transparent 40rem), #101817; }
.site-header { min-height: 92px; padding: 10px max(20px, calc((100vw - 1040px) / 2)); display: flex; align-items: center; gap: 18px; background: #101817e8; border-bottom: 1px solid var(--border); }
.site-header span { color: var(--muted); font-size: 14px; }
.site-home { color: #81e4ec; margin-left: auto; white-space: nowrap; font-size: 14px; }
@media (max-width: 430px) { .site-header > span { display: none; } }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: contain; }
main { width: min(1040px, calc(100% - 32px)); margin: 38px auto; padding-bottom: env(safe-area-inset-bottom); }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: end; margin-bottom: 32px; }
.eyebrow { color: var(--yellow); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
h1 { margin: 12px 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 24px; }
p { color: var(--muted); line-height: 1.6; margin: 6px 0; }
.warning { color: #dddcc1; background: #292e21; border: 1px solid #65662e; border-radius: 18px; padding: 18px; line-height: 1.5; font-size: 14px; }
.panel, .plan, .status-card { background: #192720; border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: 0 16px 45px #0003; }
.panel { text-align: center; max-width: 640px; margin: 30px auto; scroll-margin-top: 20px; }
.panel p { margin: 14px 0; }
.telegram-app-link { display: inline-block; margin-top: 6px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 13px; position: relative; border-top: 3px solid #71ce51; }
.plan.premium { background: linear-gradient(155deg, #213b2d, #172622); border-color: #758c39; border-top-color: var(--yellow); }
.plan-heading { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.plan-badge { color: var(--cyan); background: #0a3537; border-radius: 7px; padding: 5px 8px; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.price { font-size: clamp(30px, 5vw, 42px); font-weight: 850; letter-spacing: -.03em; margin-top: 8px; }
.price span { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.plan-benefits { padding: 0; margin: 5px 0 8px; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.plan-benefits li::before { content: "✓"; color: #9ce46b; margin-right: 10px; }
.plan > .primary { margin-top: auto; }
.muted { color: var(--muted); font-size: 13px; }
.nowrap { white-space: nowrap; }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
input { width: 100%; padding: 13px 14px; border: 1px solid #506057; border-radius: 12px; font: inherit; color: #f2f6ed; background: #111c17; }
input:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; font-size: 12px; }
.check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--yellow); }
button, .button { border: 0; border-radius: 13px; padding: 14px 16px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; text-align: center; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.primary { color: #182014; background: linear-gradient(110deg, #f4ed3d, #b8e852); }
.primary:hover { filter: brightness(1.08); }
.secondary { color: #81e4ec; background: #173b3a; }
button:disabled { opacity: .55; cursor: wait; }
.periods { display: flex; width: fit-content; gap: 5px; margin: 0 auto 24px; padding: 5px; border: 1px solid var(--border); border-radius: 15px; background: #0f1d17; }
.period { color: var(--muted); background: transparent; font-size: 14px; }
.period.selected { color: #162117; background: var(--yellow); }
.userbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.userbar button { padding: 9px 12px; }
.status-card { max-width: 680px; margin: 24px auto; text-align: center; }
.status-card p { margin: 12px 0 20px; }
.success { border-color: #5c9f64; background: #1c3525; }
.error { border-color: #c77070; background: #422728; padding: 12px; border-radius: 12px; }
.legal-links { display: flex; justify-content: center; gap: 10px; margin: 28px 0; }
.legal-links button { color: var(--muted); background: transparent; text-decoration: underline; font-weight: 500; font-size: 13px; }
dialog { width: min(760px, calc(100% - 28px)); max-height: 85vh; border: 1px solid var(--border); border-radius: 20px; padding: 22px; color: #f2f6ed; background: #192720; box-shadow: 0 30px 100px #0007; }
dialog::backdrop { background: #050d0be0; }
#close-document { margin-top: 16px; background: var(--yellow); color: #162117; }
#document-content { max-height: 65vh; overflow: auto; padding-right: 10px; }
#document-content h3 { margin-top: 20px; }
#document-content p { margin: 12px 0; }
.hidden { display: none !important; }
@media (max-width: 720px) { .hero, .plans { grid-template-columns: 1fr; } main { margin-top: 26px; } .site-header { min-height: 82px; } .logo img { width: 62px; height: 62px; } .panel, .plan { padding: 20px; } .legal-links { flex-direction: column; gap: 0; } .price { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
