:root {
  --bg: #fff8f0; --surface: #ffffff; --card: #fff1e2; --text: #2b1a12; --muted: #6b5548;
  --brand: #b5471f; --brand-dark: #8f3615; --line: #e3cdbd; --ok-bg: #e3f4e7; --ok: #1b6b3a;
  --radius: 14px; --btn: #b5471f; --btn-dark: #8f3615;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1e1612; --surface: #281d17; --card: #2d2119; --text: #f4e4d8; --muted: #c4ad9d; --brand: #e0825a; --brand-dark: #f0a07c; --line: #4a382c; --ok-bg: #12361f; --ok: #7dd99a; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { text-decoration: none; color: var(--text); font-weight: 600; }
nav a:hover { color: var(--brand); }
.btn { display: inline-block; background: var(--btn); color: #fff !important; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; min-height: 48px; line-height: 20px; }
.btn:hover { background: var(--btn-dark); }
.btn.small { padding: 10px 18px; min-height: 40px; }
.btn.ghost { background: transparent; color: var(--brand) !important; border: 2px solid var(--brand); }
.btn.ghost:hover { background: var(--card); }

.hero { padding: 56px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.phones { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.phone { width: 46%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(43, 26, 18, .18); }
.phone:nth-child(2) { margin-top: 28px; }

section.block { padding: 44px 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 26px 0 6px; }
.sub { color: var(--muted); margin: 0 0 26px; max-width: 62ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 800; margin-bottom: 10px; }

table.calc { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.calc th, .calc td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.calc td:last-child, .calc th:last-child { text-align: right; }
.calc tr.total td { font-weight: 800; background: var(--card); }
.calc tr.result td { font-weight: 800; color: var(--ok); background: var(--ok-bg); }
.tablewrap { overflow-x: auto; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details p { margin: 0 0 14px; color: var(--muted); }

article.post { padding: 40px 0 24px; }
article.post h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -.02em; }
article.post .meta { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
article.post p, article.post li { max-width: 68ch; }
article.post ul, article.post ol { padding-left: 22px; }
article.post li { margin: 6px 0; }
.callout { background: var(--ok-bg); border-left: 4px solid var(--ok); padding: 14px 18px; border-radius: 8px; margin: 22px 0; }
.callout.warn { background: #fff0d2; border-color: #8a5a00; color: #3d2800; }
.formula { background: var(--card); border: 1px dashed var(--brand); border-radius: 10px; padding: 14px 18px; font-weight: 700; margin: 18px 0; overflow-x: auto; }
.cta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 34px 0; text-align: center; }
.cta p { margin: 0 0 14px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-top: 24px; }
.crumbs a { color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list a.item { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--text); }
.list a.item:hover { border-color: var(--brand); }
.list .t { font-weight: 800; font-size: 1.1rem; display: block; margin-bottom: 4px; color: var(--brand); }
.list .d { color: var(--muted); }

.foot { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; padding: 36px 0 28px; font-size: .96rem; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot ul { list-style: none; padding: 0; margin: 8px 0 0; }
.foot li { margin: 6px 0; }
.foot p { color: var(--muted); margin: 8px 0 0; }
.foot .copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; }

@media (max-width: 820px) {
  .hero .grid { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
  body { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
