/* Общие стили шапки */

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid #2C35394D;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 65px;
}

.header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary);
}

.header__logo svg,
.header__logo img {
    width: 100%;
}

/* Навигация */
.header__nav {
    background-color: transparent;
    color: var(--secondary);
    height: auto;
}

.header__nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav a {
    text-decoration: none;
    font-size: 14px;
    color: var(--secondary);
}

/* Инфо и контакты */
.header__info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__info address {
    display: flex;
    flex-direction: column;
    font-style: normal;
    align-items: flex-end;
    gap: 12px;
}

.header__info address a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 13px;
}

.header__info address svg {
    fill: var(--secondary);
}

/* Кнопка в шапке */
.header__btn {
    width: 224px;
    height: 54px;
    background-color: var(--secondary);
    color: white;
    border: none;
    font-size: 20px;
}

.header__btn:hover {
    background-color: var(--primary);
}

/* Бургер */
.burger {
    display: none;
}

/* Мобильное меню */
.menu {
    display: none;
}

@media (max-width: 1031px) {

    .header {
        box-shadow: 0px 4px 8px 0px #00000040;
    }

    .header .container {
        padding: 0 20px 0 0;
    }

    .header .header__inner {
        height: 56px;
        padding: 0;
        margin-bottom: 10px;
        border: none;
        justify-content: flex-start;
        gap: 16px;
    }

    .header__info {
        margin-left: auto;
    }

    .header__nav {
        display: none;
    }

    .header__info address a:first-of-type,
    .header__info .header__btn {
        display: none;
    }

    .header__logo {
        position: static;
        transform: none;
        width: 100px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: var(--dark);
        height: 100%;
        width: 56px;
        justify-content: center;
        align-items: center;
    }

    .burger span {
        height: 2px;
        width: 24px;
        background-color: var(--white);
    }

    .header.opened .burger span:first-of-type {
        transform: rotate(45deg) translate(5px, 0px);
    }

    .header.opened .burger span:nth-of-type(2) {
        display: none;
    }

    .header.opened .burger span:last-of-type {
        transform: rotate(-45deg) translate(5px, 0px);
        width: 23px;
    }

    .menu {
        display: block;
        position: absolute;
        left: 0;
        top: 41px;
        width: 100%;
        height: 0;
        overflow: hidden;
        background-color: var(--secondary);
        color: #fff;
        z-index: 22;
        transition: all 0.3s;
    }

    .header.opened+.menu {
        height: 351px;
    }

    .menu_address {
        display: block;
        padding: 50px 0 30px;
    }

    .menu__inner {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 40px 0 15px;
    }

    .menu__nav ul {
        display: flex;
        flex-direction: column;
        gap: 25px;
        font-size: 20px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu__nav a {
        color: #fff;
        text-decoration: none;
    }

    .menu__inner .btn {
        border-color: #00CABF;
        height: 45px;
    }
}