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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.header-container {
    max-width: 1200px;
    height: 80px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ───── Logo ───── */

.header-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.header-logo img {
    height: 40px;
    display: block;
}

/* ───── Desktop nav ───── */

.header-nav--desktop {
    display: flex;
    gap: 40px;
}

.header-nav--desktop a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav--desktop a:hover,
.header-nav--desktop a:focus-visible {
    color: #a6ce39;
}

/* ───── Burger ───── */

.header-burger {
    display: none;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header-burger span {
    display: block;
    height: 3px;
    background: #111;
    margin-bottom: 5px;
}

.header-burger span:last-child {
    margin-bottom: 0;
}

/* ───── Overlay ───── */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    z-index: 1500;
}

.mobile-overlay.active {
    display: block;
}

/* ───── Drawer ───── */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background: #0b0b0b;
    color: #fff;
    z-index: 2000;
    padding: 40px 20px;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    align-self: flex-end;
    cursor: pointer;
    line-height: 1;
}

/* ───── Mobile nav ───── */

.mobile-nav {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

/* ───── Mobile text ───── */

.mobile-text {
    margin-top: auto;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

/* ───── Mobile socials (4 icons) ───── */

.mobile-socials {
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.mobile-socials a.social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;

    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: center;

    display: block;
}

/* ABSOLUTE PATHS — БЕЗОШИБОЧНО */

.mobile-socials a.vk {
    background-image: url('/wp-content/themes/amp-theme/assets/images/social/vk.svg');
}

.mobile-socials a.tg {
    background-image: url('/wp-content/themes/amp-theme/assets/images/social/tg.svg');
}

.mobile-socials a.ok {
    background-image: url('/wp-content/themes/amp-theme/assets/images/social/ok.svg');
}

.mobile-socials a.dzen {
    background-image: url('/wp-content/themes/amp-theme/assets/images/social/dzen.svg');
}

/* ───── Responsive ───── */

@media (max-width: 768px) {

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

    .header-burger {
        display: block;
    }

    .mobile-drawer {
        width: 70%;
        right: -70%;
    }
}

@media (max-width: 480px) {

    .mobile-drawer {
        width: 100%;
        right: -100%;
    }

    .mobile-socials {
        gap: 14px;
    }

    .mobile-socials a.social {
        width: 42px;
        height: 42px;
        background-size: 20px 20px;
    }
}