:root {
  --ink: #14202b;
  --ink-2: #4a5866;
  --muted: #7b8794;
  --bg: #ffffff;
  --bg-alt: #f4f6f3;
  --line: #e2e6e0;
  --brand: #1f6f4a;
  --brand-dark: #165238;
  --accent: #e8792b;
  --accent-soft: #fdf0e6;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 43, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[hidden] { display: none !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
img { max-width: 100%; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--brand-dark); }
.btn--small { padding: 9px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 800;
}
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, #f4f8f4 0%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: 15px; }
.checks li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }

.hero__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.hero__card-title { font-weight: 700; margin-bottom: 18px; }
.facts { margin: 0 0 16px; display: grid; gap: 18px; }
.facts div { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: baseline; }
.facts dt { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 15px; }

.note { color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { color: var(--ink-2); max-width: 700px; margin-bottom: 32px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.steps p { color: var(--ink-2); margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .btn { margin-top: auto; align-self: flex-start; }
.list { padding-left: 20px; margin: 0 0 28px; color: var(--ink-2); }
.list li { margin-bottom: 10px; }
.list b { color: var(--ink); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.calc__form label:last-child { grid-column: 1 / -1; }
.calc__result { padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.calc__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.calc__row span { color: #c6d0d8; }
.calc__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__row--total { border-bottom: 0; font-size: 22px; }
.calc__row--total b { color: #ffb27a; }
.calc__share { color: #c6d0d8; font-size: 15px; min-height: 24px; }
.calc__result .note { color: #93a1ad; margin-top: 14px; }
.calc__result .btn { margin-top: 8px; background: var(--accent); border-color: var(--accent); }
.calc__result .btn:hover { background: #cf6519; border-color: #cf6519; }

/* Tariffs */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 16px; }
.tariff { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tariff__who { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.tariff__price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.tariff p:not(.tariff__who):not(.tariff__price) { color: var(--ink-2); }
.tariff__promo { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; font-weight: 700; font-size: 14px; }

/* Forms */
label, legend { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
small { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 74, 0.15); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="file"] { padding: 10px; }
input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }

.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); margin: 8px 0 24px; }
.tabs__btn { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tabs__btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

.lead-form { display: grid; gap: 20px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid__wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; font-size: 14px; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.inn-hint { min-height: 18px; }
.inn-hint.ok { color: var(--brand); }
.inn-hint.bad { color: var(--danger); }
.form-error { color: var(--danger); min-height: 20px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 48px 28px; border-radius: var(--radius); background: #eef7f1; border: 1px solid #cfe7d8; }
.alt-channel { text-align: center; color: var(--ink-2); margin-top: 18px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--ink-2); }
.logo--footer { margin-bottom: 6px; }

/* Docs pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .meta { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding: 48px 0; }
  .hero__grid, .two-col, .calc { grid-template-columns: 1fr; gap: 28px; }
  .steps, .tariffs { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .calc__form { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .header .btn--small { display: none; }
  .tabs { display: flex; }
  .tabs__btn { flex: 1; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
