/* ========================================
   HEADER & NAVIGATION STYLES
   Extracted from includes/header.php
   ======================================== */

/* ========================================
   ПЕРЕМЕННЫЕ
   ======================================== */
:root {
    --accent-red: #ff003c;
    --accent-cyan: #00f2ff;
    --text-main: #ffffff;
    --text-dim: rgba(255,255,255,0.6);
    --glass-border: rgba(255,255,255,0.1);
    --header-h: 80px;
    --bg-dark: #050505;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-main);
    padding-top: var(--header-h);
}

/* ========================================
   ШАПКА САЙТА
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--header-h);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========================================
   ЛОГОТИП
   ======================================== */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Unbounded', sans-serif;
    position: relative;
    z-index: 10001;
}

.logo-wortex {
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-sound {
    color: var(--accent-red);
    font-weight: 300;
    font-size: 22px;
    font-style: italic;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    margin-left: 4px;
}

/* ========================================
   НАВИГАЦИЯ ДЕСКТОП
   ======================================== */
.main-nav {
    height: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

@media (min-width: 1300px) {
    .nav-list { gap: 8px; }
}

.has-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 8px 15px;
    position: relative;
    z-index: 2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-link .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-link.special-cyan {
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.05);
    margin-left: 10px;
}

.nav-link.special-cyan:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.4);
}

/* ========================================
   SPECIAL RED - БАЗА ГОЛОСОВ (primary CTA in nav)
   ======================================== */
.nav-link.special-gold {
    color: var(--accent-red);
    border: 1px dashed rgba(255, 0, 60, 0.4);
    background: rgba(255, 0, 60, 0.05);
    font-weight: 600;
    position: relative;
}

.nav-link.special-gold .gold-icon {
    font-size: 11px;
    opacity: 0.8;
}

.nav-link.special-gold:hover {
    background: rgba(255, 0, 60, 0.12);
    border-color: var(--accent-red);
    color: #ff4d70;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.25);
}

.nav-link.special-gold:hover .gold-icon {
    opacity: 1;
}

/* ========================================
   ВЫПАДАЮЩЕЕ МЕНЮ (ДЕСКТОП)
   ======================================== */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--accent-red);
    padding: 10px 0;
    list-style: none;
    display: none;
    opacity: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    z-index: 100;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}

.dropdown li a {
    padding: 12px 25px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    display: block;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.dropdown li a:hover {
    background: rgba(255, 0, 60, 0.1);
    color: #fff;
    padding-left: 30px;
}

.has-dropdown:hover > .nav-link .arrow {
    transform: rotate(180deg);
}

.has-dropdown:hover > .dropdown {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: all 0.3s ease;
}

/* ========================================
   КНОПКА ЗАКАЗА
   ======================================== */
.btn-header-cyber {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--accent-red);
    padding: 12px 22px;
    transition: all 0.4s ease;
    position: relative;
    background: linear-gradient(90deg, rgba(255,0,60,0.1), transparent);
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
}

.btn-header-cyber:hover {
    background: var(--accent-red);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.5);
}

/* ========================================
   MEGA-DROPDOWN (УСЛУГИ — 3 колонки, rich items)
   Linear/Stripe-style: icon + name + 1-line description
   ======================================== */
.dropdown.dropdown-mega {
    min-width: 820px;
    padding: 16px !important;
    gap: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(10px);
    grid-template-columns: 1fr 1fr 1fr;
}

/* высокая specificity — перебиваем .has-dropdown:hover > .dropdown { display:block } */
.has-mega:hover > .dropdown.dropdown-mega {
    display: grid;
    transform: translateX(-50%) translateY(0);
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
}

.mega-col-title {
    display: inline-flex;
    align-self: flex-start;
    margin: 4px 4px 12px;
    padding: 5px 12px;
    background: rgba(255, 0, 60, 0.12);
    border: 1px solid rgba(255, 0, 60, 0.35);
    border-radius: 3px;
    color: #ff4d70;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(255, 0, 60, 0.15);
}

/* card-item: icon + text */
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.mega-item:hover {
    background: rgba(255, 0, 60, 0.08);
}

.mega-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.mega-item:hover .mega-icon {
    background: rgba(255, 0, 60, 0.12);
    border-color: rgba(255, 0, 60, 0.3);
    color: var(--accent-red);
}

.mega-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mega-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.1px;
    text-transform: none;
}

.mega-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-item:hover .mega-name {
    color: var(--accent-red);
}

/* Special CTA-style item ("База голосов →") */
.mega-item-cta {
    margin-top: 0;
}

.mega-item-cta .mega-icon {
    background: rgba(255, 0, 60, 0.1);
    border-color: rgba(255, 0, 60, 0.3);
    color: var(--accent-red);
}

.mega-item-cta .mega-name {
    color: var(--accent-red);
}

.mega-badge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    background: var(--accent-red);
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    vertical-align: middle;
    border-radius: 2px;
}

/* ========================================
   БУРГЕР
   ======================================== */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 7px;
    z-index: 10001;
    position: relative;
}

.mobile-nav-toggle .bar {
    width: 26px;
    height: 2px;
    background-color: #fff;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.mobile-contacts {
    display: none;
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ
   ======================================== */
@media (max-width: 1200px) {
    :root {
        --header-h: 70px;
    }

    .mobile-nav-toggle { display: flex; }
    .header-action { display: none; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        transition: right 0.6s ease;
        z-index: 9999;
        padding: 80px 0 20px 0;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    .main-nav.mobile-active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        height: auto;
        padding: 0;
        margin: 0;
        gap: 0;
        align-items: stretch;
        flex: 1;
        width: 100%;
    }

    .has-dropdown {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .nav-link {
        font-size: 16px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 18px 25px;
        color: #fff;
        letter-spacing: 1.5px;
        font-family: 'Unbounded', sans-serif;
        font-weight: 400;
        box-sizing: border-box;
    }

    .nav-link .arrow {
        font-size: 10px;
        color: var(--accent-red);
        transition: transform 0.4s ease;
    }

    .has-dropdown.is-open > .nav-link .arrow {
        transform: rotate(180deg);
    }

    .dropdown {
        position: static !important;
        display: none;
        background: rgba(0, 0, 0, 0.5) !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

    .has-dropdown.is-open > .dropdown {
        display: block;
        padding: 10px 0 !important;
    }

    .dropdown li {
        list-style: none;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .dropdown li a {
        padding: 14px 25px 14px 45px !important;
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        background: transparent !important;
        border-left: 2px solid rgba(255, 0, 60, 0.3) !important;
        font-family: 'JetBrains Mono', monospace !important;
        display: block !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        transition: all 0.3s ease !important;
    }

    .dropdown li a:hover,
    .dropdown li a:active {
        background: rgba(255, 0, 60, 0.1) !important;
        border-left: 2px solid var(--accent-red) !important;
        color: #fff !important;
        padding-left: 50px !important;
    }

    .nav-list > li:not(.has-dropdown) {
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    /* Mega-dropdown на mobile — стопка карточек */
    .dropdown.dropdown-mega {
        grid-template-columns: 1fr !important;
        min-width: auto !important;
        padding: 0 !important;
        transform: none !important;
        gap: 0 !important;
    }
    .mega-col {
        padding: 0 !important;
        gap: 0 !important;
    }
    .mega-col + .mega-col {
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .mega-col-title {
        padding: 14px 25px 6px !important;
        font-size: 10px !important;
        opacity: 0.6;
    }
    .mega-item {
        padding: 12px 25px !important;
        border-radius: 0 !important;
        border-left: 2px solid rgba(255, 0, 60, 0.3) !important;
        margin: 0 !important;
    }
    .mega-item:hover {
        background: rgba(255, 0, 60, 0.1) !important;
        border-left-color: var(--accent-red) !important;
    }
    .mega-item-cta {
        margin-top: 0 !important;
        padding-top: 12px !important;
        border-top: 1px solid rgba(255, 0, 60, 0.15) !important;
    }

    .nav-link.special-cyan {
        margin: 15px 25px;
        text-align: center;
        justify-content: center;
        width: calc(100% - 50px);
        padding: 16px 25px;
        font-size: 13px;
    }

    .nav-link.special-gold {
        background: rgba(255, 0, 60, 0.05);
        border: none;
        border-left: 3px solid var(--accent-red);
        border-radius: 0;
        margin: 0;
        padding: 18px 25px;
        justify-content: flex-start;
        gap: 8px;
    }

    .nav-link.special-gold .gold-icon {
        order: -1;
    }

    .mobile-contacts {
        display: block;
        padding: 25px;
        background: rgba(255,255,255,0.02);
        border-top: 1px solid var(--glass-border);
        margin-top: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-contacts-title {
        font-family: 'Unbounded', sans-serif;
        font-size: 11px;
        color: var(--accent-red);
        letter-spacing: 2px;
        margin-bottom: 15px;
        text-transform: uppercase;
    }

    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        font-size: 12px;
        color: var(--text-dim);
        text-decoration: none;
        font-family: 'JetBrains Mono', monospace;
        transition: color 0.3s ease;
    }

    .mobile-contact-item:hover {
        color: #fff;
    }

    .mobile-contact-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-red);
        font-size: 14px;
    }
}

.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}
