/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    padding-top: 80px; /* Отступ для верхнего баннера */
    padding-bottom: 60px; /* Отступ для нижнего баннера */
}

/* ===== ВЕРХНИЙ БАННЕР ===== */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-banner-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.top-banner-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

/* ===== НАВИГАЦИЯ ДЛЯ ПК ===== */
.top-banner-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.7;
}

/* ===== БУРГЕР-МЕНЮ ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu:hover span {
    background-color: rgba(255, 255, 255, 0.7);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #8B5CF6 0%, #7C3AED 100%);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    z-index: 999;
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.active {
    display: flex;
    max-height: 400px;
}

.mobile-menu-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* ===== НИЖНИЙ БАННЕР ===== */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #8B5CF6 100%);
    box-shadow: 0 -4px 15px rgba(139, 92, 246, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    font-size: 14px;
    padding-left: 20px;
    gap: 15px;
}

.bottom-banner-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.bottom-banner-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.bottom-banner-link:hover {
    opacity: 0.8;
}

.bottom-banner-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    cursor: pointer;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ ===== */
@media screen and (max-width: 1024px) {
    .top-banner-nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .top-banner-title {
        font-size: 22px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .top-banner {
        height: 70px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .mobile-menu {
        top: 70px;
    }
    
    .top-banner-logo {
        height: 40px;
        width: 40px;
    }
    
    .top-banner-title {
        font-size: 18px;
    }
}
