a,
a:hover {
    color: inherit
}

button {
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-black);
    outline: none;
    cursor: pointer
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    align-self: flex-start;
    flex-shrink: 0
}

body {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-black);
    font-style: normal
}

.header__top {
    background: var(--color-gray-background);
    padding: 16px 0 15px;
    line-height: 18px
}

.registration-number {
    font-size: 14px;
    line-height: 18px
}

a.portal-link {
    font-size: 14px;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-align: right;
    line-height: 18px;
    color: var(--color-black);
    display: block;
    text-underline-offset: 3px
}

ul.top-menu {
    padding: 0;
    margin: 0 20px 0 55px;
    list-style-type: none;
    display: flex;
    align-items: center;
    column-gap: 35px;
    white-space: nowrap
}

ul.top-menu a {
    font-size: 14px;
    color: var(--color-black);
    line-height: 18px;
    text-decoration-skip-ink: none;
    text-underline-offset: 3px;
    display: block
}

.header__bottom {
    padding: 5px 0;
    background: var(--color-blue)
}

nav a {
    font-weight: 300;
    font-size: 16px;
    color: var(--color-white) !important;
    line-height: 20px;
    text-decoration-skip-ink: none;
    text-underline-offset: 3px
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    column-gap: 14px;
    align-items: center;
    justify-content: space-between
}

nav li {
    display: flex;
    align-items: center;
    column-gap: 10px
}

span.menu-arrow {
    width: 12px;
    height: 24px;
    background: url(/images/menu-arrow.svg) center center / auto no-repeat;
    cursor: pointer
}

a.blind-version {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    column-gap: 11px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px
}

a.blind-version:before {
    content: '';
    width: 24px;
    height: 24px;
    background: url(/images/blind-icon.svg) center center / auto no-repeat;
    flex-shrink: 0
}

.header__middle {
    padding: 15px 0
}


.header__middle .logo {
    padding-top: 15px;
}

.logo {
    display: flex;
    align-items: center;
    column-gap: 15px
}

.logo__description {
    display: flex;
    flex-direction: column;
    row-gap: 10px
}

.logo_company-name {
    font-weight: 500;
    font-size: 21px;
    line-height: 19px;
    letter-spacing: -0.01em
}

.logo_company-slogan {
    font-size: 14px;
    line-height: 18px;
    color: #666
}

a.communication__phone {
    font-weight: 500;
    font-size: 21px;
    line-height: 26px;
    margin-right: 16px;
    letter-spacing: -0.01em
}

.communication {
    display: flex;
    align-items: center;
    height: 100%
}

.communication__messengers {
    display: flex;
    column-gap: 10px;
    margin-right: auto
}

.communication__messengers a {
    width: 45px;
    height: 45px
}

a.wa {
    background: url(/images/wa.svg) center center / 100% 100% no-repeat
}

a.viber {
    background: url(/images/viber.svg) center center / 100% 100% no-repeat
}

a.tg {
    background: url(/images/telegramm.svg) center center / 100% 100% no-repeat
}

button.communication__education-request2 {
    font-weight: 400;
    font-size: 14px;
    color: var(--color-blue);
    line-height: 17px;
    border: 1px solid var(--color-blue);
    border-radius: 71px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 5px
}

button.communication__education-request2:hover {
    background: var(--color-blue);
    color: var(--color-white)
}

button.communication__education-request {
    font-weight: 400;
    font-size: 14px;
    color: var(--color-blue);
    line-height: 17px;
    border: 1px solid var(--color-blue);
    border-radius: 71px;
    width: 238px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center
}

ul.top-menu a:hover {
    color: var(--color-blue);
    text-decoration: none
}

a.portal-link:hover {
    color: var(--color-blue)
}

a.communication__phone:hover {
    color: var(--color-blue);
    text-decoration: none
}

button.communication__education-request:hover {
    background: var(--color-blue);
    color: var(--color-white)
}

a.wa:hover {
    background: url(/images/wa--hover.svg) center center / 100% 100% no-repeat
}

a.viber:hover {
    background: url(/images/viber--hover.svg) center center / 100% 100% no-repeat
}

form.search {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative
}

input {
    font-weight: 300
}

input.search__text {
    width: 100%;
    border: 1px solid var(--color-line-whitebackground);
    border-radius: 50px;
    height: 58px;
    color: var(--color-black);
    font-size: 15px;
    line-height: 18px;
    padding-left: 20px;
    outline: none;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 50px
}

input.search__text:autofill {
    -webkit-background-clip: text;
    background-clip: text
}

input.search__text:-webkit-autofill {
    -webkit-background-clip: text;
    background-clip: text
}

input.search__text::placeholder {
    color: var(--color-gray-dop)
}

input.search__text:focus {
    border-color: var(--color-blue)
}

input.search__submit {
    font-size: 0;
    line-height: 0;
    border: none;
    outline: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: url(/images/search-icon.svg) center center / 100% 100% no-repeat
}

input.search__text:hover+.search__submit,
.search__submit:hover {
    background: url(/images/search-icon--hover.svg) center center / 100% 100% no-repeat
}

nav li:has(ul):not([data-id]):hover ul {
    display: flex !important;
    margin: 0;
    background: var(--color-gray-background);
    border-radius: 0 0 20px 20px;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    flex-direction: column;
    z-index: 1;
    row-gap: 9px;
    border-top: 21.5px solid transparent;
    background-clip: padding-box;
    align-items: stretch;
    min-width: 240px
}

nav li {
    position: relative
}

nav li ul a {
    font-weight: 300;
    font-size: 16px;
    color: var(--color-black) !important;
    line-height: 20px
}

header {
    position: relative;
    z-index: 12
}

ul li ul a:hover {
    font-weight: 400;
    color: var(--color-blue) !important;
    text-decoration: none
}

.header__mobile {
    display: none
}

.search-in-head {
    align-content: center;
}

.header__mobile-search {
    display: block;
}

.header__mobile__title {
    display: none;
}

.header__mobile-search__title {
    display: none;
}

.close-btn {
    display: none;
    text-align: end;
}

.header__mobile.showen {
    display: block;
    padding: 20px 0;
    position: fixed;
    top: 0;
    z-index: 10;
    background: var(--color-gray-background);
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    z-index: 3456;

}

.header__mobile ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    row-gap: 10px;
    margin-bottom: 20px;
    padding: 0
}

a.portal-link {
    float: right
}

.header__mobile li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px
}

.header__mobile span.menu-arrow {
    /* filter: invert(1) */
}

.header__bottom:has(+.header__mobile.showen) nav ul:before {
    background: url(/images/burger-close.png) center center / auto 400% no-repeat;
    border-color: transparent;
    filter: invert(1)
}

.header__mobile li.opened>ul {
    display: flex !important;
    flex: 0 0 100%;
    margin-top: 20px;
    margin-bottom: 10px;
    row-gap: 10px;
    padding-left: 20px
}

.header__mobile li.opened {
    flex-wrap: wrap
}

.header__mobile li.opened>ul>li {
    flex-wrap: wrap
}

.header__mobile li.opened>span.menu-arrow {
    /* transform: rotate(180deg);
    background-position: bottom 6.5px center; */
    width: 15px;
    height: 24px;
    background: url(/images/vector_arrow.svg) center center / auto no-repeat;
    cursor: pointer;
}

.header__mobile.showen {
    overflow: auto
}

.header__mobile-search {
    overflow: auto
}

.header__submenu {
    display: none
}

.header__submenu.showen {
    display: flex;
    position: absolute;
    top: 100%;
    z-index: 10;
    background: var(--color-gray-background);
    border-radius: 0 0 60px 60px;
    left: 0;
    right: 0;
    padding-top: 28px;
    max-height: calc(100vh - 218px - 40px);
    padding-bottom: 27px
}

form.header__submenu-search {
    display: flex;
    align-items: center;
    position: relative
}

form.header__submenu-search input[type="text"] {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 50px;
    height: 50px;
    color: var(--color-black);
    font-size: 14px;
    line-height: 18px;
    padding-left: 20px;
    outline: none;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 50px
}

form.header__submenu-search input[type="text"]:autofill {
    -webkit-background-clip: text;
    background-clip: text
}

form.header__submenu-search input[type="text"]:-webkit-autofill {
    -webkit-background-clip: text;
    background-clip: text
}

form.header__submenu-search input[type="text"]::placeholder {
    color: var(--color-gray-dop)
}

form.header__submenu-search input[type="text"]:focus {
    border-color: var(--color-blue)
}

form.header__submenu-search input[type="submit"] {
    font-size: 0;
    line-height: 0;
    border: none;
    outline: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: url(/images/search-icon.svg) center center / 100% 100% no-repeat
}

form.header__submenu-search input[type="text"]:hover+input[type="submit"],
form.header__submenu-search input[type="submit"]:hover {
    background: url(/images/search-icon--hover.svg) center center / 100% 100% no-repeat
}

ul.header__submenu-list {
    margin: 0;
    padding: 0 10px 0 0;
    list-style-type: none;
    flex-direction: column;
    display: flex;
    overflow: auto;
    max-height: calc(100vh - 313px)
}
body .bvi-body ul.header__submenu-list{
     max-height: calc(100vh - 313px - 103px)
}
ul.header__submenu-list a {
    font-size: 16px;
    color: var(--color-black);
    line-height: 20px;
    text-decoration: none
}

ul.header__submenu-list li>span.active>a,
ul.header__submenu-list li>span:hover>a {
    color: var(--color-blue);
    font-weight: 400
}

ul.header__submenu-list svg {
    display: block;
    flex-shrink: 0;
    margin-left: 20px
}

ul.header__submenu-list svg+svg {
    display: none
}

ul.header__submenu-list>li>span {
    display: flex;
    align-items: center;
    justify-content: space-between
}

ul.header__submenu-list>li {
    padding: 17px 0
}

ul.header__submenu-list>li:not(:last-child) {
    border-bottom: 1px solid #e0e3ea
}

ul.header__submenu-list>li:first-child {
    padding-top: 0
}

ul.header__submenu-list>li:last-child {
    padding-bottom: 0
}

ul.header__submenu-list::-webkit-scrollbar {
    width: 10px
}

ul.header__submenu-list::-webkit-scrollbar-button {
    height: 0
}

ul.header__submenu-list::-webkit-scrollbar-thumb {
    background: var(--color-white);
    border-radius: 20px
}

ul.header__submenu-list::-webkit-scrollbar-track,
ul.header__submenu-list::-webkit-scrollbar-track-piece {
    background: #e1e4eb;
    border-radius: 20px
}

.header__submenu.showen .row {
    background: linear-gradient(#e0e3ea, #e0e3ea) left 532px top / 1px 100% no-repeat;
    width: 100%;
}

ul.header__submenu-list li>span.active>svg,
ul.header__submenu-list li>span:hover>svg {
    display: none
}

ul.header__submenu-list li>span.active>svg+svg,
ul.header__submenu-list li>span:hover>svg+svg {
    display: block
}

.header__submenu-right ul {
    margin: 20px 0 0 0;
    padding: 0 20px 0 0;
    max-height: calc(100vh - 313px - 50px - 20px);
    list-style-type: none;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    overflow: auto
}
body.bvi-active .header__submenu-right ul{
     max-height: calc(100vh - 313px - 50px - 20px - 103px);
}
.header__submenu-right ul::-webkit-scrollbar {
    width: 10px
}

.header__submenu-right ul::-webkit-scrollbar-button {
    height: 0
}

.header__submenu-right ul::-webkit-scrollbar-thumb {
    background: var(--color-white);
    border-radius: 20px
}

.header__submenu-right ul::-webkit-scrollbar-track,
.header__submenu-right ul::-webkit-scrollbar-track-piece {
    background: #e1e4eb;
    border-radius: 20px
}

.header__submenu-right a {
    font-size: 15px;
    line-height: 19px;
    color: var(--color-black);
    text-decoration: none
}

.header__submenu-right a:hover {
    font-weight: 400;
    color: var(--color-blue)
}

.header__subsections {
    list-style-type: none;
    padding-left: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.header__subsections:empty {
    display: none;
}

.header__subsections li>span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

body:has(.header__submenu.showen) {
    overflow: hidden;
    /* padding-right: var(--scrollbarWidth) */
}

body:has(.header__mobile.showen) {
    overflow: hidden;
    /* padding-right: var(--scrollbarWidth) */
}

.header__mobile li span.menu-arrow {
    flex-shrink: 0
}

.header__mobile li a {
    max-width: calc(100% - 30px)
}

.header__top .row {
    align-items: center;
    justify-content: space-between;
}

.header__mobile li:has(a.portal-link),
.header__mobile li:has(.registration-number),
.header__mobile form.search {
    display: none
}

.header__mobile ul {
    margin: 0
}

.header__mobile li li li a {
    color: var(--color-gray-dop);
    font-size: 14px
}

.header__mobile li li a {
    font-weight: 300;
    font-size: 16px;
    color: var(--color-black-dop)
}

.header__mobile li.opened>ul ul {
    row-gap: 5px
}

.header__mobile>.container>ul>li>a {
    font-size: 18px;
    color: var(--color-black);
}

.header__mobile>.container>ul>li.opened>a {
    color: var(--color-blue);
}

.header__mobile li.opened>ul ul {
    margin-top: 10px
}

nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul {
    min-width: 600px;
    row-gap: 12px
}

nav li:has(ul):has(a[href*="news"]):not([data-id]):hover ul {
    min-width: 400px;
    row-gap: 12px
}

nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul a {
    font-size: 15px
}

nav li:has(ul):not([data-id]):hover ul {
    box-shadow: 0 7px 18px 0 rgba(4, 5, 29, 0.17)
}

.header__submenu.showen {
    box-shadow: 0 7px 18px 0 rgba(4, 5, 29, 0.17)
}

nav li:has(ul):not([data-id]):hover ul:empty {
    display: none !important
}

span.menu-arrow:has(+ul:empty) {
    display: none
}

.header__top_link {
    text-align: right;
    display: block;
}

.top-menu_link--child {
    position: relative;
}

.top-menu_link--child:hover>ul {
    display: flex !important;
    margin: 0;
    background: var(--color-gray-background);
    border-radius: 0 0 20px 20px;
    padding: 20px;
    position: absolute;
    left: -20px;
    right: -20px;
    flex-direction: column;
    z-index: 1;
    row-gap: 9px;
    border-top: 5.5px solid transparent;
    background-clip: padding-box;
    align-items: stretch;
    min-width: 240px;
    top: 16px;
    list-style: none;
}
.search-submit.d-none{
    display: flex !important;
    color: var(--color-blue);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-blue);
    line-height: 17px;
    border: 1px solid var(--color-blue);
    border-radius: 71px;
    align-items: center;
    padding: 10px;
    justify-content: flex-start;
    max-width: max-content;
}
.search-submit:hover{
    text-decoration: none;
    cursor: pointer;
    background-color: var(--color-blue);
    color: var(--color-white);
}
.prog_list a{
     overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}
@media (min-width:1440px) {
    button.communication__education-request2 {
        display: none
    }

}

@media (max-width:1439px) and (min-width:1200px) {
    .header__top {
        line-height: 19px
    }

    a.blind-version {
        padding: 0 7px;
    }

    .header__top [class*="col"] {
        flex: 0 0 auto;
        max-width: unset;
        width: auto;
        line-height: 19px
    }

    ul.top-menu {
        margin: 0;
        column-gap: 10px;
        line-height: 19px;
        align-items: flex-start;
        height: 19px
    }

    .registration-number {
        font-size: 13px;
        line-height: 19px
    }

    a.portal-link {
        font-size: 13px;
        line-height: 19px
    }

    .header__top .row {
        flex-wrap: nowrap;
        justify-content: space-between
    }

    ul.top-menu a {
        font-size: 13px;
        line-height: 19px
    }

    .logo {
        column-gap: 10px
    }

    .logo img {
        align-self: center
    }

    .logo_company-slogan {
        font-size: 13px;
        line-height: 16px
    }

    .communication__messengers a {
        width: 40px;
        height: 40px
    }

    .logo_company-slogan br {
        display: none
    }

    .logo__description {
        row-gap: 5px
    }
    body:has(.header__submenu.showen) {
        overflow: hidden;
        padding-right: 0;
    }
    a.communication__phone {
        margin-right: 15px;
        font-size: 16px;
        line-height: 20px
    }

    button.communication__education-request {
        width: 200px
    }

    button.communication__education-request2 {
        display: none
    }

    nav a {
        font-size: 14px
    }

    .header__submenu.showen .row {
        background-position: top left 425px
    }

    nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul {
        min-width: 420px;
        row-gap: 12px
    }

    nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul a {
        font-size: 14px
    }
}

@media (max-width:1199px) {
    body:has(.header__submenu.showen) {
        overflow: hidden;
        padding-right: 0;
    }
    .header__middle .logo {
        margin: 0 auto 0 0;
        padding-top: 0;
        justify-content: center;
    }
    a.communication__phone {
        margin-right: auto;
        font-size: 21px;
        margin-left: auto
    }

    .communication__messengers {
        margin-right: 0
    }

    button.communication__education-request {
        display: none
    }

    .header__mobile.showen {
        max-height: calc(100vh - 240px)
    }

    .logo img {
        width: 60px;
    }

    .logo_company-slogan {
        font-size: 12px;
        line-height: 16px
    }

    .logo_company-slogan br {
        display: none
    }

    .logo_company-name {
        font-size: 16px
    }

    a.blind-version {
        font-size: 15px
    }

    nav>ul>li:first-child {
        height: 54px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        column-gap: 12px;
        padding: 0 33px;
        font-size: 15px;
        color: var(--color-white);
        line-height: 19px;
        cursor: pointer;
        margin-right: -35px
    }

    nav>ul>li:first-child:before {
        content: '';
        width: 29px;
        height: 18px;
        background: url(/images/burger.svg) center center / 100% 100% no-repeat
    }

    nav>ul>li:nth-child(n+4):not(:last-child) {
        display: none
    }

    nav ul {
        justify-content: flex-start;
        column-gap: 54px
    }

    nav li:last-child {
        margin-left: auto
    }

    .header__submenu.showen .row {
        background-position: left 360px top
    }

    button.communication__education-request2 {
        /* max-width: 390px; */
        margin: 15px auto 0;
        width: 100%;
        height: 58px;
    }

    @media (min-width:992px) {
        a.communication__phone {
            font-size: 20px;
            margin-left: 0
        }

        nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul {
            min-width: 460px;
            row-gap: 12px
        }

        nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul a {
            font-size: 14px
        }

    }
}


@media (max-width:1199px) {
    .communication {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0 10px;
    }
    header .col-xl-3.d-none.d-xl-block {
        display: block !important;
        order: 1;
        margin-top: 15px;
    }

    .communication-in-head {
        order: 3;
    }
    body.bvi-active .header__submenu-right ul{
     max-height: calc(100vh - 313px - 50px - 20px - 203px);
    }
    body .bvi-body ul.header__submenu-list{
        max-height: calc(100vh - 313px - 203px);
    }
}

@media (max-width:991px) and (min-width:768px) {
    .communication {
        row-gap: 10px;
        flex-wrap: wrap;
        margin-left: auto;
        padding-right: 45px;
        position: relative;
        max-width: 230px
    }

    .naprav_link {
        max-width: 120px;
    }

    a.communication__phone {
        font-size: 19px;
        margin-right: 10px;
        line-height: 21px
    }

    .communication__messengers {
        margin-right: 0;
        position: absolute;
        top: 0;
        right: 0;
        flex-direction: column;
        bottom: 0;
        justify-content: space-between
    }

    .communication__messengers a {
        width: 35px;
        height: 35px
    }

    button.communication__education-request {
        display: none
    }

    a.blind-version {
        height: 44px;
        font-size: 14px;
        padding: 0 10px
    }

    nav ul:before {
        height: 28px;
        width: 44px
    }

    .header__mobile.showen {
        max-height: calc(100vh - 173px)
    }

    .header__top {
        display: block
    }

    .header__top .col-xl-5 {
        display: none
    }

    .header__top .col-xl-4,
    .header__top .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%
    }

    .header__top .row {
        align-items: center
    }

    button.communication__education-request {
        display: none
    }

    .communication__messengers {
        position: static;
        flex-direction: row;
    }

    .communication {
        max-width: unset;
        padding: 0;
        justify-content: space-between
    }

    header .col-xl-3.d-none.d-xl-block {
        display: block !important;
        order: 1;
        margin-top: 15px
    }

    header .logo_company-slogan {
        font-size: 13px
    }

    .communication__messengers a {
        width: 40px;
        height: 40px
    }

    .header__mobile.showen {
        max-height: calc(100vh - 305px)
    }

    .header__mobile form.search {
        display: none
    }

    .header__mobile ul {
        margin: 0
    }

    a.communication__phone {
        margin: 0 auto 0 0
    }

    a.communication__phone {
        margin: 0 auto 0 0
    }

    nav ul {
        column-gap: 30px
    }

    nav>ul>li:first-child {
        margin-right: -15px
    }

    a.blind-version {
        font-size: 15px;
        height: 54px
    }

    .registration-number {
        font-size: 13px;
        white-space: nowrap
    }

    a.portal-link {
        font-size: 13px
    }

    .header__submenu.showen .row {
        background: transparent
    }

    .header__submenu.showen {
        max-height: calc(100vh - 285px - 40px);
        top: 285px
    }

    ul.header__submenu-list {
        max-height: calc(100vh - 285px - 96px)
    }

    .header__submenu-right {
        display: none
    }

    ul.header__submenu-list>li.active ul.header__submenu-sublist {
        display: flex !important;
        flex-direction: column;
        margin: 15px 0 0;
        padding: 0;
        row-gap: 5px
    }

    ul.header__submenu-list>li.active ul.header__submenu-sublist a {
        color: inherit;
        font-weight: 300;
        font-size: 14px
    }

    nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul {
        min-width: 400px;
        row-gap: 12px
    }

    nav li:has(ul):has(a[href*="services"]):not([data-id]):hover ul a {
        font-size: 14px
    }
}

@media (max-width:992px) {
    .header__middle .logo {
        margin: 0 auto 15px 0;
    }
    header .col-xl-3.d-none.d-xl-block {
        margin-top: 0;
    }

    .logo__description {
        max-width: 300px;
    }

     body:has(.header__mobile.showen) {
        padding-right: 0;
    }

    .close-btn {
        display: block;
    }

    .header__mobile.showen {
        padding: 20px 0 200px 0;
        /* top: 0; */
        max-height: 100vh;
    }

    .header__mobile-search {
        display: none;
    }

    .header__mobile-search.showen {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* align-items: flex-end; */
        padding: 20px 10px 42px 10px;
        position: fixed;
        top: 0;
        z-index: 1500;
        background: var(--color-gray-background);
        left: 0;
        right: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: 275px;
        height: 100%;
        overflow: visible;
    }  
     .search-in-head .prog_list{
        margin-top: 0px !important;
        top: 100%;
     }

    .header__mobile ul {
        gap: 0;
    }

    .header__mobile__title {
        padding: 15px 0 20px 0;
        display: block;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 22px;
        letter-spacing: -0.01em;
        text-transform: uppercase;
        text-align: center;
        color: var(--color-blue);
    }

    .header__mobile-search__title {
        display: block;
        font-family: var(--font-family);
        font-weight: 500;
        font-size: 16px;
        letter-spacing: -0.01em;
        text-align: center;
        color: var(--color-blue);
        margin-top: auto;
        margin-bottom: 10px;
    }

    .header__mobile li.opened>ul ul {
        row-gap: 10px
    }


    .header__mobile li.opened>ul>li {
        flex-wrap: wrap;
        padding: 0;
        border: none;
    }

    .header__mobile li.opened>ul>li span.menu-arrow {
        display: none;
    }

    .header__mobile li.opened>ul>li>ul>li {
        display: none;
    }

    .header__mobile li.opened>ul {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    a.communication__education-request3 {
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        column-gap: 11px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    a.communication__education-request3:before {
        content: '';
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        background: url(/images/icon_entrance.svg) center center / auto no-repeat;
    }

    .btn__search {
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        column-gap: 11px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

   .btn__search:before {
        display: flex;
        align-items: center;
        justify-content: center;
        content: '';
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        background: url(/images/icon_loupe.svg) center center / auto no-repeat;
    }


    a.blind-version {
        padding: 0 16px;
        width: 100%;
        flex-shrink: 0;
        padding: 0 calc(100%/2 - 122px/2)
    }

    a.blind-version span {
        display: none;
    }

    a.blind-version:before {
        width: 22px;
        height: 22px;
        background: url(/images/blind-icon-mobile.svg) center center / auto no-repeat;
    }

    .header__mobile li {
        padding: 20px 0;
        line-height: 1.2;
        border-bottom: 1px solid var(--color-line-graybackground);
    }

    span.menu-arrow {
        width: 15px;
        height: 15px;
        background: url(/images/vector_arrow-close.svg) center center / auto no-repeat;
        cursor: pointer
    }

    button.communication__education-request2 {
        display: none;
        /* max-width: 100%;
        width: 100%; */
    }

    .header__bottom nav ul {
        column-gap: 8px;
    }
    nav>ul>li:first-child {
        font-size: 14px;
        justify-content: center;
        padding: 0;
        flex: 1 1 144px;
        max-width: 100%;
        width: 39%;
        margin-right: 0;
    }

    nav>ul>li:nth-child(n+4):not(:last-child) {
        display: block;
    }

    nav>ul>li:not(:first-child):not(:nth-last-child(-n+3)) {
        display: none;
    }

    .header__bottom nav li {
        flex: 0 0 54px;
        column-gap: 8px;
        justify-content: flex-end;
    }

    .header__bottom  nav li:last-child {
        width: 100%;
        margin: 0;
    }
    .header__bottom nav{
        width:100%;
    }
}

@media (max-width:767px) {
    header .logo {
        justify-content: center;
        margin-bottom: 10px
    }

    .header__top_link {
        text-align: left;
    }

    .header__top .row {
        gap: 5px;
        justify-content: center;
    }

    .communication {
        justify-content: space-between;
    }

    a.communication__phone {
        margin-right: 15px
    }

    .communication__messengers {
        margin-right: 15px
    }

    a.portal-link {
        font-size: 13px
    }

    .registration-number {
        text-align: center;
        font-size: 13px;
        line-height: 16px
    }

    header .logo {
        column-gap: 10px
    }

    header .logo img {
        width: 70px
    }

    header .logo__description {
        row-gap: 6px;
        max-width: 280px;
    }

    header .logo_company-name {
        font-size: 15px;
        line-height: 17px
    }

    header .logo_company-slogan {
        font-size: 12px;
        line-height: 15px
    }

    a.communication__phone {
        font-size: 14px;
        margin-right: auto
    }

    .communication__messengers {
        margin-right: 0;
        column-gap: 5px
    }

    .communication__messengers a {
        width: 35px;
        height: 35px
    }

    .header__middle .col-lg-4.col-xl-3.d-none.d-xl-block.d-lg-block {
        display: block !important;
        order: 1;
        margin-top: 15px
    }

    header .logo {
        margin-bottom: 0
    }

    a.communication__phone {
        margin-left: 0
    }

    button.communication__education-request {
        display: none
    }

    .header__mobile-search.showen {
        max-height: 295px;
    }

    @media (min-width:576px) {
        a.portal-link {
            float: none;
            text-align: left;
            margin-top: 7px
        }

        header .logo img {
            width: 65px;
            align-self: center
        }

        header .logo {
            column-gap: 7px
        }

        header .logo_company-name {
            font-size: 13px;
            line-height: 14px
        }

        header .logo_company-slogan {
            letter-spacing: -0.01em
        }

        .communication__messengers a {
            width: 50px;
            height: 50px
        }

        .communication__messengers {
            column-gap: 10px
        }

        a.communication__phone {
            letter-spacing: -0.01em;
            font-size: 17px;
            line-height: 21px
        }
    }

    .header__mobile li:has([href*="services"]),
    .header__mobile li:has([href*="directions"]) {
        order: -1
    }
    .header__mobile>.container>ul>li:nth-child(8){
        order:-2;
    }

}

@media (max-width:575px) {

    .communication {
        justify-content: center;
    }

    span.menu-arrow {
        width: 15px;
        height: 15px;
        background: url(/images/vector_arrow-close.svg) center center / auto no-repeat;
        cursor: pointer
    }

    .header__middle {
        padding: 0;
    }

    .header__middle .logo-container {
        background: var(--color-gray-background);
    }

    .header__middle .logo {
        padding: 12px 0;
        margin-bottom: 0;
    }

    .logo_company-slogan {
        display: none;
        font-size: 14px
    }

    .logo_company-slogan br {
        display: none
    }

    .logo__description {
        gap: 5px
    }

    header .logo {
        column-gap: 10px
    }

    header .logo img {
        align-self: center
    }

    .communication__messengers {
        column-gap: 10px
    }

    .communication__messengers a {
        width: 30px;
        height: 30px
    }

    button.communication__education-request {
        display: none
    }

    .close-btn {
        display: block;
    }

    nav ul:before {
        width: 40px;
        height: 24px
    }

    a.blind-version {
        font-size: 14px
    }

    .header__mobile li {
        padding: 20px 0;
        line-height: 1.2;
        border-bottom: 1px solid var(--color-line-graybackground);
    }

    /* .registration-number{margin-bottom:7px} */
    a.portal-link {
        float: none;
        line-height: 16px;
        text-align: left
    }

    .header__top {
        display: none;
        padding: 11px 0
    }


    header .logo_company-name {
        font-size: 16px;
        line-height: 18px
    }

    header .logo img {
        width: 40px
    }

    header .logo_company-slogan {
        font-size: 13px;
        line-height: 16px
    }

    header .logo {
        margin-bottom: 0;
    }

    .communication__messengers a {
        width: 50px;
        height: 50px
    }

    .communication__messengers {
        margin-right: 0;
        order: 3;
    }

    a.communication__phone {
        font-size: 20px;
        line-height: 1.25;
        margin: 0 auto 0 0;
    }

    .header__middle .col-lg-4.col-xl-3.d-none.d-xl-block.d-lg-block {
        margin-top: 0;
    }

    a.blind-version {
        font-size: 13px;
        line-height: 14px
    }

    nav ul {
        column-gap: 20px
    }

    .header__bottom nav ul {
        column-gap: 8px;
    }

    .header__bottom nav li {
        flex: 0 0 54px;
        column-gap: 8px;
        justify-content: flex-end;
    }

    nav>ul>li:nth-child(n+4):not(:last-child) {
        display: unset;
    }

    nav>ul>li:nth-child(n+2):nth-child(-n+7) {
        display: none;
    }

    nav>ul>li:first-child {
        font-size: 13px;
        line-height: 16px
    }

    nav>ul>li:first-child {
        font-size: 14px;
        justify-content: center;
        padding: 0;
        flex: 1 1 144px;
        max-width: 100%;
        width: 39%;
        margin-right: 0;
    }

    a.communication__education-request3 {
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        column-gap: 11px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    a.communication__education-request3:before {
        content: '';
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        background: url(/images/icon_entrance.svg) center center / auto no-repeat;
    }

    .btn__search {
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        column-gap: 11px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

   .btn__search:before {
        display: flex;
        align-items: center;
        justify-content: center;
        content: '';
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        background: url(/images/icon_loupe.svg) center center / auto no-repeat;
    }


    a.blind-version {
        padding: 0 16px;
        width: 100%;
        flex-shrink: 0;
        padding: 0 calc(100%/2 - 122px/2)
    }

    a.blind-version span {
        display: none;
    }

    a.blind-version:before {
        width: 22px;
        height: 22px;
        background: url(/images/blind-icon-mobile.svg) center center / auto no-repeat;
    }

    nav li:last-child {
        width: calc(50% - 10px)
    }

    .header__bottom  nav li:last-child {
        width: 100%;
        margin: 0;
    }

    .header__mobile.showen {
        padding: 20px 0 200px 0;
        top: 0;
        max-height: 100vh;
        position: fixed;
        z-index: 9999;
    }


    .header__mobile-search.showen {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* align-items: flex-end; */
        padding: 20px 10px 42px 10px;
        position: fixed;
        top: 0;
        z-index: 1500;
        background: var(--color-gray-background);
        left: 0;
        right: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: 220px;
        height: 100%;
    }

    .header__mobile ul {
        gap: 0;
    }


    .header__mobile-search__title {
        display: block;
        font-family: var(--font-family);
        font-weight: 500;
        font-size: 16px;
        letter-spacing: -0.01em;
        text-align: center;
        color: var(--color-blue);
        margin-top: auto;
        margin-bottom: 10px;
    }

    .header__mobile li.opened>ul ul {
        row-gap: 10px
    }


    .header__mobile li.opened>ul>li {
        flex-wrap: wrap;
        padding: 0;
        border: none;
    }

    .header__mobile li.opened>ul>li span.menu-arrow {
        display: block;
    }

    .header__mobile li.opened>ul>li>ul>li {
        display: block;
    }

    button.communication__education-request2 {
        display: none;
        /* max-width: 100%;
        width: 100%; */
    }


}

.communication-time {
    font-size: 12px;
    line-height: normal;
    margin-bottom: 3px;
    max-width: 180px;
}

.header__callback-button {
    background: var(--color-blue);
    color: var(--color-white);
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    border: 1px solid var(--color-blue);
    border-radius: 71px;
    width: 238px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.header__callback-button:hover {
    color: var(--color-blue);
    background: var(--color-white);
}



@media (max-width: 1439px) and (min-width: 1200px) {
    .header__callback-button {
        width: 200px;
    }

    .communication-time {
        font-size: 11px;
    }
}

@media (max-width: 1199px) {
    .header__callback-button {
        margin-top: 0;
    }
}

@media (max-width: 992px) {

    .communication-cont {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .communication-time {
        margin-bottom: 0;
    }
}



@media (max-width: 767px) {
    .communication {
        flex-direction: row;
    }

    .communication-cont {
        margin-bottom: 10px;
        display: none;
    }
}

@media (max-width: 575px) {
    .communication {
        padding: 15px 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px 10px;
    }
    .communication-cont {
        flex: 1 1 100%;
        margin: 0 auto 0 auto;
        text-align: center;
    }
    .communication-time {
        display: none;
    }
    .communication__buttons {
        flex: 0 1 210px;
    }
    .header__callback-button {
        background: transparent;
        color: var(--color-blue);
        border: 1px solid var(--color-blue);
        width: 100%;
        height: 50px;
    }
}

#backToTop {
    position: fixed;
    bottom: 180px;
    right: 40px;
    width: 65px;
    height: 65px;
    border: none;
    border-radius: 50%;
    background-color: #555;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

#backToTop:hover {
    background-color: #333;
}

#top {
    position: absolute;
    top: 0;
    left: 0;
}

html {
    scroll-behavior: smooth;
}

#backToTop {
    scroll-behavior: smooth;
}

@media(max-width: 767px){
    #backToTop{
        bottom: 130px;
        right: 30px;
    }
    .header__bottom.fixed-header .container nav{
        width: 100%;
    }
}

.header__bottom .logo{
    display: none;
}
.header__bottom.fixed-header .logo{
    display: block;
}
.header__bottom.fixed-header .container{
    display: flex;
    align-items: center;
    gap: 25px;
}