:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --border: #e6e9f0;
  --text: #20283a;
  --muted: #5f687b;
  --accent: #5b5ce2;
  --accent-dark: #4546c4;
  --accent-soft: #eef0ff;
  --navy: #17243a;
  --navy-2: #2b3b55;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--navy);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px;
}
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 100%); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--surface); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; margin: 20px 0 16px; letter-spacing: -0.02em; max-width: 820px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

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

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 20px; height: 20px; }

/* Product block */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.product-panel {
  background: var(--navy); color: #d5dce6; border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(23, 36, 58, 0.18);
}
.product-panel .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.product-panel .row + .row { margin-top: 6px; }
.product-panel .row.active { background: var(--navy-2); color: #fff; font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.pill.ok { background: #e8f6ef; color: #16865b; }
.pill.warn { background: #fff5df; color: #b7791f; }
.pill.muted { background: #f0f1f4; color: #6b7280; }
.product-panel .panel-title { color: #fff; font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.product-panel .panel-sub { color: #8491a5; font-size: 13px; margin: 0 0 18px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235B5CE2'%3E%3Cpath d='M8 13.2 4.8 10l-1.1 1.1L8 15.4l8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Pricing */
.price { font-size: 30px; font-weight: 700; margin: 8px 0 2px; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }
.note { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 36px; margin: 0 0 8px; letter-spacing: -0.01em; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: #3a4356; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #aab6c7; padding: 48px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer a { color: #d5dce6; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .bottom { border-top: 1px solid var(--navy-2); margin-top: 32px; padding-top: 20px; color: #8491a5; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
