/* header.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0f1a2e;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    background: linear-gradient(135deg, #1c2a3a, #0f1a2e);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    color: #ff66cc;
    text-shadow: 0 0 12px rgba(255, 102, 204, 0.7);
}

/* Мобильное меню - три полоски */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav {
    display: flex;
    align-items: center;
    position: relative;
}

nav a {
    margin: 0 15px;
    color: #ddd;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #ffcc00;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
}

nav a:hover::after {
    width: 100%;
}

.provider-dropdown-container {
    position: relative;
    margin: 0 15px;
}

.provider-button {
    background: linear-gradient(45deg, #ffcc00, #ff66cc);
    border: 2px solid #ffdd33;
    padding: 8px 16px;
    color: #1c2a3a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(255, 204, 0, 0.4);
    transition: all 0.3s ease;
}

.provider-button:hover {
    background: linear-gradient(45deg, #ffdd33, #ff99cc);
    border-color: #ffaa66;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 204, 0, 0.5);
}

.provider-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(28, 42, 58, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1001;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
}

.provider-dropdown.active {
    display: block;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #bbb;
    transition: none !important;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
}

.provider-item:hover {
    color: #ff66cc;
    background: rgba(0, 204, 102, 0.1);
}

.provider-item img.provider-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.provider-item:hover img.provider-icon {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.show-all {
    display: block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(45deg, #00cc66, #ff66cc);
    border: 2px solid #33ffdd;
    color: #1c2a3a;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: none !important;
    cursor: pointer;
    z-index: 1002;
}

.show-all:hover {
    background: linear-gradient(45deg, #33ffdd, #ff99cc);
    border-color: #66ffaa;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 204, 102, 0.5);
}

.telegram-button {
    background: linear-gradient(45deg, #0088cc, #00cc88);
    border: 2px solid #33ccff;
    padding: 8px 16px;
    color: #1c2a3a;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    margin: 0 15px;
    box-shadow: 0 3px 8px rgba(0, 136, 204, 0.4);
}

.telegram-button:hover {
    background: linear-gradient(45deg, #33ccff, #00aa66);
    border-color: #66ddff;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 136, 204, 0.5);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    body {
        padding-top: 55px;
    }
    
    .logo {
        margin-bottom: 15px;
        font-size: 22px;
        text-align: center;
        width: auto;
        display: inline-block;
        padding: 5px 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        text-align: center;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    nav.active {
        display: flex;
    }
    
    nav a, .provider-dropdown-container, .telegram-button {
        margin: 10px 0;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav a:last-child, .provider-dropdown-container:last-child, .telegram-button:last-child {
        border-bottom: none;
    }
    
    nav a::after {
        display: none;
    }
    
    .provider-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        padding: 10px;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .provider-button, .telegram-button {
        width: 100%;
        margin: 10px 0;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
        padding: 5px 10px;
    }
    
    nav a {
        font-size: 15px;
    }
    
    .provider-button, .telegram-button {
        font-size: 14px;
        padding: 10px 12px;
    }
}