:root {
  color-scheme: light;
  --paper: #f3f1e8;
  --white: #fffef9;
  --ink: #171d1b;
  --muted: #68706b;
  --line: #d8d8cd;
  --green: #245c45;
  --green-dark: #193d30;
  --lime: #d7ed79;
  --orange: #d65b37;
  --red-soft: #f5d9d0;
  --font-display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.topbar {
  min-height: 76px;
  padding: 0 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: #101311;
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-icon { width: 60px; height: 36px; display: block; object-fit: contain; }
.brand-wordmark { width: 88px; height: 35px; display: block; object-fit: contain; }
.payments-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -12px 0 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.payments-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.wordmark-light { color: var(--green); font-weight: 500; margin-left: 4px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a, .nav-action {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.main-nav a:hover, .nav-action:hover, .text-link:hover { color: var(--orange); }
.nav-action { color: var(--ink); white-space: nowrap; }
.nav-action span { color: var(--orange); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(360px, 1.06fr);
  min-height: 550px;
  padding: 50px 5.5vw 58px;
  gap: 5vw;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-copy { max-width: 610px; }
.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.pulse-dot, .loading-dot, .status-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68a650;
  margin-right: 8px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.01;
}
h1 span { color: var(--green); }
.hero-lede { max-width: 430px; margin-bottom: 28px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--green); }
.button-telegram { background: #2a9dd8; color: #fff; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--orange); }
.hero-meta { margin-top: 50px; display: flex; gap: 20px; flex-wrap: wrap; color: #80877f; font-size: 9px; font-weight: 700; letter-spacing: 0; }
.hero-image {
  position: relative;
  height: 420px;
  margin: 0;
  overflow: hidden;
  background: var(--green-dark);
  border-radius: 7px;
}
.hero-image::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(15, 31, 25, .66));
  content: "";
  pointer-events: none;
}
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-image figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.image-index {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  padding: 6px 9px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.section-wrap { padding-right: 8vw; padding-left: 8vw; }
.catalog { padding-top: 90px; padding-bottom: 96px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { margin-bottom: 0; font-size: 38px; font-weight: 600; line-height: 1.1; }
.section-note { width: min(390px, 100%); margin-bottom: 3px; color: var(--muted); font-size: 14px; }
.plan-list { border-top: 1px solid var(--line); }
.plan-row {
  display: grid;
  grid-template-columns: 42px minmax(180px, 1.1fr) minmax(190px, 1.2fr) minmax(115px, .7fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 122px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease, padding .18s ease;
}
.plan-row:hover { background: rgba(215, 237, 121, .22); padding-right: 12px; padding-left: 12px; }
.plan-index { color: var(--orange); font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.plan-name h3 { margin-bottom: 5px; font-size: 20px; font-weight: 600; }
.plan-name p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.plan-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.plan-facts span + span::before { content: "·"; margin-right: 14px; color: var(--orange); }
.plan-price strong { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 600; white-space: nowrap; }
.plan-price strong span { color: var(--orange); font-size: 16px; }
.plan-price small { color: var(--muted); font-size: 11px; }
.plan-buy { min-width: 108px; min-height: 42px; padding: 0 13px; }
.loading-line, .empty-state { padding: 28px 0; color: var(--muted); font-size: 14px; }
.loading-dot { width: 7px; height: 7px; animation: pulse 1s infinite alternate; }
.api-note { margin: 18px 0 0; color: var(--orange); font-size: 13px; }

.account-section { background: var(--green-dark); color: var(--white); }
.account-layout { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(350px, 1.2fr); gap: 9vw; align-items: center; padding-top: 86px; padding-bottom: 86px; }
.account-intro .eyebrow { color: var(--lime); }
.account-intro h2 { margin-bottom: 18px; font-size: 42px; }
.account-intro > p:not(.eyebrow) { max-width: 330px; color: #c1ccc4; font-size: 15px; }
.support-link { display: inline-grid; gap: 4px; margin-top: 22px; color: #c1ccc4; font-size: 12px; text-decoration: none; }
.support-link span { color: var(--lime); font-size: 13px; font-weight: 700; }
.account-panel { min-height: 315px; padding: 26px 30px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; background: rgba(255,255,255,.05); }
.panel-kicker { display: flex; justify-content: space-between; margin-bottom: 38px; color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.panel-number { color: rgba(255,255,255,.45); }
.account-panel h3 { margin-bottom: 9px; font-size: 24px; font-weight: 600; }
.panel-copy { max-width: 460px; margin-bottom: 18px; color: #c1ccc4; font-size: 14px; }
.telegram-login { min-height: 45px; display: flex; align-items: center; }
.widget-note { margin: 8px 0 0; color: #c1ccc4; font-size: 12px; }
.privacy-hint { margin: 20px 0 0; color: #aebdb2; font-size: 11px; }
.privacy-hint a { color: var(--lime); text-underline-offset: 3px; }
.account-status { display: inline-flex; align-items: center; margin-bottom: 14px; padding: 6px 9px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.status-active { background: rgba(215,237,121,.15); color: var(--lime); }
.status-active .status-light { background: var(--lime); }
.status-ended { background: rgba(245,217,208,.13); color: #f4a58c; }
.status-ended .status-light { background: #e58b71; }
.subscription-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.subscription-actions .button { background: var(--lime); color: var(--ink); }
.subscription-actions .text-link { color: var(--white); }
.logout-button { display: block; margin-top: 24px; padding: 0; border: 0; background: transparent; color: #aebdb2; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.how-it-works { padding-top: 88px; padding-bottom: 94px; }
.compact-heading { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { min-height: 145px; padding: 23px 20px 15px 0; display: flex; align-items: flex-start; gap: 15px; border-bottom: 1px solid var(--line); }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.step-no { color: var(--orange); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.steps h3 { margin: -4px 0 7px; font-size: 17px; font-weight: 600; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.site-footer { min-height: 82px; padding: 18px 5.5vw; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 14px; }
.footer-brand .brand-icon { width: 50px; height: 30px; }
.footer-brand .brand-wordmark { width: 72px; height: 29px; }
.footer-copy, .footer-links { color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.toast { position: fixed; z-index: 5; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px)); padding: 13px 17px; background: var(--ink); color: #fff; border-radius: 6px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; font-size: 13px; }
.toast-visible { opacity: 1; transform: translateY(0); }
.reveal { animation: rise-in .7s both; }
.reveal-late { animation-delay: .12s; }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }

@media (max-width: 900px) {
  .topbar { padding-right: 4vw; padding-left: 4vw; }
  .hero { grid-template-columns: 1fr 1fr; padding-right: 4vw; padding-left: 4vw; gap: 4vw; }
  h1 { font-size: 52px; }
  .hero-image { height: 370px; }
  .section-wrap { padding-right: 5vw; padding-left: 5vw; }
  .plan-row { grid-template-columns: 28px minmax(150px, 1fr) minmax(130px, .8fr) auto; gap: 14px; padding: 16px 0; }
  .plan-facts { grid-column: 2 / 4; grid-row: 2; }
  .plan-price { grid-column: 3; grid-row: 1; }
  .plan-buy { grid-column: 4; grid-row: 1 / span 2; }
  .account-layout { gap: 5vw; }
}

@media (max-width: 640px) {
  .topbar { min-height: 66px; padding: 0 20px; }
  .main-nav { display: none; }
  .nav-action { margin-left: auto; font-size: 12px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 44px 20px 30px; gap: 34px; }
  .hero-copy { max-width: none; }
  h1 { font-size: 46px; }
  .hero-lede { font-size: 16px; }
  .hero-meta { margin-top: 32px; gap: 12px; font-size: 8px; }
  .hero-image { width: 100%; height: 270px; }
  .hero-image figcaption { right: 14px; bottom: 14px; left: 14px; font-size: 8px; }
  .section-wrap { padding-right: 20px; padding-left: 20px; }
  .catalog, .how-it-works { padding-top: 60px; padding-bottom: 64px; }
  .section-heading { display: block; margin-bottom: 22px; }
  h2 { font-size: 32px; }
  .section-note { margin-top: 14px; font-size: 13px; }
  .payments-note { margin-top: -6px; font-size: 12px; }
  .plan-row { grid-template-columns: 28px 1fr auto; gap: 9px 12px; min-height: 0; padding: 18px 0; }
  .plan-index { grid-row: 1 / span 2; align-self: start; }
  .plan-name { grid-column: 2 / 4; }
  .plan-name h3 { font-size: 18px; }
  .plan-facts { grid-column: 2 / 4; grid-row: 2; padding-top: 2px; gap: 5px 10px; font-size: 11px; }
  .plan-price { grid-column: 2; grid-row: 3; margin-top: 8px; }
  .plan-buy { grid-column: 3; grid-row: 3; align-self: center; margin-top: 8px; }
  .account-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 60px; padding-bottom: 62px; }
  .account-intro h2 { font-size: 36px; }
  .account-panel { min-height: 0; padding: 22px 18px; }
  .panel-kicker { margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; padding: 18px 0; }
  .steps li + li { padding-left: 0; border-left: 0; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; padding: 22px 20px; }
  .footer-copy { order: 3; width: 100%; }
  .footer-links { gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}