:root {
    color-scheme: light;
    --navy-950: #071047;
    --navy-900: #0b1558;
    --navy-700: #25339b;
    --navy-100: #e9ecff;
    --canvas: #ffffff;
    --surface: #f7f8fa;
    --surface-raised: #ffffff;
    --text: #191f28;
    --text-secondary: #6b7684;
    --text-tertiary: #8b95a1;
    --border: #e9ecf0;
    --focus: #5268ff;
    --shadow: 0 16px 45px rgba(7, 16, 71, .08);
    --header-bg: rgba(255, 255, 255, .88);
    --radius-sm: 13px;
    --page-width: 1680px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--canvas);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: white;
    background: #071047;
    border-radius: 10px;
    transform: translateY(-160%);
}

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

.app-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
    width: min(calc(100% - 176px), var(--page-width));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 80px;
    gap: 34px;
}

.brand {
    flex: 0 0 auto;
    color: var(--navy-950);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand span {
    color: var(--navy-700);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 14px;
    color: var(--text);
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: var(--surface);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 750;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition), opacity var(--transition);
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: white;
    background: #071047;
    box-shadow: 0 8px 18px rgba(7, 16, 71, .2);
}

.button-secondary {
    color: var(--text);
    background: var(--surface);
}

.app-footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.footer-inner strong {
    color: var(--navy-950);
    font-size: 17px;
}

@media (max-width: 760px) {
    .header-inner,
    .footer-inner {
        width: min(calc(100% - 28px), var(--page-width));
    }

    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .primary-nav {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions > .button {
        min-height: 40px;
        padding: 8px 11px;
        font-size: 13px;
    }
}
