:root {
    --navy: #323956;
    --mist: #e7eaec;
    --ink: #333333;
    --paper: #ffffff;
    --cream: #efe6d6;
    --gold: #fda601;
    --orange: #ed7101;
    --button: #6f7488;
    --button-hover: #5c6274;
    --shadow: 0 18px 40px rgba(50, 57, 86, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Lato, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

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

a { color: var(--navy); }

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0.2em 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    background: var(--cream);
    padding: 1.25rem 1rem 0;
    text-align: center;
}

.logo img {
    margin: 0 auto;
    width: min(280px, 70vw);
    height: auto;
}

.desktop-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem 0.4rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--navy);
}

.nav-link,
.lang-switch a,
.button,
.admin-nav a,
.nav-toggle {
    font-family: inherit;
}

.nav-link,
.mobile-panel a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 5px;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.is-current,
.mobile-panel a:hover,
.mobile-panel a.is-current {
    background: var(--cream);
    color: var(--gold);
}

.lang-switch {
    display: inline-flex;
    gap: 0.35rem;
    margin-left: 0.6rem;
}

.lang-switch a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    opacity: 0.7;
}

.lang-switch a.is-current { opacity: 1; color: var(--gold); }

.nav-toggle,
.nav-backdrop,
.mobile-panel { display: none; }

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

.center { text-align: center; }

.band { padding: 3.5rem 0; }
.band-light { background: var(--mist); }
.band-navy { background: var(--navy); color: var(--paper); }
.band-navy h2, .band-navy h3 { color: var(--paper); }

.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--paper);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(50, 57, 86, 0.15), rgba(50, 57, 86, 0.72));
}

.hero .wrap { position: relative; z-index: 1; padding: 4rem 0 3rem; }
.hero h1, .hero h2, .hero p { color: var(--paper); }
.hero .kicker {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
}

.button {
    display: inline-block;
    background: var(--button);
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    padding: 0.75rem 1.3rem;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
}

.button:hover { background: var(--button-hover); }

.split, .stats, .gallery, .platform-row, .video-row, .note {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.split > *,
.stats > *,
.gallery figure,
.video-frame,
.note > * {
    flex: 1 1 100%;
}

.photo, .gallery img, .note img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.photo { max-height: 520px; }
.gallery img { aspect-ratio: 1; }

.stats { margin-top: 0.5rem; }
.stat {
    background: var(--cream);
    border-radius: 8px;
    padding: 1.4rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat strong {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
}
.stat span { font-weight: 700; color: var(--navy); }

.quote {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.platform {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 8px;
    padding: 0.8rem;
}
.platform img { width: 120px; height: auto; margin: 0 auto; }

.video-frame {
    position: relative;
    padding-top: 56%;
    background: var(--navy);
    border-radius: 8px;
    overflow: hidden;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery figure { margin: 0; }
.gallery figcaption {
    margin-top: 0.4rem;
    font-weight: 700;
    color: var(--navy);
}

.note {
    align-items: center;
    background: var(--mist);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.note img { border-radius: 8px; max-height: 360px; }
.note img.event-poster { object-fit: contain; max-height: 600px; align-self: flex-start; }
.note time { color: var(--button); font-size: 0.92rem; }
.auto-link { text-decoration: underline; }

.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.form label { font-weight: 700; color: var(--navy); }
.form input, .form textarea {
    width: 100%;
    font: inherit;
    padding: 0.75rem 0.8rem;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    background: var(--cream);
}
.form .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.notice {
    background: var(--mist);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}
.notice.ok { border-left: 4px solid var(--gold); }

.site-footer {
    background: var(--navy);
    color: #d5d8e0;
    padding: 3rem 1.25rem;
    text-align: center;
}
.site-footer h2 { color: var(--paper); }
.footer-lead { font-size: 1.25rem; font-weight: 700; color: var(--paper); }
.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 1rem 0 1.5rem;
}
.social-row a {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-row svg { width: 1.2rem; height: 1.2rem; fill: var(--paper); }
.social-row a:hover { background: var(--gold); }
.copyright { color: #aeb3c2; font-size: 0.92rem; }

.admin-body { background: #f4f5f7; min-height: 100vh; }
.admin-top {
    background: var(--navy);
    padding: 1rem;
}
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.admin-nav a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    padding: 0.45rem 0.9rem;
}
.admin-nav a.is-current,
.admin-nav a:hover { background: var(--cream); color: var(--gold); }

.admin-main { width: min(860px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }
.admin-card {
    display: block;
    position: relative;
    border-radius: 10px;
    padding: 1rem 1rem 3.2rem;
    margin-bottom: 0.8rem;
}
.admin-list .admin-card:nth-child(odd) { background: var(--mist); }
.admin-list .admin-card:nth-child(even) { background: var(--cream); }
.admin-card h2 { font-size: 1.2rem; }
.admin-card .delete-form { position: absolute; right: 0.8rem; bottom: 0.8rem; }
.delete-button {
    background: var(--button);
    color: var(--paper);
    border: 0;
    border-radius: 5px;
    padding: 0.45rem 0.75rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.delete-button:hover { background: var(--orange); }
.login-box {
    width: min(420px, calc(100% - 2rem));
    margin: 8vh auto;
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}
.hint { color: var(--button); font-size: 0.92rem; }
.news-photo { width: 180px; border-radius: 8px; }

@media (min-width: 800px) {
    .split > * { flex: 1 1 42%; }
    .stats > * { flex: 1 1 28%; }
    .gallery figure { flex: 1 1 30%; }
    .video-frame { flex: 1 1 30%; }
    .note > img,
    .note > div { flex: 1 1 42%; }
    .platform { flex: 1 1 16%; }
}

@media (max-width: 799px) {
    .desktop-nav { display: none; }
    .nav-toggle {
        display: grid;
        place-items: center;
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 40;
        width: 3.6rem;
        height: 3.6rem;
        border: 0;
        border-radius: 50%;
        background: var(--navy);
        box-shadow: var(--shadow);
        cursor: pointer;
    }
    .nav-toggle-bars,
    .nav-toggle-bars::before,
    .nav-toggle-bars::after {
        display: block;
        width: 1.2rem;
        height: 2px;
        background: var(--cream);
        position: relative;
    }
    .nav-toggle-bars::before,
    .nav-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
    }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(50, 57, 86, 0.45);
        z-index: 30;
    }
    .nav-backdrop[hidden] { display: none; }
    .mobile-panel {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        position: fixed;
        right: 1rem;
        bottom: 5.3rem;
        z-index: 35;
        width: min(280px, calc(100% - 2rem));
        background: var(--navy);
        border-radius: 12px;
        padding: 0.8rem;
        box-shadow: var(--shadow);
    }
    .mobile-panel[hidden] { display: none; }
    .mobile-panel .lang-switch { margin: 0.4rem 0 0.2rem 0.4rem; }
}
