@font-face {
    font-family: "TT-Ricordi-Allegria-Trial";
    src: url(/fonts/TT-Ricordi-Allegria-Trial.woff2) format("woff2"),
         url(/fonts/TT-Ricordi-Allegria-Trial.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Century Gothic Paneuropean";
    src: url(/fonts/Century-Gothic-Paneuropean.woff2) format("woff2"),
         url(/fonts/Century-Gothic-Paneuropean.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== HEADER ===== */

 .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background-color: #353432;
}


.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

/* ЛОГОТИП */

   .logo {
    display: block;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

.logo img {
    display: block;
    width: clamp(200px, 12vw, 220px);
    height: auto;
}

/* НАВИГАЦИЯ */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
    margin-right: auto;
}

.nav__link {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
    color: #d8d2ca;
    transition: 0.3s ease;
}

.nav__link:hover {
    color: #ffffff;
}

.nav__dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav__submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    padding: 12px;
    background: #353432;
    border: 1px solid rgba(243, 238, 230, 0.16);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.2s ease;
    z-index: 1005;
}

.nav__dropdown:hover .nav__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav__submenu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav__submenu-link {
    display: block;
    padding: 10px 12px;
    color: #f3eee6;
    font-size: 17px;
    white-space: nowrap;
}

/* КНОПКА */
.header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    height: 38px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;
    font-size: 20px;
    font-weight: 300;
    color: #f3eee6;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.header__btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.05);
}

.header__btn--mobile {
    display: none;
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background-color: #f3eee6;
    transition: 0.3s ease;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Адаптив шапки и первого экрана, ноутбуки */
@media (max-width: 1440px) {

    .logo {
        font-size: 34px;
    }

    .nav {
        gap: 28px;
    }

    .nav__link {
        font-size: 17px;
    }

    .header__btn {
        min-width: 116px;
        height: 36px;
        font-size: 16px;
        padding: 0 18px;
    }
}

/* Адаптив шапки и первого экрана, планшеты */
@media (max-width: 1024px) {

    .header {
        padding: 12px 0;
    }

    .logo {
        font-size: 30px;
    }

    .nav {
        gap: 18px;
    }

    .nav__link {
        font-size: 14px;
    }

    .header__btn {
        min-width: 102px;
        height: 34px;
        font-size: 14px;
        padding: 0 16px;
    }
}

/* Адаптив шапки и первого экрана, мобильные */
@media (max-width: 767px) {

    .header {
        padding: 10px 0;
    }

    .header__container {
        gap: 16px;
    }

    .logo {
        font-size: 28px;
    }

    .header__btn--desktop {
        display: none;
    }

    .burger {
        display: inline-flex;
        margin-left: auto;
    }

    .nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        margin: 0;
        padding: 16px;
        border: 1px solid rgba(243, 238, 230, 0.16);
        border-radius: 12px;
        background-color: rgba(53, 52, 50, 0.98);
        backdrop-filter: blur(8px);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        z-index: 1001;
    }

    .nav.is-open {
        display: flex;
    }

    .nav__link {
        font-size: 16px;
    }
    
    .nav__dropdown {
        width: 100%;
        display: block;
    }

    .nav__submenu {
        position: static;
        display: none;
        min-width: 0;
        padding: 8px 0 0 14px;
        border: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .nav__dropdown:hover .nav__submenu {
        display: block;
    }

    .header__btn--mobile {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        font-size: 16px;
        height: 42px;
    }
}

/* Адаптив шапки и первого экрана, мобильные мин. */
@media (max-width: 375px) {


    .header {
        padding: 10px 0;
    }

    .header__container {
        gap: 16px;
    }

    .logo {
        font-size: 28px;
    }

    .header__btn--desktop {
        display: none;
    }

    .burger {
        display: inline-flex;
        margin-left: auto;
    }

    .nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        margin: 0;
        padding: 16px;
        border: 1px solid rgba(243, 238, 230, 0.16);
        border-radius: 12px;
        background-color: rgba(53, 52, 50, 0.98);
        backdrop-filter: blur(8px);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        z-index: 1001;
    }

    .nav.is-open {
        display: flex;
    }

    .nav__link {
        font-size: 16px;
    }

    .header__btn--mobile {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        font-size: 16px;
        height: 42px;
    }
}
