:root {
    --bg: #f7f7f2;
    --ink: #171b22;
    --muted: #5d6675;
    --panel: #ffffff;
    --line: #d8ddd6;
    --accent: #b3192d;
    --accent-dark: #7f1122;
    --field: #f2f5f4;
    --green: #1d6b55;
    --gold: #d7a72f;
    --shadow: 0 18px 45px rgba(23, 27, 34, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 247, 242, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

.brand {
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
    background: var(--field);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    font-size: 24px;
}

.section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 620px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 8px;
    background: #121821;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 18, 24, 0.86), rgba(14, 18, 24, 0.44), rgba(14, 18, 24, 0.74)),
        radial-gradient(circle at 76% 34%, rgba(215, 167, 47, 0.34) 0 7%, transparent 8% 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
        linear-gradient(135deg, #1b2733, #2a3135 44%, #54131f 100%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    right: 8%;
    top: 18%;
    width: min(42vw, 420px);
    aspect-ratio: 1;
    border: 14px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(179, 25, 45, 0.88),
        0 0 0 68px rgba(255, 255, 255, 0.74),
        0 0 0 102px rgba(29, 107, 85, 0.74);
    opacity: 0.38;
}

.hero-content {
    position: relative;
    max-width: 760px;
    padding: clamp(30px, 6vw, 72px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero .eyebrow {
    color: #ffd25a;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
}

h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: 1.2rem;
}

.lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    background: var(--accent);
    color: #fff;
}

.button.primary:hover,
.button.primary:focus {
    background: var(--accent-dark);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    outline: 1px solid rgba(255, 255, 255, 0.34);
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.info-strip div,
.contact-grid div {
    min-width: 0;
    padding: 22px;
    background: var(--panel);
}

.info-strip span,
.contact-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.info-strip strong,
.contact-grid strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1rem;
}

.content-section,
.categories-section,
.action-section,
.contact-section {
    padding: 84px 0 0;
}

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

.text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    color: var(--muted);
    font-size: 1.05rem;
}

.text-grid p {
    margin: 0;
}

.competition-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.competition-card {
    position: relative;
    min-height: 190px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(23, 27, 34, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(242, 245, 244, 0.96)),
        var(--panel);
    box-shadow: 0 14px 34px rgba(23, 27, 34, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.competition-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -42px;
    width: 118px;
    height: 118px;
    border: 18px solid rgba(179, 25, 45, 0.12);
    border-radius: 50%;
}

.competition-card:hover {
    transform: translateY(-3px);
    border-color: rgba(179, 25, 45, 0.32);
    box-shadow: 0 18px 42px rgba(23, 27, 34, 0.13);
}

.competition-card h3 {
    position: relative;
    min-height: 54px;
    font-size: 1.05rem;
}

.competition-card p {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 18px 0 0;
    padding: 0 11px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
}

.target-mark {
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border: 7px solid var(--accent);
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px var(--gold), inset 0 0 0 13px var(--green);
}

.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.taxonomy-grid article {
    padding: 24px;
    border: 1px solid rgba(23, 27, 34, 0.08);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 14px 34px rgba(23, 27, 34, 0.08);
}

.taxonomy-grid h3 {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.mini-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.mini-card-list li {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field);
    color: var(--ink);
    font-weight: 800;
    text-align: center;
}

.registration-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

label span {
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--field);
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(179, 25, 45, 0.16);
}

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

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.checkbox input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 3px;
}

.notice {
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 8px;
    font-weight: 700;
}

.notice ul {
    margin: 8px 0 0;
}

.notice.success {
    background: rgba(29, 107, 85, 0.12);
    color: var(--green);
}

.notice.error {
    background: rgba(179, 25, 45, 0.12);
    color: var(--accent-dark);
}

.results-panel,
.empty-state {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.empty-state p {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.footer {
    width: min(1120px, calc(100% - 32px));
    margin: 76px auto 0;
    padding: 26px 0 36px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 1050px) {
    .competition-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .mini-card-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav {
        min-height: 64px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero {
        min-height: 560px;
        border-radius: 0;
        width: 100%;
        margin-top: 0;
    }

    .hero-bg::after {
        right: -24%;
        top: 12%;
        width: 62vw;
    }

    .info-strip,
    .text-grid,
    .competition-list,
    .taxonomy-grid,
    .registration-form,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .categories-section,
    .action-section,
    .contact-section {
        padding-top: 58px;
    }

    .competition-card {
        min-height: 160px;
    }

    .competition-card h3 {
        min-height: auto;
    }

    .mini-card-list {
        grid-template-columns: 1fr;
    }
}
