:root {
  --text: #1a1a1a;
  --muted: #666;
  --border: #e8e8e8;
  --bg: #fafafa;
  --white: #fff;
  --accent: #e53935;
  --accent-hover: #c62828;
  --accent-soft: #fff5f5;
  --dark: #111;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: #ccc;
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-note {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.hero-card-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 16px;
  padding-top: 14px;
}

.hero-card-row span:last-child {
  font-weight: 600;
}

/* Sections */

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

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

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Cards grid */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--white);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.steps-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

/* Table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

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

.callout {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Compare */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.compare-col h3 {
  margin: 0;
  padding: 16px 20px;
  font-size: 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.compare-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-col:last-child .compare-item {
  font-weight: 500;
}

.compare-item:last-child {
  border-bottom: none;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(229, 57, 53, 0.12);
}

.price-card.free {
  background: var(--bg);
}

.price-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent);
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.price-card .price {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-card .price-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 0 0 10px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-note {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Free block */

.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.free-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.free-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* FAQ Accordion */

.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion-item.is-open {
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.08);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.15s;
}

.accordion-item.is-open .accordion-trigger {
  color: var(--accent);
}

.accordion-trigger:hover {
  color: var(--accent);
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.accordion-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.accordion-item.is-open .accordion-icon svg {
  transform: rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-content {
  overflow: hidden;
}

.accordion-content-inner {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.accordion-content-inner a {
  color: var(--accent);
  font-weight: 500;
}

.accordion-content-inner a:hover {
  text-decoration: underline;
}

/* CTA */

.cta {
  padding: 64px 0;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
}

.cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.cta-note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */

.footer {
  padding: 48px 0 32px;
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 14px;
}

.footer p {
  margin: 0;
  line-height: 1.6;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* Contacts page */

.page-hero {
  padding: 56px 0 32px;
  background: var(--bg);
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
}

.legal-block p {
  margin: 0 0 10px;
  font-size: 15px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links a {
  color: var(--accent);
  font-weight: 500;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* Reviews */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.review-stars {
  color: #f5a623;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.review-author {
  font-size: 14px;
  font-weight: 600;
}

.review-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Video */

.video-wrap {
  max-width: 880px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #111;
}

.demo-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  vertical-align: middle;
  background: #111;
}

.video-caption {
  max-width: 880px;
  margin: -28px auto 36px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Mobile */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 10px 0;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cards-3,
  .steps,
  .free-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .compare-col:last-child h3 {
    border-top: 1px solid var(--border);
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 520px) {
  .pricing-grid,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
