:root {
  --bg: #0a0a0a;
  --card: #141414;
  --card-hover: #1a1a1a;
  --border: #262626;
  --border-hover: #3a3a3a;
  --foreground: #f5f5f5;
  --muted: #a3a3a3;
  --primary: #ec4899;
  --primary-hover: #db2777;
  --primary-foreground: #0a0a0a;
  --accent: #f59e0b;
  --secondary: #1e1e1e;
  --secondary-hover: #2a2a2a;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* HERO */
.hero {
  position: relative; min-height: 90vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(236, 72, 153, 0.18), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 10%; left: 10%;
  width: 24rem; height: 24rem;
  background: rgba(236, 72, 153, 0.12); border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.hero-glow-2 {
  position: absolute; top: 15%; right: 8%;
  width: 18rem; height: 18rem;
  background: rgba(245, 158, 11, 0.08); border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 56rem; }

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;        /* увеличил отступ снизу — лого теперь крупнее */
  font-size: 0;                 /* скрыть текст рядом */
}

/* in footer the logo should align to the start, not centered */
.footer-brand .logo { justify-content: flex-start; }
@media (max-width: 640px) {
  .footer-brand .logo { justify-content: center; }
}

.logo-mark {
  width: 18rem;                 /* было 9rem → 18rem (×2) */
  height: 18rem;
  border-radius: 3rem;
  background: url('/static/logo.png') center/cover no-repeat;
  font-size: 0;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero .logo-mark {
    width: 12rem;               /* на мобилках чуть скромнее */
    height: 12rem;
    border-radius: 2rem;
  }
}

/* Footer logo — keep it modest */
.footer-brand .logo-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
}

/* Footer logo — keep the text visible next to small mark */
.footer-brand .logo {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  gap: 0.75rem;
}

.badge-wrap {
  display: block;
  margin-bottom: 2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}
.badge-dot {
  width: 0.5rem; height: 0.5rem;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 1.5rem;
}
h1 .accent { color: var(--primary); display: block; }
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 1rem;
}
h2 .accent { color: var(--primary); }

.subtitle {
  font-size: 1.125rem; color: var(--muted);
  max-width: 36rem; margin: 0 auto 2.5rem;
}
.section-subtitle {
  color: var(--muted); text-align: center;
  margin-bottom: 3rem; max-width: 36rem;
  margin-left: auto; margin-right: auto;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.45);
}
.btn-secondary {
  background: transparent; color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--secondary); border-color: var(--border-hover); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn-arrow::after { content: '→'; margin-left: 0.25rem; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-bottom: 2rem;
}
.hero-note { font-size: 0.875rem; color: var(--muted); }

section { padding: 5rem 1.5rem; }
.section-alt { background: rgba(20, 20, 20, 0.5); }

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.feature {
  padding: 1.75rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 1rem;
  transition: all 0.3s ease;
}
.feature:hover { border-color: rgba(236, 72, 153, 0.5); transform: translateY(-2px); }
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: rgba(236, 72, 153, 0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
}
.feature h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature p { font-size: 0.9375rem; color: var(--muted); }

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; max-width: 1000px; margin: 0 auto;
}
.step { text-align: center; }
.step-num {
  width: 4rem; height: 4rem; margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.step h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* PRICING TABS */
.pricing-tabs { position: relative; }
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.pricing-tabs > .tab-switcher {
  display: flex; width: max-content;
  margin: 0 auto 2.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem;
}
.tab-label {
  padding: 0.625rem 1.5rem; border-radius: 999px;
  cursor: pointer; color: var(--muted);
  font-weight: 600; font-size: 0.9375rem;
  transition: all 0.2s ease;
  user-select: none; white-space: nowrap;
}
.tab-label:hover { color: var(--foreground); }
.tab-panel { display: none; }
.pricing-tabs:has(#cat-personal:checked) .tab-panel-personal { display: block; }
.pricing-tabs:has(#cat-personal:checked) .tab-label[for="cat-personal"] {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 4px 12px -2px rgba(236, 72, 153, 0.4);
}
.pricing-tabs:has(#cat-business:checked) .tab-panel-business { display: block; }
.pricing-tabs:has(#cat-business:checked) .tab-label[for="cat-business"] {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 4px 12px -2px rgba(236, 72, 153, 0.4);
}

/* PRICING */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem; max-width: 1100px; margin: 0 auto;
}
.pricing-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.5rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 1rem;
  transition: all 0.3s ease;
}
.pricing-card:hover { border-color: rgba(236, 72, 153, 0.4); }
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.08), var(--card));
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.15);
}
.pricing-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.pricing-emoji { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 0.25rem; }
.pricing-tagline {
  font-size: 0.875rem; color: var(--muted);
  text-align: center; margin-bottom: 1.25rem; min-height: 2.5rem;
}
.pricing-price-from {
  font-size: 0.875rem; color: var(--muted);
  text-align: center; margin-bottom: 0.25rem;
}
.pricing-price {
  font-size: 2rem; font-weight: 800; text-align: center;
  margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.pricing-price small { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.pricing-features { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.4rem 0; font-size: 0.9375rem; color: var(--muted);
}
.pricing-features li::before {
  content: '✓'; color: var(--primary);
  font-weight: 700; flex-shrink: 0;
}

/* SOCIAL PROOF */
.social-proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2rem; max-width: 56rem; margin: 0 auto;
}
.social-stat { display: flex; align-items: center; gap: 1rem; }
.social-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.social-icon.icon-users { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.social-icon.icon-stars { background: rgba(236, 72, 153, 0.1); color: var(--primary); }
.social-stat-number { font-size: 1.875rem; font-weight: 700; }
.social-stat-label { font-size: 0.875rem; color: var(--muted); }
.social-stars { color: var(--primary); font-size: 1.125rem; letter-spacing: 2px; }

.team-note { text-align: center; margin-top: 3rem; padding: 0 1rem; }
.team-note p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; }
.team-tagline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; font-weight: 500;
}

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 0 1.5rem;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(236, 72, 153, 0.5); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.25rem 0; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; color: var(--foreground);
  transition: color 0.2s;
}
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '⌄'; font-size: 1.25rem; color: var(--muted);
  transition: transform 0.2s; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq-body {
  padding: 0 0 1.25rem 0; color: var(--muted);
  font-size: 0.9375rem; line-height: 1.65;
}

/* FOOTER */
footer {
  padding: 3rem 1.5rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.875rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 2rem; align-items: flex-start;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-info p { margin-bottom: 0.25rem; line-height: 1.5; }
.footer-info p strong { color: var(--foreground); }

.footer-links {
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: flex-end;
}
.footer-links a {
  color: var(--muted); text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.875rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-links a.danger { color: var(--danger); }
.footer-links a.danger:hover { color: #fca5a5; }

.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center; font-size: 0.8125rem;
}

/* PLAN PAGE */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.9375rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--foreground); }

.plan-header { text-align: center; margin-bottom: 3rem; }
.plan-header .plan-emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.plan-header h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.plan-header .plan-tagline { color: var(--muted); font-size: 1.0625rem; }

.plan-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}
.plan-card:hover { border-color: rgba(236, 72, 153, 0.4); }
.plan-card h3 {
  font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin-bottom: 1rem;
}
.plan-features { list-style: none; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  padding: 0.5rem 0; font-size: 1rem;
}
.plan-features li::before {
  content: '✓'; color: var(--primary); font-weight: 700;
}

.period-options { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.period-option {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 0.875rem;
  cursor: pointer; position: relative;
  transition: all 0.2s ease;
}
.period-option:hover { border-color: var(--border-hover); }
.period-option input { position: absolute; opacity: 0; }
.period-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(236, 72, 153, 0.05);
}
.period-info { display: flex; flex-direction: column; gap: 0.25rem; }
.period-label { font-size: 1.0625rem; font-weight: 600; }
.period-permonth { font-size: 0.8125rem; color: var(--muted); }
.period-price { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.period-option:has(input:checked) .period-price { color: var(--primary); }
.period-savings {
  display: inline-block; padding: 0.125rem 0.5rem;
  background: rgba(236, 72, 153, 0.15);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; margin-left: 0.5rem;
}

/* FORMS (checkout) */
.form-help {
  color: var(--muted); font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}
.form-help strong { color: var(--foreground); }

.form-field { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); margin-bottom: 0.5rem;
}
.form-input {
  width: 100%; padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  color: var(--foreground);
  font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(236, 72, 153, 0.04);
}
.form-input.has-error { border-color: var(--danger); }
.form-error {
  margin-top: 0.5rem; padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.form-fineprint {
  margin-top: 1rem;
  font-size: 0.8125rem; color: var(--muted);
  text-align: center; line-height: 1.5;
}
.form-fineprint a {
  color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px;
}
.form-fineprint a:hover { color: var(--primary); }

/* CHECKOUT / THANK-YOU */
.checkout-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2.5rem;
  text-align: center;
  transition: border-color 0.3s ease;
}
.checkout-card:hover { border-color: rgba(236, 72, 153, 0.4); }
.checkout-icon {
  width: 4rem; height: 4rem; margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background: rgba(236, 72, 153, 0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
}
.checkout-icon.icon-success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.checkout-icon.icon-error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}
.checkout-summary {
  margin: 1.5rem 0; padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: left;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0;
}
.summary-row + .summary-row { border-top: 1px solid var(--border); }
.summary-row .label { color: var(--muted); font-size: 0.9375rem; }
.summary-row .value { font-weight: 600; }
.summary-total .value { font-size: 1.25rem; color: var(--primary); }

.email-pill {
  display: inline-block;
  margin: 0.5rem auto 0;
  padding: 0.5rem 1rem;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 999px;
  color: var(--primary); font-weight: 600;
  word-break: break-all;
}

/* LEGAL */
.legal-embed {
  width: 100%; height: 80vh;
  border: none; border-radius: 0.5rem;
  background: #fff;
}

@media (max-width: 640px) {
  section { padding: 3.5rem 1rem; }
  .hero { padding: 3rem 1rem; }
  .plan-card, .checkout-card { padding: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { align-items: center; }
}



/* ── Hero: гарантия возврата ─────────────────── */
.hero-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.1rem;
    background: rgba(197, 255, 0, 0.08);
    border: 1px solid rgba(197, 255, 0, 0.25);
    border-radius: 999px;
    color: var(--text, #fff);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.hero-guarantee-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #c5ff00;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero-guarantee {
        font-size: 0.82rem;
        padding: 0.55rem 0.9rem;
        text-align: left;
    }
}

/* ── Telegram trial promo ────────────────────── */
.trial-promo-section {
    padding: 4rem 0;
}

.trial-promo {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg,
        rgba(197, 255, 0, 0.08) 0%,
        rgba(197, 255, 0, 0.02) 100%);
    border: 1px solid rgba(197, 255, 0, 0.25);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trial-promo::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
        rgba(197, 255, 0, 0.12) 0%,
        transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.trial-promo > * {
    position: relative;
    z-index: 1;
}

.trial-promo-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(197, 255, 0, 0.15);
    color: #c5ff00;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.trial-promo-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0 0 0.85rem 0;
    line-height: 1.2;
}

.trial-promo-text {
    color: var(--muted, #999);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.trial-promo-btn {
    margin-bottom: 0.9rem;
}

.trial-promo-note {
    color: var(--muted, #888);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 480px) {
    .trial-promo {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }
    .trial-promo-title {
        font-size: 1.5rem;
    }
    .trial-promo-text {
        font-size: 0.95rem;
    }
}

/* ── Бейдж "Для старта" — отдельный цвет (опционально) ────
   Раскомментируй, если хочешь визуально отличить от "Оптимально".
   По умолчанию использует тот же стиль .pricing-badge.
*/
/*
.pricing-card:has(.pricing-badge):nth-of-type(1) .pricing-badge {
    background: #4a9eff;
    color: #fff;
}
*/
