:root {
    --primary-dark: #0A192F;
    --primary-navy: #112240;
    --accent-blue: #2A7DE1;
    --accent-glow: #4F9EFF;
    --text-light: #E6F1FF;
    --text-secondary: #8892B0;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --bg-light: #F8FAFE;
    --transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #1f2937;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Навбар */
.navbar {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.97);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    padding: 0.7rem 0;
}

.navbar-brand {
    color: var(--white);
    font-size: 1.7rem;
    letter-spacing: -0.5px;
}

.navbar-brand .text-accent {
    color: var(--accent-blue);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    transition: var(--transition);
}

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

.btn-outline-accent {
    border: 1.5px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    transition: var(--transition);
}

.btn-outline-accent:hover {
    background: var(--accent-blue);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0A192F 0%, #0B2A3B 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    color: white;
}

.hero-content h1 {
    font-size: 3.4rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(120deg, var(--accent-blue), #7CB9FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-accent-soft {
    background: rgba(42, 125, 225, 0.15);
    color: var(--accent-blue);
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
}

.hero-stats div {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 1.5rem;
}

.hero-stats div:last-child {
    border-right: none;
}

.hero-graphic-wrapper {
    position: relative;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.card1 {
    top: 10%;
    left: -10%;
}

.card2 {
    bottom: 20%;
    right: -5%;
    background: var(--accent-blue);
}

.card3 {
    top: 40%;
    right: 15%;
}

.graphic-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(42, 125, 225, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: 30%;
    left: 0;
    z-index: 0;
}

.shadow-xxl {
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.35);
}

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

.shape-fill {
    fill: #F8FAFE;
}

/* Service Cards */
.services-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.service-card {
    background: white;
    border-radius: 32px;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background: linear-gradient(145deg, #EFF6FF, #E0EAFF);
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 30px;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--accent-blue);
}

.link-arrow {
    text-decoration: none;
    font-weight: 600;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.link-arrow:hover {
    gap: 10px;
    color: #0f5bc2;
}

/* About Section */
.about-section {
    background: white;
    padding: 80px 0;
}

.about-graphic .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--primary-dark);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    font-weight: 600;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(110deg, #0A192F 0%, #0F2C44 100%);
    color: white;
    padding: 80px 0;
}

.stat-card {
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
    letter-spacing: -1px;
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.contact-form-card {
    background: white;
    border-radius: 40px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.05);
}

.form-control,
.form-control:focus {
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--accent-blue);
}

.btn-primary {
    background: var(--accent-blue);
    border: none;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #1b62b5;
    transform: translateY(-2px);
}

.social-links a {
    background: #eef2ff;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    color: var(--primary-dark);
    font-size: 1.4rem;
    transition: 0.2s;
}

.social-links a:hover {
    background: var(--accent-blue);
    color: white;
}

/* Footer */
.footer {
    background: #0A1424;
    color: #aaa;
    padding-top: 60px;
    padding-bottom: 30px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent-blue);
}

.btn-accent {
    background: var(--accent-blue);
    border: none;
    color: white;
    border-radius: 40px;
    padding: 0 20px;
}

/* ========== АНИМАЦИИ ДЛЯ INTERSECTION OBSERVER (РАБОТАЮТ!) ========== */
/* Базовые стили скрытых элементов */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Стили для ВИДИМЫХ элементов (активируются через JS) */
[data-animate].visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Разные типы анимаций */
[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

/* Убираем задержки для мобильных устройств */
@media (max-width: 768px) {
    [data-animate] {
        transition-duration: 0.5s;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .floating-card {
        display: none;
    }

    .hero-stats div {
        font-size: 0.9rem;
    }
}