/* Контейнер */
[class*="__container"] {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    font-family: 'Montserrat', sans-serif;
    position: fixed;              
    top: 0;                       
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    border-bottom: 1px solid #222;
    z-index: 1000;                
    transition: all 0.3s ease; 
}

.header__container {
    width: 90%;
    max-width: 1200px;
    height: 100px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 38px;
    display: block;
}

.header__nav {
    display: flex;
    gap: 40px;
}

.header__link {
    font-size: 18px;
    font-weight: 500 !important;
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header__link:hover {
    color: #777;
}

/* === BURGER BUTTON === */

.burger {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.burger span {
    width: 100%;
    height: 3px;
    background: #222;
    border-radius: 3px;
    transition: 0.3s;
}

/* Анимация крестика */
.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* === MOBILE NAV === */

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 120px 40px;
    gap: 25px;
    transition: 0.4s ease;
    z-index: 1500;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav__link {
    font-size: 22px;
    font-family: 'Cormorant Garamond', serif;
    color: #222;
    text-decoration: none;
}

.mobile-nav__link:hover {
    color: #777;
}


/* === RESPONSIVE === */
@media (max-width: 900px) {
    .header {
        height: 80px;
    }

    .header__nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}

.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

.lang-switch .lang {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 5px 10px;
    color: #222;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.lang-switch .lang:hover {
    border-color: #222;
}

.lang-switch .active {
    background: #222;
    color: #fff !important;
    border-color: #222;
}



/* ===========================
   FOOTER
=========================== */

.footer {
    font-family: 'Montserrat', sans-serif;
    background: hsl(0, 0%, 97%);
    padding: 50px 0 30px;
    border-top: 1px solid #e5e5e5;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.footer_flex {
    display: flex;
    justify-content: space-between;
    align-items: stretch;    /* ВЫРОВНЯТЬ ПО ВЫСОТЕ */
    max-width: 1200px;
    margin: 0 auto;
}

/* Делаем оба блока одинаковой высоты */
.footer__top,
.footer__middle {
    flex: 1;                /* растягиваются равномерно */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    border-radius: 6px;
}

.footer__top {
    flex: 3;
    gap: 50px;
}

.footer__middle {
    align-items: flex-start;
    flex: 1;
    justify-content: space-between;
    max-width: 250px;
}

/* Логотип + инфо */
.footer_da {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.footer__logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

/* Блок информации */
.footer__info {
    max-width: 600px;
}

.footer__info p {
    margin: 0 0 6px;
    color: #555;
    line-height: 1.5;
}

/* Навигация футера */
.footer__nav a {
    margin-right: 18px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
}

.footer__nav a:hover {
    color: #000;
}

/* Сертификаты в футере */
.footer__certs {
    
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: start;
    gap: 12px;
}

.footer__certs img {
    height: 45px;
    object-fit: contain;
}

.footer__certs .cert3 {
    height: 43px;

}

.footer__certs__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}



/* Соц иконки */
.footer__socials {
    display: flex;
    gap: 14px;
}

.footer__icon img {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: 0.25s ease;
}

.footer__icon img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Нижний текст */
.footer__bottom {
    text-align: center;
    margin-top: 25px;
    color: #888;
    font-size: 13px;
}




/* ===========================
   АДАПТИВ
=========================== */
/* ============ 1200px и ниже (легкая адаптация) ============ */
@media (max-width: 1200px) {
    .footer_flex {
        padding: 0 20px;
    }

    .footer__top {
        gap: 30px;
    }

    .footer__middle {
        max-width: 220px;
    }

    .footer__logo {
        width: 130px;
    }
}

/* ============ 992px и ниже (переход к планшету) ============ */
@media (max-width: 992px) {
    .footer_flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer__top,
    .footer__middle {
        width: 100%;
        align-items: center;
        gap: 30px;
    }

    .footer_da {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }


    .footer__logo {
        margin-bottom: 10px;
        width: 120px;
    }

    .footer__certs {
        justify-content: center;
    }

    .footer__socials {
        justify-content: center;
    }

    .footer__nav a {
        display: inline-block;
        margin: 0 10px;
    }
}

/* ============ 768px и ниже (планшеты вертикально) ============ */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 25px;
    }

    .footer__certs img {
        height: 42px;
    }

    .footer__info p {
        font-size: 13px;
    }

    .footer__bottom {
        font-size: 12px;
    }

    .header__container {
        padding: 0 15px;
        height: 85px;
    }

    .header__logo img {
        height: 32px;
    }

    .mobile-nav.active {
        width: 80%;
    }
}

/* ============ 576px и ниже (телефоны) ============ */
@media (max-width: 576px) {
    .footer__nav a {
        display: block;
        margin: 6px 0;
    }

    .footer__certs img {
        height: 36px;
    }

    .footer__socials img {
        width: 28px;
        height: 28px;
    }

    .footer__info,
    .footer__text {
        text-align: left;
    }

    .footer__logo {
        width: 115px;
    }

    .header__logo img {
        height: 30px;
    }
}

/* ============ 420px и ниже (маленькие телефоны) ============ */
@media (max-width: 420px) {

    .footer__info p,
    .footer__text {
        font-size: 12px;
        line-height: 1.4;
    }

    .footer__socials img {
        width: 26px;
        height: 26px;
    }

    .footer__certs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: start;
    }

    .cert1,
    .cert2,
    .cert4 {
        height: 32px;
    }

    .footer__certs .cert3 {
        height: 26px;
    }

    .footer__bottom {
        font-size: 11px;
    }

    .header__container {
        height: 75px;
    }

    .burger {
        width: 26px;
        height: 18px;
    }
}




/* === Dropdown menu === */

.header__dropdown {
    position: relative;
}

.header__dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header__dropdown .arrow {
    font-size: 12px;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.arrow img{
    width: 10px;
}

.header__dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Выпадающее меню */
.header__dropdown-menu {
    margin-top: 5px;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    min-width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.header__dropdown:hover .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__dropdown-menu a {
    display: block;
    padding: 12px 6px;
    margin-bottom: 0px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: background 0.3s ease;
}

.header__dropdown-menu a:first-child {
    padding-bottom: 0; /* чтобы у последнего не было отступа */
}

.header__dropdown a:hover {
    color: #777;
    opacity: 0.5;
}

/* Мобильное меню */
@media(max-width: 900px) {
    .header__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }

    .header__dropdown-btn .arrow {
        display: none;
    }
}

/* === Mobile dropdown === */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown__btn {
    font-size: 22px;
    font-family: 'Cormorant Garamond', serif;
    color: #222;
    text-decoration: none;
    background: none;
    border: none;
    padding: 10px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown__btn .arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-dropdown__btn.active .arrow {
    transform: rotate(180deg);
}

.mobile-dropdown__content {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    margin-top: 5px;
}

.mobile-dropdown__content a {
    font-size: 18px;
    padding: 8px 0;
    text-decoration: none;
    color: #444;
}

.mobile-dropdown__content a:hover {
    color: #000;
}
