.vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vacancy-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    background-color: #fff;
}

.vacancy-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vacancy-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.vacancy-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.vacancy-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}

.vacancy-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--secondary-card-text-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.vacancy-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow-y: auto;
    /* для длинных попапов */
    padding: 20px;
    transition: opacity 0.3s ease;
}

.vacancy-popup.show {
    display: flex;
    /* показываем с флексом */
    opacity: 1;
}

.vacancy-popup-content {
    background-color: #fff;
    padding: 40px 24px 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
    transform: translateY(-20px);
}

.vacancy-popup.show .vacancy-popup-content {
    transform: translateY(0);
}

.vacancy-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.vacancy-popup-close:hover {
    color: #ff0000;
}

.vacancy-popup-header h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.vacancy-popup-header p {
    margin: 2px 0;
    color: #555;
}

.vacancy-popup-section {
    margin-top: 15px;
}

.vacancy-popup-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.vacancy-popup-requirements,
.vacancy-popup-duties {
    list-style: disc;
    margin-left: 20px;
}

.vacancy-popup-requirement-item,
.vacancy-popup-duty-item {
    margin-bottom: 8px;
    line-height: 1.5;
}

.vacancy-popup-apply-btn {
    padding: 12px 25px;
    background-color: var(--secondary-card-text-color, #007bff);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-start;
    transition: background-color 0.3s;
}


/* Затемнение при открытии фильтра */
.vacancy-filter-overlay {
    display: none;
}

.vacancy-filter-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.no-scroll {
    overflow: hidden;
}


.vacancy-filter-bar,
.vacancy-filter-toggle {
    display: none;
}
