:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #17181c;
  --muted: #5d6169;
  --line: #e6e3dc;
  --accent: #0f766e;
  --accent-dark: #0b5a54;
  --accent-soft: #e3f3f1;
  --warn: #b45309;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111314;
    --surface: #191c1e;
    --text: #eceae4;
    --muted: #a4a8ad;
    --line: #2a2e31;
    --accent: #3ec1b4;
    --accent-dark: #6fd8cd;
    --accent-soft: #14302d;
    --warn: #f0a24b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.logo { white-space: nowrap; font-weight: 800; letter-spacing: .04em; font-size: 18px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  background: var(--accent); color: #fff; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.hero { padding: 84px 0 64px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; max-width: 780px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.hero .facts b { display: block; color: var(--text); font-size: 20px; }

section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 12px; letter-spacing: -.01em; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 34px; }

.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 16px; left: 20px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; display: grid; place-items: center; font-size: 15px;
}

.work { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.work a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.work a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.work .url { color: var(--accent); font-size: 14px; margin-top: 10px; display: block; }

.systems { columns: 2 340px; column-gap: 34px; padding: 0; margin: 28px 0 0; list-style: none; }
.systems li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.systems li b { color: var(--text); }

.price { display: flex; flex-direction: column; gap: 6px; }
.price .amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price .amount small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.price ul li { margin-bottom: 5px; }
.note { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); font-size: 15.5px; }
.note.warn { background: color-mix(in srgb, var(--warn) 12%, var(--bg)); }

form.pay { display: grid; gap: 16px; max-width: 520px; }
form.pay label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.pay input, form.pay select {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
form.pay input:focus, form.pay select:focus { outline: 2px solid var(--accent); border-color: transparent; }
form.pay .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
form.pay .total { font-size: 20px; font-weight: 700; }
.msg { min-height: 1.4em; font-size: 15px; }
.msg.err { color: #c2410c; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); }
footer .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
footer a { color: var(--muted); }

.doc { max-width: 780px; padding: 48px 0 70px; }
.doc h1 { font-size: 34px; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding: 52px 0 40px; }
  section { padding: 48px 0; }
  nav { gap: 14px; }
  nav a:nth-child(n+4) { display: none; }
}
