:root {
    --port-gutter: clamp(16px, 2vw, 40px);
    --port-header-height: 78px;
}
.port-header {
    position: sticky;
    top: 0;
    z-index: 101;
    font: 400 var(--pc-font-size-base)/1.5 var(--pc-font-text);
    background-color: #0a1012;
    border-bottom: 1px solid #2b3030;
}
.port-header-inner { margin-inline: var(--port-gutter); }
.port-header-inner { min-height: var(--port-header-height); display: flex; gap: clamp(12px, 1.7vw, 27px); align-items: center; }
.port-header a { text-decoration: none; }
.port-header .port-brand { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.port-brand img { display: block; width: clamp(153px, 14vw, 204px); height: auto; }
#port-navigation { margin: 0 auto; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 25px); }
#port-navigation a, .port-languages { color: #dddedb; font-size: var(--pc-font-size-ui); }
#port-navigation a:hover { color: #f3d0a1; }
#port-navigation a[aria-current] {
    color: #f3d0a1;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .38em;
}
.port-icon { display: block; flex-shrink: 0; }
.port-languages { position: relative; }
.port-header summary { list-style: none; cursor: pointer; }
.port-header summary::-webkit-details-marker { display: none; }
.port-languages summary {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 42px; min-width: 76px; padding: 6px 12px;
    background: #121c20; border: 1px solid #576465; border-radius: 10px;
    font-weight: 700; letter-spacing: .04em; color: #f9f9f7;
}
.port-languages summary i { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.port-languages[open] summary, .port-languages summary:hover { border-color: #b8c7ca; background: #1c282c; }
.port-languages[open] summary i { transform: translateY(2px) rotate(225deg); }
.port-language-list, .port-menu-toggle[open] ~ nav { background: #11191b; border: 1px solid #414e50; border-radius: 12px; box-shadow: 0 12px 32px #0005; }
.port-language-list {
    position: absolute; inset-inline-end: 0; top: calc(100% + 9px);
    width: min(242px, calc(100vw - 80px)); padding: 6px;
    max-height: calc(100dvh - var(--port-header-height) - 16px); overflow-y: auto; overscroll-behavior: contain;
}
.port-language-list a {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    min-height: 42px; padding: 8px 12px; border-radius: 8px; color: #f3f6f6; font-size: var(--pc-font-size-base);
}
.port-language-list a span { font-size: var(--pc-font-size-caption); font-weight: 700; letter-spacing: .07em; color: #a7b6b9; }
.port-language-list a:hover, .port-language-list a:focus-visible { background: #243134; }
.port-language-list a[aria-current] { background: #34474a; }
.port-language-list a[aria-current] span { color: white; }
.port-menu-toggle { display: none; }

.port-header :focus-visible { outline: 2px solid #e9c891; outline-offset: 4px; }
.port-header .port-language-list a:focus-visible { outline-offset: -2px; }
:where(.site-interior main [id]) { scroll-margin-top: calc(var(--port-header-height) + 12px); }
@media (max-width: 1120px) {
    :root { --port-header-height: 66px; }
    .port-menu-toggle { display: block; order: 3; }
    .port-menu-toggle summary { padding: 9px 0 9px 9px; color: #f5efe4; }
    .port-languages { margin-inline-start: auto; }
    #port-navigation { display: none; position: absolute; inset-inline: var(--port-gutter); top: calc(100% - 1px); padding: 10px; }
    .port-menu-toggle[open] ~ #port-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
    #port-navigation a { padding: 10px 14px; }
}
@media (max-width: 500px) {
    :root { --port-header-height: 58px; }
    .port-header-inner { gap: 13px; }
}
