:root {
    --global-ui-scale: 1;
    --surface-0: #eef3f8;
    --surface-1: #ffffff;
    --surface-2: #f6f9fd;
    --surface-3: #e7eef7;
    --text-main: #0d2f56;
    --text-muted: #4b6078;
    --text-soft: #6f8197;
    --line: #c9d5e5;
    --line-strong: #b5c6dd;
    --primary: #f2a63b;
    --primary-strong: #d67f18;
    --primary-soft: rgba(242, 166, 59, 0.18);
    --danger: #b83a2f;
    --success: #157347;
    --hover-bg: rgba(13, 47, 86, 0.08);
    --focus-ring: rgba(242, 166, 59, 0.3);
    --shadow-1: 0 5px 16px rgba(13, 47, 86, 0.08);
    --shadow-2: 0 14px 34px rgba(13, 47, 86, 0.12);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --header-bg: #ffffff;
    --header-text: #0d2f56;
    --header-border: rgba(13, 47, 86, 0.14);
    --header-surface: #f5f8fc;
    --header-hover: rgba(13, 47, 86, 0.08);
    --header-icon: #d67f18;
    --header-shadow: 0 5px 16px rgba(13, 47, 86, 0.08);
}

html {
    font-size: calc(16px * var(--global-ui-scale));
}

@supports (zoom: 1) {
    html {
        font-size: 16px;
        zoom: var(--global-ui-scale);
    }
}

body,
body.light-mode,
body[data-theme="light"] {
    --bg-dark: var(--surface-0);
    --bg-card: var(--surface-1);
    --bg-drawer: var(--surface-1);
    --accent: #5f6f82;
    --warning: #d67f18;
    --border-color: var(--line);
    --text-main: #0d2f56;
    --text-muted: #4b6078;
    --hover-bg: rgba(13, 47, 86, 0.08);
}

body[data-theme="dark"] {
    --surface-0: #0b1627;
    --surface-1: #14243a;
    --surface-2: #1a2f4a;
    --surface-3: #1f3858;
    --text-main: #f1f6ff;
    --text-muted: #b5c5da;
    --text-soft: #97adc8;
    --line: #324b67;
    --line-strong: #4b6584;
    --hover-bg: rgba(253, 187, 48, 0.16);
    --focus-ring: rgba(253, 187, 48, 0.4);
    --shadow-1: 0 8px 20px rgba(0, 0, 0, 0.28);
    --shadow-2: 0 18px 42px rgba(0, 0, 0, 0.34);
    --bg-dark: var(--surface-0);
    --bg-card: var(--surface-1);
    --bg-drawer: var(--surface-1);
    --header-bg: #090d14;
    --header-text: #eef3fb;
    --header-border: rgba(117, 130, 151, 0.52);
    --header-surface: #151d2a;
    --header-hover: rgba(253, 187, 48, 0.14);
    --header-icon: #ffd100;
    --header-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

body.high-contrast-mode,
body[data-theme="contrast"] {
    --surface-0: #030303;
    --surface-1: #0a0a0a;
    --surface-2: #111111;
    --surface-3: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #f2f2f2;
    --text-soft: #d9d9d9;
    --line: #ffd100;
    --line-strong: #ffd100;
    --primary: #ffd100;
    --primary-strong: #ffb300;
    --primary-soft: rgba(255, 209, 0, 0.22);
    --hover-bg: rgba(255, 209, 0, 0.24);
    --focus-ring: rgba(255, 209, 0, 0.5);
    --shadow-1: 0 0 0 1px rgba(255, 209, 0, 0.56);
    --shadow-2: 0 0 0 2px rgba(255, 209, 0, 0.66);
    --bg-dark: var(--surface-0);
    --bg-card: var(--surface-1);
    --bg-drawer: var(--surface-1);
    --header-bg: #060606;
    --header-text: #ffffff;
    --header-border: rgba(255, 209, 0, 0.72);
    --header-surface: #121212;
    --header-hover: rgba(255, 209, 0, 0.18);
    --header-icon: #ffd100;
    --header-shadow: 0 0 0 1px rgba(255, 209, 0, 0.42);
}

.light-only-mode .site-theme-toggle {
    display: none !important;
}

.site-skip-link {
    position: fixed;
    left: 14px;
    top: 12px;
    transform: translateY(-190%);
    z-index: 4000;
    background: linear-gradient(135deg, #ffd37a, #f2a63b);
    color: #062649;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: var(--shadow-2);
}

.site-skip-link:focus-visible {
    transform: translateY(0);
}

:focus-visible {
    outline: 2px solid #e18e25;
    outline-offset: 2px;
}

body[data-theme="contrast"] :focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px #ffd100;
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px clamp(12px, 2.3vw, 24px);
    border-bottom: 1px solid var(--header-border);
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
}

.site-sticky-banner {
    position: sticky;
    top: var(--site-nav-height, 64px);
    z-index: 170;
    width: 100%;
    padding: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    display: none;
}

.site-sticky-banner.active {
    display: block;
}

.site-sticky-banner-inner {
    position: relative;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.site-sticky-banner-inner img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

.site-banner-welcome-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    display: none;
    --site-banner-overlay-scale: 1;
}

.site-banner-welcome-overlay.active {
    display: block;
}

.site-banner-menu-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    display: none;
    --site-banner-overlay-scale: 1;
}

.site-banner-menu-overlay.active {
    display: block;
}

.site-banner-welcome-item {
    position: absolute;
    left: 4%;
    top: 22%;
    max-width: 92%;
    display: inline-flex;
    align-items: center;
    gap: calc(6px * var(--site-banner-overlay-scale));
    padding: calc(4px * var(--site-banner-overlay-scale)) calc(8px * var(--site-banner-overlay-scale));
    border-radius: calc(8px * var(--site-banner-overlay-scale));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(0, 35, 73, 0.16);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-banner-welcome-item.desc {
    top: 48%;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-banner-welcome-item.badge {
    top: 72%;
    border-radius: 999px;
    background: rgba(0, 35, 73, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    font-weight: 700;
    text-shadow: none;
}

.site-banner-welcome-item.badge .dot {
    width: calc(8px * var(--site-banner-overlay-scale));
    height: calc(8px * var(--site-banner-overlay-scale));
    border-radius: 50%;
    background: #7cd67c;
    flex: 0 0 calc(8px * var(--site-banner-overlay-scale));
}

body.banner-overlay-welcome-active .sala-welcome {
    display: none !important;
}

.site-banner-menu-item {
    position: absolute;
    left: 15%;
    top: 22%;
    max-width: 76%;
    display: inline-flex;
    align-items: center;
    gap: calc(6px * var(--site-banner-overlay-scale));
    padding: calc(4px * var(--site-banner-overlay-scale)) calc(8px * var(--site-banner-overlay-scale));
    border-radius: calc(8px * var(--site-banner-overlay-scale));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(0, 35, 73, 0.16);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-banner-menu-item.intro {
    top: 58%;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 84%;
}

body.site-menu-page.banner-overlay-menu-active .hero {
    display: none !important;
}

.site-footer-spot {
    position: relative;
    width: 100%;
    display: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface-1);
    box-shadow: none;
}

.site-footer-spot.active {
    display: block;
}

.site-footer-spot-inner {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.site-footer-spot-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

.site-navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    margin-left: auto;
}

.site-hamburger {
    width: 40px;
    height: 40px;
    border: 1px solid var(--header-border);
    border-radius: 12px;
    background: var(--header-surface);
    color: var(--header-text);
    font-size: 1.08rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(13, 47, 86, 0.18);
    transition: background .2s ease, border-color .2s ease, transform .16s ease, box-shadow .2s ease;
}

.site-hamburger:hover {
    border-color: var(--header-border);
    background: var(--header-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 47, 86, 0.18);
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    max-height: 38px;
    width: auto;
    display: block;
}

.brand-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-strip-item {
    display: inline-flex;
    align-items: center;
}

.brand-strip-item img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 152px;
    object-fit: contain;
}

.brand-strip-item.main img {
    height: 42px;
    max-width: 178px;
}

.site-nav-link,
.site-access-btn,
.site-lang-select,
.site-theme-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .16s ease;
}

.site-nav-link {
    color: var(--header-text);
    text-decoration: none;
    padding: 0 12px;
    border: 1px solid transparent;
    gap: 7px;
    position: relative;
}

.site-theme-toggle {
    border: 1px solid var(--header-border);
    background: var(--header-surface);
    color: var(--header-text);
    width: 40px;
    min-width: 40px;
    box-sizing: border-box;
    padding: 0;
    gap: 0;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(13, 47, 86, 0.14);
}

.site-theme-toggle span {
    display: none !important;
}

.site-theme-toggle:hover,
.site-theme-toggle:focus-visible {
    background: var(--header-hover);
    border-color: var(--header-border);
}

.site-nav-link::after,
.site-access-btn::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--header-icon);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
    background: var(--header-hover);
    color: var(--header-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 47, 86, 0.14);
}

.site-nav-link:hover::after,
.site-nav-link:focus-visible::after,
.site-nav-link.active::after {
    transform: scaleX(1);
}

.site-nav-link.active {
    color: var(--header-text);
    background: var(--header-surface);
    border-color: var(--header-border);
}

.site-nav-link.active i,
.site-nav-link:hover i {
    color: var(--header-icon);
}

.site-logout-btn {
    color: var(--header-text);
    border: 1px solid var(--header-border);
    background: var(--header-surface);
    box-shadow: 0 1px 2px rgba(13, 47, 86, 0.14);
}

.site-logout-btn:hover {
    background: var(--header-hover);
    border-color: var(--header-border);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 47, 86, 0.14);
}

.site-access-dropdown {
    position: relative;
}

.site-access-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--header-text);
    padding: 0 12px;
    gap: 7px;
    cursor: pointer;
    position: relative;
}

.site-access-btn:hover,
.site-access-btn:focus-visible {
    background: var(--header-hover);
}

.site-theme-toggle i {
    color: var(--header-icon);
}

body[data-theme="contrast"] .site-hamburger,
body[data-theme="contrast"] .site-theme-toggle,
body[data-theme="contrast"] .site-lang-select,
body[data-theme="contrast"] .site-logout-btn,
body[data-theme="contrast"] .site-nav-link.active {
    border-color: #ffd100;
}

body[data-theme="contrast"] .site-nav-link,
body[data-theme="contrast"] .site-logout-btn,
body[data-theme="contrast"] .site-theme-toggle,
body[data-theme="contrast"] .site-lang-select,
body[data-theme="contrast"] .site-hamburger {
    color: #ffffff;
    background-color: #111111;
}

body[data-theme="contrast"] .site-nav-link:hover,
body[data-theme="contrast"] .site-logout-btn:hover,
body[data-theme="contrast"] .site-theme-toggle:hover,
body[data-theme="contrast"] .site-lang-select:hover,
body[data-theme="contrast"] .site-hamburger:hover {
    background: rgba(255, 209, 0, 0.16);
    border-color: #ffd100;
    color: #ffffff;
}

body[data-theme="contrast"] .site-theme-toggle {
    background: #ffd100;
    color: #000000;
    border-color: #ffd100;
    box-shadow: 0 0 0 1px rgba(255, 209, 0, 0.62), 0 2px 8px rgba(0, 0, 0, 0.38);
}

body[data-theme="contrast"] .site-theme-toggle i {
    color: #000000;
}

body[data-theme="contrast"] .site-theme-toggle:hover,
body[data-theme="contrast"] .site-theme-toggle:focus-visible {
    background: #fff3a6;
    color: #000000;
    border-color: #ffffff;
}

body[data-theme="contrast"] .site-drawer {
    background: #050505;
    border-right-color: #ffd100;
    box-shadow: 0 0 0 1px rgba(255, 209, 0, 0.45);
}

body[data-theme="contrast"] .site-drawer-header,
body[data-theme="contrast"] .site-drawer-section,
body[data-theme="contrast"] .site-drawer-close,
body[data-theme="contrast"] .site-drawer-link.logout,
body[data-theme="contrast"] .site-about-content,
body[data-theme="contrast"] .site-logout-card {
    border-color: #ffd100;
}

body[data-theme="contrast"] .site-drawer-title,
body[data-theme="contrast"] .site-drawer-link,
body[data-theme="contrast"] .site-drawer-section-title,
body[data-theme="contrast"] .site-drawer-subtitle,
body[data-theme="contrast"] .site-about-content,
body[data-theme="contrast"] .site-logout-card h3,
body[data-theme="contrast"] .site-logout-card p {
    color: #ffffff;
}

body[data-theme="contrast"] .site-about-team {
    border-top-color: #ffd100;
}

body[data-theme="contrast"] .site-about-member-card {
    background: #0f0f0f;
    border-color: #ffd100;
    box-shadow: none;
}

body[data-theme="contrast"] .site-about-member-name,
body[data-theme="contrast"] .site-about-member-role {
    color: #ffffff;
}

body[data-theme="contrast"] .site-about-member-photo-wrap {
    border-color: #ffd100;
    background: #060606;
}

body[data-theme="contrast"] .site-about-close {
    border-color: #ffd100;
    background: #111111;
    color: #ffffff;
}

body[data-theme="contrast"] .site-about-close:hover,
body[data-theme="contrast"] .site-about-close:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 209, 0, 0.2);
    color: #ffffff;
}

body[data-theme="contrast"] .site-drawer-link.active {
    background: #ffd100;
    border-color: #ffd100;
    color: #000000;
}

body[data-theme="contrast"] .site-drawer-badge {
    background: #000000;
    color: #ffd100;
    border: 1px solid #ffd100;
}

body[data-theme="contrast"] .site-logout-btn-confirm {
    background: #ffd100;
    color: #000000;
    border-color: #ffd100;
}

body[data-theme="contrast"] .site-logout-btn-cancel {
    background: #070707;
    color: #ffffff;
    border-color: #ffd100;
}

body[data-theme="contrast"] .site-drawer-close {
    background: #141414;
    color: #ffffff;
    border-color: #ffd100;
}

body[data-theme="contrast"] .site-drawer-close:hover {
    background: rgba(255, 209, 0, 0.18);
    color: #ffffff;
}

body[data-theme="contrast"] .site-lang-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23FFD100' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
}

body[data-theme="contrast"] .site-banner-welcome-item {
    color: #ffffff;
    text-shadow: 0 0 0 transparent;
}

body[data-theme="contrast"] .site-banner-menu-item {
    color: #ffffff;
    text-shadow: 0 0 0 transparent;
}

body[data-theme="contrast"] .site-banner-welcome-item.badge {
    background: #ffd100;
    color: #000000;
    border-color: #000000;
}

body[data-theme="contrast"] .site-banner-welcome-item.badge .dot {
    background: #000000;
}

body[data-theme="contrast"] .site-footer-spot {
    background: #080808;
    border-top-color: #ffd100;
    border-bottom-color: #ffd100;
    box-shadow: none;
}

.site-access-btn:hover::after,
.site-access-btn:focus-visible::after {
    transform: scaleX(1);
}

.site-access-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 246px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--header-border);
    background: var(--header-bg);
    box-shadow: var(--shadow-2);
    display: none;
    z-index: 190;
}

.site-access-dropdown.open .site-access-content {
    display: block;
}

.site-access-option {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--header-text);
    font-size: 0.9rem;
    cursor: pointer;
}

.site-access-option:hover {
    background: var(--header-hover);
    border-color: var(--header-border);
}

.site-lang-switch {
    display: inline-flex;
    align-items: center;
}

.site-lang-select {
    border: 1px solid var(--header-border);
    background: var(--header-bg);
    color: var(--header-text);
    font: inherit;
    padding: 0 28px 0 10px;
    min-width: 72px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23000000' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.site-lang-select:hover,
.site-lang-select:focus-visible {
    background-color: var(--header-hover);
    border-color: var(--header-border);
}

.site-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 47, 86, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 160;
}

.site-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.site-drawer {
    position: fixed;
    top: 0;
    left: -330px;
    width: 320px;
    max-width: calc(100vw - 36px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: var(--surface-1);
    box-shadow: var(--shadow-2);
    transition: left .24s ease;
    z-index: 190;
}

.site-drawer.active {
    left: 0;
}

.site-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--line);
}

.site-drawer-title {
    margin: 0;
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 800;
}

.site-drawer-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.site-drawer-close:hover {
    background: var(--surface-3);
}

.site-drawer-content {
    overflow: auto;
    padding: 10px;
    display: grid;
    gap: 6px;
}

.site-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background .18s ease, border-color .18s ease, transform .14s ease;
}

.site-drawer-link i {
    width: 18px;
    text-align: center;
}

.site-drawer-link:hover {
    background: var(--hover-bg);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.site-drawer-link.active {
    border-color: rgba(242, 166, 59, 0.45);
    background: rgba(242, 166, 59, 0.16);
    color: var(--text-main);
}

.site-drawer-link.inactive {
    opacity: 0.62;
    cursor: not-allowed;
}

.site-drawer-link.inactive:hover {
    background: transparent;
    border-color: transparent;
}

.site-drawer-link.logout {
    margin-top: 4px;
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

.site-drawer-link.logout:hover {
    background: var(--hover-bg);
    border-color: var(--line-strong);
}

.site-drawer-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #edf3fa;
    color: #4f647f;
}

.site-drawer-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.site-drawer-section-title {
    display: block;
    margin: 4px 2px 8px;
    color: var(--text-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.site-drawer-subtitle {
    margin: 8px 6px 4px;
    color: #5f7490;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-about-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 47, 86, 0.48);
    z-index: 2000;
    overflow: auto;
    padding:
        max(16px, env(safe-area-inset-top, 0px))
        10px
        max(16px, env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
}

.site-about-content {
    width: min(980px, calc(100% - 24px));
    margin: 5vh auto;
    max-height: min(88vh, 960px);
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-1);
    color: var(--text-main);
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-2);
    display: grid;
    gap: 12px;
    overflow-y: auto;
}

.site-about-brand {
    text-align: center;
    margin-top: 2px;
}

.site-about-brand img {
    height: 58px;
    width: auto;
    display: inline-block;
}

.site-about-title {
    text-align: center;
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.18rem, 2.2vw, 1.52rem);
    letter-spacing: 0.01em;
}

.site-about-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.52;
}

.site-about-content p#siteAboutP1 {
    color: var(--text-main);
}

.site-about-team {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.site-about-team-title {
    margin: 0 0 10px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.site-about-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.site-about-member-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(170deg, color-mix(in srgb, var(--surface-2) 82%, transparent), color-mix(in srgb, var(--surface-1) 92%, transparent));
    box-shadow: 0 4px 14px rgba(13, 47, 86, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.site-about-member-card:hover,
.site-about-member-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 47, 86, 0.14);
    border-color: color-mix(in srgb, var(--primary-strong) 40%, var(--line));
}

.site-about-member-card:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary) 58%, #ffffff);
    outline-offset: 2px;
}

.site-about-member-figure {
    margin: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(120px, 259px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.site-about-member-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 259px;
    aspect-ratio: 1 / 1;
    height: auto;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, color-mix(in srgb, var(--surface-3) 86%, #ffffff), color-mix(in srgb, var(--surface-2) 86%, #ffffff));
}

.site-about-member-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    pointer-events: none;
}

.site-about-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(125deg, #d4deec, #ebf2fb);
}

.site-about-member-photo.is-loading {
    opacity: 0.76;
    animation: site-about-photo-pulse 1.35s ease-in-out infinite;
}

.site-about-member-caption {
    min-width: 0;
}

.site-about-member-name {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.28;
    color: var(--text-main);
    font-weight: 800;
}

.site-about-member-role {
    margin: 6px 0 0;
    font-size: 0.8rem;
    line-height: 1.34;
    color: var(--text-soft);
    font-weight: 600;
}

@keyframes site-about-photo-pulse {
    0% {
        opacity: 0.62;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.62;
    }
}

.site-about-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 1.38rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .16s ease;
}

.site-about-close:hover,
.site-about-close:focus-visible {
    color: var(--text-main);
    border-color: var(--line-strong);
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.site-logout-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(13, 47, 86, 0.5);
    padding: 16px;
}

.site-logout-modal.active {
    display: flex;
}

.site-logout-card {
    width: min(420px, 100%);
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-1);
    color: var(--text-main);
    box-shadow: var(--shadow-2);
    padding: 20px;
}

.site-logout-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.site-logout-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.site-logout-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.site-logout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.site-logout-btn-cancel,
.site-logout-btn-confirm {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.site-logout-btn-cancel {
    background: var(--surface-2);
    color: var(--text-main);
}

.site-logout-btn-cancel:hover {
    background: var(--hover-bg);
}

.site-logout-btn-confirm {
    border-color: color-mix(in srgb, var(--primary-strong) 60%, var(--line));
    color: #062649;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.site-logout-btn-confirm:hover {
    filter: saturate(1.08);
}

.site-footer {
    margin-top: auto;
    padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-1) 92%, transparent);
}

.site-footer p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.58;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--primary-strong);
}

@media (max-width: 1180px) {
    .site-nav-link,
    .site-access-btn,
    .site-lang-select,
    .site-theme-toggle {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.88rem;
    }

    .site-theme-toggle {
        padding: 0;
    }
}

@media (max-width: 1000px) {
    .site-nav-links .site-nav-link.menu-optional,
    .site-nav-links .site-access-dropdown.menu-optional,
    .site-nav-links .site-lang-switch.menu-optional,
    .site-nav-links .site-theme-toggle.menu-optional {
        display: none;
    }

    .site-sticky-banner {
        display: none !important;
    }

    .site-banner-welcome-overlay {
        display: none !important;
    }

    .site-banner-menu-overlay {
        display: none !important;
    }

    body.banner-overlay-welcome-active .sala-welcome {
        display: block !important;
    }

    body.site-menu-page.banner-overlay-menu-active .hero {
        display: block !important;
    }
}

@media (max-width: 900px) {
    .brand-strip {
        gap: 8px;
    }

    .brand-strip-item img {
        height: 30px;
        max-width: 118px;
    }

    .brand-strip-item.main img {
        height: 34px;
        max-width: 132px;
    }

    .site-about-content {
        margin-top: 4vh;
    }

    .site-about-member-figure {
        grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
    }

    .site-about-member-photo-wrap {
        max-width: 220px;
    }
}

@media (max-width: 760px) {
    .site-nav-links {
        gap: 6px;
    }

    .site-about-content {
        width: min(100%, calc(100% - 12px));
        margin: 2vh auto;
        max-height: min(92vh, 960px);
        padding: 20px 16px;
    }

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

@media (max-width: 600px) {
    .site-navbar {
        padding: 10px 10px;
        gap: 8px;
    }

    .site-hamburger {
        width: 36px;
        height: 36px;
    }

    .site-nav-link,
    .site-access-btn,
    .site-lang-select,
    .site-theme-toggle {
        min-height: 36px;
        padding: 0 9px;
        font-size: 0.83rem;
        border-radius: 10px;
    }

    .site-theme-toggle {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    .site-nav-links {
        margin-left: 0;
    }

    .site-footer {
        padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer p {
        font-size: 0.69rem;
    }

    .site-about-content {
        width: min(100%, calc(100% - 8px));
        margin: 0 auto;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .site-about-brand img {
        height: 52px;
    }

    .site-about-member-figure {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .site-about-member-photo-wrap {
        width: min(100%, 240px);
        max-width: 240px;
        border-radius: 11px;
        margin: 0 auto;
    }

    .site-about-member-name {
        font-size: 0.9rem;
    }

    .site-about-member-role {
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .site-navbar-left {
        width: 100%;
    }

    .site-nav-links {
        width: 100%;
        justify-content: flex-end;
    }

    .brand-strip-item img {
        height: 25px;
        max-width: 92px;
    }

    .brand-strip-item.main img {
        height: 30px;
        max-width: 110px;
    }

    .site-about-title {
        padding-right: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
