/*
Theme Name: techtheme
Author: Kolesnikov Nikita
Version: 1.0.0.1
*/

/* ======================================================================
   БАЗОВЫЕ СТИЛИ
   ====================================================================== */
html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Arial', sans-serif !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex: 1;
}

h1 {
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* ======================================================================
   ВЕРХНЯЯ ШАПКА (TOP HEADER)
   Содержит: кнопку "Версия для слабовидящих" справа
   Высота: 50px, фон: var(--primary-color)
   ====================================================================== */

/* Контейнер верхней полосы — фиксированная высота и flex-выравнивание */
.top__header {
    width: 100%;
    background-color: var(--primary-color);
    height: 50px;                /* Фиксируем высоту верхней полосы */
    display: flex;               /* Включаем flex для выравнивания */
    align-items: center;         /* Вертикальное центрирование */
}

/* .container внутри top__header наследует полную высоту */
.top__header .container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Flex-контейнер: слева соцсети, справа кнопка */
.header__flex {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;                  /* Без лишних отступов, чтобы ничего не вылазило */
}

/* Блок с кнопкой BVI — прижат вправо, по высоте как полоска */
.image__header {
    height: 100%;
    margin-left: auto;           /* Прижимает блок к правому краю */
    display: flex;
    align-items: center;
}

/* Ссылки внутри блока — по высоте строки шапки */
.image__header a {
    display: inline-flex;
    align-items: center;
    height: 100%;
}
/* ======================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА
   ====================================================================== */

.lang {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.lang__link {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.lang__img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Текущий язык в виде круглой иконки рядом с BVI */
.lang__link_select .lang__img_select {
    width: 32px;
    height: 32px;
}

/* Ховер по активной иконке */
.lang__link_select:hover .lang__img_select {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* Выпадающий список языков */
.lang__list {
    position: absolute;
    top: 110%;           /* чуть ниже основной иконки */
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 6px 8px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    z-index: 1001;
    white-space: nowrap;
}

/* Плитка флажков в дропдауне */
.lang__list .lang__link_sub {
    margin: 3px;
}

.lang__list .lang__img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Показываем список при наведении/фокусе */
.lang:hover .lang__list,
.lang:focus-within .lang__list {
    display: flex;
}

/* На мобильных делаем чуть крупнее и даём место */
@media (max-width: 767px) {
    .lang {
        margin-right: 8px;
    }

    .lang__img {
        width: 30px;
        height: 30px;
    }

    .lang__list {
        top: 120%;
    }
}
/* Ссылки соцсетей */
.link__item {
    text-decoration: none;
}

/* Иконки соцсетей */
.img__link {
    width: 50px;
    height: 50px;
}

/* ======================================================================
   КНОПКА ДЛЯ СЛАБОВИДЯЩИХ (BVI)
   Компактная, встроена в верхнюю полосу
   ====================================================================== */

/* Обёртка шорткода BVI — убираем сдвиг и отступы */
.bvi-shortcode {
    background: transparent !important;
    transform: none !important;  /* Раньше было translateY(-40%) */
    margin: 0 !important;        /* Без левого отступа */
}

/* Кнопка BVI — не выше полосы шапки, без вылетающих теней */
.bvi-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;                /* Меньше 50px высоты шапки */
    padding: 0 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.9) !important;
    color: #28476D !important;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;            /* Чтобы не создавалось ощущения "выступа" */
}

/* ======================================================================
   ПОИСК
   ====================================================================== */
.searchform div #s {
    width: 350px;
    height: 45px;
}

.searchform div #searchsubmit {
    height: 45px;
    border-radius: 0 30px 30px 0;
    border: 0;
}

/* ======================================================================
   СРЕДНЯЯ ШАПКА (MID HEADER)
   Логотип + название учреждения
   ====================================================================== */
.mid__header {
    height: auto;
    color: #4A4A4A;
}

.mid__header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Блок с логотипом и текстом */
.header__name {
    display: flex;
    align-items: center;
    justify-content: center;     /* Центруем логотип + текст */
    gap: 15px;                   /* Расстояние между логотипом и текстом */
    width: auto;
    text-align: left;
}

.contacts p {
    margin: 5px 0;
}

.header__info {
    flex: 1;
    font-weight: 700;
}

/* Контейнер логотипа */
.header-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Логотип */
.lototype {
    height: 400px;
    width: auto;
    margin-right: 5px;
}

/* Подзаголовок (тип учреждения) */
.subtitle {
    font-style: italic;
    font-size: 18px;
    margin: 20px 0 0;
}

/* Иконки рядом с текстом */
.icon img {
    margin-right: 5px;
    margin-top: -8px;
}

/* ======================================================================
   ОСНОВНОЕ МЕНЮ (BOTTOM HEADER)
   Липкое горизонтальное меню
   ====================================================================== */

/* Контейнер меню */
.bottom__header {
    height: 50px;                       /* Высота меню */
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;                      /* Выше контента */
    width: 100%;
    box-sizing: border-box;
}

/* Липкое меню только на десктопе */
@media (min-width: 1025px) {
    .bottom__header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000;
        width: 100%;
    }
}

/* Контейнер внутри меню */
.bottom__header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Обёртка навигации */
.header-menu {
    position: relative;
    width: 100%;
}

/* Горизонтальный список пунктов меню */
.header-menu ul {
    display: flex;
    list-style: none;
    justify-content: space-between;     /* Равномерное распределение пунктов */
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Отдельный пункт меню */
.header-menu .menu li {
    position: relative;
    z-index: 2;
}

/* Ссылка пункта меню */
.header-menu ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px !important;
    padding: 6px 12px !important;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1.1;
}

/* Общий стиль текста меню */
.menu {
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* Иконка-стрелка для подменю */
.submenu-toggle {
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ======================================================================
   ВЫПАДАЮЩЕЕ МЕНЮ (SUBMENU)
   ====================================================================== */

/* Контейнер подменю */
.header-menu ul li ul {
    position: absolute;
    display: none;                      /* Скрыто до наведения */
    padding: 4px 0;                     /* Компактные вертикальные отступы */
    min-width: 200px;
    width: auto;                        /* Ширина по самому длинному пункту */
    background-color: #fff !important;
    border: 1px solid var(--primary-color);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
}

/* Пункт внутри подменю */
.header-menu ul li ul li {
    margin: 0;
    width: 100%;
}

/* Ссылка в подменю */
.header-menu ul li ul li a {
    padding: 3px 16px;                  /* Уменьшенные отступы */
    white-space: nowrap;
    font-size: 14px;
    color: #4A4A4A !important;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

/* Общие стили ссылок подменю */
.sub-menu li a {
    color: #4A4A4A !important;
    font-weight: 700;
    font-size: 14px;
}

/* ======================================================================
   КАРТА, МОДАЛКИ
   ====================================================================== */
.map_container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.modal-header {
    background-color: var(--primary-color);
}

.modal-title {
    font-size: 35px;
    font-weight: 700;
    color: #fff;
}

.button_modal {
    color: black;
    display: flex;
    justify-content: space-between;
}

.button_modal .btn-outline-success {
    margin: 35px;
    color: #1C1C1C;
    background-color: white;
    border-color: white;
}

.button_modal .btn-outline-success:hover {
    background-color: rgb(216, 216, 216);
    border-color: white;
    color: black;
}

.ymaps-map {
    -ms-touch-action: auto !important;
    touch-action: auto !important;
}

.btn-close {
    font-size: 25px;
    background: inherit;
    color: #fff;
}

/* ======================================================================
   БЛОК ДИРЕКТОРА И СЛАЙДЕР
   ====================================================================== */
.director__slider {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.director {
    margin: 20px;
    width: 550px;
    min-height: 600px;
    background-color: var(--primary-color);
    border-radius: 58px 0 0 0;
    color: white;
}

.slider {
    margin: 20px 20px 50px 20px;
    width: 650px;
    min-height: 600px;
}

.director__title {
    margin: 40px 0 0 20px;
    width: 350px;
    font-size: 36px;
    line-height: 1.5;
    font-weight: 700;
}

.director__describe {
    margin: -5px 20px 15px 20px;
    font-size: 20px;
    font-style: italic;
}

.director__subdescribe {
    font-weight: 700;
    margin: 15px 30px;
    font-size: 14px;
    text-align: right;
}

.title__image {
    display: flex;
    justify-content: start;
}

.title__image .image__container img {
    border: 10px solid var(--primary-color);
    border-radius: 50%;
}

.title__image .image__container {
    position: relative;
    margin: -45px 10px 0;
}

.title__link {
    margin: 0 auto;
    text-align: center;
}

.section__title {
    font-size: 48px;
    color: #4A4A4A;
    text-align: center;
}

.section__title.white-section__title {
    color: white;
}

.pilot__project {
    margin: 20px 0;
}

.pilot__project__description {
    font-size: 18px;
    color: #4A4A4A;
}

marquee {
    color: #4A4A4A;
    font-size: 24px;
    font-weight: bold;
}

/* ======================================================================
   КАРУСЕЛИ И ПОЛЕЗНЫЕ ССЫЛКИ
   ====================================================================== */
.partners-carousel .item,
.useful-links-grid .item {
    text-align: center;
    padding: 15px;
}

.partners-carousel img,
.useful-links-grid img {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    transition: transform .1s;
}

.partners-carousel a:hover img,
.useful-links-grid a:hover img {
    transform: scale(1.05);
}

.partner__map {
    color: white;
}

/* ======================================================================
   ПРОЕКТЫ
   ====================================================================== */
.projects__container--mobile {
    display: block !important;
    margin: 20px 0;
}

.projects__container--desktop {
    display: none !important;
    margin: 20px 0;
}

.projects__container {
    display: flex;
    justify-content: space-between;
    margin: 20px -5px;
}

.projects__card {
    background-color: var(--primary-color);
    border-radius: 20px;
    width: 205px;
    height: 125px;
    overflow: hidden;
    cursor: pointer;
    transition: height 0.3s ease;
}

.projects__card:hover {
    color: white;
    height: 175px;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(5, 205px);
    grid-template-rows: repeat(2, 175px);
    gap: 20px 65px;
}

.owl-item {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.project__link {
    color: white;
    display: block;
    text-decoration: none;
}

.project__link:hover {
    color: white;
}

.our__project {
    margin-top: 52px;
}

.project__thumbnail {
    width: auto;
    margin: 0;
    height: 125px;
    overflow: hidden;
}

.project__thumbnail img {
    width: 100%;
    height: 120px;
    padding: 5px;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.project__thumbnail--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project__title {
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* ======================================================================
   НОВОСТИ
   ====================================================================== */
.our__news {
    padding: 10px 0 60px;
    background-color: var(--primary-color);
    justify-content: space-between;
}

.news-container {
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
    border-radius: 20px;
    background-color: #fff;
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-news {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.featured-news:hover,
.compact-news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    display: flex;
    height: 350px;
    flex: 0 0 auto;
}

.news-image img {
    margin: 0 auto;
    padding: 20px;
    border-radius: 30px;
    height: 350px;
    object-fit: contain;
}

.news-content {
    padding: 30px;
    flex: 1;
    height: 325px;
}

.news-date {
    color: #4A4A4A;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-heading {
    font-size: 24px;
    font-weight: 700;
    color: #28476D;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}

.news-more-button {
    width: 213px;
    height: 42px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px 10px 0 10px;
    display: block;
    background-color: #28476D;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center !important;
    float: right;
}

.news-more-button:hover {
    background-color: #0056b3;
}

.more-news-list {
    grid-column: 2;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 25px;
    height: 100%;
}

.compact-news-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.compact-news-thumb img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.compact-news-content {
    flex: 1;
}

.compact-news-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.compact-news-title {
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 5px;
    color: #28476D;
}

.compact-news-excerpt {
    font-size: 13px;
    color: #333;
}

.compact-news-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.compact-news-link:hover .compact-news-title {
    text-decoration: underline;
}

.posts-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.posts-pagination ul {
    list-style: none;
    display: flex;
    gap: 3px;
    justify-content: center;
    padding: 10px 0;
}

.posts-pagination a,
.posts-pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #4A4A4A;
    font-weight: 700;
}

.posts-pagination .current {
    background: #28476D;
    color: white;
    border-color: #28476D;
}

.posts-pagination .page-numbers.dots {
    display: none !important;
}

.all-news-link {
    display: block;
    padding: 10px;
    text-align: center;
    width: 235px;
    color: #fff;
    border-radius: 0 0 10px 10px;
    background-color: #28476D;
    text-decoration: none;
    font-size: 18px;
}

.all-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.all-posts-item {
    display: flex;
    border: 1px solid #ccc;
    padding: 15px;
    gap: 20px;
    background-color: #f9f9f9;
}

.all-posts-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.all-posts-title {
    margin: 0;
    font-size: 18px;
}

.all-posts-title a {
    color: #333;
    text-decoration: none;
}

.all-posts-excerpt {
    font-size: 14px;
    color: #555;
}

.all-posts-meta {
    font-size: 12px;
    color: #777;
}

.posts-link {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

/* ======================================================================
   ТАБЛИЦЫ
   ====================================================================== */
table, td, th, tr {
    border: 1px solid black !important;
    padding: 5px;
}

/* Бургер-меню (мобильная навигация, пока скрыто) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 999;
}

.burger span {
    display: block;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

table {
    text-wrap: wrap;
    height: auto !important;
    font-size: 12px;
}

table, td, th {
    max-width: 100% !important;
    max-height: 100% !important;
}

td {
    height: auto !important;
    width: auto !important;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

table {
    border-collapse: collapse;
    font-size: 12px;
    text-wrap: wrap;
}

/* ======================================================================
   ФУТЕР
   ====================================================================== */
.footer {
    background-color: var(--primary-color);
    padding: 0;
}

.footer__describe {
    padding: 5px 0;
    margin: 0;
    font-size: 12px;
    color: white;
    text-align: center;
}

.footer__list {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.footer__list .footer__item {
    margin: 5px;
}

.footer__list {
    padding: 0;
}

.footer__link {
    text-decoration: none;
    color: white;
}

.footer__link img {
    width: 20px;
    height: 20px;
}

.header-search-mobile,
.search-toggle {
    display: none;
}

.title__page {
    text-align: center;
}

.owl-nav button span {
    font-size: 50px;
    color: var(--primary-color);
    cursor: pointer;
}

.owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 40%;
    width: 100%;
    transform: translateY(-50%);
}

.owl-nav button {
    background: none;
    border: none;
}

/* ======================================================================
   ECP ПОДСКАЗКИ
   ====================================================================== */
span.ECP {
    display: none;
    position: absolute;
    top: 20px;
    background: #fff;
    border: 1px solid black;
    width: 400px;
    z-index: 2;
    padding: 2px;
}

img.ecp_image:hover + span {
    display: block;
}

img.ecp_image {
    margin-right: 5px;
    vertical-align: middle;
}

/* ======================================================================
   БОКОВОЕ МЕНЮ
   ====================================================================== */
.sidebar-menu-container {
    float: right;
    width: 300px;
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    margin-left: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

.sidebar-menu-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 4px;
}

.sidebar-menu-container a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 14px;
}

.sidebar-menu-container a:hover {
    background-color: #f0f0f0;
}

.director,
.slider {
    flex: 1 0 auto;
    margin: 0;
    padding: 0;
}

thead {
    background-color: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #DDE6F1;
}

table, td, th, tr {
    border: 2px solid #28476D !important;
}

/* ======================================================================
   ФОРМЫ
   ====================================================================== */
.wpcf7-submit {
    background-color: #28476D;
    color: white;
    font-size: 20px;
    width: 213px;
    height: 42px;
    border: none;
    border-radius: 0 0 10px 10px;
}

.wpcf7 form p label {
    color: #4A4A4A;
    font-weight: 700;
}

.wpcf7 form p label .wpcf7-form-control,
.captcha-image {
    border: 1px solid var(--primary-color);
}

/* ======================================================================
   СТРАНИЦЫ, BREADCRUMB
   ====================================================================== */
.title__page {
    background-color: var(--primary-color);
    color: white;
    margin: 0 !important;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    line-height: 1.3;
}

.page__main {
    border: 1px solid var(--primary-color);
    padding: 10px 40px;
    margin: 0 0 10px;
}

.breadcrumb {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

.breadcrumb-item.active {
    color: #28476D;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white;
}

.breadcrumb-nav {
    margin-top: 20px;
}

/* ======================================================================
   ПЕРЕМЕННЫЕ ТЕМЫ
   ====================================================================== */
:root {
    --primary-color: #a7a9aa; /* Цвет по умолчанию */
}

a,
.button,
.navbar {
    color: var(--primary-color);
}

.button {
    background-color: var(--primary-color);
}

/* ======================================================================
   КАТЕГОРИИ
   ====================================================================== */
.all-posts-item {
    min-width: 400px;
}

.category-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
}

.category-header h2 {
    font-size: 32px;
    color: #28476D;
    margin-bottom: 10px;
}

.category-description {
    font-size: 16px;
    color: #555;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    display: flex;
    border: 1px solid #ccc;
    padding: 15px;
    gap: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 2px 10px rgba(40, 71, 109, 0.3);
}

.post-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #28476D;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #1a3550;
}

.post-excerpt {
    font-size: 14px;
    color: #555;
}

.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    margin: 0 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #28476D;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #28476D;
    color: #fff;
    cursor: default;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
}

/* ======================================================================
   ФИНАЛЬНАЯ ПРАВКА ПОДМЕНЮ
   Единый размер и отступы для всех ссылок подменю
   ====================================================================== */
.header-menu ul li ul li > a,
.header-menu .sub-menu li > a {
    font-size: 14px !important;
    padding: 2px 10px !important;
    line-height: 1.2 !important;
}

/* === КОНЕЦ style.css === */
/* Баннер-логотип во всю ширину */
.mid__header {
    margin: 0;
    padding: 0;
}

.mid__header .container {
    width: 100%;
    padding: 0;
}

.header-logo-container {
    width: 100%;
}

/* Само изображение */
.lototype {
    display: block;
    width: 100%;      /* растягиваем по ширине контейнера */
    height: auto;     /* пропорции сохраняются */
    margin: 0;
}
@media (max-width: 767px) {
    .mid__header .container,
    .header-logo-container {
        width: 100%;
        padding: 0;
    }

    .lototype {
        width: 100%;
        height: auto;
    }
}
.mid__header {
    height: auto;
    color: #4A4A4A;
    background-color: #e7e9e6;  /* фон вокруг баннера */
}

/* === ФИКС ШАПКИ (БАННЕР + МЕНЮ) === */

/* Центрируем содержимое средней шапки */
.mid__header {
    margin: 0;
    padding: 0;
    background-color: #e7e9e6;
}

.mid__header .container {
    max-width: 1200px;      /* если у тебя есть общий .container, можно ту же ширину */
    margin: 0 auto;
    padding: 0;
}

/* Логотип‑баннер */
.header-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.lototype {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Блок с текстом под баннером (если нужен) */
.title__block {
    margin: 0;
    padding: 5px 10px 0;
    text-align: center;
}

/* Меню вплотную к шапке, без зазора */
.bottom__header {
    margin-top: 0 !important;
}

/* Мобильная версия: всё в столбик, без «уезда» влево */
@media (max-width: 767px) {
    .mid__header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header__name {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-logo-container {
        width: 100%;
        justify-content: center;
    }

    .lototype {
        width: 100%;
        height: auto;
    }
}
/* Мобильное меню: всё в один поток, без перекрытия */
@media (max-width: 767px) {

    /* Главное меню — столбиком, без ограничений по высоте */
    .header-menu ul {
        flex-direction: column;
        max-height: none;
        overflow: visible;
    }

    /* Подменю под пунктом, а не поверх остальных */
    .header-menu ul li {
        position: static;          /* вместо relative */
    }

    .header-menu ul li ul {
        position: static;          /* было absolute */
        display: none;             /* скрыто, пока не открыт */
        box-shadow: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* класс / состояние, которым ты открываешь подменю через JS */
    .header-menu ul li.open > ul,
    .header-menu ul li:hover > ul {
        display: block;
    }
}
/* Смещаем мобильное меню чуть ниже верхнего края окна */
@media (max-width: 767px) {

    .bottom__header {
        margin-top: 8px;   /* отступ от самого верха экрана */
    }

    .header-menu ul {
        flex-direction: column;
        max-height: calc(100vh - 60px); /* чтобы хвост влезал в экран */
        overflow-y: auto;
    }
}
/* === ЧИСТЫЙ БАННЕР НА МОБИЛЕ, БЕЗ ПУСТОТ === */
@media (max-width: 767px) {

    .header-logo-container {
        width: 100%;
        height: auto;       /* никакой фиксированной высоты */
        padding: 0;
        margin: 0;
        overflow: hidden;   /* на всякий случай */
        background: #e7e9e6; /* фон тот же, без красного */
    }

    .header-logo-container > a {
        display: block;
        width: 100%;
        height: auto;
    }

    .header-logo-container .lototype {
        display: block;
        width: 100%;
        height: auto;       /* пусть сама задаёт высоту */
        object-fit: contain;
        margin: 0;
    }
}
.footer {
    display: none;
}
