/* Стили для страницы поиска вакансий кандидатом */

/* Main Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2688eb;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    height: 67px;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 800px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid #e0e0e0;
}

.search-input-group {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 0 15px;
}

.search-icon {
    color: #777;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #777;
}

.location-selector {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
}

.location-selector:hover {
    background-color: #f9f9f9;
}

.location-icon {
    color: #777;
    margin-right: 8px;
}

.location-input {
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: #333;
    width: 150px;
    min-width: 100px;
}

.location-input::placeholder {
    color: #999;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.location-dropdown.active {
    display: block;
}

.location-dropdown .city-option {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.location-dropdown .city-option:last-child {
    border-bottom: none;
}

.location-dropdown .city-option:hover {
    background-color: #f5f5f5;
    color: #2688eb;
}

.location-dropdown .city-option.all-cities {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    border-bottom: 1px solid #bbdefb;
}

.location-dropdown .city-option.all-cities:hover {
    background-color: #bbdefb;
    color: #1565c0;
}

.city-error {
    position: absolute;
    bottom: -30px;
    right: 0;
    background-color: #ffebee;
    color: #c62828;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}

.city-error i {
    font-size: 14px;
}

.search-button {
    background-color: #2688eb;
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #1a6ec0;
}

.city-links {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.city-links .container {
    display: flex;
    gap: 20px;
}

.city-link {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
}

.city-link.active {
    font-weight: 600;
    color: #333;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #777;
    font-size: 14px;
}

.footer-links a:hover {
    color: #2688eb;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Медиа-запросы для навигации */
@media (min-width: 1200px) {
    .nav-auth-link.resume-profile .nav-auth-icon,
    .nav-auth-link.responses .nav-auth-icon {
        display: none;
    }

    .nav-auth-link.resume-profile,
    .nav-auth-link.responses {
        gap: 0;
    }

    .nav-auth-link.chats .nav-auth-text,
    .nav-auth-link.notifications .nav-auth-text,
    .nav-auth-link.favorites .nav-auth-text {
        display: none;
    }

    .nav-auth-link.chats,
    .nav-auth-link.notifications,
    .nav-auth-link.favorites {
        width: 40px;
        justify-content: center;
    }

    .nav-auth-link.chats .nav-auth-icon,
    .nav-auth-link.notifications .nav-auth-icon,
    .nav-auth-link.favorites .nav-auth-icon {
        font-size: 20px;
        width: 30px;
    }

    .nav-auth-link.chats .badge-count,
    .nav-auth-link.notifications .badge-count,
    .nav-auth-link.favorites .badge-count {
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 768px) {
    .nav-auth-link.resume-profile span:not(.nav-auth-icon),
    .nav-auth-link.responses span:not(.nav-auth-icon) {
        display: inline;
    }

    .nav-auth-link.resume-profile .nav-auth-icon,
    .nav-auth-link.responses .nav-auth-icon {
        display: none;
    }

    .create-resume-btn span {
        display: inline;
    }

    .create-resume-btn:before {
        display: none;
    }

    .nav-auth-link:not(.resume-profile):not(.responses) span:not(.nav-auth-icon) {
        display: none;
    }
    
   .top-nav .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-nav .nav-links {
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .nav-auth-link span:not(.nav-auth-icon) {
        display: none;
    }

    .nav-auth-link .nav-auth-icon {
        font-size: 20px;
        width: 30px;
    }

    .create-resume-btn span {
        display: none;
    }

    .create-resume-btn:before {
        content: "+";
        font-size: 18px;
        font-weight: bold;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .city-links .container {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .search-container {
        flex-direction: column;
        border-radius: 8px;
        overflow: visible;
    }

    .search-input-group {
        border-bottom: 1px solid #e0e0e0;
    }

    .location-selector {
        justify-content: center;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .search-button {
        padding: 12px;
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 576px) {
    .nav-auth-left, .nav-auth-right {
        gap: 10px;
    }

    .badge-count {
        top: -5px;
        right: -5px;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
    }
}

/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ВАКАНСИЙ
   ============================================ */

/* Breadcrumbs */
.breadcrumbs {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-links {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-links a {
    text-decoration: none;
    color: #2688eb;
}

.breadcrumb-links a:hover {
    text-decoration: underline;
}

.breadcrumb-links span {
    color: #777;
}

/* Page Header */
.page-header {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.search-query {
    color: #777;
    font-size: 16px;
    margin-bottom: 10px;
}

.results-count {
    color: #777;
    font-size: 14px;
}

.results-count strong {
    color: #2688eb;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 0.75fr;
    gap: 30px;
    margin: 30px 0 40px;
}

/* Vacancies List - main content on left */
.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 1;
}

/* Filters Sidebar - right sidebar */
.filters-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 2;
}

.filter-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Filter Forms */
.filter-form,
.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2688eb;
}

/* City Autocomplete */
.city-autocomplete {
    position: relative;
}

.city-autocomplete .autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.city-autocomplete .autocomplete-results.active {
    display: block;
}

.city-autocomplete .autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.city-autocomplete .autocomplete-item:last-child {
    border-bottom: none;
}

.city-autocomplete .autocomplete-item:hover {
    background-color: #f5f5f5;
}

.search-submit-btn {
    background-color: #2688eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-submit-btn:hover {
    background-color: #1a6ec0;
}

/* Filter Options List */
.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.filter-option-item:hover {
    color: #2688eb;
}

.filter-option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2688eb;
}

/* Clear Filters */
.clear-filters {
    
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.clear-filters-btn:hover {
    color: #ff4757;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background-color: #f0f7ff;
    color: #2688eb;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-tag:hover {
    background-color: #e0efff;
}

.filter-tag.active {
    background-color: #2688eb;
    color: white;
}

/* Чипы-чекбоксы (формат работы, опыт, ИТ-аккредитация) */
label.filter-tag {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.filter-tag-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Поля зарплаты «От» и «До» в одну строку */
.salary-range {
    display: flex;
    gap: 8px;
}

.salary-range .form-group {
    flex: 1 1 0;
    min-width: 0;
}

/* Vacancy Item */
.vacancy-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    position: relative;
}

.vacancy-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Vacancy Day Badge */
.vacancy-day-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background-color: #ff9800;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vacancy Day Special Styling */
.vacancy-day {
    position: relative;
    border: 3px solid #ff9800;
    background: linear-gradient(to right, #fff8e1, #fff);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    animation: pulse-border 2s infinite;
    margin-top: 5px;
    padding-top: 25px;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 152, 0, 0.25);
    }
}

/* Favorite Icon */
.favorite-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 22px;
    color: #ccc;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-icon:hover {
    color: #ff4757;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.2);
}

.favorite-icon.favorited {
    color: #ff4757;
}

/* Vacancy Header */
.vacancy-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.vacancy-logo {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}

.vacancy-logo img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #fff;
}

.vacancy-header-info {
    flex: 1;
    min-width: 0;
}

.vacancy-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.vacancy-title a {
    color: #2688eb;
    text-decoration: none;
    transition: color 0.2s;
}

.vacancy-title a:hover {
    color: #1a6ec0;
    text-decoration: underline;
}

.vacancy-title a:visited {
    color: #185da3;
}

.vacancy-title a:visited:hover {
    color: #134a82;
    text-decoration: underline;
}

.vacancy-salary {
    font-size: 18px;
    font-weight: 600;
    color: #4caf50;
    margin-bottom: 8px;
}

.vacancy-company {
    font-size: 14px;
    color: #777;
}

/* Vacancy Description */
.vacancy-description {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Vacancy Tags */
.vacancy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.vacancy-tag {
    background-color: #f0f7ff;
    color: #2688eb;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.vacancy-tag.tag-new {
    color: #fff;
    background-color: #ff9800;
}

.partner-badge {
    display: inline-block;
    background-color: #6c5ce7a6;
    color: #fff;
    font-size: 10px;
    font-weight: 300;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

.partner-badge.parsed-badge {
    background-color: #28a745;
}

/* Бейдж аккредитованной ИТ-компании рядом с названием компании в карточке вакансии */
.it-accreditation-badge {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Vacancy Location */
.vacancy-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.location-icon-small {
    color: #777;
    font-size: 12px;
}

/* Vacancy Actions */
.vacancy-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.vacancy-date {
    font-size: 13px;
    color: #999;
}

.vacancy-date-badge {
    display: inline-block;
}

.respond-btn {
    background-color: #2688eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.respond-btn:hover {
    background-color: #1a6ec0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(38, 136, 235, 0.3);
}

/* No Vacancies */
.no-vacancies {
    text-align: center;
    padding: 60px 20px;
    color: #777;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.no-vacancies i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-vacancies h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #555;
}

.no-vacancies p {
    font-size: 15px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.reset-btn {
    display: inline-block;
    background-color: #2688eb;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background-color: #1a6ec0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background-color: #f0f7ff;
    border-color: #2688eb;
}

.pagination-btn.prev,
.pagination-btn.next {
    font-weight: 600;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-page:hover {
    background-color: #f0f7ff;
    border-color: #2688eb;
    color: #2688eb;
}

.pagination-page.active {
    background-color: #2688eb;
    border-color: #2688eb;
    color: white;
}

.pagination-dots {
    color: #999;
    padding: 0 5px;
}

/* Описание категории */
.category-description-container {
    /* body задан как flex-контейнер, поэтому ширину задаём явно —
       иначе блок сжимается по содержимому и не совпадает с сеткой страницы */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
    box-sizing: border-box;
}

.category-description {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-description-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    word-wrap: break-word;
}

.category-description-text > *:first-child {
    margin-top: 0;
}

.category-description-text > *:last-child {
    margin-bottom: 0;
}

.category-description-text p {
    margin: 0 0 15px;
}

.category-description-text h2 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 25px 0 12px;
}

.category-description-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.category-description-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 18px 0 8px;
}

.category-description-text ul,
.category-description-text ol {
    margin: 0 0 15px;
    padding-left: 25px;
}

.category-description-text li {
    margin-bottom: 8px;
}

.category-description-text a {
    color: #2688eb;
    text-decoration: underline;
}

.category-description-text a:hover {
    color: #1a6ec0;
}

.category-description-text strong {
    color: #333;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #2688eb;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 20px;
}

.notification.success {
    background-color: #4caf50;
}

.notification.info {
    background-color: #2688eb;
}

.notification.error {
    background-color: #f44336;
}

/* Filters toggle (mobile) — hidden on desktop */
.filters-toggle {
    display: none;
}
.filters-collapse {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #2688eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 6px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "filters"
            "vacancies";
    }

    .vacancies-list {
        grid-area: vacancies;
        order: 2;
    }

    .filters-sidebar {
        grid-area: filters;
        order: 1;
        margin-bottom: 20px;
        gap: 0;
    }

    .filters-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        margin-bottom: 0;
        transition: border-color 0.2s;
    }
    .filters-toggle:hover {
        border-color: #2688eb;
    }
    .filters-toggle span i {
        margin-right: 8px;
        color: #2688eb;
    }
    .filters-toggle-icon {
        transition: transform 0.3s;
    }
    .filters-sidebar.filters-open .filters-toggle-icon {
        transform: rotate(180deg);
    }

    .filters-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .filters-sidebar.filters-open .filters-collapse {
        max-height: 3000px;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .vacancy-item {
        padding: 15px 20px;
    }

    .vacancy-header {
        gap: 12px;
    }

    .vacancy-title {
        font-size: 18px;
        padding-right: 40px;
    }

    .favorite-icon {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    /* Вакансия дня - увеличиваем обводку на мобильном */
    .vacancy-day {
        border-width: 3px;
        padding-top: 25px;
    }

    .vacancy-day-badge {
        left: 15px;
        top: -10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .vacancy-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .vacancy-date {
        text-align: center;
    }

    .respond-btn {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }

    /* Описание категории - уменьшаем отступы на мобильном */
    .category-description-container {
        margin-bottom: 30px;
    }

    .category-description {
        padding: 20px;
    }
}

/* ============================================
   СЛАЙДЕР КАТЕГОРИЙ (Work Types Slider)
    ============================================ */
/* body на этой странице — flex-колонка, поэтому .container с margin: 0 auto
   не растягивается и держится по содержимому (широкий слайдер раздувал
   страницу на мобильных). Явная ширина 100% ограничивает контейнер вьюпортом;
   сами карточки скроллятся внутри .category-slider-wrapper. */
body > .container {
    width: 100%;
    min-width: 0;
}

.category-slider {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    display: block;
    border-radius: 8px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-slider-container {
    position: relative;
}

.category-slider-wrapper {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 5px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.category-slider-wrapper::-webkit-scrollbar {
    height: 4px;
}

.category-slider-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.category-slider-item {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    padding: 15px 10px;
    text-decoration: none;
}

.category-slider-item:hover {
    border-color: #2688eb;
    box-shadow: 0 4px 8px rgba(38, 136, 235, 0.1);
}

.category-slider-item.active {
    border-color: #2688eb;
    background-color: #f0f7ff;
}

/* Подкатегория в слайдере: блок 90% от категории, выровнен по центру вертикали */
.category-slider-item--sub {
    width: 108px;
    height: 108px;
    background-color: #f7fafd;
    border-color: #e2ebf3;
    padding: 10px 8px;
}

.category-slider-item--sub:hover {
    background-color: #f0f7ff;
}

.category-slider-item--sub .category-slider-icon {
    font-size: 22px;
    margin-bottom: 7px;
    color: #4caf50;
}

.category-slider-item--sub .category-slider-name {
    font-size: 12px;
    font-weight: 400;
}

.category-slider-item--sub.active {
    background-color: #f0f7ff;
    border-color: #2688eb;
}

.category-slider-icon {
    font-size: 28px;
    color: #2688eb;
    margin-bottom: 10px;
}

.category-slider-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.category-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.category-slider-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-slider-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-slider-btn.prev {
    left: 0;
}

.category-slider-btn.next {
    right: 0;
}

@media (max-width: 992px) {
    .category-slider-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .category-slider-item {
        width: 110px;
        height: 110px;
    }

    .category-slider-item--sub {
        width: 99px;
        height: 99px;
    }

    .category-slider-icon {
        font-size: 24px;
    }

    .category-slider-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .category-slider-item {
        width: 100px;
        height: 100px;
    }

    .category-slider-item--sub {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .filter-card {
        padding: 15px;
    }

    .filter-title {
        font-size: 14px;
    }

    .vacancy-salary {
        font-size: 16px;
    }

    .vacancy-tags {
        gap: 6px;
    }

    .vacancy-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* CTA Banner */
.cta-banner {
    margin-bottom: 0;
}

.cta-banner-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.cta-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cta-banner-text i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-banner-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
}

.cta-banner-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-banner-btn {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.cta-banner-btn:hover {
    background: #f0f0ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
    }

    .cta-banner-text {
        flex-direction: column;
        text-align: center;
    }
}
