:root {
  --brand: #1e40af;
  --brand-light: #3b82f6;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8faff;
  --surface: #ffffff;
  --border: #e2e8f0;
  --danger: #dc2626;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(30, 64, 175, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(30, 64, 175, 0.15));
}

.brand-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--accent);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.brand-wordmark {
  display: none;
}

/* Круглый логотип */
.logo-round {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
}

.logo-round--cta {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 28px rgba(30, 64, 175, 0.22));
}

.logo-round--footer {
  width: 52px;
  height: 52px;
  opacity: 0.98;
}

/* Legacy wordmark (не используется) */
.logo-wordmark {
  display: none;
}

.header-mobile-nav {
  display: none;
}

.header-cta {
  flex-shrink: 0;
}

.footer-domain {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav {
  display: none;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--brand);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header-inner {
    min-height: 76px;
    padding: 12px 0;
  }

  .brand {
    flex: 0 1 auto;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .brand-sub {
    font-size: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.btn-outline {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--border);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 48px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(13, 148, 136, 0.08), transparent);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 64, 175, 0.08);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Phone mock */
.phone-mock {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow), 0 24px 48px rgba(0, 0, 0, 0.15);
  max-width: 340px;
  margin: 0 auto;
}

.phone-screen {
  background: #f1f5f9;
  border-radius: 24px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.chat-in {
  align-self: flex-end;
  background: #dbeafe;
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.chat-bot {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-bot p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.verdict {
  font-weight: 700;
  font-size: 0.78rem;
}

.verdict.danger {
  color: var(--danger);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.cards {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Family */
.family-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%);
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.family-box h2 {
  margin: 0 0 8px;
}

.family-box p {
  margin: 0;
  color: var(--text-muted);
  max-width: 560px;
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--text-muted);
  padding-top: 0;
}

/* CTA */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand) 0%, #1e3a8a 50%, var(--accent) 100%);
  color: #fff;
}

.cta-inner {
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 8px;
  font-weight: 800;
}

.cta p {
  margin: 0 0 24px;
  opacity: 0.9;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  padding: 40px 0;
  background: #0f172a;
  color: #94a3b8;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  max-width: 560px;
  line-height: 1.55;
}

.footer-legal-link {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-link:hover {
  color: #fff;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 64px;
  background: var(--bg, #f8fafc);
  min-height: 60vh;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text, #0f172a);
}

.legal-meta {
  margin: 0 0 32px;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
}

.legal-content section {
  margin-bottom: 28px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--text, #0f172a);
}

.legal-content p,
.legal-content li {
  margin: 0 0 12px;
  line-height: 1.65;
  color: #334155;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--primary, #2563eb);
}

.legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #e2e8f0);
  font-size: 0.95rem;
}

.legal-back a {
  color: var(--primary, #2563eb);
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* Pricing page */
.pricing-hero {
  padding: 48px 0 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.1), transparent);
}

.pricing-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 800;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.6;
}

.pricing-section {
  padding-top: 24px;
}

.pricing-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pricing-card--featured {
  border: 2px solid var(--brand-light);
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.18);
  transform: scale(1);
}

@media (min-width: 900px) {
  .pricing-card--featured {
    transform: scale(1.03);
  }
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-name {
  margin: 8px 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.pricing-price {
  margin: 0;
  text-align: center;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-period {
  margin: 0 0 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-save {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-weight: 700;
  font-size: 0.82rem;
}

.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 0.92rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.45;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-btn {
  width: 100%;
}

.pricing-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.compare-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .compare-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
}

.compare-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 10px;
}

.compare-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.compare-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pricing-compare {
  padding-top: 32px;
}

@media (max-width: 767px) {
  .header {
    background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 255, 0.98) 100%);
  }

  .header-inner {
    min-height: 48px;
    padding: 6px 0 4px;
    gap: 8px;
  }

  .brand {
    flex: 1;
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-wordmark,
  .logo-wordmark--header {
    display: none !important;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .header-cta {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .logo-round--cta {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
  }

  .logo-round--footer {
    width: 44px;
    height: 44px;
  }

  .cta {
    padding: 48px 0;
  }

  .header-mobile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .header-mobile-nav a {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-mobile-nav a:hover {
    color: var(--brand);
    border-color: rgba(59, 130, 246, 0.35);
    text-decoration: none;
  }

  .header-mobile-nav-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.25);
  }
}
