:root {
    --ink: #182026;
    --muted: #62717d;
    --line: #d8e0e5;
    --panel: #ffffff;
    --soft: #f3f7f7;
    --brand: #16705b;
    --brand-dark: #0f4d40;
    --accent: #c2552c;
    --warn: #e9b949;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbfcfc;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand,
.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
}

.brand-mark {
    background: var(--ink);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    letter-spacing: 0;
}

.nav {
    font-size: 14px;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    background: var(--brand);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: var(--brand-dark);
    color: white;
    text-decoration: none;
}

.button.small {
    min-height: 34px;
}

main {
    padding: 0 clamp(18px, 4vw, 56px) 56px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: end;
    min-height: 520px;
    padding: 72px 0 40px;
    border-bottom: 1px solid var(--line);
}

.hero h1,
.page-head h1,
.detail-head h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: 0;
}

.page-head h1,
.detail-head h1 {
    font-size: clamp(34px, 5vw, 64px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.lede {
    max-width: 760px;
    color: var(--muted);
    font-size: 20px;
}

.search {
    display: flex;
    max-width: 720px;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 16px;
    font-size: 16px;
}

.search.compact {
    width: min(420px, 100%);
    margin: 0;
}

.signal-panel {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.signal-panel div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: white;
}

.signal-panel strong {
    font-size: 28px;
}

.section,
.page-head,
.detail-head,
.detail-grid {
    margin-top: 44px;
}

.section-head,
.page-head,
.detail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section h2,
.panel h2 {
    margin: 0;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel,
.demand-row,
.form-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.card {
    padding: 20px;
}

.card-top,
.mini-facts,
.filters,
.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-top {
    justify-content: space-between;
    align-items: center;
}

.card h3 {
    margin: 18px 0 8px;
    font-size: 22px;
}

.card p,
.demand-row p {
    color: var(--muted);
}

.pill,
.mini-facts span,
.inline-list li,
.filters a,
.score-mini {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--soft);
    color: var(--muted);
    font-size: 13px;
    list-style: none;
}

.score-mini {
    border-color: var(--warn);
    color: #6a4b00;
    background: #fff8df;
    font-weight: 700;
}

.band {
    padding: 32px;
    margin-left: calc(clamp(18px, 4vw, 56px) * -1);
    margin-right: calc(clamp(18px, 4vw, 56px) * -1);
    background: var(--soft);
}

.band .section-head,
.band .demand-list {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.demand-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.demand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 18px;
}

.demand-row h3 {
    margin: 10px 0 6px;
}

.demand-row aside {
    display: grid;
    align-content: start;
    gap: 8px;
    color: var(--muted);
}

.filters {
    margin: 24px 0;
}

.filters a.active {
    background: var(--ink);
    color: white;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel {
    padding: 22px;
}

.panel.wide {
    grid-column: 1 / -1;
}

.score {
    display: grid;
    justify-items: center;
    min-width: 150px;
    padding: 18px;
    border: 1px solid var(--warn);
    border-radius: 8px;
    background: #fff8df;
}

.score strong {
    font-size: 48px;
    line-height: 1;
}

.tag-list {
    display: grid;
    gap: 10px;
    padding: 0;
}

.tag-list li {
    list-style: none;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.facts {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 18px 0;
}

.facts span {
    color: var(--muted);
}

.form-panel {
    display: grid;
    gap: 18px;
    max-width: 760px;
    padding: 24px;
}

.form-panel label,
.form-panel label span {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.form-panel input,
.form-panel textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    font-weight: 400;
}

small {
    color: var(--muted);
    font-weight: 400;
}

.error {
    color: #a32727;
}

.messages {
    padding: 14px clamp(18px, 4vw, 56px) 0;
}

.message {
    border: 1px solid #b7ddcc;
    border-radius: 6px;
    padding: 10px 12px;
    background: #ecfff6;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 820px) {
    .site-header,
    .footer,
    .section-head,
    .page-head,
    .detail-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .grid.three,
    .detail-grid,
    .demand-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-top: 42px;
    }

    .search {
        flex-direction: column;
    }

    .search input {
        min-height: 48px;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }
}
