:root {
    --ink: #141820;
    --muted: #637083;
    --line: #d9e0e8;
    --soft: #f4f7f9;
    --paper: #ffffff;
    --accent: #0f766e;
    --night: #10131a;
    --gold: #c2933b;
    --red: #b42332;
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(20, 24, 32, .12);
    background: rgba(246, 248, 249, .94);
    backdrop-filter: blur(12px);
}

.site-header::before {
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #16835f 0 33%, var(--gold) 33% 66%, var(--red) 66% 100%);
    content: "";
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 13px clamp(18px, 4vw, 54px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    flex: 0 0 auto;
}

.brand strong {
    display: block;
}

.top-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav a {
    padding: 8px 12px;
    border-radius: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.top-nav a:hover {
    background: #ffffff;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.hero-shell {
    padding: clamp(26px, 5vw, 64px) clamp(18px, 4vw, 54px) 28px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(22, 131, 95, .08), transparent 38%),
        linear-gradient(180deg, #ffffff, #f6f8f9);
}

.hero-kicker {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, .72fr);
    max-width: 1480px;
    margin: 0 auto;
    gap: 22px;
    align-items: stretch;
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, .92fr);
    min-height: 430px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 18px 60px rgba(15, 23, 42, .08);
}

.hero-card > a {
    min-height: 430px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(24px, 4vw, 42px);
}

.hero-copy h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-copy p,
.category-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.editor-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 8px;
    color: #e8edf3;
    background:
        linear-gradient(135deg, rgba(22, 131, 95, .16), transparent 42%),
        #10131a;
}

.rail-kicker {
    color: #71d7b3;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.editor-rail h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.12;
}

.rail-list {
    display: grid;
    gap: 10px;
}

.rail-list a {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 4px solid var(--accent);
    border-radius: 7px;
    background: rgba(255, 255, 255, .05);
}

.rail-list span {
    color: color-mix(in srgb, var(--accent) 72%, white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rail-list strong {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
}

.section-band {
    max-width: 1480px;
    margin: 0 auto;
    padding: 42px clamp(18px, 4vw, 54px);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 20px;
}

.section-heading.inline {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading span,
.category-hero span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-heading h2,
.category-hero h1 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.14;
    letter-spacing: 0;
}

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

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

.article-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .09);
}

.card-media {
    height: 320px;
    background: #dce3ea;
}

.card-media img {
    object-position: center 18%;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.card-body h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.22;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, white);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.meta-line {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
}

.category-strip {
    border-top: 1px solid var(--line);
}

.text-link {
    color: var(--accent);
    font-weight: 800;
}

.category-hero {
    padding: clamp(34px, 6vw, 82px) clamp(18px, 4vw, 54px) 28px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 11%, white), #f8fafb 55%);
}

.category-hero h1,
.category-hero p {
    max-width: 760px;
}

.article-page {
    padding: clamp(28px, 5vw, 62px) clamp(18px, 4vw, 54px);
}

.article-header {
    max-width: 920px;
    margin: 0 auto 24px;
}

.article-header h1 {
    margin: 12px 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.04;
}

.article-header p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.article-figure {
    max-width: 1080px;
    margin: 0 auto 28px;
}

.article-figure img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
}

.article-figure figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
    color: #222936;
    font-size: 18px;
}

.article-body h2 {
    margin-top: 34px;
    font-size: 28px;
    line-height: 1.18;
}

.article-body p {
    margin: 18px 0;
}

.article-body ul {
    padding-left: 22px;
}

.fact-box {
    margin: 36px 0;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 7%, white);
}

.fact-box h2 {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 22px;
}

.fact-box ul {
    margin: 0;
}

.fact-box li + li {
    margin-top: 8px;
}

.pagination-wrap {
    margin-top: 22px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.pager-link,
.pager-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.pager-link {
    color: var(--accent);
}

.pager-link.muted {
    color: #8a95a6;
    background: #eef2f5;
}

.pager-count {
    color: var(--muted);
}

.site-footer {
    display: grid;
    gap: 26px;
    padding: 34px clamp(18px, 4vw, 54px);
    border-top: 1px solid var(--line);
    color: #dce3ea;
    background: var(--night);
}

.footer-top,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
}

.site-footer nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer nav a {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    color: #e8edf3;
    font-weight: 700;
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #a9b4c3;
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero-grid,
    .hero-card {
        grid-template-columns: 1fr;
    }

    .article-grid,
    .article-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .header-inner,
    .footer-top,
    .footer-bottom,
    .section-heading.inline {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-card {
        min-height: 0;
    }

    .article-grid,
    .article-grid.compact {
        grid-template-columns: 1fr;
    }

    .card-media {
        height: 280px;
    }

    .hero-copy h1,
    .article-header h1 {
        font-size: 32px;
    }
}
