/* Шапка сайта */
header {
    position: sticky;
    top: 0;
    z-index: 300;
    background-color: black;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 15px 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header .logo {
    display: flex;
    align-items: center;
    width: 190px;
    height: 65px;
}

header .logo svg {
    width: 100%;
    height: 100%;
    fill: white;
    transform: scale(1.4);
}

header .navigation {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 7px;
}

header .navigation .nav-item {
    margin: 0 15px;
}

header .navigation .nav-item:first-child {
    margin-left: 0;
}

header .navigation .nav-item:last-child {
    margin-right: 0;
}

header .navigation .nav-trigger {
    color: white;
    font-size: 18px;
    font-weight: 550;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

header .navigation .nav-trigger:hover,
header .navigation .nav-trigger.active {
    color: #00BBF4;
}

/* Выпадающая панель категорий */
.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0a0a0a;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 35px 100px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.nav-dropdown-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-links {
    display: flex;
    flex-direction: column;
    min-width: 350px;
}

.nav-dropdown-link {
    color: white;
    font-size: 16px;
    font-weight: 550;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 2px solid #8D8D8D;
    transition: all 0.25s ease;
}

.nav-dropdown-link:hover {
    color: #00BBF4;
    border-bottom: 2px solid #00BBF4;
}

.nav-dropdown-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-dropdown-image img {
    max-height: 400px;
    width: 100%;
    max-width: 780px;
    object-fit: cover;
    border-radius: 6px;
}

header .buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-top: 7px;
}

header .buttons .block {
    display: flex;
    cursor: pointer;
    transition: color 0.3s ease;
}

header .buttons .block span {
    color: #00BBF4;
    font-size: 16px;
    font-weight: 550;
    margin-left: 5px;
    position: relative;
}

header .buttons .block:hover span {
    color: #009ed1;
}

header .buttons .block:hover svg g path {
    fill: #009ed1;
}

header .buttons .bar {
    width: 1.2px;
    height: 15px;
    background-color: #00BBF4;
    margin: 0 12px;
}

/* Выпадающий список языка */
header .language-dropdown {
    position: relative;
}

header .language-dropdown .language-current {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

header .language-dropdown .language-current .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

header .language-dropdown.active .arrow {
    transform: rotate(180deg);
}

header .language-dropdown .language-menu {
    position: absolute;
    top: 38px;
    right: -20px;
    background: #050505;
    border-radius: 4px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

header .language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header .language-dropdown .language-item {
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

header .language-dropdown .language-item:first-child {
    padding-top: 5px;
}

header .language-dropdown .language-item:last-child {
    padding-bottom: 5px;
}

header .language-dropdown .language-item:hover {
    color: #00BBF4;
}

header .language-dropdown .language-item.active {
    color: #00BBF4;
}

/* ===== Burger Button ===== */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    width: 36px;
    height: 36px;
}

.burger-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 500;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu top bar */
.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    width: 150px;
    height: 52px;
}

.mobile-logo svg {
    width: 100%;
    height: 100%;
    fill: white;
    transform: scale(1.4);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

/* Mobile navigation */
.mobile-nav {
    flex: 1;
    padding: 8px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    font-weight: 550;
    font-family: 'MyriadPro', sans-serif;
    text-align: left;
    transition: color 0.25s ease;
}

.mobile-nav-trigger svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-nav-item.open .mobile-nav-trigger svg {
    transform: rotate(180deg);
}

.mobile-nav-trigger:hover {
    color: #00BBF4;
}

.mobile-nav-item.open .mobile-nav-trigger {
    color: #00BBF4;
}

.mobile-nav-item.open .mobile-nav-trigger svg path {
    stroke: #00BBF4;
}

.mobile-nav-trigger-link {
    display: block;
    padding: 18px 25px;
    color: white;
    font-size: 18px;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-nav-trigger-link:hover {
    color: #00BBF4;
}

.mobile-nav-dropdown {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    background-color: #0a0a0a;
}

.mobile-nav-item.open .mobile-nav-dropdown {
    max-height: 600px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 40px;
    color: #cccccc;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #00BBF4;
}

.mobile-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00BBF4;
    text-decoration: none;
    font-size: 16px;
    font-weight: 550;
    transition: color 0.25s ease;
}

.mobile-cart-btn:hover {
    color: #009ed1;
}

.mobile-cart-btn span {
    color: #00BBF4;
    transition: color 0.25s ease;
}

.mobile-cart-btn:hover span {
    color: #009ed1;
}

.mobile-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-lang-item {
    color: #00BBF4;
    font-size: 16px;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-lang-item.active {
    color: white;
}

.mobile-lang-item:hover {
    color: #009ed1;
}

.mobile-lang-divider {
    color: #00BBF4;
    font-size: 16px;
}

@media (min-width: 1750px) {
    header,
    .nav-dropdown-panel {
        padding-left: 160px;
        padding-right: 160px;
    }
}

@media (min-width: 1537px) and (max-width: 1749.98px) {
    header,
    .nav-dropdown-panel {
        padding-left: 120px;
        padding-right: 120px;
    }
}


@media (max-width: 1440px) {
    header {
        padding: 15px 100px;
    }

    .nav-dropdown-panel {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media (max-width: 1280px) {
    header {
        padding: 15px 60px;
    }

    .nav-dropdown-panel {
        padding-left: 60px;
        padding-right: 60px;
    }

    header .navigation .nav-item {
        margin: 0 12px;
    }

    header .navigation .nav-trigger {
        font-size: 17px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 15px 25px;
    }

    header .navigation,
    header .buttons {
        display: none;
    }

    .burger-btn {
        display: flex;
    }
}

@media (max-width: 600px) {
    header {
        padding: 14px 20px;
    }

    header .logo {
        width: 165px;
        height: 56px;
    }
}

@media (max-width: 430px) {
    header {
        padding: 12px 16px;
    }

    header .logo {
        width: 150px;
        height: 50px;
    }

    .mobile-menu-top,
    .mobile-nav-trigger,
    .mobile-nav-trigger-link {
        padding-left: 18px;
        padding-right: 18px;
    }

    .mobile-menu-footer {
        padding: 18px;
    }
}

@media (max-width: 375px) {
    header .logo {
        width: 140px;
        height: 48px;
    }
}

@media (max-width: 360px) {
    header {
        padding: 12px 14px;
    }
}
