/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Color Variables */
:root {
    --color-primary-blue: #2563eb;
    --color-primary-blue-dark: #1d4ed8;
    --color-accent-orange: #ea580c;
    --color-accent-orange-dark: #dc2626;
    --color-neutral-slate: #475569;
    --color-neutral-slate-dark: #334155;
    --color-success-green: #16a34a;
    --color-warning-yellow: #ca8a04;
    --color-error-red: #dc2626;
    --color-purple: #7c3aed;
    --color-purple-dark: #5b21b6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.btn:hover:before {
    left: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-orange) 0%, var(--color-accent-orange-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-orange-dark) 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(234, 88, 12, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--color-neutral-slate);
}
.btn-outline:hover {
    background: #f1f5f9;
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
}
.btn-outline-white {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-white {
    background: white;
    color: var(--color-primary-blue);
}
.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}
.btn-full {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.section-badge.orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--color-accent-orange);
    border-color: rgba(234, 88, 12, 0.2);
}
.section-badge.green {
    background: rgba(22, 163, 74, 0.1);
    color: var(--color-success-green);
    border-color: rgba(22, 163, 74, 0.2);
}
.section-badge.purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--color-purple);
    border-color: rgba(124, 58, 237, 0.2);
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.section-description {
    font-size: 1.125rem;
    color: var(--color-neutral-slate);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-3px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out; }

/* ====================== HERO SECTION ====================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}
.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Visual block with 4 cards */
.hero-visual {
    flex-shrink: 0;
}
.visual-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 420px;
}
.visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.visual-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}
.visual-item i {
    font-size: 2rem;
    opacity: 0.9;
}
.visual-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.visual-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ====================== RESPONSIVE FIXES ====================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }

    /* Hero on tablets and below */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-text {
        max-width: none;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }

    /* Главное исправление: центрируем визуальный блок */
    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .visual-card {
        margin: 0 auto;
        max-width: 380px;
        width: 100%;
    }
    .visual-grid {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-description {
        font-size: 1rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    .visual-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .visual-item i {
        font-size: 1.8rem;
    }
    .visual-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }
    .visual-card {
        padding: 1.5rem;
    }
    .visual-grid {
        gap: 1rem;
    }
}