:root {
  --bg: #f7f6f2; --surface: #ffffff; --ink: #1d1f1c; --muted: #6b6f68; --line: #e3e1da;
  --accent: #1f7a4d; --accent-ink: #ffffff; --accent-soft: #e5f2ea; --warn: #b3261e;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141614; --surface: #1d201d; --ink: #ecebe6; --muted: #a2a69f; --line: #2f332f;
          --accent: #4cc38a; --accent-ink: #0d1a12; --accent-soft: #1f3328; --warn: #f2b8b5; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: .9rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
              background: var(--accent); color: var(--accent-ink); margin-right: 4px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--ink); text-decoration: none; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
       padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
nav a.btn { color: var(--accent-ink); }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; }
.link { font-weight: 600; text-decoration: none; }

.hero { padding: 40px 0 16px; max-width: 720px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; letter-spacing: -.02em; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
select, input[type=text], input[type=url], input[type=email], input[type=number] {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; width: 100%; }
.filters select { width: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-bottom: 40px; }
.grid-ad { grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.score { font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.score small { font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.score-lg { font-size: 2.4rem; }
.tag { font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.meta { margin: 0; color: var(--muted); font-size: .9rem; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
           background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.compare div { display: flex; flex-direction: column; }
.compare .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare .was strong { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.compare .now strong { color: var(--accent); }
.compare .arrow { color: var(--muted); font-size: 1.3rem; }
.reason { margin: 0; font-size: .95rem; flex: 1; }
.card-actions { display: flex; align-items: center; gap: 14px; }
.empty { grid-column: 1 / -1; color: var(--muted); }

.ad-slot { margin: 16px 0; }
.ad-placeholder { border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
                  font-size: .8rem; text-align: center; padding: 26px 8px; letter-spacing: .04em; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 8px 0 48px; }
.detail h1 { margin: 10px 0 4px; font-size: 2rem; letter-spacing: -.01em; }
.reason-lg { font-size: 1.15rem; }
.numbers { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--surface);
           border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.numbers th, .numbers td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.numbers tr.hl { background: var(--accent-soft); font-weight: 600; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box h3 { margin-top: 0; font-size: 1rem; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }

.prose { max-width: 720px; padding: 24px 0 8px; }
.prose h1 { font-size: 2rem; margin-bottom: 8px; }
.formula { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-weight: 600; }

.submit-form { max-width: 720px; padding-bottom: 48px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.has-error input, .has-error select { border-color: var(--warn); }
.error, .alert { color: var(--warn); font-size: .9rem; margin: 4px 0 0; }
.alert { border: 1px solid var(--warn); border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; font-weight: 600; }
.check { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.hp { position: absolute; left: -9999px; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; background: var(--surface); }
.site-footer p { margin: 4px 0; font-size: .92rem; }
