@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: 'Open Sans', sans-serif !important;
    overflow-x: hidden;
}

.container.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}


.language-selector {
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: right;
}

.language-btn {
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 45px;
    text-align: center;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: #ffd700;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    background: #A00E07;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.language-dropdown a {
    display: flex;
    justify-content: center;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.language-option:hover {
    background: #f0f0f0;
}

.language-option:not(:last-child) {
    border-bottom: 1px solid #eee;
}


/* menu-burger */


.menu-dropdown {
    margin-top: 20px;
    display: none;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 600px;
}

.menu-dropdown.visible {
    display: flex;
}

.menu-toggle {
    font-size: 30px;
    color: #FFFFFF;
    display: none;
    padding-left: 15px;
    cursor: pointer;
    width: 20px;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.menu-category {
    padding: 10px;
    cursor: pointer;
}

.menu-category:hover {
    background-color: #e6f3ff;

}

.menu-category h6 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.menu-category p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-nav a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.menu-nav a .arrow {
    margin-left: 5px;
    font-weight: bold;
}

.menu-nav p {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}


.header-top {
    background-color: #891b1b;
    padding: 20px 0;
}


.header-block {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.header_nav {
    display: flex;
    align-items: center;
    gap: 20px;

}

.header_nav-link {
    gap: 5px;
    color: #FFFFFF;
    text-decoration: none;
    align-items: center;
    display: flex;
    text-wrap: nowrap;
    font-size: 16px;
}

.header_nav-link:hover {
    color: #fff;
    text-decoration: none;
}

.header_nav-link img {
    width: 24px;
    height: 24px;
}

.header_search {
    cursor: pointer;
    text-wrap: nowrap;

}

.header-menu-social-icon {
    display: flex;
    gap: 20px;
}


/* custom-select start*/


.custom-select-wrapper {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    margin-right: 0px;

}

.custom-select-trigger {
    max-width: 380px;
    width: 100%;
    background-color: transparent;
    color: #FFFFFF;
    padding: 12px 12px 12px 0px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    text-wrap: nowrap;
}

.custom-select-trigger:hover {
    color: #fff;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #A00E07;
    color: white;
    display: none;
    flex-direction: column;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

.custom-option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-option:hover {
    color: #ffcb00;
}


.custom-select-wrapper.active .custom-options {
    display: flex;
}

/* custom-select end*/


.search-panel {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #164c97;
    padding: 20px 20px 60px;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

}

.search-panel input {
    width: 60%;
    padding: 10px;
    border-radius: 10px;
    border: none;
}

.input_inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input_search {

    width: 90%;
}

.search-btn {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.search-close {
    font-size: 44px;
    color: white;
    cursor: pointer;

}

.header_middle {
    background-color: #A00E07;
}

.header_middle-inner {
    display: flex;
    justify-content: center;
    padding: 12.8px 0;
    align-items: center;
}

.header_middle-logo {
    display: flex;
    align-items: center;
}

.header_logo_img a {
    color: #fff;
    font-size: 26px;
    font-weight: bold;
}

.header_logo_img img {
    max-width: 500px;
    width: 100%;
    height: 40px;
}

.header_middle-logo h2 {
    margin-left: 15px;
    color: #FFFFFF;
    font-size: 18px;
}

.header_middle-reception {
    border: 1px solid #fff;
    padding: 10px 15px;
}


.header_reception-card-top {
    display: flex;
    gap: 6px;
    color: #fff;
    align-items: center;
}

.header_reception-card-top p {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.header_reception-card-top img {
    width: 15px;
    height: 15px;
}

.header_reception-card-bottom {
    display: flex;
    gap: 10px;
    color: #fff;
    align-items: center;
    font-size: 15px;
}

.header_reception-card-span {
    color: #A6C4EB;
}

.header_reception-card-line {
    height: 15px;
    width: 1px;
    background-color: #A6C4EB;
}

.header_middle-contacts {
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
    position: relative;
}

.header_middle-contacts:hover {

    color: #fff;
}


/* select contacts */
.mr-30 {
    margin-right: 30px;
}

.contacts-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #A00E07;
    text-align: left;
    width: 205px;
    cursor: pointer;

}

#contacts-toggle {
    cursor: pointer;
    display: flex;
}

.contacts-dropdown p {
    padding: 5px 0;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 12px;
}

.contacts-dropdown p:hover {
    color: #fff;
}

.header_middle-contacts.open .contacts-dropdown {
    display: flex;
}


.header_middle-contacts a {
    color: #fff;
}

.email_address {
    font-size: 13.8px;
}

.main_cards {
    display: flex;
    align-items: center;
    border: 1px solid #2B2B2B;
    text-align: center;
    flex-wrap: wrap;
    margin-top: 10px;
}


.main_cards a:hover .main_card,
.main_cards a.active .main_card {
    background-color: #A00E07;
}

.main_cards a:hover .main_card h6,
.main_cards a:hover .main_card p,
.main_cards a.active .main_card h6,
.main_cards a.active .main_card p {
    color: white;
}

.main_card h6,
.main_card p {
    color: #333;
}

.main_card {
    padding: 16px 12.8px;
}


.main_card h6 {
    font-size: 16px;
    text-wrap: nowrap;
    color: #000;
}


.main_card p {
    font-size: 14px;
    text-wrap: nowrap;
    padding: 0px 11px;
}


.main_nav {
    margin-top: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px 0 0;
    gap: 5px;
}

.main_nav a {
    font-size: 13px;
    align-items: center;
    color: #A00E07;
}

.main_nav-arrow {
    margin-left: 5px;
    color: #2B2B2B;
}

.main_nav p {
    color: #2B2B2B;
    font-size: 13px;
}


.content-block {
    margin: 20px 0 20px;
    display: flex;
}

.sidebar {
    max-width: 300px;
}

.menu-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #000;
    transition: background 0.2s;
}

.menu-item:hover, .menu-item.active {
    background-color: #A00E07;
    color: white;
    cursor: pointer;
    /*font-weight: bold;*/
}

.divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0;
}


/* Select-стиль для мобильных */
.select-sidebar-wrapper {
    display: none;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.select-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background: #f8f8f8;
}

.select-sidebar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.select-sidebar-option {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.select-sidebar-option:hover,
.select-sidebar-option.active {
    background-color: #A00E07;
    color: #fff;
    font-weight: bold;
}

.sidebar-hidden {
    display: none;
}


.content {
    flex-grow: 1;
    padding: 0 0 10px 20px;
}


.footer {
    background-color: #A00E07;
    color: white;
    padding: 20px;
}

.footer a {
    color: #fff;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #fff;
}

.footer-column p,
.footer-column li {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qr-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.qr-image {
    width: 90px;
    height: 90px;
}

.qr-text {
    font-size: 14px;
    color: #ffd700;
}

.mail-icon {
    margin: 10px 0 0 80px;
    width: 80px;
}

.footer-bottom {
    font-size: 14px;
    color: #ccc;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-btn {
    padding: 10px 20px;
    background-color: white;
    color: #144a87;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-btn:hover {
    background-color: #eee;
}


/* menu */
.select-wrapper {
    display: none;
    /*margin-top: 10px;*/
    position: relative;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-content: end;
}

.select-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 130px;
    color: #FFFFFF;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    margin-right: 15px;
    border-radius: 6px;
    user-select: none;
    transition: background 0.2s;
}

.select-toggle:hover {
    cursor: pointer;
}

.select-dropdown {
    position: absolute;
    top: 62px;
    width: 300px;
    height: auto;
    background-color: #FFFFFF;
    z-index: 2;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 16px;
    /* transform: translateX(300px);
    transition: transform 0.3s ease; */
    display: none;
    pointer-events: none;

}

.select-dropdown.visible {
    /* transform: translateX(0); */
    pointer-events: auto;
    display: block;
}

.select-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.select-option {
    width: calc(100% - 10px);
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
}

.select-option:hover {
    background-color: #e6f3ff;
}

.select-option h6 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #333;
}

.select-option p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.select-nav a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #0073e6;
    font-size: 14px;
}

.select-nav p {
    font-size: 13px;
    color: #555;
}

.nav-arrow {
    float: right;
}

/* user-block-card */

.user_block-card {
    display: flex;
    background-color: #f7f7f7;
    padding: 24px;
    border-radius: 12px;
    align-items: flex-start;
    gap: 24px;
    max-width: 100%;
    flex-wrap: wrap;
}

.user_block-img img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.user_block-info {
    flex: 1;
}

.user_block-role {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px;
}

.user_block-name {
    font-size: 22px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 0 0 12px;
}

.user_block-info p {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}

/* Контейнер */
.content {
    max-width: 100%;
    box-sizing: border-box;
}

.content h2 {
    margin-bottom: 10px;
}

/* Основной контент */

/* Изображения */
.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-content img {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Таблицы */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

/* Преформатированный текст */
.page-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
    background-color: #f8f8f8;
    padding: 10px;
}

figure.media {
    max-width: 800px !important; /* Максимальная ширина видео */
    height: 350px !important;
    margin: 20px auto; /* Центрирование по горизонтали и отступы сверху/снизу */
    width: 100%; /* Адаптивная ширина */
}

figure.media > div {
    position: relative;
    padding-bottom: 46.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

figure.media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Убираем фиксированные стили из CKEditor, если они попались */
.page-content * {
    max-width: 100% !important;
    box-sizing: border-box;
}



@media (max-width: 1070px) {
    .header_nav {
        gap: 10px;
    }

    .header_nav-link {
        font-size: 12.6px;
    }

    .custom-select-trigger {
        max-width: 300px;
        font-size: 12px;
    }

    .custom-select-trigger img {
        width: 16px;
    }
}

@media (max-width: 1010px) {
    .header_middle-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 20px;
    }

    .header_middle-logo h2 {
        text-align: left !important;
    }
}

@media (max-width: 865px) {
    .header {
        display: flex;
        justify-content: space-between;
    }

    .header_nav {
        display: none;
    }

    .custom-select-trigger {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }


    .language-selector {
        display: inline-block;
    }


}


@media (max-width: 768px) {
    .menu-item {
        /*padding: 12px 15px;*/
        cursor: pointer;
        color: #000;
        transition: background 0.2s;
    }

    .menu-item:hover, .menu-item.active {
        /*background-color: #e1ecff;*/
        color: #fff;
        cursor: pointer;
        font-weight: bold;
    }

    .main_cards {
        flex-direction: column;
        justify-content: start;
        text-align: left;
        align-items: start;
        display: none;
    }

    .main_nav {
        display: none;
    }

    .main_card {
        padding: 16px 12.8px;
        border-radius: 5px;
        width: 100%;
    }

    .main_card p {
        padding: 0;
    }

    .content-block {
        flex-direction: column;
    }

    .sidebar {
        max-width: 780px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
        display: none;
    }

    .select-wrapper {
        display: flex;
    }

    .select-sidebar-wrapper {
        display: block;
    }

    .content {
        padding: 10px;
    }

    .page-content h2 {
        font-size: 20px;
    }


}

@media (max-width: 630px) {
    .header_logo_img img {
        padding: 0 10px;
    }
}