/* Общие стили для страниц брендов */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Шапка для страниц брендов */
.main-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffd700;
}

/* Основной контент */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Подвал */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Side Navigation Panel - Glassmorphism Effect */
.side-nav-panel {
    position: fixed !important;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 14px;
    
    /* iOS/Telegram Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Круглая форма */
    border-radius: 50px;
    
    /* Стеклянная рамка */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.side-nav-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
    animation: slideInFromRight 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.side-nav-panel__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav-panel__item:hover {
    transform: scale(1.15);
}

/* Точки навигации - идеальные круги */
.side-nav-panel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.side-nav-panel__item:hover .side-nav-panel__dot {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 16px rgba(255, 255, 255, 0.5),
        0 2px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Активная точка - яркая и большая */
.side-nav-panel__item.is-active .side-nav-panel__dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

/* Tooltip для навигации - Glassmorphism */
.side-nav-panel__tooltip {
    position: absolute;
    right: calc(100% + 20px);
    white-space: nowrap;
    padding: 10px 18px;
    
    /* iOS/Telegram Glassmorphism */
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    
    /* Круглые края */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav-panel__item:hover .side-nav-panel__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Стрелка tooltip */
.side-nav-panel__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.75);
}

/* Progress indicator - стеклянная линия прогресса */
.side-nav-panel__progress {
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 2px;
    overflow: hidden;
}

.side-nav-panel__progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    border-radius: 2px;
    transition: height 0.15s ease-out;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 4px rgba(255, 255, 255, 0.6);
}

/* Адаптивность боковой навигации */
@media (max-width: 1200px) {
    .side-nav-panel {
        right: 20px;
    }
}

@media (max-width: 900px) {
    .side-nav-panel {
        display: none;
    }
}

/* Accessibility */
.side-nav-panel__item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.side-nav-panel__item:focus .side-nav-panel__dot {
    background: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
    .side-nav-panel,
    .side-nav-panel__item,
    .side-nav-panel__dot,
    .side-nav-panel__tooltip,
    .side-nav-panel__progress-fill {
        transition: none !important;
    }
}