/* IskraVPN storefront — shared stylesheet.
   Neutral commerce site: light background, one accent, typography-first.
   Brand tokens and the document template match the main site's legal pages;
   commerce components (hero, catalog, plan cards, forms, steps) are added here. */

:root {
  color-scheme: light;
  --accent: #E63946;
  --accent-ink: #b71f2d;
  --ink: #0e0e0e;
  --muted: #5c5c5c;
  --line: #ececea;
  --bg: #fff;
  --warm: #faf8f5;
  --softer: #f6f4ef;
  --maxw: 1040px;
  --docw: 720px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
img { max-width: 100%; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  border-bottom: 0.5px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); display: inline-block; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; color: #888; margin-left: 6px;
}
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links .pill {
  padding: 4px 10px; border-radius: 999px; background: #f3f1ee; color: var(--ink); font-weight: 600;
}
.lang { display: inline-flex; gap: 4px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #d8d8d4; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ── Layout containers ───────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section.band { padding: 72px 0; border-top: 0.5px solid var(--line); }
section.band:first-of-type { border-top: 0; }
.band.warm { background: var(--warm); }
.band.softer { background: var(--softer); }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 14px;
}
.section-lede { font-size: 17px; color: #2a2a2a; max-width: 640px; margin: 0 0 8px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 700; margin: 0 0 20px; max-width: 720px;
}
.hero p.sub { font-size: 19px; color: #2a2a2a; max-width: 580px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Feature grid ────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.feature .rule { width: 28px; height: 2px; background: var(--accent); margin-bottom: 16px; }

/* ── Catalog / plan cards ────────────────────────────────── */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.plan-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; height: 100%;
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 1px 0 var(--accent); position: relative; }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan-price .per { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-note { font-size: 14px; color: var(--accent-ink); min-height: 20px; }
.plan-sub { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.spec { list-style: none; padding: 0; margin: 16px 0 22px; font-size: 15px; }
.spec li { padding: 7px 0 7px 26px; position: relative; border-top: 0.5px solid var(--line); }
.spec li:first-child { border-top: 0; }
.spec li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}
.spec li.off { color: #9a9a9a; }
.spec li.off::before { background: #d3d3cf; }
.plan-card .btn { margin-top: auto; }

/* ── Steps (numbered procedure) ──────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
  counter-increment: step; position: relative; padding: 4px 0 20px 46px; font-size: 16px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--warm); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; font-weight: 500; color: var(--accent-ink);
}
.steps li strong { display: block; }

/* ── Payment method chips ────────────────────────────────── */
.methods { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.method {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
  font-weight: 600; font-size: 15px; background: #fff;
}
.method span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* ── Requisites / company details ────────────────────────── */
.requisites {
  background: var(--warm); border-radius: 14px; padding: 26px 28px;
  display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; font-size: 15px;
}
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; }
.requisites .todo { color: var(--accent-ink); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }

/* ── Order form ──────────────────────────────────────────── */
.order-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input[type="email"], .field input[type="text"] {
  width: 100%; font: inherit; font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.plan-choice { display: grid; gap: 10px; margin: 0 0 22px; }
.plan-choice label {
  display: flex; align-items: baseline; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
}
.plan-choice label:has(input:checked) { border-color: var(--accent); background: #fff5f5; }
.plan-choice .p-name { font-weight: 700; }
.plan-choice .p-price { margin-left: auto; font-weight: 700; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 20px; }
.checkbox-row input { margin-top: 4px; }
.order-summary {
  background: var(--warm); border-radius: 14px; padding: 24px; position: sticky; top: 84px;
}
.order-summary h3 { margin: 0 0 14px; font-size: 16px; }
.order-summary .row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 0.5px solid var(--line); }
.order-summary .row:first-of-type { border-top: 0; }
.order-summary .total { font-weight: 700; font-size: 18px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ── Document pages (legal) ──────────────────────────────── */
main.doc { max-width: var(--docw); margin: 0 auto; padding: 56px 24px 96px; }
main.doc h1 {
  font-size: clamp(32px, 5vw, 42px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 20px; font-weight: 700;
}
.meta {
  color: var(--muted); font-size: 14px;
  padding: 14px 16px; background: var(--warm); border-radius: 8px; margin: 0 0 32px;
}
.meta p { margin: 4px 0; }
.lede { font-size: 17px; color: #2a2a2a; margin: 0 0 40px; }
.notice {
  font-size: 13px; color: var(--muted);
  border-left: 2px solid var(--line); padding: 4px 0 4px 14px; margin: 0 0 48px;
}
main.doc h2 {
  font-size: 22px; letter-spacing: -0.01em; font-weight: 700;
  margin: 56px 0 16px; display: flex; align-items: baseline; gap: 14px;
}
main.doc h2 .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--accent); font-weight: 500; min-width: 28px;
}
main.doc h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
main.doc p { margin: 12px 0; }
main.doc ul { padding-left: 22px; margin: 12px 0; }
main.doc li { margin: 6px 0; }
.callout { background: var(--warm); border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-size: 15px; }
.contact { background: var(--warm); border-radius: 12px; padding: 24px; margin-top: 24px; }
.contact p { margin: 4px 0; }
.todo-token { color: var(--accent-ink); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.92em; }

/* ── Footer ──────────────────────────────────────────────── */
footer.site {
  border-top: 0.5px solid var(--line); background: var(--warm);
}
footer.site .footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
  color: var(--muted); font-size: 14px;
}
footer.site .col-title { color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
footer.site a { color: var(--muted); display: block; padding: 3px 0; }
footer.site a:hover { color: var(--ink); }
footer.site .legal-name { color: var(--ink); font-weight: 600; }
footer.site .fine { grid-column: 1 / -1; border-top: 0.5px solid var(--line); padding-top: 20px; font-size: 12.5px; color: #8a8a86; }

/* Footer variant for narrow legal pages */
footer.doc {
  max-width: 880px; margin: 0 auto;
  padding: 32px 24px 48px; border-top: 0.5px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
footer.doc a { color: var(--muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .features, .catalog { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  footer.site .footer-inner { grid-template-columns: 1fr 1fr; }
  .requisites { grid-template-columns: 1fr; gap: 2px 0; }
  .requisites dt { margin-top: 10px; }
}
@media (max-width: 560px) {
  section.band { padding: 52px 0; }
  .hero { padding: 60px 0 44px; }
  main.doc { padding: 40px 20px 72px; }
  main.doc h2 { font-size: 20px; margin-top: 44px; }
  .topbar-inner { padding: 14px 20px; }
  footer.site .footer-inner { grid-template-columns: 1fr; }
}
