:root {
  --ink: #1c2416;
  --muted: #4d5a45;
  --paper: #f6f1e6;
  --card: #fffdf8;
  --line: #d9d0bf;
  --accent: #2d6a4f;
  --accent-dark: #1b4332;
  --warn: #6b3f12;
  --warn-bg: #f4e6c8;
  --ok: #1b4332;
  --ok-bg: #e7f0e6;
  --focus: #0b57d0;
  --max: 58rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.0625rem;
}
header.app {
  background: var(--accent-dark);
  color: #f6f1e6;
  padding: 0.85rem 1.25rem;
}
header.app a { color: #f6f1e6; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
header.app .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: 0.02em; text-decoration: none; font-size: 1.15rem; }
.brand span { font-weight: 400; opacity: 0.85; }
nav a { margin-left: 1rem; text-decoration: none; font-size: 0.95rem; }
nav a:hover, .brand:hover { text-decoration: underline; }
main { padding: 1.75rem 0 3.5rem; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.45rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.25rem; max-width: 42rem; }
.meta { font-size: 0.92rem; color: var(--muted); margin: 0 0 1.5rem; }
a { color: var(--accent-dark); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.25rem;
}
.box.check { background: var(--ok-bg); border-color: #b7cbb4; }
.box.warn { background: var(--warn-bg); border-color: #e2c894; }
.box ol { margin: 0.4rem 0 0; padding-left: 1.25rem; }
.box li { margin: 0.35rem 0; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-family: system-ui, sans-serif;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); }
th { background: #efe8d8; font-family: system-ui, sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }
.reg { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.88rem; }
.badge {
  display: inline-block;
  background: var(--ok-bg);
  color: var(--ok);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}
.firm { margin: 0 0 0.15rem; }
.firm a { text-decoration: none; font-weight: 700; }
.firm a:hover { text-decoration: underline; }
.note { font-size: 0.88rem; color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.size {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
}
.size strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.size p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.partner { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.partner h3 { margin-top: 0; }
.partner-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  flex-wrap: wrap;
}
.partner-head h3 { margin: 0; }
.ad-tag {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fffdf8;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  line-height: 1.2;
}
.ad-block {
  border-color: #c4b79a;
}
.affiliate-disclosure { margin-top: 0.85rem; }
footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.sources { font-size: 0.9rem; }
.sources li { margin: 0.3rem 0; }
ul.plain { padding-left: 1.15rem; }
.home-list { list-style: none; padding: 0; }
.home-list li { margin: 0 0 0.75rem; }
.home-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}
.home-list a:hover { border-color: var(--accent); }
.home-list strong { color: var(--accent-dark); }
@media (max-width: 720px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 0.7rem 0.4rem; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 0.2rem 0.75rem; }
  td::before {
    content: attr(data-label);
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.1rem;
  }
}

.phone, .reg, td a[href^="tel:"] { white-space: nowrap; }
th:nth-child(2), th:nth-child(3) { white-space: nowrap; }
td:nth-child(3) { white-space: nowrap; }
@media (max-width: 720px) {
  td:nth-child(3) { white-space: normal; }
  td a[href^="tel:"] { white-space: nowrap; }
}

footer p { margin: 0 0 0.55rem; }
footer p:last-child { margin-bottom: 0; }

.quote-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin: 1.75rem 0;
}
.quote-section h2 { margin-top: 0; }
.quote-form { position: relative; margin: 0; }
.quote-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem 1rem;
}
.quote-field { margin: 0.85rem 0 0; }
.quote-grid .quote-field { margin: 0; }
.quote-field label, .quote-consent label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.quote-field .optional { font-weight: 400; color: var(--muted); }
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form input[type="date"],
.quote-form select,
.quote-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.quote-form textarea { resize: vertical; min-height: 4.5rem; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.quote-consent {
  margin: 1rem 0 0.5rem;
  background: var(--ok-bg);
  border: 1px solid #b7cbb4;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}
.quote-consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0;
  line-height: 1.45;
}
.quote-consent input[type="checkbox"] {
  margin-top: 0.3rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}
.quote-actions { margin: 1rem 0 0; }
.quote-form button[type="submit"] {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--accent-dark);
  color: #f6f1e6;
  border: 0;
  border-radius: 6px;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
}
.quote-form button[type="submit"]:hover { background: var(--accent); }
.quote-error {
  background: var(--warn-bg);
  border: 1px solid #e2c894;
  color: var(--warn);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  margin: 0 0 0.85rem;
}
.quote-cta {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
}
