@import url("/assets/fonts/fonts.css");
:root {
  --bg: #f7f2e8;
  --surface: #fffdf8;
  --surface-2: #efe7d6;
  --text: #1e2b25;
  --muted: #5e6b63;
  --line: #e2d8c4;
  --brand: #1f4d3a;
  --brand-2: #2f6b4f;
  --brand-ink: #ffffff;
  --panel: #1f4d3a;
  --panel-ink: #f4ebd9;
  --accent: #d98a2b;
  --sea-c: #2e6e8e;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --bad: #b3423a;
  --info: #2e6e8e;
  --shadow: 0 12px 34px rgba(40, 52, 40, .10);
  --radius: 18px;
  --sea: #d4e4ea;
  --land: #e9efe0;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a16; --surface: #18231e; --surface-2: #1f2c26; --text: #ebe5d8; --muted: #a3ada6;
    --line: #2c3b34; --brand: #5fae8a; --brand-2: #78c4a0; --brand-ink: #0c1511; --panel: #1a3328; --panel-ink: #efe8da; --accent: #e8a54e; --sea-c: #6fa9c6;
    --ok: #5cbf86; --warn: #e0a24a; --bad: #e07a70; --info: #6fa9c6; --shadow: 0 12px 34px rgba(0,0,0,.4);
    --sea: #1b3140; --land: #1f2d25;
  }
}
:root[data-theme="dark"] {
  --bg: #121a16; --surface: #18231e; --surface-2: #1f2c26; --text: #ebe5d8; --muted: #a3ada6;
  --line: #2c3b34; --brand: #5fae8a; --brand-2: #78c4a0; --brand-ink: #0c1511; --panel: #1a3328; --panel-ink: #efe8da; --accent: #e8a54e; --sea-c: #6fa9c6;
  --ok: #5cbf86; --warn: #e0a24a; --bad: #e07a70; --info: #6fa9c6; --shadow: 0 12px 34px rgba(0,0,0,.4);
  --sea: #1b3140; --land: #1f2d25;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.logo { font-family: var(--serif); }
.logo img { width: 36px; height: 36px; display: block; }
.logo .sign { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 21px; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--brand); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

.btn {
  font-family: var(--sans) !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink) !important; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform .08s, background .15s;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--brand) !important; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* sections */
section { padding: clamp(48px, 8vw, 88px) 0; }
section.alt { background: var(--surface-2); }
.hero { padding-top: clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge { padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.steps { counter-reset: s; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 22px; top: 22px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.step h3 { margin-top: 0; }

/* prices */
.price { display: flex; flex-direction: column; }
.price .sum { font-size: 30px; font-weight: 750; margin: 6px 0 2px; }
.price ul { padding-left: 18px; margin: 10px 0 18px; color: var(--muted); }
.price .btn { margin-top: auto; }
.price.hit { border: 2px solid var(--brand); position: relative; }
.price.hit::after { content: "выгоднее"; position: absolute; top: -12px; right: 16px; background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }

table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t td:last-child, table.t th:last-child { text-align: right; white-space: nowrap; }
.tablewrap { overflow-x: auto; }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq[open] summary { margin-bottom: 8px; }

/* form */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface); font-size: 14px; }
.chip input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 8px; }
.note.info { border-color: var(--info); }

footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer a { color: var(--muted); }

/* hero illustration */
.hero-art { aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sea); }

/* legal / doc pages */
.doc { max-width: 820px; }
.doc h2 { margin-top: 1.6em; font-size: 24px; }
.doc h3 { margin-top: 1.3em; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: .4em; }
.draft { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px dashed var(--warn); padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; }
input[type=range], input[type=checkbox] { accent-color: var(--brand); }

/* ошибки заполнения — сразу под полем */
.ferr { display: block; margin-top: 5px; font-size: 13px; color: var(--bad); }
.ferr:empty { display: none; }
[aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }

/* уведомление о cookie */
.ck { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; }
.ck p { margin: 0; flex: 1 1 260px; }
.ck .ck-b { display: flex; gap: 8px; flex-wrap: wrap; }
@media print { .ck { display: none; } }
