/*-----------
Header START
------------*/

header {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 20;
}

.header-main {
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
    background: rgba(0, 0, 0, 0.04);
    mix-blend-mode: difference;
}

.header-main > .section-wrap {
    width: 100%;
    padding: 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

.header-nav,
.header-nav__list,
.header-main--right,
.header-main__contacts,
.header-main__socials {
    display: flex;
    align-items: center;
}

.header-nav--left {
    justify-self: start;
}

.header-main--right {
    justify-self: end;
    gap: 32px;
}

.header-nav__list {
    margin: 0;
    list-style: none;
    gap: 34px;
}

.main-menu-link {
    color: #fffbf4;
    font-family: var(--font-family-semi-bold);
    font-size: 15px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: 0.3s;
}

.main-menu-link:hover,
.header-main__phone:hover .header-main__phone-number,
.header-social:hover {
    color: #0093FD;
}

.header-main__logo {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.header-main__contacts {
    gap: 20px;
}

.header-main__socials {
    gap: 14px;
}

.header-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fffbf4;
    line-height: 0;
}

.header-main__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #fffbf4;
    overflow: visible;
}

.header-main__phone-number {
    font-size: 16px;
    line-height: 150%;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.header-main__phone-time {
    font-size: 13px;
    line-height: 130.769%;
    color: rgba(255, 255, 255, 0.60);
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger__line {
    width: 24px;
    height: 2px;
    background: #fffbf4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
    transform: translateY(0px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

/*-----------
Header END
------------*/

/*-----------
Header Blend Difference Start
------------*/

.header--difference {
    mix-blend-mode: difference;
    color: #ffffff; 
    z-index: 100;
}

.header--difference * {
    mix-blend-mode: difference;
}

.header--difference .header-main__logo img {
    mix-blend-mode: normal;
}

.header--difference .header-main__logo {
    mix-blend-mode: difference;
}

.header--difference .main-menu-link,
.header--difference .header-main__phone,
.header--difference .header-social svg {
    mix-blend-mode: difference;
}

.header--difference .header-social svg path {
    fill: #ffffff;
}

.head-info--mobile {
    display: none;
}

.close-menu-btn {
    display: none;
}

/*-----------
Header Blend Difference Black END
------------*/

.menu-item--mobile {
    display: none;
}

@media screen and (max-width: 1340px) {
    .main-menu-link {
        font-size: 12px;
    }
}

@media screen and (max-width: 1260px) {
    .header-main > .section-wrap {
        gap: 24px;
        padding-inline: 24px;
    }

    .header-nav__list {
        gap: 20px;
    }
}

@media screen and (max-width: 1080px) {
    .menu-item--mobile {
        display: list-item;
    }

    .close-menu-btn {
        position: absolute;
        top: 40px;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

    li.menu-item {
        padding: 40px 20px;
        width: 100%;
        border-top: 1px solid #e6e6e6;
        font-family: var(--second-family);
    }

    .main-menu-link {
        font-family: var(--second-family);
        font-size: 20px;
    }

    .head-info--mobile__soc {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .head-info--mobile {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        position: absolute;
        width: 100%;
        bottom: 40px;
    }

    .head-info--mobile .header-main__phone {
        display: flex;
        align-items: start;
        font-weight: 300;
    }

    .head-info--mobile .header-main__phone span {
        font-weight: 300;
    }

    .head-info--mobile .header-main__phone span.header-main__phone-time {
        font-size: 13px;
        line-height: 131%;
        color: grey;
    }

    ul li.menu-item:first-child {
        border-top: 0;
    }

    .header--difference *,
    .header--difference {
        mix-blend-mode: unset;
    }

    .header--difference .header-main__logo img {
        filter: invert(1) brightness(2);
        mix-blend-mode: normal;
    }

    .header--difference .burger__line {
        background: #000;
    }

    .mainpage .header--difference .header-main__logo img {
        filter: unset;
    }

    .mainpage .header--difference .burger__line {
        background: #fffbf4;
    }

    .header-main--right {
        display: none;
    }

    .header-main__logo img {
        width: 72px;
        height: 72px;
        object-fit: cover;
    }

    header {
        top: 0;
    }

    .header-main {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(0, 0, 0, 0.04);
        mix-blend-mode: unset;
    }

    .header-main.is-scrolled {
        backdrop-filter: blur(10px);
    }

    .header-main > .section-wrap {
        padding: 14px 20px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        position: relative;
    }

    .burger {
        display: inline-flex;
    }

    .header-main__logo {
        justify-self: center;
    }

    .header-nav--left {
        position: fixed;
        top: 0;
        left: 0;
        right: 20px;
        display: none;
        justify-self: stretch;
        padding: 64px 0 0 0;
        height: 100vh;
        background: #fff;
        z-index: 1;
    }

    header.opened-menu .header-nav--left {
        display: flex;
        align-items: start;
    }

    .header-nav--left .header-nav__list {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .header-nav--right {
        display: none;
    }

    .header-main__contacts {
        gap: 16px;
    }
}

@media screen and (max-width: 720px) {
    .header-main > .section-wrap {
        grid-template-columns: 42px 1fr;
    }

    .header-main--right {
        justify-self: end;
        gap: 12px;
    }

    .header-main__phone {
        display: none;
    }

    .header-main__logo-frame {
        width: 52px;
        height: 52px;
    }

    .header-main__logo-mark {
        width: 38px;
        height: 38px;
    }

    .header-main__logo-text {
        font-size: 14px;
    }
}

/*----------
Menu Lvl 2 START
-----------*/

.menu-item__arrow,
.menu-level-2 {
    display: none;
}

@media screen and (max-width: 1080px) {
    .menu-item--has-submenu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .menu-item__arrow {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        line-height: 0;
        cursor: pointer;
    }

    .menu-level-2 {
        position: fixed;
        top: 0;
        left: 0;
        right: 20px;
        z-index: 2;
        display: none;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        padding: 64px 0 40px;
        height: 100vh;
        background: #fff;
    }

    .menu-level-2.is-open {
        display: flex;
    }

    .menu-level-2__close {
        position: absolute;
        top: 40px;
        right: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-level-2__head {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        padding: 40px 20px;
        cursor: pointer;
    }

    .menu-level-2__back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        line-height: 0;
        cursor: pointer;
    }

    .menu-level-2__back svg {
        transform: rotate(180deg);
    }

    .menu-level-2__title {
        color: #000;
        font-family: var(--second-family);
        font-size: 15px;
        line-height: 140%;
        text-transform: lowercase;
    }

    .menu-level-2__list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .menu-level-2__item {
        border-top: 1px solid #e6e6e6;
    }

    .menu-level-2__item a {
        display: block;
        padding: 40px 20px;
        color: #000;
        font-family: var(--second-family);
        font-size: 20px;
        line-height: 135%;
    }

    .menu-level-2__slider {
        flex: 0 0 auto;
        margin-top: 80px;
        padding: 0 0 0 20px;
        width: 100%;
        overflow: hidden;
    }

    .menu-level-2__slider .swiper-slide {
        width: 184px;
        flex-shrink: 0;
        height: auto;
    }

    .menu-card {
        display: flex;
        flex-direction: column;
        gap: 20px;
        color: #000;
    }

    .menu-card__media {
        position: relative;
        display: block;
        height: 244px;
        padding: 12px;
        background: #f6f6f6;
        line-height: 0;
    }

    .menu-card__media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .menu-card__tag {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 4px 10px 6px;
        background: #000;
        color: #fff;
        font-size: 16px;
        line-height: 138%;
        font-weight: 300;
    }

    .menu-card__body {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .menu-card__title {
        font-family: var(--font-family-semi-bold);
        font-size: 15px;
        line-height: 140%;
    }

    .menu-card__author {
        color: rgba(0, 0, 0, 0.6);
        font-size: 13px;
        line-height: 131%;
        font-weight: 300;
    }
}

/*----------
Menu Lvl 2 END
-----------*/
