﻿:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.08);
  --telegram: #229ed9;
  --telegram-hover: #1c8fc7;
  --accent-soft: rgba(34, 158, 217, 0.1);
  --accent-dark: #0b132b;
  --success: #12b76a;
  --shadow-card: 0 20px 50px rgba(16, 24, 40, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 158, 217, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
  font: 500 16px/1.6 "Montserrat", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.page-shell { position: relative; overflow: clip; }
.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 78%);
  pointer-events: none;
}
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { padding: 58px 0; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-subtitle { margin-top: 14px; color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 9px 14px;
  border: 1px solid rgba(18, 183, 106, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.1);
}

h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.05em; line-height: 1.04; }
h1 { max-width: 560px; font-size: clamp(28px, 4vw, 44px); }
h2 { max-width: 780px; font-size: clamp(24px, 3.1vw, 36px); }
h3 { font-size: 20px; line-height: 1.28; letter-spacing: -0.03em; }

.hero-lead, .hero-note, .feature-card p, .mini-card p, .faq-answer p, .footer-meta span { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px 0 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #081225;
  color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 13px; line-height: 1.1; }
.brand-text span { color: var(--muted); font-size: 10px; line-height: 1.15; }
.site-nav { display: inline-flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.site-nav a:hover, .footer-meta a:hover { color: var(--telegram); }

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.button { min-width: 196px; }
.button-telegram {
  background: var(--telegram);
  color: #fff;
  box-shadow: 0 14px 30px rgba(34, 158, 217, 0.24);
}
.button-telegram:hover { background: var(--telegram-hover); transform: translateY(-2px); }
.button-label { white-space: nowrap; }
.button-icon { width: 16px; height: 16px; display: inline-flex; }
.button-icon svg { width: 16px; height: 16px; display: block; }

.hero { padding-top: 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
}
.hero-copy { padding: 16px 0; }
.hero-lead {
  max-width: 500px;
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.hero-note { max-width: 500px; margin-top: 14px; font-size: 14px; line-height: 1.6; }
.hero-preview { display: flex; justify-content: center; }
.preview-wrap {
  position: relative;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}
.preview-wrap::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 84px;
  height: 14px;
  border-radius: 999px;
  background: #0b132b;
  transform: translateX(-50%);
}
.preview-phone {
  width: 100%;
  max-height: 400px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  background: #eef3fa;
}

.feature-grid, .mini-grid, .steps-grid { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card, .pain-card, .mini-card, .step-card, .telegram-bubble, .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}
.feature-card, .pain-card, .mini-card, .step-card { padding: 22px; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--telegram);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3, .mini-card h3 { margin-bottom: 10px; }
.feature-card p, .mini-card p { max-width: 34ch; font-size: 15px; line-height: 1.6; }
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pain-card { min-height: 100%; }
.pain-text { font-size: 18px; font-weight: 500; line-height: 1.55; }
.section-soft .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.telegram-stack { display: grid; gap: 12px; }
.telegram-stack-wide { max-width: 760px; }
.telegram-bubble { padding: 18px; }
.telegram-bubble.is-primary { background: linear-gradient(180deg, rgba(230, 245, 255, 0.96), rgba(255, 255, 255, 0.88)); }
.bubble-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bubble-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--telegram);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.bubble-head strong, .telegram-bubble p { display: block; }
.bubble-head span:last-child { color: var(--muted); font-size: 12px; }
.telegram-bubble p { font-size: 15px; line-height: 1.6; }

.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--telegram);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step-card h3 { font-size: 20px; }
.start-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
}
.start-cta p { color: var(--muted); font-size: 14px; }

.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-question span:first-child { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.faq-icon { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 220ms ease; }
.faq-answer p { padding: 0 24px 22px; font-size: 15px; line-height: 1.65; }

.final-cta {
  padding: 38px;
  border: 1px solid rgba(34, 158, 217, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top center, rgba(34, 158, 217, 0.22), rgba(34, 158, 217, 0) 42%),
    linear-gradient(180deg, #081224 0%, #0d1830 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(8, 18, 36, 0.24);
}
.final-cta h2 { margin: 0 auto 16px; max-width: 760px; }
.final-cta p {
  margin: 0 auto 22px;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer { padding: 6px 0 42px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
}
.brand-footer .brand-mark { width: 36px; height: 36px; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero-grid, .feature-grid, .pain-grid, .section-soft .mini-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero-preview { order: 2; }
  .hero-copy { order: 1; }
  .preview-wrap { width: 200px; }
}

@media (max-width: 760px) {
  .header-inner { padding: 8px 10px; }
  .header-cta { display: none; }
  .section { padding: 44px 0; }
  .final-cta { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .site-header { padding-top: 6px; }
  .brand-text span { display: none; }
  .section { padding: 36px 0; }
  .hero { padding-top: 20px; }
  .hero-lead, .section-subtitle, .feature-card p, .mini-card p, .faq-answer p, .start-cta p, .telegram-bubble p, .final-cta p { font-size: 14px; }
  .hero-actions, .button { width: 100%; }
  .button { min-width: 0; }
  .feature-card, .pain-card, .mini-card, .step-card, .telegram-bubble, .faq-question { padding-left: 18px; padding-right: 18px; }
  .faq-answer p { padding-left: 18px; padding-right: 18px; }
  .faq-question span:first-child { font-size: 16px; }
  .step-card h3, .feature-card h3, .mini-card h3 { font-size: 18px; }
  .pain-text { font-size: 16px; }
}

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