/* Доступность и общие правки вёрстки. Подключается на всех страницах из components/head_meta.php */

/* ── Заголовок страницы: <h1> выглядит так же, как прежний <p> ── */
:where(h1.page-h1) {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ── Видимый фокус при навигации с клавиатуры ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #FFB000 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(27, 42, 55, 0.55) !important;
    border-radius: 4px;
}

/* ── Страница 404 ── */
.not-found-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 16px 96px;
    box-sizing: border-box;
}
.not-found-page-code {
    font-size: 120px;
    line-height: 1;
    font-weight: 700;
    color: #0A6FA8;
    margin: 0 0 16px;
}
.not-found-page-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    color: #213444;
    margin: 0 0 12px;
}
.not-found-page-text {
    font-size: 18px;
    line-height: 1.4;
    color: #45525E;
    margin: 0 0 32px;
    max-width: 520px;
}
.not-found-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.not-found-page-links .btn {
    text-decoration: none;
}
@media (max-width: 576px) {
    .not-found-page { padding: 128px 16px 64px; }
    .not-found-page-code { font-size: 80px; }
    .not-found-page-title { font-size: 24px; }
    .not-found-page-text { font-size: 16px; }
}

/* ── Мобильное меню: на весь экран, фон страницы не прокручивается и не просвечивает ── */
html.mobile-menu-open,
html.mobile-menu-open body {
    overflow: hidden;
}
html.mobile-menu-open .home-page .home-page-header-menu-container,
html.mobile-menu-open header.dark-lang-mode {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9000;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
html.mobile-menu-open .home-page .home-page-header-menu-container {
    background: rgba(10, 34, 64, 0.94);
    padding-top: 16px;
}
html.mobile-menu-open header.dark-lang-mode {
    background: #F5F6F8;
}
html.mobile-menu-open .header-menu-container #main-mobile-menu {
    padding-bottom: 24px;
}
