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

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --black: #0F172A;
  --gray: #64748B;
  --light: #F8FAFC;
  --border: #E2E8F0;
  --radius: 12px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: #fff;
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  border: 2px solid transparent;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; text-align: center; display: block; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; gap: 32px; }
.logo { font-size: 22px; font-weight: 800; color: var(--black); margin-right: auto; }
.logo span { color: var(--blue); }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; color: var(--gray); font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--blue); }

/* HERO */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  padding: 80px 0 70px;
  text-align: center;
}
.badge {
  display: inline-block;
  background: #DBEAFE;
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--blue); }
.stat-label { font-size: 13px; color: var(--gray); }

/* SECTIONS */
section { padding: 72px 0; }
.section-title { font-size: 34px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--gray); margin-bottom: 48px; font-size: 16px; }

/* PLATFORMS */
.platforms { background: var(--light); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.platform-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  text-align: center;
  transition: box-shadow .2s;
}
.platform-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,.1); }
.platform-card-ru { border-color: #dc2626; }
.platform-ru-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #dc2626; color: #fff;
  padding: 3px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.platform-icon { font-size: 42px; margin-bottom: 14px; }
.platform-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.platform-desc { font-size: 14px; color: var(--gray); margin-bottom: 16px; line-height: 1.5; }
.platform-tier {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}
.platform-card-ru .platform-tier { border-color: #dc2626; color: #dc2626; background: #fff1f1; }

/* FOR WHOM */
.forwho { background: #fff; }
.forwho .section-title { margin-bottom: 40px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 16px;
  font-weight: 600;
}
.card p { font-size: 14px; font-weight: 400; color: var(--gray); margin-top: 8px; }

/* HOW IT WORKS */
.how { background: var(--light); }
.steps { display: flex; flex-direction: column; gap: 28px; max-width: 680px; margin: 0 auto; }
.step { display: flex; gap: 24px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.step-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-body p { color: var(--gray); font-size: 15px; }

/* PRICING */
.pricing { background: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: box-shadow .2s;
}
.plan:hover { box-shadow: 0 8px 32px rgba(37,99,235,.1); }
.plan-featured {
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(37,99,235,.15);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  padding: 4px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.plan-price span { font-size: 20px; }
.plan-desc { font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 14px; }
.plan-features li.muted { color: var(--gray); }

/* FAQ */
.faq { background: var(--light); }
.faq .section-title { margin-bottom: 40px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; cursor: pointer;
  font-weight: 600; font-size: 15px;
  user-select: none;
}
.faq-q span { font-size: 20px; color: var(--blue); transition: transform .2s; }
.faq-q.open span { transform: rotate(45deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; color: var(--gray); font-size: 15px; }
.faq-a.open { max-height: 200px; padding: 0 24px 18px; }

/* FOOTER */
footer { background: var(--black); color: #94A3B8; padding: 36px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
footer .logo { color: #fff; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%; max-width: 480px;
  position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.modal-plan { color: var(--blue); font-weight: 600; font-size: 15px; margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 28px; cursor: pointer; color: var(--gray);
}
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input[type=text], input[type=tel], input[type=email] {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
input:focus { border-color: var(--blue); }
.checkbox-label { flex-direction: row !important; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gray); cursor: pointer; font-weight: 400; }
.checkbox-label input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; accent-color: var(--blue); }
.checkbox-label a { color: var(--blue); }
.modal-note { font-size: 12px; color: var(--gray); text-align: center; margin-top: 12px; }
.modal-note a { color: var(--blue); }

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { display: none; }
  .hero-stats { gap: 24px; }
  .plans { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
}
