/* ======================= */
/* СТИЛИ ДЛЯ СЕКЦИИ ВАКАНСИЙ - АДАПТИРОВАНЫ ПОД СТИЛЬ СОТРУДНИКОВ */
/* ======================= */

/* Стили для секции вакансий */
.vacancies-section {
    margin: 20px 0;
}

/* Контейнер вакансий в стиле rules-container - УВЕЛИЧЕННАЯ ШИРИНА */
.rules-container {
    border: 2px solid #427e66;
    border-radius: 8px;
    padding: 30px;
    background-color: #f9f9f9;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(66, 126, 102, 0.1);
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Заголовок в стиле rules-title */
.rules-title {
    color: #427e66;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    text-align: center;
    display: block;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    font-weight: normal;
}

.rules-title span {
    font-size: 24pt;
    color: #427e66;
    font-weight: normal;
}

/* Список вакансий */
.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0;
}

/* Карточка вакансии */
.vacancy-item {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.vacancy-item:focus-visible {
    outline: 2px solid #2c553d;
    outline-offset: 2px;
}

.vacancy-item:focus {
    outline: none;
}

/* Карточка вакансии */
.vacancy-card {
    width: 100% !important;
    padding: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

/* Эффект при наведении без 3D трансформации */
@media (min-width: 769px) {
    .vacancy-item:hover .vacancy-card {
        border-color: #427e66;
        box-shadow: 0 8px 20px rgba(66, 126, 102, 0.15);
        transform: translateY(-2px);
    }
}

/* Шапка карточки */
.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 18px;
}

/* Название вакансии */
.vacancy-name {
    color: #427e66;
    font-size: 24px;
    font-weight: normal;
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 200px;
}

/* Зарплата без жирности */
.vacancy-salary {
    background: #427e66;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: normal; /* Убрана жирность */
    white-space: nowrap;
}

/* Детали вакансии */
.vacancy-details {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.vacancy-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Метки без жирности */
.detail-label {
    color: #2c553d;
    font-weight: normal; /* Убрана жирность */
    font-size: 15px;
    min-width: 90px;
}

.detail-value {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    flex: 1;
}

/* Описание */
.vacancy-description {
    margin-bottom: 22px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    max-height: 130px;
    overflow: hidden;
    position: relative;
}

.vacancy-description:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(to bottom, transparent, #f8f9fa);
}

/* Ссылка */
.vacancy-link {
    text-align: right;
    color: #427e66;
    font-size: 16px;
    font-weight: normal; /* Убрана жирность */
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

/* Нет вакансий */
.no-vacancies {
    text-align: center;
    padding: 80px 30px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

.no-vacancies-icon {
    font-size: 56px;
    margin-bottom: 25px;
    opacity: 0.5;
}

.no-vacancies-text {
    color: #666;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
}

/* ======================= */
/* АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ */
/* ======================= */

@media (max-width: 992px) {
    .rules-container {
        padding: 25px;
        margin: 25px 0;
        max-width: 100%;
    }
    
    .rules-title {
        font-size: 22px;
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .rules-title span {
        font-size: 22pt;
    }
    
    .vacancy-card {
        padding: 24px;
    }
    
    .vacancy-name {
        font-size: 22px;
    }
    
    .vacancy-salary {
        font-size: 17px;
        padding: 9px 18px;
        font-weight: normal;
    }
    
    .vacancy-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detail-label {
        min-width: 80px;
        font-size: 14px;
        font-weight: normal;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .vacancy-description {
        font-size: 14px;
        padding: 16px;
        max-height: 120px;
    }
    
    .vacancy-link {
        font-size: 15px;
        font-weight: normal;
    }
    
    .no-vacancies {
        padding: 60px 25px;
    }
    
    .no-vacancies-icon {
        font-size: 48px;
    }
    
    .no-vacancies-text {
        font-size: 18px;
    }
}

/* ======================= */
/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ */
/* ======================= */

@media (max-width: 768px) {
    .rules-container {
        padding: 20px;
        margin: 20px 0;
        max-width: 100%;
    }
    
    .rules-title {
        font-size: 20px;
        margin: 0 0 18px 0;
        width: 100%;
    }
    
    .rules-title span {
        font-size: 20pt;
    }
    
    .vacancy-card {
        padding: 20px;
    }
    
    .vacancy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 18px;
        padding-bottom: 15px;
    }
    
    .vacancy-name {
        font-size: 20px;
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .vacancy-salary {
        align-self: flex-start;
        font-size: 16px;
        padding: 8px 16px;
        font-weight: normal;
    }
    
    .vacancy-details {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 18px;
    }
    
    .vacancy-detail {
        padding: 10px;
        gap: 10px;
    }
    
    .detail-label {
        min-width: 70px;
        font-size: 13px;
        font-weight: normal;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    .vacancy-description {
        font-size: 13px;
        padding: 14px;
        max-height: 110px;
        margin-bottom: 18px;
    }
    
    .vacancy-link {
        font-size: 14px;
        padding-top: 15px;
        font-weight: normal;
    }
    
    .no-vacancies {
        padding: 50px 20px;
    }
    
    .no-vacancies-icon {
        font-size: 40px;
    }
    
    .no-vacancies-text {
        font-size: 16px;
    }
}

/* ======================= */
/* АДАПТИВНОСТЬ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ */
/* ======================= */

@media (max-width: 480px) {
    .rules-container {
        padding: 16px;
        margin: 16px 0;
        max-width: 100%;
    }
    
    .rules-title {
        font-size: 18px;
        margin: 0 0 15px 0;
        width: 100%;
    }
    
    .rules-title span {
        font-size: 18pt;
    }
    
    .vacancy-card {
        padding: 18px;
    }
    
    .vacancy-name {
        font-size: 18px;
    }
    
    .vacancy-salary {
        font-size: 15px;
        padding: 7px 14px;
        font-weight: normal;
    }
    
    .vacancy-details {
        gap: 12px;
    }
    
    .vacancy-detail {
        padding: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .detail-label {
        min-width: auto;
        font-size: 12px;
        font-weight: normal;
    }
    
    .detail-value {
        font-size: 12px;
        width: 100%;
    }
    
    .vacancy-description {
        font-size: 12px;
        padding: 12px;
        max-height: 100px;
        margin-bottom: 15px;
    }
    
    .vacancy-link {
        font-size: 13px;
        padding-top: 12px;
        font-weight: normal;
    }
    
    .no-vacancies {
        padding: 40px 16px;
    }
    
    .no-vacancies-icon {
        font-size: 36px;
    }
    
    .no-vacancies-text {
        font-size: 14px;
    }
}

/* Адаптация для печати */
@media print {
    .rules-container {
        border: 0.5pt solid #000;
        page-break-inside: avoid;
        max-width: 100%;
    }
    
    .vacancy-item {
        page-break-inside: avoid;
    }
    
    .vacancy-card {
        border: 0.5pt solid #000;
    }
    
    .vacancy-salary {
        background: #fff !important;
        color: #000 !important;
        border: 0.5pt solid #000;
        font-weight: normal;
    }
    
    .vacancy-description:after {
        display: none;
    }
    
    .vacancy-description {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .vacancy-link {
        display: none;
    }
    
    .detail-label {
        font-weight: normal;
    }
}