.header {
    position: fixed;
    top: 0;
    right: 0;

    width: 100%;

    background-color: var(--clr-white);

    z-index: 10;
}

.header__wrap {
    padding: 16px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    outline: none;
    border: none;
}

.header__logo-img {
    max-height: 28px;
    display: block;
}

.header__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.header__nav-link {
    color: var(--clr-black);

    text-decoration: none;
    font-weight: 600;
    transition: .3s ease-in-out;
}

.header__nav-link:hover {
    color: var(--clr-blue);
}

.header__btn {
    padding: 9px 22px;
}

.header__burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
}

.header__burger-img {
    width: 36px;
    height: 36px;
    stroke: var(--clr-blue);
}

/* Мобильное меню */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 98%;
    background-color: var(--clr-white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-x: auto;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active .mobile-menu__content {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--clr-gray);
}

.mobile-menu__logo img {
    max-width: 60%;
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
}

.close-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 18px;
    position: relative;
}

.close-line {
    width: 100%;
    height: 2px;
    background-color: var(--clr-black);
    position: absolute;
    border-radius: 1px;
}

.close-line:nth-child(1) {
    transform: rotate(45deg);
}

.close-line:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-menu__link {
    color: var(--clr-black);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu__link:hover {
    color: var(--clr-blue);
    border-bottom-color: var(--clr-blue);
}

.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.mobile-menu__btn {
    padding: 12px 20px;

    color: var(--clr-white);
    text-align: center;
    font-weight: bold;

    background-color: var(--clr-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu__btn:hover {
    background-color: var(--clr-blue);
}

.mobile-menu__btn.catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-menu__contact {
    padding: 20px 0;

    display: flex;
    flex-direction: column;
    gap: 20px;

    border-top: 1px solid var(--clr-gray);
}

.mobile-menu__phone {
    margin: 0 0 10px 0;
    color: var(--clr-black);
}

.mobile-menu__email {
    margin: 0;
    color: var(--clr-gray);
}

.header__contact-item.link {
    text-decoration: none;
    color: var(--clr-black);
}

@media screen and (max-width: 1280px) {

    .header__logo-img {
        max-height: inherit;
        max-width: 15vw;
    }

    .header__nav {
        gap: 20px;
    }

}

@media screen and (max-width: 1024px) {

    .header__logo-img {
        max-height: initial;
        max-width: 218px !important;
    }

    .header__nav {
        display: none;
    }

    .header__btn {
        display: none;
    }

    .header__burger-btn {
        display: flex;
    }

}

@media screen and (max-width: 768px) {

    .header__wrap {
        padding: 16px 0;
    }

}