:root {
    --bg: #fbf3f3;
    --surface: #ffffff;
    --surface-soft: #f7e7e7;
    --ink: #2a1012;
    --ink-muted: #6b4d51;
    --brand: #c31516;
    --brand-dark: #8d0d0e;
    --accent: #1b1f3a;
    --line: #ecd4d4;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px rgba(16, 33, 22, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    background: radial-gradient(1200px 650px at 85% -10%, #ffd8d8 0%, transparent 58%), var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

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

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

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(246, 247, 242, 0.86);
    border-bottom: 1px solid rgba(215, 223, 210, 0.7);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: conic-gradient(from 220deg, #8d0d0e, #c31516, #ef9898, #8d0d0e);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.brand h1 {
    font-size: 1.02rem;
    margin: 0;
    line-height: 1.2;
    max-width: 180px;
}

.brand small {
    color: var(--ink-muted);
    display: block;
    font-size: 0.78rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ink-muted);
}

.nav-link:hover,
.nav-link:focus-visible {
    background: var(--surface-soft);
    color: var(--brand-dark);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    border-radius: 999px;
    padding: 2px;
    border: 1px solid transparent;
}

.nav-item.has-submenu:hover,
.nav-item.has-submenu:focus-within,
.nav-item.has-submenu.open {
    background: var(--surface-soft);
    border-color: #e7c8c8;
}

.submenu-toggle {
    border: 1px solid #e7c8c8;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink-muted);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
    border-color: #dca6a6;
    color: var(--brand-dark);
}

.has-submenu:hover .submenu-toggle,
.has-submenu:focus-within .submenu-toggle,
.has-submenu.open .submenu-toggle {
    transform: rotate(180deg);
    color: var(--brand-dark);
}

.submenu-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    min-width: 280px;
    max-width: 360px;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(64, 14, 14, 0.15);
    display: grid;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.submenu-link {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: var(--ink-muted);
    font-weight: 600;
}

.submenu-link:hover,
.submenu-link:focus-visible {
    background: #fff4f4;
    color: var(--brand-dark);
}

.has-submenu:hover .submenu-panel,
.has-submenu:focus-within .submenu-panel,
.has-submenu.open .submenu-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-toggle {
    border: 1px solid var(--line);
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: none;
}

.hero {
    padding: 6rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.hero-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, #ffffff, #fff2f2 58%, #ffe8e8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 2.2rem;
    transform: translateY(14px);
    opacity: 0;
    animation: rise 0.7s ease forwards;
}

.hero-media {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.hero h2 {
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    line-height: 1.06;
    margin: 0 0 1rem;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    letter-spacing: 0.02em;
}

.hero p {
    color: var(--ink-muted);
    margin: 0 0 1.3rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.78rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-ghost {
    background: var(--surface-soft);
    color: var(--ink);
}

.stats {
    display: grid;
    gap: 0.8rem;
}

.stat {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    padding: 1rem;
}

.stat b {
    font-size: 1.8rem;
    display: block;
    line-height: 1;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
}

.section {
    padding: 1.75rem 0 3rem;
}

.section h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 1rem;
}

.card-image {
    margin: -1rem -1rem 0.8rem;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid var(--line);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .meta {
    color: var(--ink-muted);
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
}

.card h4 {
    margin: 0 0 0.55rem;
    line-height: 1.25;
}

.card p {
    margin: 0;
    color: var(--ink-muted);
}

.read-more {
    margin-top: 0.8rem;
    color: var(--brand-dark);
    font-weight: 700;
    display: inline-block;
}

.event-list {
    display: grid;
    gap: 0.8rem;
}

.event-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 0.9rem;
}

.event-date {
    border-radius: 12px;
    background: var(--surface-soft);
    padding: 0.7rem;
    text-align: center;
    font-weight: 700;
}

.sponsor-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.sponsor {
    min-height: 110px;
    border: 1px dashed #dfb8b8;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    text-align: center;
    color: var(--ink-muted);
    font-weight: 700;
}

.sponsor img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.quick-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.site-footer {
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
}

.page-header {
    padding: 2.5rem 0 1rem;
}

.page-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
}

.content {
    padding-bottom: 3rem;
}

.prose {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

.prose img {
    border-radius: 12px;
    border: 1px solid var(--line);
}

.prose .md-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.15rem 0.4rem 0.35rem 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.prose .md-button:hover,
.prose .md-button:focus-visible {
    background: var(--brand-dark);
}

@keyframes rise {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

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

@media (max-width: 1160px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        right: 1rem;
        width: min(320px, calc(100% - 2rem));
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 1rem;
        gap: 0.2rem;
        flex-direction: column;
        align-items: stretch;
        transform: scale(0.96);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    .nav-links.open {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        justify-content: space-between;
    }

    .nav-item {
        flex-wrap: wrap;
        width: 100%;
        gap: 0.15rem;
        border-radius: 12px;
    }

    .submenu-toggle {
        margin-left: auto;
        width: 30px;
        height: 30px;
    }

    .submenu-panel {
        position: static;
        min-width: 0;
        max-width: none;
        width: 100%;
        border-radius: 10px;
        box-shadow: none;
        margin-top: 0.3rem;
        padding: 0.45rem;
        transform: none;
        max-height: 0;
        overflow: hidden;
        border-width: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.2s ease, opacity 0.2s ease;
    }

    .has-submenu.open .submenu-panel {
        max-height: 520px;
        opacity: 1;
        pointer-events: auto;
        border-width: 1px;
    }

    .event-item {
        grid-template-columns: 1fr;
    }
}
