:root {
    --site-background: #ffffff;
    --site-surface: #ffffff;
    --site-text: #1f2937;
    --site-muted-text: #6b7280;
    --site-border: #e5e7eb;
    --site-accent: #1e73be;
    --site-header-height: 76px;
    --site-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}

[data-theme="dark"] {
    --site-background: #111827;
    --site-surface: #1f2937;
    --site-text: #f3f4f6;
    --site-muted-text: #d1d5db;
    --site-border: #374151;
    --site-accent: #60a5fa;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body {
    margin: 0;
    padding-top: 0 !important;
    background: var(--site-background);
    color: var(--site-text);
}

.site-skip-link {
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    padding: 0.75rem 1rem;
    transform: translateY(-110%);
    border-radius: 0 0 0.35rem;
    background: var(--site-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    min-height: var(--site-header-height);
    border-bottom: 1px solid var(--site-border);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.site-header__inner {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: var(--site-header-height);
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: block;
    max-width: 180px;
    flex: 0 1 180px;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.site-navigation {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 0.55rem;
}

.site-navigation a {
    padding: 0.45rem 0;
    border-bottom: 2px solid transparent;
    color: var(--site-text);
    font: 600 11px/1.15 Inter, sans-serif;
    letter-spacing: 0.3px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation a.is-active {
    border-color: var(--site-accent);
    color: var(--site-accent);
}

.site-theme-toggle,
.site-menu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--site-border);
    border-radius: 50%;
    background: transparent;
    color: var(--site-text);
    cursor: pointer;
}

.site-menu-toggle {
    display: none;
}

.site-footer {
    padding: 3rem 1.5rem 1.5rem;
    background: #0f172a;
    color: #94a3b8;
}

.site-footer__inner {
    display: grid;
    width: min(1140px, 100%);
    margin: 0 auto;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.site-footer h2 {
    margin: 0 0 0.75rem;
    color: #4fc3f7;
    font-size: 1rem;
}

.site-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 0.4rem;
}

.site-footer a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__legal {
    width: min(1140px, 100%);
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
    text-align: center;
}

.site-footer__legal a {
    color: #4fc3f7;
    font-size: inherit;
}

.error-page {
    display: grid;
    min-height: 60vh;
    place-items: center;
    padding: 5rem 1.5rem;
    background: var(--site-background);
    color: var(--site-text);
    text-align: center;
}

.error-page__code {
    margin: 0;
    color: var(--site-accent);
    font-size: clamp(4rem, 15vw, 9rem);
    line-height: 0.9;
}

.error-page h1 {
    margin: 1rem 0 0.75rem;
}

.error-page a {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--site-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 1180px) {
    .site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--site-border);
        background: var(--site-surface);
        box-shadow: var(--site-shadow);
        flex-direction: column;
    }

    .site-navigation.is-open {
        display: flex;
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        padding: 0 1rem;
    }

    .site-logo img {
        height: 42px;
        max-width: 190px;
        object-fit: contain;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}
