
/* ========== ТУМБЛЕР ========== */
.vacancy-tabs-container {
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vacancy-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    background: rgba(217, 22, 86, 0.05);
    padding: 8px;
    border-radius: 50px;
    width: fit-content;
    min-width: 100%;
}

.vacancy-tab {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vacancy-tab:hover {
    background: rgba(217, 22, 86, 0.1);
    color: #D91656;
}

.vacancy-tab.active {
    background: #D91656;
    color: white;
}

/* ========== БЕЙДЖ НА ТУМБЛЕРЕ ========== */
.vacancy-tab-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
}

.vacancy-tab:not(.active) .vacancy-tab-badge {
    background: rgba(217, 22, 86, 0.15);
    color: #D91656;
}

/* ========== СЧЁТЧИК ВАКАНСИЙ В КАРТОЧКЕ ========== */
.vacancy-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.vacancy-card-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 28px;
    font-weight: 700;
    color: rgba(217, 22, 86, 0.15);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.vacancy-card-count strong {
    color: rgba(217, 22, 86, 0.2);
}

.vacancy-group-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.vacancy-group-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== КАРТОЧКИ ВАКАНСИЙ ========== */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vacancy-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.vacancy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #D91656;
}

.vacancy-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.vacancy-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 18px;
}

.vacancy-group-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 8px;
}

.modal-close:hover {
    color: #D91656;
}

.modal-body {
    padding: 24px 30px 30px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #D91656;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.modal-section-content {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.modal-section-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.modal-section-content ul li {
    margin-bottom: 4px;
}

.department-link {
    color: #D91656;
    text-decoration: none;
}

.department-link:hover {
    text-decoration: underline;
}

/* ========== КОНТАКТЫ ========== */
.vacancy-contact-info {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
}

.vacancy-contact-info p {
    margin: 8px 0;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .vacancy-tabs {
        flex-wrap: wrap;
        border-radius: 24px;
    }
    
    .vacancy-tab {
        min-width: auto;
        flex: 1 1 auto;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .modal-header {
        padding: 18px 20px;
    }
    
    .modal-body {
        padding: 18px 20px 24px;
    }
    
    .vacancies-grid {
        grid-template-columns: 1fr;
    }
    
    .vacancy-doc-card {
        min-width: 140px;
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .vacancy-tab {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .vacancy-doc-card {
        min-width: 120px;
        flex: 1 1 auto;
    }
    
    .modal-container {
        margin: 10px;
        max-height: 95vh;
    }
}
