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

.header {
    width: 100%;
    position: relative;
    z-index: 100;
    background: #111214;
    font-family: "Manrope", Arial, sans-serif;
}

.header__container {
    width: 100%;
    max-width: 1220px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    box-sizing: border-box;
}


/* =========================
   ЛОГОТИП
========================= */

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
}


/* Иконка логотипа */

.header__logo-icon {
    width: 100px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    box-sizing: border-box;
}


/* Сам PNG логотип */

.header__logo-icon img {
    display: block;

    
    height: 100%;

    object-fit: contain;

    user-select: none;
    pointer-events: none;
}


/* Текст логотипа */

.header__logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header__logo-name {
    color: #f3f3f3;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 18px;
    line-height: 1.15;

    font-weight: 400;

    white-space: nowrap;
}

.header__logo-description {
    margin-top: 3px;

    color: #9c9c9c;

    font-size: 9px;
    line-height: 1.2;

    font-weight: 400;

    white-space: nowrap;
}


/* =========================
   НАВИГАЦИЯ
========================= */

.header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 34px;
}

.header__link {
    position: relative;

    color: #d3d3d3;

    font-size: 13px;
    line-height: 1;

    font-weight: 400;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.header__link:hover {
    color: #c18a5c;
}


/* Нижняя линия при наведении */

.header__link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: #a9774e;

    transition: width 0.25s ease;
}

.header__link:hover::after {
    width: 100%;
}


/* =========================
   КНОПКА
========================= */

.header__button {
    min-height: 39px;

    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(176, 127, 85, 0.65);
    border-radius: 7px;

    background:
        linear-gradient(
            180deg,
            rgba(145, 101, 66, 0.8) 0%,
            rgba(103, 70, 46, 0.85) 100%
        );

    color: #f5f0eb;

    font-size: 11px;
    line-height: 1;

    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 4px 14px rgba(0,0,0,0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.header__button:hover {
    background:
        linear-gradient(
            180deg,
            #a7744d 0%,
            #795035 100%
        );

    border-color: #b98155;

    transform: translateY(-1px);
}


/* =========================
   БУРГЕР
========================= */

.header__burger {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.header__burger span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 6px 0;

    background: #e5e5e5;

    transition: 0.25s ease;
}


/* =========================
   АДАПТИВ
========================= */

@media (max-width: 900px) {

    .header__container {
        min-height: 72px;
    }

    .header__nav {
        position: absolute;

        top: 72px;
        left: 0;

        width: 100%;

        padding: 25px 24px 30px;

        display: none;

        flex-direction: column;
        align-items: flex-start;

        gap: 22px;

        background: #111214;

        box-sizing: border-box;

        border-top: 1px solid rgba(255,255,255,0.06);

        box-shadow:
            0 10px 25px rgba(0,0,0,0.25);
    }

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

    .header__link {
        width: 100%;

        font-size: 16px;
    }

    .header__button {
        width: 100%;

        min-height: 48px;

        margin-top: 3px;

        font-size: 13px;

        box-sizing: border-box;
    }

    .header__burger {
        display: block;
    }
}


/* =========================
   МОБИЛЬНЫЕ
========================= */

@media (max-width: 480px) {

    .header__container {
        min-height: 68px;

        padding-left: 16px;
        padding-right: 16px;
    }

    .header__nav {
        top: 68px;

        padding-left: 16px;
        padding-right: 16px;
    }

    .header__logo {
        gap: 8px;
    }

    .header__logo-icon {
        width: 40px;
        height: 45px;

        flex: 0 0 40px;
    }

    .header__logo-name {
        font-size: 16px;
    }

    .header__logo-description {
        margin-top: 2px;

        font-size: 8px;
    }
}


/* =========================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
========================= */

@media (max-width: 360px) {

    .header__container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header__logo {
        gap: 7px;
    }

    .header__logo-icon {
        width: 36px;
        height: 41px;

        flex: 0 0 36px;
    }

    .header__logo-name {
        font-size: 14px;
    }

    .header__logo-description {
        font-size: 7px;
    }

    .header__burger {
        width: 38px;
        height: 38px;
    }
}