.header {
width: 100%;
display: flex;
justify-content: center;
}

.header>.container {
    padding: 18px 25px;
    min-width: 1440px;
    width: 1440px;
    display: flex;
    justify-content: space-between;
}
.logo-box{
    display: flex;
    gap: 4px;
    align-items: center;
}


.header__brand {
    display: flex;
 
    align-items: center;
}

.header__logo {
    width: 56px;
        height: 55px;
}

.header__logo .custom-logo{
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.header__title {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.site-title {
    font-family: var(--font-family);
        font-weight: 700;
        font-size: 36px;
        color: #1e2a2e;
        text-decoration: none;
        line-height: 123%;
   
}

.site-tagline {font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    color: #666;
text-decoration: none;
line-height: 123%;

}

.header a,
.header a:hover,
.header__brand,
.header__brand:hover,
.header__title a,
.custom-logo-link {
    text-decoration: none !important;
    color: inherit !important;
}


.header__nav{
    display:flex;
    align-items:center;
}
.header-menu {
    display: flex;
    gap: 25px;
    list-style: none !important;
}

.menu-item{
    font-family: var(--font-family);
        font-weight: 500;
        font-size: 20px;
        color: #1e2a2e;
}
.header-menu li.current-menu-item>a {
font-family: var(--font-family);
    font-weight: 800;
    font-size: 20px;
    color: #1e2a2e;
}


/* ====== BURGER BUTTON ====== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    justify-content: center;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #1e2a2e;
    border-radius: 3px;
}

/* ====== TABLET ADAPTATION (до 1024px) ====== */
@media (max-width: 1440px) {

.header>.container {
max-width: 1440px;
        min-width: unset;
        width:100%;
   
    }


    .site-title {
        font-size: 28px;
    }

    .menu-item {
        font-size: 18px;
    }

    .header-menu {
        gap: 18px;
    }
}

/* ====== MOBILE ADAPTATION (до 768px) ====== */
@media (max-width: 768px) {

    .header>.container {
        padding: 14px 18px;
    }

    .site-title {
        font-size: 22px;
    }

    .header__logo {
        width: 42px;
        height: 42px;
    }

    /* Показуємо бургер */
    .burger {
        display: flex;
    }

    /* Ховаємо десктопне меню */
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    /* коли меню активне (додамо клас через JS) */
    .header__nav.active {
        right: 0;
    }

    .header-menu {
        flex-direction: column;
        gap: 15px;
    }

    .menu-item a {
        font-size: 20px;
    }
}


/* анімація бургер-кнопки */
.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* блокуємо скрол, коли меню відкрите */
.no-scroll {
    overflow: hidden;
}