:root {
    /* Синяя гамма - только синий и белый! */
    --blue-deep: #1a4bbf;        /* Глубокий синий для фона */
    --blue-bright: #2d6ae3;       /* Яркий синий для акцентов */
    --blue-light: #e6f0ff;        /* Очень светлый синий для фона секций */
    --blue-soft: #d9e6ff;         /* Мягкий синий для карточек */
    
    /* Белый и прозрачный */
    --white: #ffffff;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-40: rgba(255, 255, 255, 0.4);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-10: rgba(255, 255, 255, 0.1);
    
    /* Текст */
    --text-dark: #1e2b3c;         /* Темно-синий для текста на белом */
    --text-light: #4a5f73;        /* Серо-синий для второстепенного текста */
    
    /* Эффекты */
    --blur-10: blur(10px);
    --blur-15: blur(15px);
    --blur-20: blur(20px);
    --border-glass: 1px solid rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px rgba(26, 75, 191, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Убираем ВСЕ черные фоны */
.bg-dark {
    background: var(--blue-deep) !important;  /* Заменяем черный на синий */
}

/* ===== СИНИЙ ФОН ===== */
.bg-blue, .bg-dark, [class*="bg-dark"] {
    background: var(--blue-deep) !important;
    color: var(--white);
}

.bg-blue .text-muted, 
.bg-dark .text-muted {
    color: var(--white-80) !important;
}

/* ===== СВЕТЛЫЙ ФОН ===== */
.bg-light, section:not(.bg-dark):not(.hero-section) {
    background: var(--blue-light);
    color: var(--text-dark);
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    background: rgba(26, 75, 191, 0.7) !important;  /* полупрозрачный */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    padding: 1rem 0;
    border-bottom: 1px solid var(--white-20);
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--white);
    margin-right: 8px;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--white-20);
}

.navbar-toggler {
    background: var(--white-20) !important;
    border: 1px solid var(--white-30) !important;
    backdrop-filter: var(--blur-10);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ===== КНОПКИ ===== */
.btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: var(--blur-10);
}

/* Синяя кнопка (на любом фоне) */
.btn-primary {
    background: var(--blue-bright);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(45, 106, 227, 0.3);
}

.btn-primary:hover {
    background: #1a4bbf;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 106, 227, 0.4);
}

/* Стеклянная кнопка (универсальная) */
.btn-glass {
    background: var(--white-20);
    backdrop-filter: var(--blur-10);
    color: var(--white);
    border: 1px solid var(--white-30);
}

.btn-glass:hover {
    background: var(--white-30);
    color: var(--white);
    transform: translateY(-2px);
}

/* На белом фоне кнопка glass выглядит иначе */
.bg-light .btn-glass,
section:not(.bg-dark) .btn-glass {
    background: var(--blue-soft);
    color: var(--blue-deep);
    border: 1px solid rgba(26, 75, 191, 0.2);
}

.bg-light .btn-glass:hover,
section:not(.bg-dark) .btn-glass:hover {
    background: #c9d9ff;
    color: var(--blue-deep);
}

/* Кнопка outline */
.btn-outline-light {
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white) !important;
    color: var(--blue-deep) !important;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero-section {
    background: var(--blue-deep);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-section .glass-card {
    background: var(--white-20);
    backdrop-filter: var(--blur-15);
    border: 1px solid var(--white-30);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.gradient-text {
    background: linear-gradient(135deg, var(--white) 0%, var(--white-80) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-inner {
    background: var(--white-15);
    backdrop-filter: var(--blur-10);
    border: 1px solid var(--white-25);
    border-radius: 20px;
    padding: 2rem;
}

/* ===== ЗАГОЛОВКИ ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--blue-bright);
    border-radius: 2px;
}

/* На синем фоне заголовки белые */
.bg-dark .section-title,
.hero-section .section-title {
    color: var(--white);
}

.bg-dark .section-title:after,
.hero-section .section-title:after {
    background: var(--white);
}

/* ===== КАРТОЧКИ ===== */
.glass-card {
    background: var(--white-70);
    backdrop-filter: var(--blur-15);
    border: 1px solid var(--white-50);
    border-radius: 20px;
    padding: 2rem;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--white-80);
    transform: translateY(-5px);
    border-color: var(--white-60);
}

/* Карточки на синем фоне */
.bg-dark .glass-card,
.hero-section .glass-card {
    background: var(--white-20);
    backdrop-filter: var(--blur-15);
    border: 1px solid var(--white-30);
    color: var(--white);
}

.bg-dark .glass-card:hover,
.hero-section .glass-card:hover {
    background: var(--white-30);
}

/* Карточки опасности и успеха */
.danger-card {
    border-left: 4px solid #ff3b5c !important;
}

.success-card {
    border-left: 4px solid #00c853 !important;
}

/* ===== УСЛУГИ ===== */
.service-card {
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--blue-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

/* ===== ТЕГИ ПОРТФОЛИО ===== */
.tech-tag {
    display: inline-block;
    background: rgba(45, 106, 227, 0.1);
    color: var(--blue-bright);
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(45, 106, 227, 0.2);
}

.bg-dark .tech-tag {
    background: var(--white-20);
    color: var(--white);
    border-color: var(--white-30);
}

/* ===== КАРУСЕЛЬ ===== */
.carousel-control-prev,
.carousel-control-next {
    background: var(--blue-bright) !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    border: 2px solid var(--white-50) !important;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-indicators button {
    background-color: var(--blue-bright) !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: 2px solid var(--white-50) !important;
}

/* ===== ОТЗЫВЫ ===== */
.avatar {
    width: 50px;
    height: 50px;
    background: var(--blue-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 1.5rem;
    color: var(--white);
}

.stars i {
    color: #ffc107;
}

/* ===== ЦЕНЫ ===== */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border: 2px solid var(--blue-bright) !important;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--blue-bright);
    color: var(--white);
    padding: 0.3rem 2rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-bright);
    white-space: nowrap;  /* Добавьте эту строку - запрещает перенос */
}

.price .amount {
    font-size: 3rem;
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.bg-dark .price .period {
    color: var(--white-80);
}

/* ===== FAQ ===== */
.accordion-item {
    background: var(--white);
    border: 1px solid var(--blue-soft);
    border-radius: 15px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.bg-dark .accordion-item {
    background: var(--white-20);
    backdrop-filter: var(--blur-10);
    border-color: var(--white-30);
}

.accordion-button {
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    padding: 1.2rem;
}

.bg-dark .accordion-button {
    background: var(--white-20);
    color: var(--white);
}

.accordion-button:not(.collapsed) {
    background: var(--blue-light);
    color: var(--blue-deep);
}

.bg-dark .accordion-button:not(.collapsed) {
    background: var(--white-30);
    color: var(--white);
}

.accordion-body {
    padding: 1.5rem;
}

/* ===== КОНТАКТЫ ===== */
.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--blue-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    color: var(--white);
    font-size: 2rem;
}

/* ===== FLOATING WIDGET ===== */
.contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.contact-toggle {
    display: none;
}

.contact-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 4px 15px rgba(45, 106, 227, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--white-50);
}

.contact-button i {
    color: var(--white);
    font-size: 28px;
}

.contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 240px;
    background: var(--white-90);
    backdrop-filter: var(--blur-15);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--white-50);
}

.contact-toggle:checked ~ .contact-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: var(--blue-light);
    color: var(--blue-bright);
}

.contact-item i {
    font-size: 1.3rem;
    margin-right: 15px;
    color: var(--blue-bright);
    width: 24px;
    text-align: center;
}

/* ===== ФУТЕР ===== */
footer {
    background: var(--blue-deep) !important;
    color: var(--white);
    padding: 2rem 0;
    border-top: 1px solid var(--white-20);
}

footer a {
    color: var(--white) !important;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--white-20);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--white-30);
}

.social-link:hover {
    background: var(--white);
    color: var(--blue-deep) !important;
    transform: translateY(-3px);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 1s ease;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .navbar-collapse {
        background: var(--blue-deep);
        padding: 1rem;
        border-radius: 15px;
        margin-top: 1rem;
        border: 1px solid var(--white-20);
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-section .glass-card {
        padding: 2rem;
    }
    
    .contact-widget {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .glass-card {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
}