/* AstraPro — светлая тема, mobile-first */
:root {
  --bg: #eef2f7;
  --text: #101826;
  --muted: #6f7b8b;
  --card: #f7f9fc;
  --line: #e5eaf1;
  --accent: #2f6fed;
  --gradient-from: #3b82f6;
  --gradient-to: #6366f1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16,24,38,.08), 0 1px 2px rgba(16,24,38,.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.logo svg {
  width: 36px;
  height: 36px;
}

nav {
  display: none;
  gap: 28px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: none;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: #fff;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2558d6;
}

.mobile-menu-btn {
  display: block;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .btn {
  margin-top: 8px;
  text-align: center;
}

/* Кнопка в мобильном меню сохраняет белую надпись на синем:
   правило .mobile-nav a выше перебивало цвет .btn-primary. */
.mobile-nav a.btn-primary,
.mobile-nav a.btn-primary:visited {
  color: #fff;
}

/* Hero */
.hero {
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  min-height: 52px;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}

/* Section */
section {
  padding: 60px 20px;
}

section h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -.01em;
}

/* How it works */
.steps {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Pricing */
#pricing {
  background: #fff;
}

.pricing-table {
  max-width: 800px;
  margin: 0 auto 40px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

thead {
  background: #fff;
}

th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: none;
}

td:first-child {
  font-weight: 600;
}

td:not(:first-child) {
  color: var(--muted);
  text-align: right;
}

.packages {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.package {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.package-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.package-info p {
  font-size: 13px;
  color: var(--muted);
}

.package-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Business */
.business-card {
  background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.business-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.business-card p {
  font-size: 15px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.business-card .btn {
  background: #fff;
  color: var(--accent);
}

.business-card .btn:hover {
  background: #f1f5fd;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px 20px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* Docs page */
.docs-hero {
  background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.docs-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.docs-hero p {
  font-size: 16px;
  opacity: 0.95;
}

.docs-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.docs-section {
  margin-bottom: 48px;
}

.docs-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}

.docs-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 24px;
}

.docs-section p, .docs-section li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.docs-section ul {
  list-style: none;
  padding-left: 0;
}

.docs-section li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.docs-section li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

.info-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.info-box strong {
  color: var(--text);
}

.code-block {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  position: relative;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-block code {
  color: #e2e8f0;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.15);
}

.copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
}

/* Responsive */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .mobile-menu-btn {
    display: none;
  }

  nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .hero {
    padding: 80px 32px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  section {
    padding: 80px 32px;
  }

  section h2 {
    font-size: 36px;
  }

  .steps {
    gap: 32px;
  }

  .step {
    padding: 32px;
  }

  .packages {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .footer-bottom {
    text-align: center;
  }

  .docs-content {
    padding: 60px 32px;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 56px;
  }
}

/* Accessibility */
a:focus, button:focus, .btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Подпись под заголовками секций (тарифы, модели) */
.section-note {
  color: var(--muted);
  font-size: 15px;
  margin: -8px 0 24px;
}
