/* ==========================================
   Hero Section — Тёмный фон + белый текст
   Правило: тёмный фон = белый текст
   ========================================== */

/* === Hero блок === */
.hero,
.hero-section {
    background: var(--gradient-bg-dark);
    color: var(--text-on-dark-primary);
    padding: clamp(48px, 8vw, 120px) 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero,
    .hero-section {
        min-height: auto;
        padding: 48px 0;
    }
}

/* Паттерн для глубины */
.hero::before,
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(30, 64, 175, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero__inner,
.hero .container,
.hero-section .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* === Все тексты светлые на тёмном === */
.hero *,
.hero-section * {
    color: #FFFFFF !important;
}

/* Заголовки */
.hero__title,
.hero h1,
.hero-section h1,
.hero-content h1,
.hero-title {
    color: #FFFFFF !important;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.5rem;
}

.hero__subtitle,
.hero h2,
.hero-section h2,
.hero-content p.lead,
.hero-subtitle {
    color: #FFFFFF !important;
    opacity: 0.96;
    line-height: 1.4;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    margin-bottom: 2rem;
}

/* Обычный текст */
.hero p,
.hero-section p,
.hero li,
.hero-section li,
.hero span,
.hero-section span,
.hero-features-list li {
    color: #FFFFFF !important;
}

/* === Список с галочками - улучшенный стиль === */
.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 32px auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-features-list li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-features-list i {
    color: #10B981 !important;
    font-size: 24px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    padding: 4px;
}

/* Иконки */
.hero i,
.hero-section i {
    color: #10B981 !important;
}

/* Muted текст */
.hero .text-muted,
.hero-section .text-muted {
    color: #C9D1D9 !important;
}

/* === Кнопки на тёмном фоне === */
.hero .btn,
.hero-section .btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 280px;
}

.hero .btn-primary,
.hero-section .btn-primary,
.btn-hero-solid {
    background: var(--gradient-brand);
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-brand);
}

.hero .btn-primary:hover,
.hero-section .btn-primary:hover,
.btn-hero-solid:hover {
    background: var(--gradient-brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand-hover);
    color: #FFFFFF !important;
}

.hero .btn-outline-light,
.hero-section .btn-outline-light,
.btn-hero-outline {
    background: transparent;
    color: #FFFFFF !important;
    border: 1.5px solid #FFFFFF;
}

.hero .btn-outline-light:hover,
.hero-section .btn-outline-light:hover,
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
}

/* === Статистика - тёмный фон === */
.stats,
.stats-section {
    background: var(--gradient-brand);
    padding: clamp(36px, 6vw, 72px) 0;
    color: var(--text-on-dark-primary);
}

/* Все тексты в статистике светлые */
.stats *,
.stats-section * {
    color: var(--text-on-dark-primary) !important;
}

.stats__grid,
.stats-section .row {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.stats__item {
    text-align: center;
}

.stats__value,
.stat-number {
    color: var(--text-on-dark-primary) !important;
    font-weight: 800;
    font-size: clamp(28px, 4.2vw, 42px) !important;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stats__label,
.stats p,
.stats-section p {
    color: var(--text-on-dark-primary) !important;
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 17px) !important;
    margin-top: 6px;
    opacity: 0.95;
}

/* === Employers section - тёмный фон === */
.employers-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://picsum.photos/seed/security-employers/1920/800') center/cover no-repeat;
    color: var(--text-on-dark-primary);
    padding: clamp(48px, 8vw, 120px) 0;
}

.employers-section * {
    color: var(--text-on-dark-primary) !important;
}

.employers-section h2,
.employers-section h3 {
    color: var(--text-on-dark-primary) !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.employers-section p,
.employers-section .lead {
    color: var(--text-on-dark-primary) !important;
    opacity: 0.96;
}

/* === Адаптив === */
@media (max-width: 768px) {
    .stats__grid,
    .stats-section .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
    }

    .hero,
    .hero-section {
        padding: 48px 0;
        min-height: auto;
    }

    .hero .btn,
    .hero-section .btn,
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 14px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-features-list {
        gap: 16px;
        margin: 24px 0;
    }

    .hero-features-list li {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-features-list i {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .stats__grid,
    .stats-section .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats__value,
    .stat-number {
        font-size: clamp(24px, 6vw, 32px) !important;
    }
}

@media (max-width: 480px) {
    .hero__title,
    .hero h1,
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero__subtitle,
    .hero-content p.lead {
        font-size: 1rem;
    }
}

/* ==========================================
   Audience Switcher (Переключатель аудиторий)
   ========================================== */
.audience-switcher {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.audience-switcher:hover {
    background: rgba(255, 255, 255, 0.15);
}

.audience-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.audience-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.audience-link.active {
    color: white;
    font-weight: 600;
}

.audience-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .audience-switcher {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .audience-divider {
        display: none;
    }

    .audience-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        width: 100%;
        transition: background 0.2s ease;
    }

    .audience-link:hover,
    .audience-link:active {
        background: rgba(255, 255, 255, 0.15);
    }

    .audience-link.active {
        background: rgba(255, 255, 255, 0.12);
    }
}

/* ==========================================
   Исправления для мобильной версии
   ========================================== */

/* Кружки с цифрами - увеличить на мобильных */
@media (max-width: 768px) {
    .step-number {
        width: 72px !important;
        height: 72px !important;
        font-size: 1.75rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

/* Hero карточка - выравнивание галочек и текста */
.hero-section .card .list-unstyled li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-section .card .list-unstyled li:last-child {
    margin-bottom: 0;
}

.hero-section .card .list-unstyled li i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    font-size: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.hero-section .card .list-unstyled li span {
    flex: 1;
    color: var(--text) !important;
    font-size: 15px;
    line-height: 1.5;
}

/* Карточка hero - цвета внутри светлой карточки */
.hero-section .card.bg-white *,
.hero-section .card.text-dark * {
    color: inherit !important;
}

.hero-section .card.bg-white h3,
.hero-section .card.text-dark h3 {
    color: var(--text) !important;
}

.hero-section .card .bi-check-circle-fill {
    color: #10B981 !important;
}

/* Мобильные исправления для hero карточки */
@media (max-width: 768px) {
    .hero-section .card {
        margin-top: 24px;
    }

    .hero-section .card .card-body {
        padding: 24px !important;
    }

    .hero-section .card .list-unstyled li {
        padding: 12px 0;
        border-bottom: 1px solid #E5E7EB;
    }

    .hero-section .card .list-unstyled li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
