/* ===== СОВРЕМЕННЫЙ ДИЗАЙН ===== */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #0f172a;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    --white: #ffffff;
    --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 60px rgba(79, 70, 229, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 270px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--gray-100);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .btn, .nav-link,
.section-title, .stat-number,
.process-step-title, .card-title,
.alert-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary);
}

.container { max-width: 1140px; }

/* ===== ВЕРТИКАЛЬНОЕ БОКОВОЕ МЕНЮ ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 2px 0 20px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.sidebar-header .navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--secondary) !important;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.sidebar-header .navbar-brand i {
    color: var(--primary) !important;
    font-size: 1.4rem;
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-nav .nav-item { margin: 0; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem !important;
    color: var(--gray-600) !important;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    border-bottom: none;
    transition: var(--transition);
    text-decoration: none;
}
.sidebar-nav .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(79, 70, 229, 0.06);
    border-left-color: var(--primary);
}
.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.sidebar-footer .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 12px 16px;
    white-space: normal;
    line-height: 1.3;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== КНОПКА-БУРГЕР (мобильные) ===== */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--secondary);
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.sidebar-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== ОВЕРЛЕЙ ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== ГЕРОЙ ===== */
.hero-section {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px 0 80px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}
.hero-section .btn-danger {
    background: var(--primary);
    border: none;
    border-radius: 0px;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    transition: var(--transition);
}
.hero-section .btn-danger:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
}
.hero-section .btn-outline-primary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    border-radius: 0px;
    padding: 14px 32px;
    font-weight: 500;
    transition: var(--transition);
}
.hero-section .btn-outline-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.hero-section .d-flex .bi-check-circle {
    color: var(--primary) !important;
}
.hero-section .fw-medium {
    color: var(--gray-800);
}

/* ===== КАРТОЧКИ И СТАТИСТИКА ===== */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
    margin-bottom: 30px;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}
.card-body { padding: 2rem; }
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}
.card-text { color: var(--gray-600); line-height: 1.7; }

.feature-icon {
    width: 72px;
    height: 72px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}
.card:hover .feature-icon {
    background: var(--primary);
}
.card:hover .feature-icon i {
    color: white !important;
}
.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

/* ===== СТАТИСТИКА ===== */
.stat-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-radius: var(--radius);
}
.stat-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}
.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-text {
    color: var(--gray-600);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ===== ПРОЦЕСС ===== */
.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
    border-left: 3px solid var(--gray-200);
    padding-top: 5px;
    transition: var(--transition);
}
.process-step:hover { border-left-color: var(--primary); }
.process-step-number {
    position: absolute;
    left: -28px;
    top: 0;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
    border: 2px solid white;
}
.process-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.process-step p { color: var(--gray-600); }

/* ===== СЕКЦИИ ===== */
.content-section { padding: 100px 0; }
.bg-light { background-color: var(--white) !important; }
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.02em;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

/* ===== ВЫДЕЛЕННЫЙ БЛОК ===== */
.highlight-box {
    background: rgba(79, 70, 229, 0.04);
    border-left: 6px solid var(--primary);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.highlight-box h3 { color: var(--secondary); }
.highlight-box p { color: var(--gray-600); }

.alert-danger {
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--secondary);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
}
.alert-danger .alert-heading {
    color: var(--primary);
}

/* ===== КОНТАКТЫ ===== */
.contact-info-card {
    background: var(--white);
    border: none;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    transition: var(--transition);
}
.contact-info-card:hover {
    box-shadow: var(--shadow-md);
}
.contact-info-card i.bi {
    color: var(--primary) !important;
}
.contact-info-card a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}
.contact-info-card a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}
.contact-info-card .btn-outline-primary {
    border-color: var(--gray-200);
    color: var(--gray-600);
    border-radius: 40px;
    padding: 10px 24px;
    transition: var(--transition);
}
.contact-info-card .btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0;
    border-top: none;
}
.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}
.footer-title i { color: var(--primary-light) !important; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    transition: var(--transition);
    font-weight: 400;
}
.footer-links a:hover {
    color: white;
    text-decoration: underline;
}
.footer .text-light { color: rgba(255, 255, 255, 0.6) !important; }

.copyright {
    background: #0b1420;
    color: rgba(255, 255, 255, 0.5);
    padding: 1.2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== КНОПКИ ОБЩИЕ ===== */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 40px;
    padding: 12px 32px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.3);
}
.btn-outline-primary {
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    border-radius: 40px;
    padding: 12px 32px;
    font-weight: 500;
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}

/* ===== ПЛАВАЮЩИЕ КНОПКИ ===== */
.floating-telegram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #1a8cd8;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(26, 140, 216, 0.4);
    z-index: 1000;
    border: 3px solid white;
    transition: var(--transition);
}
.floating-telegram:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(26, 140, 216, 0.5);
    color: white !important;
}
.floating-phone {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary);
    color: white !important;
    border-radius: 40px;
    padding: 14px 24px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    font-weight: 600;
    border: 3px solid white;
    transition: var(--transition);
}
.floating-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4);
    color: white !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(15, 23, 42, 0.15);
    }
    .sidebar-toggle {
        display: flex;
    }
    .main-content {
        margin-left: 0;
    }
    .hero-section { padding: 100px 0 70px; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .content-section { padding: 70px 0; }
    .stat-number { font-size: 2.8rem; }
    .process-step { padding-left: 70px; }
    .process-step-number { width: 48px; height: 48px; font-size: 1.1rem; left: -24px; }

    /* ===== ЦЕНТРИРОВАНИЕ ПОДВАЛА НА МОБИЛЬНЫХ ===== */
    .footer {
        text-align: center;
    }
    .footer .row {
        justify-content: center;
    }
    .footer .row > [class*="col-"] {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .footer .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .footer-title {
        display: inline-block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-links {
        padding-left: 0;
        list-style: none;
    }
    .footer-links li {
        text-align: center;
        margin-bottom: 0.4rem;
    }
    .footer-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.25rem 0.5rem;
    }
    .footer .text-light {
        text-align: center;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .copyright .row > [class*="col-"] {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 90px 0 60px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .card { margin-bottom: 20px; }
    .stat-box { padding: 1.5rem; margin-bottom: 20px; }
    .stat-number { font-size: 2.2rem; }
    .contact-info-card { padding: 2rem; }
    .floating-phone { bottom: 80px; right: 15px; padding: 10px 18px; font-size: 0.85rem; }
    .floating-telegram { bottom: 15px; right: 15px; width: 48px; height: 48px; }
    body { font-size: 16px; }
}
@media (max-width: 576px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .hero-title { font-size: 1.8rem; }
    .btn-primary, .btn-outline-primary, .btn-danger { padding: 10px 20px; font-size: 0.9rem; }
    .process-step { padding-left: 55px; margin-bottom: 2rem; }
    .process-step-number { width: 40px; height: 40px; font-size: 1rem; left: -20px; }
    .process-step-title { font-size: 1.1rem; }
    .stat-box { padding: 1rem; }
    .stat-number { font-size: 1.8rem; }
    .feature-icon { width: 60px; height: 60px; }
    .feature-icon i { font-size: 1.4rem; }
    .footer-title { font-size: 1.1rem; }
}

/* ===== АНИМАЦИИ ===== */
.card, .stat-box, .process-step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }
.stat-box:nth-child(2) { animation-delay: 0.05s; }
.stat-box:nth-child(3) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.05s; }
.process-step:nth-child(3) { animation-delay: 0.1s; }
.process-step:nth-child(4) { animation-delay: 0.15s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скрываем микроразметку, но оставляем */
.hidden-microdata { display: none; }