:root {
    --ink: #151515;
    --muted: #5d626a;
    --paper: rgba(255, 255, 255, 0.78);
    --paper-strong: rgba(255, 255, 255, 0.86);
    --line: rgba(18, 18, 18, 0.18);
    --accent: #b71e24;
    --accent-blue: #1f5e92;
    --gold: #bd8a2b;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f8;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image: url("assets/background.png");
    background-position: center;
    background-size: cover;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52)),
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.site-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 34px;
}

.hero {
    min-height: 250px;
    display: grid;
    align-content: center;
    margin-bottom: 26px;
    padding: 42px clamp(22px, 5vw, 78px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
        url("assets/background.png") center / cover;
    box-shadow: var(--shadow);
}

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

h1 {
    max-width: 720px;
    margin-bottom: 14px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: 0;
}

.lead {
    max-width: 610px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.11);
    backdrop-filter: blur(5px);
}

.goals-panel,
.news-panel {
    padding: clamp(20px, 3vw, 34px);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--ink);
}

.section-heading.compact {
    justify-content: center;
}

.section-heading h2,
.bottom-grid h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
}

.section-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid rgba(18, 18, 18, 0.28);
    border-radius: 50%;
    background: var(--paper-strong);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.goals-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.goal-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 58px;
    padding: 12px 0 13px;
    border-bottom: 1px solid rgba(18, 18, 18, 0.16);
}

.goal-item:last-child {
    border-bottom: 0;
}

.goal-index {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.goal-item p {
    margin: 0;
    color: #292d33;
    font-size: 17px;
    line-height: 1.45;
}

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

.news-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 3px solid var(--ink);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.62);
}

.news-card-wide {
    grid-column: 1 / -1;
    min-height: 138px;
}

.news-date {
    width: max-content;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(183, 30, 36, 0.1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.news-card h3 {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.news-card p,
.bottom-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.15fr;
    gap: 24px;
    margin-top: 24px;
}

.bottom-grid .panel {
    min-height: 150px;
    padding: 24px;
}

.contest-panel,
.participation-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    border: 3px solid var(--ink);
}

.contest-panel > div,
.participation-panel > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-link {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 2px solid currentColor;
    border-radius: 4px;
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--accent);
}

.stat-panel {
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--paper-strong);
}

.directions-panel {
    scroll-margin-top: 24px;
    margin-top: 24px;
    padding: clamp(20px, 3vw, 34px);
}

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

.direction-card {
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(18, 18, 18, 0.22);
    border-left: 5px solid var(--accent);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.58);
}

.direction-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.2;
}

.direction-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.big-stat {
    color: var(--gold);
    font-size: 74px;
    font-weight: 800;
    line-height: 1;
}

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

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

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

@media (max-width: 620px) {
    .site-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 12px;
    }

    .hero {
        min-height: 220px;
        padding: 28px 20px;
    }

    .lead {
        font-size: 16px;
    }

    .goals-panel,
    .news-panel,
    .bottom-grid .panel {
        padding: 18px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .goal-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .goal-index {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
