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

:root {
  --primary: #FF6B00;
  --primary-dark: #CC5500;
  --primary-light: #FFF0E0;
  --primary-gradient: linear-gradient(135deg, #FF8C00, #E65C00);
  --bg: #FFFBF5;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555;
  --border: #ffe0c0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(255, 107, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(255, 107, 0, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
nav {
  background: var(--primary-gradient);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { background: rgba(255,255,255,0.2); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: 0.3s; }

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

/* Hero */
.hero {
  background: var(--primary-gradient);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 22px);
  max-width: 750px;
  margin: 0 auto 30px;
  opacity: 0.92;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.btn-sm { padding: 10px 24px; font-size: 14px; }

/* Sections */
section { padding: 60px 0; }

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary-dark); }
.card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}
.step-content h4 { font-size: 17px; margin-bottom: 4px; }
.step-content p { color: var(--text-muted); font-size: 15px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eee; }
th { background: var(--primary-gradient); color: #fff; font-weight: 700; white-space: nowrap; }
tr:nth-child(even) { background: var(--primary-light); }
tr:hover { background: #ffe8d0; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
  user-select: none;
}

.faq-q:hover { background: var(--primary-light); }
.faq-q::after { content: "+"; font-size: 22px; color: var(--primary); transition: 0.3s; }
.faq-q.open::after { content: "−"; }

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  color: var(--text-muted);
  font-size: 15px;
}

.faq-a.show { padding: 0 24px 18px; max-height: 500px; }

/* Fact Block */
.facts {
  background: var(--primary-gradient);
  color: #fff;
  padding: 60px 20px;
}

.facts h2 { text-align: center; font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 40px; }

.fact-item {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 15px;
  line-height: 1.6;
  backdrop-filter: blur(4px);
}

.fact-item strong { display: block; font-size: 24px; margin-bottom: 6px; }

/* Pricing */
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: 0.3s;
}

.pricing-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.pricing-card.featured { border-color: var(--primary); position: relative; }
.pricing-card.featured::before {
  content: "Рекомендуем";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #fff;
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
}

.pricing-card .price { font-size: 42px; font-weight: 900; color: var(--text); }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 20px 0; text-align: left; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.pricing-card ul li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

/* Footer */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px; transition: 0.2s; }
footer a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
}

/* Content prose */
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 16px; color: var(--text); }
.prose h3 { font-size: clamp(18px, 2.5vw, 22px); margin: 28px 0 10px; color: var(--primary-dark); }
.prose h4 { font-size: 16px; margin: 20px 0 8px; color: var(--text); }
.prose p { margin-bottom: 16px; font-size: 16px; color: #333; }
.prose ul, .prose ol { margin: 12px 0 20px 24px; }
.prose li { margin-bottom: 6px; font-size: 15px; }
.prose strong { color: var(--text); }

/* Code blocks */
code, pre {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 14px;
}

pre {
  background: #1a1a2e;
  color: #e6e6e6;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.5;
}

code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
pre code { background: none; padding: 0; }

/* Blueprint / Сравнение */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: 10px 20px 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: flex; }

  .hero { padding: 50px 20px; }
  section { padding: 40px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-card { max-width: 360px; margin: 0 auto; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}
