:root {
    --black: #07080a;
    --ink: #111419;
    --panel: #171b22;
    --panel-2: #202631;
    --line: #313947;
    --text: #f3f0e8;
    --muted: #b9bec7;
    --soft: #dce2d8;
    --green: #218945;
    --green-2: #38b869;
    --gold: #d9a63c;
    --red: #b52a2f;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
    --max: 1160px;
    --radius: 8px;
    --header-height: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

p,
h1,
h2,
h3 {
    margin-top: 0;
}

p {
    color: var(--muted);
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 20;
    transform: translateY(-150%);
    background: var(--gold);
    color: #17110a;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: var(--header-height);
    border-top: 4px solid var(--green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 8, 10, 0.92);
    backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand span {
    line-height: 1.05;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
    color: var(--white);
    border-color: rgba(56, 184, 105, 0.45);
    background: rgba(33, 137, 69, 0.18);
}

.nav-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(90deg, rgba(7, 8, 10, 1) 0%, rgba(9, 13, 14, 0.92) 48%, rgba(9, 15, 12, 0.84) 100%),
        url("../img/war-result.png") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 8, 10, 0.36), rgba(7, 8, 10, 0.88)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: auto 0 0;
    height: 7px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 36px;
    padding: 72px 0 86px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin-bottom: 22px;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 0.98;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.48);
}

.hero-summary {
    max-width: 610px;
    margin-bottom: 30px;
    color: var(--soft);
    font-size: 20px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
}

.button-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 14px 34px rgba(33, 137, 69, 0.32);
}

.button-primary:hover,
.button-primary:focus {
    background: var(--green-2);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus {
    border-color: rgba(217, 166, 60, 0.7);
    background: rgba(217, 166, 60, 0.14);
}

.hero-mark {
    position: relative;
    z-index: 1;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mark img {
    width: min(620px, 100%);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.62));
}

.stat-strip {
    background: #0e1115;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.stat {
    min-height: 124px;
    padding: 26px 22px;
    background: #10141a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat strong {
    display: block;
    color: var(--white);
    font-size: 34px;
    line-height: 1;
}

.stat span {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.section {
    padding: 86px 0;
    background: #f5f1e8;
    color: #17191f;
}

.section p {
    color: #4d5360;
}

.section-alt {
    background: #e8ece4;
}

.section-intro {
    border-top: 8px solid var(--green);
}

.split {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 48px;
    align-items: start;
}

.section h2,
.cta-panel h2 {
    margin-bottom: 18px;
    color: #13171d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1.05;
    text-transform: uppercase;
}

.lead-copy p {
    font-size: 19px;
    line-height: 1.7;
}

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

.card {
    min-height: 310px;
    padding: 28px;
    border: 1px solid rgba(21, 27, 36, 0.16);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(16, 22, 30, 0.08);
    display: flex;
    flex-direction: column;
}

.card-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #171b22;
    color: var(--gold);
    font-weight: 900;
}

.card h3 {
    margin-bottom: 12px;
    color: #171b22;
    font-size: 23px;
    line-height: 1.15;
    text-transform: uppercase;
}

.card p {
    flex: 1;
}

.card a {
    width: fit-content;
    color: var(--green);
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(33, 137, 69, 0.28);
}

.card a:hover,
.card a:focus {
    border-color: var(--green);
}

.war-section {
    background: #0d1015;
    color: var(--text);
}

.war-section p,
.war-section .section-heading p {
    color: var(--muted);
}

.war-section h2 {
    color: var(--white);
}

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

.section-heading.compact {
    margin-bottom: 0;
}

.section-heading p:last-child {
    font-size: 18px;
}

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

.war-shot {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.war-shot img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.war-shot figcaption {
    padding: 14px 16px;
    color: var(--soft);
    font-weight: 800;
}

.cta-section {
    background: #171b22;
}

.cta-panel {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(33, 137, 69, 0.22), rgba(217, 166, 60, 0.12)),
        #10141a;
}

.cta-panel img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.cta-panel h2 {
    color: var(--white);
}

.cta-panel p {
    margin-bottom: 0;
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(90deg, rgba(7, 8, 10, 0.96), rgba(15, 22, 19, 0.88)),
        url("../img/war-attack.png") center / cover no-repeat;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
    align-items: center;
}

.page-hero p {
    max-width: 700px;
    color: var(--soft);
    font-size: 19px;
}

.page-hero img {
    width: 320px;
    opacity: 0.9;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.52));
}

.narrow {
    max-width: 760px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 48px;
    align-items: start;
}

.content-block p {
    font-size: 18px;
    line-height: 1.72;
}

.rule-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.rule-list article {
    display: grid;
    grid-template-columns: minmax(170px, 0.5fr) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 28px rgba(16, 22, 30, 0.07);
}

.rule-list strong {
    color: #151a20;
    line-height: 1.3;
}

.rule-list span {
    color: #4d5360;
}

.site-footer {
    background: #08090b;
    border-top: 8px solid #2b3038;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
    gap: 28px;
    padding: 58px 0 40px;
}

.footer-brand img {
    width: 260px;
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 420px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
}

.site-footer nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer a {
    color: var(--muted);
    font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .header-inner {
        align-items: flex-start;
        padding: 16px 0;
    }

    .site-nav {
        max-width: 680px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 54px 0 70px;
    }

    .hero-mark {
        min-height: 260px;
        justify-content: flex-start;
    }

    .hero-mark img {
        width: min(520px, 100%);
    }

    .hero h1,
    .page-hero h1 {
        font-size: 54px;
    }

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

@media (max-width: 820px) {
    :root {
        --header-height: 74px;
    }

    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .site-header {
        min-height: var(--header-height);
    }

    .header-inner {
        min-height: var(--header-height);
        align-items: center;
        padding: 0;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand span {
        max-width: 170px;
    }

    .nav-toggle {
        width: 48px;
        height: 44px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.08);
        color: var(--white);
        cursor: pointer;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        background: var(--white);
    }

    .nav-toggle b {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 0;
        display: none;
        align-content: start;
        padding: 18px 20px 40px;
        background: rgba(7, 8, 10, 0.98);
        overflow-y: auto;
    }

    .site-nav.open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-nav a {
        min-height: 48px;
        justify-content: center;
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        font-size: 16px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        gap: 22px;
        padding: 48px 0 58px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 42px;
        line-height: 1.02;
    }

    .hero-summary,
    .page-hero p {
        font-size: 18px;
    }

    .stat-grid,
    .cards-grid,
    .war-grid,
    .split,
    .content-layout,
    .page-hero-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .stat {
        min-height: 100px;
    }

    .section {
        padding: 58px 0;
    }

    .section h2,
    .cta-panel h2 {
        font-size: 34px;
    }

    .page-hero {
        padding: 52px 0;
    }

    .page-hero img {
        width: min(320px, 100%);
    }

    .cta-panel {
        padding: 26px;
        justify-items: start;
    }

    .rule-list article {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .brand span {
        max-width: 130px;
        font-size: 13px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .button {
        min-height: 52px;
        padding: 12px 14px;
        text-align: center;
    }

    .hero-mark {
        min-height: 190px;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat strong {
        font-size: 28px;
    }

    .card {
        min-height: 0;
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand img {
        width: min(260px, 100%);
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
