:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --glass-effect: rgba(255, 255, 255, 0.1);
    --accent: #34d399;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1f2937;
}

html {
    scroll-padding-top: 70px;
}

.navbar {
    background: var(--primary-gradient);
    backdrop-filter: blur(12px);
    padding: 0.8rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: none;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 40px;
    animation: float 4s ease-in-out infinite;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>');
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 15px;
    padding: 8px 15px !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Стили для бейджа КП */
.kp-badge {
    font-size: 0.6rem;
    position: relative;
    top: -8px;
    left: -5px;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
        backdrop-filter: blur(8px);
    }
    
    .navbar-brand {
        font-size: 1.2rem;
        padding-left: 28px;
    }
    
    .navbar-brand::before {
        width: 20px;
        height: 20px;
        background-size: 18px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px !important;
        margin: 0 5px;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .nav-link.active::after {
        left: 10px;
        width: calc(100% - 20px);
    }
    
    /* Адаптивные стили для бейджа */
    .kp-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
        top: -7px;
        left: -4px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem;
        padding-left: 24px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 5px 8px !important;
    }
    
    .kp-badge {
        font-size: 0.5rem;
        padding: 1px 4px;
        top: -6px;
        left: -3px;
    }
}

@media (pointer: coarse) {
    .navbar-brand,
    .nav-link::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Стили для контактной информации в шапке */
.contact-info {
    margin: 0 15px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-link, .email-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.phone-link:hover, .email-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.phone-link i, .email-link i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Стили для социальных иконок в шапке */
.rosa-header-social {
    display: flex;
    gap: 0.8rem;
    margin-left: 10px;
}

.rosa-header-social a {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    text-decoration: none;
}

.rosa-header-social a::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(
        from var(--angle),
        var(--gradient-colors)
    );
    filter: blur(6px);
    opacity: 0.6;
    animation: hologram 4s linear infinite;
    z-index: -1;
}

.rosa-header-social a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,0,0,0.2));
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.rosa-header-social a i {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    color: white;
    transition: all 0.3s ease;
}

.rosa-header-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.rosa-header-social a:hover i {
    transform: scale(1.2);
    filter: brightness(1.3);
}

/* Индивидуальные цвета для социальных иконок */
.rosa-header-social a[aria-label="Instagram"] {
    --angle: 45deg;
    --gradient-colors: #833ab4 0%, #fd1d1d 33%, #fcb045 66%, #833ab4 100%;
}

.rosa-header-social a[aria-label="Telegram"] {
    --angle: 90deg;
    --gradient-colors: #0088cc 0%, #00a8e8 50%, #00c3f3 100%;
}

.rosa-header-social a[aria-label="WhatsApp"] {
    --angle: 135deg;
    --gradient-colors: #25d366 0%, #128c7e 100%;
}

.rosa-header-social a[aria-label="YouTube"] {
    --angle: 180deg;
    --gradient-colors: #ff0000 0%, #cc0000 100%;
}

/* Анимации для социальных иконок */
@keyframes hologram {
    0% { filter: hue-rotate(0deg) blur(6px); }
    100% { filter: hue-rotate(360deg) blur(6px); }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .contact-info {
        margin: 10px 0;
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    .contact-details {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .social-icons {
        order: 3;
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .rosa-header-social {
        margin-left: 0;
        gap: 1rem;
    }
    
    .rosa-header-social a {
        width: 45px;
        height: 45px;
    }
    
    .rosa-header-social a i {
        font-size: 1.4rem;
    }
    
    .navbar-nav {
        align-items: flex-start !important;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .phone-link, .email-link {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .rosa-header-social {
        gap: 0.6rem;
    }
    
    .rosa-header-social a {
        width: 42px;
        height: 42px;
    }
    
    .rosa-header-social a i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-details {
        gap: 5px;
    }
    
    .phone-link, .email-link {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .rosa-header-social {
        gap: 0.5rem;
    }
    
    .rosa-header-social a {
        width: 38px;
        height: 38px;
    }
    
    .rosa-header-social a i {
        font-size: 1.2rem;
    }
}

/* CSS-переменные для анимации градиента */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}