* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    color: #1a2c3e;
    scroll-behavior: smooth;
}

/* ===== ГЛАВНЫЕ ЦВЕТА И ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-soft: rgba(13, 110, 253, 0.1);
    --secondary: #6c757d;
    --dark-bg: #0a1c2a;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

/* ===== НАВИГАЦИЯ (GLASS EFFECT) ===== */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    padding: 0.7rem 0;
}

.navbar-brand {
    background: linear-gradient(135deg, #0a2647, #0d6efd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* ===== ГЕРОЙ-СЕКЦИЯ ===== */
.hero-section {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.text-gradient {
    background: linear-gradient(120deg, #0d6efd, #00b4aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge.bg-primary-soft {
    background: rgba(13, 110, 253, 0.12) !important;
    color: #0d6efd !important;
    font-weight: 500;
}

.hero-card {
    border-radius: 2rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
}

/* ===== СЕРВИСНЫЕ КАРТОЧКИ ===== */
.service-card {
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
    border-bottom: 3px solid var(--primary);
}

.icon-bg {
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: 0.3s;
}

.service-card:hover .icon-bg {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.05);
}

/* ===== СТАТИСТИКА (СКРИПТОВЫЕ СЧЕТЧИКИ) ===== */
.stat-block {
    padding: 1rem;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, #b9e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== ФОРМЫ И КНОПКИ ===== */
.btn-primary {
    background: linear-gradient(95deg, #0d6efd, #0a58ca);
    border: none;
    transition: all 0.2s;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -8px rgba(13, 110, 253, 0.5);
    background: linear-gradient(95deg, #0b5ed7, #0950b3);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    background: var(--primary);
    border-color: var(--primary);
}

.btn-outline-secondary {
    border: 1.5px solid #dee2e6;
    color: #4a5b6e;
}

.shadow-xl {
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.2);
}

/* ===== АНИМАЦИИ ДЛЯ INTERSECTION OBSERVER ===== */
.wow-fade-up,
.wow-fade-right,
.wow-fade-left {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s ease;
}

.wow-fade-right {
    transform: translateX(40px);
}

.wow-fade-left {
    transform: translateX(-40px);
}

.wow-visible {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 1.9rem;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .stats-badge {
        left: 0 !important;
        bottom: -10px !important;
        font-size: 0.8rem;
    }

    .hero-section .min-vh-100 {
        min-height: 90vh !important;
    }

    .navbar .btn-primary {
        margin-top: 10px;
        width: 100%;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */
.form-control,
.form-control-lg {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.8rem 1.2rem;
    transition: 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}