*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f4f6fb; --bg-card: #ffffff; --bg-dark: #0f1923; --text: #1e2a3a; --text-light: #6b7a8d;
  --accent: #2563eb; --accent-hover: #1d4ed8; --accent-light: #e8f0fe; --accent-warm: #f59e0b;
  --border: #e2e8f0; --shadow: 0 2px 16px rgba(0,0,0,0.06); --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 14px; --radius-sm: 8px; --font: 'Inter', sans-serif; --font-display: 'Outfit', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; } button { cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--accent), #7c3aed); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-light); transition: color 0.2s; }
.nav a:hover { color: var(--accent); }
.header-cta { background: var(--accent); color: #fff; border: none; padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; transition: background 0.2s; }
.header-cta:hover { background: var(--accent-hover); }
.mobile-menu-btn { display: none; background: none; border: none; padding: 8px; color: var(--text); }
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 12px 30px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn-ghost:hover { background: var(--accent); color: #fff; }

.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -300px; right: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-light); color: var(--accent); padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 36px; max-width: 480px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; background: linear-gradient(135deg, #dbeafe, #c4b5fd); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-visual-inner { width: 80%; height: 70%; background: rgba(255,255,255,0.9); border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; padding: 24px; gap: 12px; }
.hv-bar { height: 12px; border-radius: 6px; background: var(--border); }
.hv-bar.a { width: 60%; background: var(--accent); opacity: 0.3; }
.hv-bar.b { width: 80%; } .hv-bar.c { width: 45%; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-stat b { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--accent); display: block; }
.hero-stat span { font-size: 0.84rem; color: var(--text-light); }

.section-label { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 48px; line-height: 1.2; }

.features { padding: 80px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform 0.25s, box-shadow 0.25s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; }
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

.pricing { padding: 80px 0; background: var(--bg-card); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.price-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; text-align: center; transition: transform 0.25s, box-shadow 0.25s; position: relative; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.pop { border-color: var(--accent); }
.price-card.pop::before { content: 'Популярный'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.price-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.price-amount small { font-size: 0.9rem; color: var(--text-light); font-weight: 400; }
.price-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; }
.price-list { list-style: none; text-align: left; margin-bottom: 28px; }
.price-list li { padding: 8px 0; font-size: 0.88rem; color: var(--text-light); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-list li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.price-btn { width: 100%; padding: 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; border: 2px solid var(--accent); background: transparent; color: var(--accent); transition: all 0.2s; }
.price-btn:hover, .price-card.pop .price-btn { background: var(--accent); color: #fff; }

.faq { padding: 80px 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; font-size: 1rem; font-weight: 600; color: var(--text); text-align: left; }
.faq-q:hover { color: var(--accent); }
.faq-chev { transition: transform 0.3s; font-size: 1.1rem; color: var(--text-light); flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding-bottom: 20px; font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

.cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%); color: #fff; text-align: center; }
.cta-section h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #fff; color: var(--accent); }
.cta-section .btn-primary:hover { background: #f0f0f0; }

.footer { background: var(--bg-dark); color: rgba(255,255,255,0.65); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 0.85rem; line-height: 1.6; }
.footer h4 { color: #fff; font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; } .footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 0.85rem; transition: color 0.2s; } .footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.8rem; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal { background: var(--bg-card); border-radius: var(--radius); padding: 36px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.4rem; color: var(--text-light); }
.modal h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.modal p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 20px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input, .modal-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; font-family: var(--font); background: var(--bg); }
.modal-form input:focus, .modal-form select:focus { outline: none; border-color: var(--accent); }
.modal-form .btn-primary { width: 100%; justify-content: center; }
.modal-note { font-size: 0.75rem; color: var(--text-light); text-align: center; }

.toast { position: fixed; bottom: 24px; right: 24px; z-index: 300; background: var(--accent); color: #fff; padding: 14px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 500; transform: translateY(100px); opacity: 0; transition: all 0.4s; }
.toast.show { transform: translateY(0); opacity: 1; }

.scroll-top { position: fixed; bottom: 24px; left: 24px; z-index: 100; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 1.1rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.scroll-top.show { opacity: 1; transform: translateY(0); }

.mobile-nav { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.5); display: none; opacity: 0; transition: opacity 0.3s; }
.mobile-nav.show { display: block; opacity: 1; }
.mobile-nav-inner { position: absolute; top: 0; right: 0; width: 280px; height: 100%; background: var(--bg-card); padding: 24px; transform: translateX(100%); transition: transform 0.3s; }
.mobile-nav.show .mobile-nav-inner { transform: translateX(0); }
.mobile-nav-close { background: none; border: none; font-size: 1.4rem; color: var(--text-light); margin-bottom: 28px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); }

.legal-page { padding: 120px 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.legal-meta { font-size: 0.86rem; color: var(--text-light); margin-bottom: 36px; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-top: 32px; margin-bottom: 12px; }
.legal-content p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.75; }
.legal-content ul { margin: 0 0 12px 24px; color: var(--text-light); font-size: 0.92rem; line-height: 1.75; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 500; color: var(--accent); margin-bottom: 28px; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; } .hero h1 { font-size: 2.4rem; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); } .price-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav, .header-cta { display: none; } .mobile-menu-btn { display: block; }
  .hero { padding: 110px 0 60px; } .hero h1 { font-size: 2rem; }
  .feat-grid { grid-template-columns: 1fr; } .hero-stats { gap: 20px; flex-wrap: wrap; }
  .section-title { font-size: 1.7rem; } .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
