/* ===== СТРАНИЦА ВАКАНСИЙ (M-Velo) ===== */

.mv-vacancies, .mv-vacancies-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    padding: 30px 0;
    width: 100%;
}

.mv-vacancies-container, .mv-vacancies-detail-container {
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mv-vacancies-header {
    margin-bottom: 30px;
}

.mv-vacancies-subtitle {
    font-size: 16px;
    color: #54656f;
}

/* Табы по отделам */
.mv-vacancies-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeef2;
    padding-bottom: 10px;
}

.mv-vacancies-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    border-radius: 20px;
    color: #54656f;
    transition: all 0.2s;
    font-family: inherit;
}

.mv-vacancies-tab:hover {
    background: #f6f8fa;
    color: #1f2a3a;
}

.mv-vacancies-tab.active {
    background: #f2c94c;
    color: #1f2a3a;
    font-weight: 500;
}

/* Фильтры */
.mv-vacancies-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mv-vacancies-select {
    padding: 10px 16px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    min-width: 180px;
    cursor: pointer;
    font-family: inherit;
}

.mv-vacancies-reset {
    padding: 10px 20px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #f6f8fa;
    cursor: pointer;
    font-size: 14px;
    color: #54656f;
    font-family: inherit;
    transition: background 0.2s;
}

.mv-vacancies-reset:hover {
    background: #eaeef2;
}

/* Сетка карточек */
.mv-vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.mv-vacancies-card {
    border: 1px solid #eaeef2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.mv-vacancies-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.mv-vacancies-photo {
    height: 200px;
    background: #f6f8fa;
    position: relative;
    overflow: hidden;
}

.mv-vacancies-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mv-vacancies-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mv-vacancies-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2a3a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mv-vacancies-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
}

.mv-vacancies-badge-hot {
    background: #ea4335;
}

.mv-vacancies-badge-urgent {
    background: #ff6b00;
}

.mv-vacancies-salary {
    font-size: 20px;
    font-weight: 700;
    color: #1f2a3a;
    margin-bottom: 12px;
}

.mv-vacancies-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.mv-vacancies-meta-item {
    font-size: 14px;
    color: #54656f;
}

.mv-vacancies-preview {
    font-size: 14px;
    color: #54656f;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mv-vacancies-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.mv-vacancies-feature {
    font-size: 12px;
    padding: 4px 10px;
    background: #f6f8fa;
    border-radius: 16px;
    color: #54656f;
}

/* Кнопки карточки */
.mv-vacancies-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.mv-vacancies-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-block;
}

.mv-vacancies-btn-primary {
    background: #f2c94c;
    color: #1f2a3a;
}

.mv-vacancies-btn-primary:hover {
    background: #ebbb2c;
}

/* Пустой результат */
.mv-vacancies-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.mv-vacancies-empty p {
    color: #54656f;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ===== ДЕТАЛЬНАЯ СТРАНИЦА ВАКАНСИИ ===== */

.mv-vacancies-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f2c94c;
}

.mv-vacancies-detail-salary {
    font-size: 24px;
    font-weight: 700;
    color: #1f2a3a;
    margin-bottom: 12px;
}

.mv-vacancies-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.mv-vacancies-detail-meta-item {
    font-size: 15px;
    color: #54656f;
}

.mv-vacancies-detail-section {
    margin-bottom: 32px;
}

.mv-vacancies-detail-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2a3a;
    margin: 0 0 16px 0;
    padding-left: 12px;
    border-left: 4px solid #f2c94c;
}

.mv-vacancies-detail-content {
    font-size: 15px;
    line-height: 1.7;
    color: #54656f;
}

.mv-vacancies-detail-content ul,
.mv-vacancies-detail-content ol {
    margin: 10px 0;
    padding-left: 24px;
}

.mv-vacancies-detail-content li {
    margin-bottom: 6px;
}

.mv-vacancies-detail-content p {
    margin-bottom: 12px;
}

.mv-vacancies-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9fafc;
    border: 1px solid #eaeef2;
    border-radius: 16px;
}

.mv-vacancies-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mv-vacancies-detail-label {
    font-size: 13px;
    color: #7e8c9e;
}

.mv-vacancies-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: #1f2a3a;
}

/* Блок отклика */
.mv-vacancies-detail-apply {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #fffbe6 0%, #fff8d6 100%);
    border: 1px solid #f2c94c;
    border-radius: 20px;
    text-align: center;
}

.mv-vacancies-detail-apply-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2a3a;
    margin: 0 0 12px 0;
}

.mv-vacancies-detail-apply-text {
    font-size: 15px;
    color: #54656f;
    margin: 0 0 24px 0;
}

.mv-vacancies-detail-apply-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.mv-vacancies-detail-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mv-vacancies-detail-apply-btn-primary {
    background: #1f2a3a;
    color: #fff;
}

.mv-vacancies-detail-apply-btn-primary:hover {
    background: #2c3a4f;
}

.mv-vacancies-detail-apply-btn-secondary {
    background: #fff;
    color: #1f2a3a;
    border: 1px solid #eaeef2;
}

.mv-vacancies-detail-apply-btn-secondary:hover {
    background: #f9fafc;
}

/* Назад к списку */
.mv-vacancies-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #54656f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.mv-vacancies-back:hover {
    color: #1f2a3a;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1024px) {
    .mv-vacancies-container,
    .mv-vacancies-detail-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .mv-vacancies-grid {
        grid-template-columns: 1fr;
    }

    .mv-vacancies-filters {
        flex-direction: column;
    }

    .mv-vacancies-select {
        width: 100%;
    }

    .mv-vacancies-detail-info {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .mv-vacancies-detail-apply {
        padding: 24px 20px;
    }

    .mv-vacancies-detail-apply-title {
        font-size: 20px;
    }

    .mv-vacancies-detail-apply-buttons {
        flex-direction: column;
    }

    .mv-vacancies-detail-apply-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mv-vacancies-container,
    .mv-vacancies-detail-container {
        padding: 0 15px;
    }
}