:root {
    --pea-blue: #00438a;
    --pea-red: #a10a0f;
    --pea-dark: #4b4b4b;
    --pea-sidebar: #e7e7e5;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 0;
    background: #fff;
}

.site-shell {
    width: min(927px, 100%);
    margin: 0 auto;
    padding-right: 5px;
    background: #fff url('../../main/images/pix_1.jpg') right top repeat-y;
    box-shadow: 0 0 14px rgba(0, 0, 0, .28);
}

.desktop-header,
.desktop-menu,
.page-layout,
.site-footer {
    width: 922px;
    max-width: 100%;
}

.desktop-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 53px;
}

.desktop-header__logo {
    padding-top: 7px;
    padding-bottom: 3px;
}

.desktop-header__links {
    padding: 0 4px 9px 16px;
    white-space: nowrap;
    text-align: right;
}

.desktop-menu {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 4px;
    border-top: 6px solid var(--pea-red);
    background: var(--pea-dark);
}

.desktop-menu > div {
    display: inline-block;
    float: none;
    padding: 5px 1px 5px 12px;
    background: url('../../main/images/li_transparent_white.gif') left 3px no-repeat;
    white-space: nowrap;
}

.desktop-menu > .menu1-level1-act {
    background-image: url('../../main/images/li_transparent_yellow.gif');
    background-position: left 3px;
    background-repeat: no-repeat;
}

.desktop-menu a,
.desktop-menu a:link,
.desktop-menu a:visited {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.desktop-menu .menu1-level1-act a,
.desktop-menu a:hover,
.desktop-menu a:focus {
    color: #ff9800;
}

.mobile-header,
.mobile-menu:not(.mm-spn),
.sidebar-toggle {
    display: none;
}

.page-layout {
    display: grid;
    grid-template-columns: 247px minmax(0, 675px);
    align-items: stretch;
}

.sidebar {
    min-width: 0;
    background: var(--pea-sidebar);
}

.sidebar-section__content {
    min-width: 0;
}

.sidebar-separator {
    height: 39px;
    background: url('../../main/images/back_form_2.jpg') center / cover no-repeat;
}

.main-column {
    position: relative;
    min-width: 0;
    overflow-x: hidden;
    background: #fff url('../../main/images/pix_1.jpg') right top repeat-y;
}

.main-column::after {
    content: "";
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: #c0c0c0;
    pointer-events: none;
}

.main-column > table {
    width: 100% !important;
    max-width: 100%;
}

.content-header,
#headerimage {
    width: 100%;
}

#headerimage > img {
    display: block;
    width: 100%;
    max-width: 675px;
    height: 170px;
    object-fit: cover;
    margin-bottom: 4px;
}

#headerimage .ya-site-form {
    width: 100%;
    max-width: 675px;
}

#content,
.main-content {
    min-width: 0;
    padding: 10px 14px 20px 3px;
}

#content img,
.main-content img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    width: 100%;
}

#bottom-banners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 24px;
    min-height: 52px;
    padding: 12px 18px;
    background: #8e9ca9;
}

#bottom-banners a,
#bottom-banners img {
    display: block;
    margin: 0 !important;
}

#copy {
    min-height: 36px;
    padding: 10px 12px;
    text-align: center;
}

.legacy-counters {
    text-align: center;
}

.ya-site-form form {
    display: flex;
    width: 100%;
    padding: 4px 6px;
    background: #666;
}

.ya-site-form input[type="search"] {
    min-width: 0;
    flex: 1;
}

.ya-site-form input[type="submit"] {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        font-size: 15px;
    }

    .site-shell {
        width: 100%;
        padding-right: 0;
        background: #fff;
        box-shadow: none;
    }

    .desktop-header,
    .desktop-menu,
    .page-layout,
    .site-footer {
        width: 100%;
    }

    .desktop-header,
    .desktop-menu {
        display: none !important;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 62px;
        padding: 8px 12px;
        border-bottom: 5px solid var(--pea-red);
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    }

    .mobile-header__logo img {
        display: block;
        width: min(230px, 58vw);
        height: auto;
    }

    .mobile-header__actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-phone,
    .mobile-menu-button {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 4px;
        background: var(--pea-blue);
        color: #fff;
        text-decoration: none;
    }

    .mobile-phone svg {
        width: 23px;
        height: 23px;
        fill: currentColor;
    }

    .mobile-phone,
    .mobile-phone:link,
    .mobile-phone:visited {
        color: #fff !important;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: block;
        width: 23px;
        height: 3px;
        border-radius: 2px;
        background: #fff;
    }

    .mobile-menu-button {
        color: #fff !important;
    }

    .hamburger {
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .hamburger::before { top: -7px; }
    .hamburger::after { top: 7px; }

    .page-layout {
        display: flex;
        flex-direction: column;
    }

    .main-column {
        order: 1;
        background-image: none;
    }

    .main-column::after {
        display: none;
    }

    .main-column > table,
    .main-column > table > tbody,
    .main-column > table > tbody > tr {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    .main-column > table > tbody > tr > td {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    .main-column > table > tbody > tr > td:empty {
        display: none;
    }

    .sidebar {
        order: 2;
        padding: 12px;
        background: #f2f2f1;
    }

    #headerimage > img {
        height: clamp(105px, 28vw, 170px);
    }

    #content,
    .main-content {
        padding: 10px 12px 22px;
        font-size: 15px;
        line-height: 1.45;
    }

    #content h1,
    #content h2,
    #content h3,
    .main-content h1,
    .main-content h2,
    .main-content h3 {
        line-height: 1.15;
    }

    #content h1,
    .main-content h1 { font-size: 1.7rem; }
    #content h2,
    .main-content h2 { font-size: 1.4rem; }
    #content h3,
    .main-content h3 { font-size: 1.2rem; }

    #content table,
    .main-content table {
        display: block;
        width: 100% !important;
        max-width: 100%;
    }

    #content table > tbody,
    #content table > tbody > tr,
    #content table > tbody > tr > td {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    #content table > tbody > tr > td:empty {
        display: none;
    }

    #content [style*="float: right"],
    #content [style*="float:right"],
    .main-content [style*="float: right"],
    .main-content [style*="float:right"] {
        float: none !important;
        margin: 10px auto !important;
    }

    #content img[align="right"],
    #content img[align="left"] {
        display: block;
        float: none;
        margin: 10px auto !important;
    }

    #sc.sc_menu {
        width: 100% !important;
        max-width: 100% !important;
    }

    .goog-te-combo {
        width: 170px !important;
        max-width: 170px !important;
    }

    .sidebar-section {
        margin-bottom: 8px;
        overflow: hidden;
        border: 1px solid #c9c9c7;
        border-radius: 4px;
        background: #fff;
    }

    .sidebar-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 13px 15px;
        border: 0;
        background: var(--pea-blue);
        color: #fff;
        font: bold 16px Arial, sans-serif;
        text-align: left;
        cursor: pointer;
    }

    .sidebar-toggle::after {
        content: "";
        width: 0;
        height: 0;
        border-top: 7px solid #fff;
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        transition: transform .2s ease;
    }

    .sidebar-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    .sidebar-section__content {
        display: none;
        padding: 12px;
    }

    .sidebar-section.is-open > .sidebar-section__content {
        display: block;
    }

    .sidebar-section__content > table,
    #contacts > table,
    #content_left > table,
    #content_left_1 > table {
        width: 100% !important;
        max-width: 100%;
    }

    #contacts > div {
        padding: 0 !important;
    }

    #contacts img,
    #content_left img,
    #content_left_1 img {
        max-width: 100%;
        height: auto;
    }

    .sidebar-separator {
        display: none;
    }

    #bottom-banners {
        gap: 16px 22px;
        padding: 22px 16px;
    }

    #copy {
        padding: 14px 16px 42px;
    }

    .legacy-counters {
        display: none;
    }

    .mm-ocd__content {
        background: #fff;
    }

    .mobile-menu--fallback-open {
        position: fixed;
        top: 62px;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 999;
        display: block !important;
        width: min(82vw, 340px);
        overflow-y: auto;
        padding: 18px;
        background: #fff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
    }

    .mobile-menu--fallback-open ul {
        margin: 0;
        padding-left: 20px;
    }

    .mobile-menu--fallback-open li {
        padding: 7px 0;
    }
}

@media (max-width: 390px) {
    .mobile-header {
        padding-inline: 8px;
    }

    .mobile-header__actions {
        gap: 5px;
    }

    .mobile-phone,
    .mobile-menu-button {
        width: 38px;
        height: 38px;
    }
}
