/* One header stylesheet for both public-page layouts. */
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Montserrat-Medium.woff2') format('woff2'), url('../fonts/Montserrat-Medium.woff') format('woff');
}
.site-header {
    position: relative;
    z-index: 1000;
    flex: 0 0 auto;
    background: #444;
    color: #fff;
    font: 500 18px/1.4 Montserrat, Arial, sans-serif;
    letter-spacing: normal;
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header button, .site-header input, .site-header summary { font: inherit; letter-spacing: inherit; }
.site-header a { color: inherit; text-decoration: none; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-header summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.site-header__inner { display: flex; align-items: center; gap: 20px; max-width: 1216px; min-height: 70px; margin: 0 auto; padding: 0 18px; }
.site-header__logo { display: flex; align-items: center; flex: 0 0 142px; margin-right: auto; }
.site-header__logo img { display: block; width: 142px; height: 28px; }
.site-header__languages { position: relative; flex: 0 0 auto; font-size: 16px; }
.site-header__languages summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; list-style: none; color: #fff; cursor: pointer; }
.site-header__languages summary::-webkit-details-marker { display: none; }
.site-header__languages img { display: block; width: 20px; height: 15px; object-fit: contain; }
.site-header__language-list { position: absolute; top: 100%; left: 0; z-index: 2; min-width: 100px; max-height: min(70vh, 440px); overflow-y: auto; padding: 4px 0; background: #fff; color: #222; box-shadow: 0 4px 16px #0003; }
.site-header__language-list a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; color: #222; }
.site-header__language-list a:hover { background: #eee; }
.site-header__search-row { display: flex; align-items: center; gap: 10px; flex: 0 1 244px; min-width: 160px; }
.site-header__search { position: relative; flex: 1; min-width: 0; margin: 0; }
.site-header__search input { display: block; width: 100%; min-height: 44px; margin: 0; border: 0; border-radius: 27px; padding: 9px 16px 9px 44px; background: #fff; color: #222; font-size: 16px; line-height: 1.5; }
.site-header__search input::placeholder { color: #666; opacity: 1; }
.site-header__search input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-header__search button { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #222; cursor: pointer; }
.site-header__search button img { width: 16px; height: 16px; }
.site-header__nav { flex: 0 1 auto; min-width: 0; }
.site-header__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 30px; margin: 0; padding: 0; list-style: none; }
.site-header__links li { margin: 0; padding: 0; }
.site-header__links a { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; color: #fff; font: 500 18px/1.4 Montserrat, Arial, sans-serif; letter-spacing: normal; white-space: nowrap; }
.site-header__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-header svg { display: block; flex: 0 0 auto; }
.site-header__toggle, .site-header__back, .site-header__vk-mobile { display: none; }
@media (max-width: 1100px) {
    .site-header__inner { flex-wrap: wrap; gap: 8px; min-height: 70px; padding: 12px 18px; }
    .site-header__logo { flex-basis: 93px; }
    .site-header__logo img { width: 93px; height: auto; }
    .site-header__languages { font-size: 16px; }
    .site-header__vk-mobile { display: flex; align-items: center; justify-content: center; width: 36px; min-height: 44px; color: #fff; }
    .site-header__search-row { order: 5; flex: 1 0 100%; width: 100%; }
    .site-header__back { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
    .site-header__toggle { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
    .site-header__toggle span { display: block; width: 24px; height: 2px; background: currentColor; }
    .site-header__nav { order: 6; width: 100%; }
    .site-header__links { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 16px; padding: 20px 0; }
    .site-header__links a { justify-content: center; font-size: 20px; white-space: normal; text-align: center; }
    .site-header[data-ready] .site-header__nav { display: none; }
    .site-header[data-menu-open] .site-header__nav { position: fixed; inset: 0; display: flex; justify-content: center; overflow-y: auto; height: 100vh; height: 100dvh; padding: 70px 20px 160px; background: #111; }
    .site-header[data-menu-open] .site-header__toggle { position: fixed; top: 12px; right: 18px; z-index: 1; }
    .site-header[data-menu-open] .site-header__toggle span { position: absolute; }
    .site-header[data-menu-open] .site-header__toggle span:nth-child(1) { transform: rotate(45deg); }
    .site-header[data-menu-open] .site-header__toggle span:nth-child(2) { display: none; }
    .site-header[data-menu-open] .site-header__toggle span:nth-child(3) { transform: rotate(-45deg); }
    html.site-header-open, html.site-header-open body { overflow: hidden; }
}
