:root {
  --ink: #14201b;
  --muted: #55625c;
  --bg: #f6f5f0;
  --card: #ffffff;
  --line: #dcded6;
  --brand: #0f6b4f;
  --brand-ink: #ffffff;
  --accent: #e8a23a;
  --ok: #0f7a4f;
  --ok-bg: #e5f4ec;
  --fail: #b3261e;
  --fail-bg: #fbeae8;
  --radius: 14px;
  --max: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand); }
.lang { font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn--ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--brand); background: var(--ok-bg); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hero-art figcaption { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 46em; color: var(--muted); font-size: 1.05rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.num { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }

.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts li { border-left: 3px solid var(--accent); padding-left: 16px; }
.facts strong { display: block; font-size: 1.8rem; line-height: 1.1; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* Calculator */
.calc-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.calc legend { font-weight: 700; margin-bottom: 4px; }
.hint { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.box-dims, .prod-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prod-row { margin-bottom: 8px; }
.prod-label { width: 100%; font-size: .85rem; color: var(--muted); }
.calc input { width: 72px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.calc input.qty { width: 60px; }
.calc input:focus, .lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.x, .unit { color: var(--muted); font-size: .9rem; }
.rm { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.rm:hover { color: var(--fail); }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.calc-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.result { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: var(--bg); }
.result--placeholder { color: var(--muted); }
.result--ok { background: var(--ok-bg); border-color: #b9e0cb; }
.result--fail { background: var(--fail-bg); border-color: #f0c2bd; }
.result--err { background: #fff7e6; border-color: #f1d9a6; }
.result p:last-child { margin-bottom: 0; }
.score { display: flex; align-items: baseline; gap: 10px; }
.score-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.score-label { color: var(--muted); }
.meter { position: relative; height: 14px; background: #fff; border-radius: 999px; margin: 12px 0 28px; border: 1px solid var(--line); }
.meter-fill { height: 100%; border-radius: 999px; background: var(--ok); }
.result--fail .meter-fill { background: var(--fail); }
.meter-limit { position: absolute; left: 50%; top: -6px; bottom: -6px; border-left: 2px dashed var(--ink); }
.meter-limit span { position: absolute; top: 24px; left: -16px; font-size: .75rem; font-weight: 700; }
.verdict { font-weight: 700; font-size: 1.1rem; }
.result--ok .verdict { color: var(--ok); }
.result--fail .verdict { color: var(--fail); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.stats dt { font-size: .8rem; color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 16px; }

/* Pricing-ish / plans */
.plan h3 { margin-bottom: 4px; }
.plan ul { padding-left: 1.1em; margin: 12px 0 0; }
.plan li { margin-bottom: 6px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Lead form */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.lead-form .full { grid-column: 1 / -1; }
.lead-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.lead-form textarea { min-height: 96px; }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.lead-form .check input { width: auto; margin-top: 4px; }
.hidden { display: none; }
@media (max-width: 720px) { .lead-form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 36px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Simple pages */
.page { padding: 56px 0; }
.page .wrap { max-width: 760px; }
.todo { background: #fff7e6; border: 1px dashed #e0b45a; padding: 2px 6px; border-radius: 4px; }

.btn { white-space: nowrap; }
[id] { scroll-margin-top: 72px; }
@media (max-width: 420px) { .nav { gap: 10px; } .btn--sm { padding: 7px 12px; font-size: .85rem; } }
