/* ========== HEADER: ОСНОВНОЙ КОНТЕЙНЕР ========== */
.header {
    height: 96px;
    background-color: #ffffff;
}


/* ========== HEADER: ЛЕВАЯ ЧАСТЬ (ЛОГО И ТЕЛЕФОНЫ) ========== */
.header__left {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-left: 15px;
    gap: 50px;
}

.header__logo {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    width: 220px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-left: 0;
}

.header__info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 30px;
}

.header__info-item {
    /* Блок с телефоном и подписью */
}

.header__info-phone {
    margin-bottom: 5px;
}

.header__info-phone a {
    font-family: 'ALS Granate', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.6px;
    color: #000000;
    text-decoration: unset;
}

.header__info-label {
    font-family: 'ALS Granate', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000;
    opacity: 0.3;
}


/* ========== HEADER: ПРАВАЯ ЧАСТЬ (ПОИСК, КОНТРАСТ, ЯЗЫК, КНОПКИ) ========== */
.header__right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    gap: 40px;
    padding-right: 15px;
}

.header__right-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 15px;
}


/* ========== ПОИСК (ВЫДВИЖНОЙ) ========== */
.header__search {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    height: 36px;
}

.search__icon {
    width: 36px;
    height: 36px;
    background-image: url('/local/templates/new-design/static/assets/images/header__search-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 36px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 2;
    border-radius: 2px;
}

.search__container {
    position: absolute;
    right: 2px;
    width: 0;
    height: 36px;
    background-color: #000000;
    border-radius: 2px;
    -webkit-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.search__container.active {
    width: 150px;
}

.search__form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100%;
    width: 150px;
}

.search__input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 12px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.search__input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search__input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search__input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search__input::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* ========== ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ ========== */
.header__service-contrast {
    background-image: url(/local/templates/new-design/static/assets/images/header__service-contrast.png);
    background-size: 36px 36px;
    width: 36px;
    height: 36px;
    display: block;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    -o-transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease, -webkit-filter .3s ease, -webkit-transform .3s ease;
    cursor: pointer;
}


/* ========== ВЫБОР ЯЗЫКА ========== */
.header__right-lang {
    position: relative;
    height: 36px;
    width: 40px;
}

.header__lang-list {
    background: #ffffff;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'ALS Granate', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    cursor: pointer;
    display: block;
    height: auto;
    padding: 0px 0;
    z-index: 1;
    border-radius: 3px;
}

.lang-list__current {
    position: relative;
    width: 40px;
    height: 36px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px 21px 10px 6px;
    border-radius: 3px;
}

.lang-list__current:after {
    content: '';
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="6" viewBox="0 0 9 6" fill="none"><path d="M0.5 0.5L4.5 4.5L8.5 0.5" stroke="black" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    position: absolute;
    right: 5px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 9px;
    height: 6px;
    border: none;
}

.lang-list__list {
    display: none; /* Скрыт по умолчанию, открывается через JS */
}

.lang-list__item {
    padding: 5px 15px 5px 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: flex-start;
    -ms-flex-pack: flex-start;
    justify-content: flex-start;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    height: 25px;
}


/* ========== КНОПКИ (ЭЛЕКТРОННЫЙ ВУЗ / ЛИЧНЫЙ КАБИНЕТ) ========== */
.header__right-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #000000;
    padding: 10px 15px;
    border-radius: 2px;
    color: #FFFFFF;
    height: 36px;
    text-decoration: unset;
    font-family: 'ALS Granate', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.4px;
    -webkit-transition: background .6s ease, color .6s ease;
    -o-transition: background .6s ease, color .6s ease;
    transition: background .6s ease, color .6s ease;
}

.header__right-link:hover {
    color: #ffffff;
    text-decoration: none;
    background: #808080;
    -webkit-transition: background .6s ease, color .6s ease;
    -o-transition: background .6s ease, color .6s ease;
    transition: background .6s ease, color .6s ease;
}


/* ========== HEADER FIXED: ФИКСИРОВАННАЯ ШАПКА ========== */
.header-fixed__col-left {
   padding-left: 15px; 
}

.header-fixed__col-right {
    padding-right: 15px;
    gap: 12px;
}

.header__burger {
    position: relative;
    width: 36px;
    height: 36px;
}

.header-fixed__menu-button {
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.header-fixed__menu-button span {
    background: #000000;
    border-radius: 100px;
    width: 40px;
    height: 4px;
    position: absolute;
    display: block;
    top: 50%;
    left: 0;
}

.header-fixed__menu-button span:nth-child(1) {
    width: 36px;
    -webkit-transform: translateY(-12px);
    -ms-transform: translateY(-12px);
    transform: translateY(-12px);
}

.header-fixed__menu-button span:nth-child(2) {
    width: 26px;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.header-fixed__menu-button span:nth-child(3) {
    width: 16px;
    -webkit-transform: translateY(8px);
    -ms-transform: translateY(8px);
    transform: translateY(8px);
}

.header-fixed__menu-button span:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #d44822;
    -webkit-transition: width 0.6s ease;
    -o-transition: width 0.6s ease;
    transition: width 0.6s ease;
    border-radius: 20px;
    z-index: 0;
}

.header-fixed__menu-button:hover span:before {
    width: 100%;
}

.header__burger-mobile {
    background-image: url(/local/templates/new-design/static/assets/images/header__mobile-burger.png);
    background-size: 36px 36px;
    width: 36px;
    height: 36px;
    display: block;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    -o-transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease, -webkit-filter .3s ease, -webkit-transform .3s ease;
    cursor: pointer; 
    display: none;
}

.header-fixed__callback {
    background-image: url(/local/templates/new-design/static/assets/images/header__callback-icon.png);
    background-size: 36px 36px;
    width: 36px;
    height: 36px;
    display: block;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    -o-transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease, -webkit-filter .3s ease, -webkit-transform .3s ease;
    cursor: pointer; 
}

.header-fixed__search {
    width: 36px;
    height: 36px;
    background-image: url(/local/templates/new-design/static/assets/images/header__search-icon.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 36px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 2;
    border-radius: 2px;
}

@media (max-width: 1199.98px) {
    .header__burger-mobile {
        display: block;
    }
    
    .header__burger,
    .header__right-link {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-fixed__logo-link img {
        max-width: 150px;
    }
    
    .header-fixed {
        padding: 12px 0;
        height: auto;
    }
}


/* ========== MENU MOBILE: МОБИЛЬНОЕ МЕНЮ ========== */
.menu-mobile__top-group {
    display: flex;
    align-items: center;
    gap: 45px;
}

.menu-mobile__top-close {
    margin: 0;
    width: 25px;
    height: 25px;
    position: relative;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.4s ease;
    transition: -webkit-transform 0.4s ease;
    -o-transition: transform 0.4s ease;
    transition: transform 0.4s ease;
    transition: transform 0.4s ease, -webkit-transform 0.4s ease;
    display: block;
    flex-shrink: 0;
}

.menu-mobile__top-close:before, 
.menu-mobile__top-close:after {
    content: '';
    display: block;
    height: 2px;
    width: 25px;
    background: #000000;
    border-radius: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12.5px;
    margin-top: -1.5px;
}

.menu-mobile__top-close:before {
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}

.menu-mobile__top-close:after {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.menu-mobile__top-close:hover {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.menu-mobile__header {
    padding-top: 20px;
    margin-bottom: 30px;
}

.menu-mobile__buttons-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.menu-mobile___right-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #000000;
    padding: 10px 15px;
    border-radius: 2px;
    color: #FFFFFF;
    width: 100%;
    text-decoration: unset;
    font-family: 'ALS Granate', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.4px;
    -webkit-transition: background .6s ease, color .6s ease;
    -o-transition: background .6s ease, color .6s ease;
    transition: background .6s ease, color .6s ease;
}

.menu-mobile___right-link:hover {
    color: #ffffff;
    text-decoration: none;
    background: #808080;
    -webkit-transition: background .6s ease, color .6s ease;
    -o-transition: background .6s ease, color .6s ease;
    transition: background .6s ease, color .6s ease;
}

.menu-mobile__content {
    max-width: 450px;
    margin: 0 auto;
}

.menu-mobile__search-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 25px;
}

.menu-mobile__search-wrapper input[type=text] {
    width: 100%;
    background-color: #E6E6E6;
    padding: 10px 10px 10px 20px;
}

.menu-mobile__search-wrapper input[type=submit] {
    width: 20px;
    height: 100%;
    position: absolute;
    top: 50%;
    right: 0;
    margin-right: 10px;
    transform: translateY(-50%);
    background-image: url(/local/templates/new-design/static/assets/images/header__icon-search-lupa.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: right center;
}

.menu-mobile__search-row {
    margin-bottom: 56px;
}

.menu-mobile__title {
    font-family: 'ALS Granate', sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: -0.7px;
    margin-bottom: 30px;
}

.menu-mobile__nav-row,
.menu-mobile__contacts-row {
    margin-bottom: 55px;
}

.menu-mobile__phones-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-mobile__phone-number {
    margin-bottom: 5px;
}

.menu-mobile__phone-number a {
    font-family: 'ALS Granate', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.6px;
    color: #000000;
    text-decoration: unset;
}

.menu-mobile__phone-label {
    font-family: 'ALS Granate', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: #000000;
    opacity: 0.3;
}

.menu-mobile__item-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-mobile__top-group .header__lang-list {
    background-color: #E6E6E6;
}

.menu-mobile__item-link {
    font-family: 'ALS Granate', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 16px;
    letter-spacing: -0.3px;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
}

.menu-mobile__item-toggle {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-mobile__item-toggle:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 7px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" viewBox="0 0 10 7" fill="none"><path d="M1 1L5 5L9 1" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.3s ease;
}

.menu-mobile__item-toggle.active:before {
    transform: translate(-50%, -50%) rotate(180deg);
}

.menu-mobile__submenu {
    display: none;
    padding: 10px 0 10px 15px;
    border-radius: 4px;
    margin-top: 5px;
}

.menu-mobile__submenu.active {
    display: block;
}

.menu-mobile__submenu-link {
    display: block;
    padding: 8px 0;
    font-family: 'ALS Granate', sans-serif;
    font-size: 14px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-mobile__submenu-link:last-child {
    border-bottom: none;
}

.menu-mobile__submenu-link:hover {
    color: #000000;
    text-decoration: underline;
}

.menu-mobile__socials-group {
    display: flex;
    gap: 10px;
}

.menu-mobile__social-item {
    width: 48px;
    height: 48px;
    -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    display: block;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    transition: -webkit-filter .3s ease, -webkit-transform .3s ease;
    -o-transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease;
    transition: filter .3s ease, transform .3s ease, -webkit-filter .3s ease, -webkit-transform .3s ease;
}

.menu-mobile__social-item:hover {
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.menu-mobile__social-item.vk {
    background-image: url(/local/templates/new-design/static/assets/images/menu-mobile__social-link-vk.png);
    background-size: 48px 48px;
}
.menu-mobile__social-item.ok {
    background-image: url(/local/templates/new-design/static/assets/images/menu-mobile__social-link-ok.png);
    background-size: 48px 48px;
}
.menu-mobile__social-item.max {
    background-image: url(/local/templates/new-design/static/assets/images/menu-mobile__social-link-max.png);
    background-size: 48px 48px;
}
.menu-mobile__social-item.rt {
    background-image: url(/local/templates/new-design/static/assets/images/menu-mobile__social-link-rt.png);
    background-size: 48px 48px;
}
.menu-mobile__social-item.soc {
    background-image: url(/local/templates/new-design/static/assets/images/menu-mobile__social-link-soc.png);
    background-size: 48px 48px;
}
.menu-mobile__social-item.tg {
    background-image: url(/local/templates/new-design/static/assets/images/menu-mobile__social-link-tg.png);
    background-size: 48px 48px;
}