/* --- ОБЩИЕ НАСТРОЙКИ ГЛАВНОЙ --- */
body {
    background-color: #f8fafc;
}

/* Убираем ограничения сетки для главной, чтобы блоки были во всю ширину */
.main-content-grid.no-sidebar {
    display: block !important;
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HERO СЕКЦИЯ (Первый экран) --- */
.home-hero-modern {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Добавляем тот же паттерн из точек, что и в профиле */
.home-hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='white' fill-opacity='0.1'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6; /* Немного приглушим для читаемости текста */
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 14px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: pulse-glow 3s infinite ease-in-out;
    display: inline-block;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
        background: rgba(255, 255, 255, 0.15);
    }
    50% {
        /* Эффект "лампочки": мягкое свечение вокруг */
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.25);
    }
    100% {
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
        background: rgba(255, 255, 255, 0.15);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* --- УМНЫЙ ПОИСК --- */
.main-search-wrapper {
    max-width: 720px;
    margin: 0 auto 24px;
    display: flex;
    gap: 12px;
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    z-index: 2;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-group input {
    width: 100%;
    border: none;
    padding: 12px 15px;
    font-size: 1.1rem;
    outline: none;
    color: #1e293b;
}

.btn-hero-find {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-hero-find:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* --- ПОПУЛЯРНЫЕ ТЕГИ --- */
.popular-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.popular-tags span {
    color: rgba(255, 255, 255, 0.7);
}

.quick-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.quick-tag:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary);
    border-color: white;
}

/* --- СЕКЦИЯ ВАКАНСИЙ (GRID) --- */
.public-vacancies-section {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #f1f5f9;
}

/* Контейнер заголовка */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

/* Основной заголовок */
.content-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Ссылка "Смотреть все" */
.link-more {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}


/* --- ПРОМО БЛОКИ --- */
/* --- СЕКЦИЯ ПРОМО-КАРТОЧЕК --- */
.platform-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 50px;
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.feature-card p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 320px;
}

.feature-card a {
    display: inline-block;
    margin-top: auto; /* Помогает, если в будущем карточки будут одной высоты */
}

/* Карточка Кандидата: Глубокий синий с мягким свечением */
.candidate-promo {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.candidate-promo h3,
.candidate-promo p {
    color: #ffffff;
}

.candidate-promo p { opacity: 0.85; }

.candidate-promo .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}

.candidate-promo .btn-outline:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: #ffffff;
}

/* Карточка Работодателя: Чистый белый с цветным акцентом */
.employer-promo {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.employer-promo h3 { color: #0f172a; }
.employer-promo p { color: #64748b; }

.employer-promo .btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.employer-promo .btn-primary:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Декоративные элементы внутри карточек (опционально) */
.feature-card::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Адаптив: на мобилках в колонку */
@media (max-width: 850px) {
    .platform-features {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .feature-card {
        padding: 35px;
    }
}