/* ============================================================
   ПУБЛИЧНАЯ PWA-ЧАСТЬ 73h.ru (CLEAN & FIXED)
   ============================================================ */
/* :root удалён — переменные в tokens.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.public-page {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ===== ХЕДЕР ===== */
.public-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: #1a2332;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
}

.public-header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-header-left,
.public-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-logo {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.public-nav {
    display: flex;
    gap: 16px;
    margin-left: 24px;
}

.public-nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.public-nav a:hover { color: white; }

/* Гамбургер */
.public-sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.public-sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Иконки и бейджи в шапке */
.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.header-icon:hover { color: white; background: rgba(255,255,255,0.1); }

.header-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    border: 2px solid #1a2332;
}

/* Аватарка */
.user-menu-wrapper { position: relative; display: inline-block; }

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 20px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4F46E5;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
}
.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    padding: 8px 0;
    z-index: 1001;
}

.user-menu-dropdown.active { display: block; }

.user-menu-info {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.user-menu-name { font-weight: 600; color: var(--text); font-size: 14px; }
.user-menu-email { color: var(--text-muted); font-size: 12px; }

.user-menu-item {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-menu-item:hover { background: var(--bg); }
.user-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.user-menu-logout { color: #ef4444 !important; font-weight: 500; }

/* Кнопки в шапке сайта (гость) */
.header-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e0;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}
.header-btn-login:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.header-btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.2s;
    white-space: nowrap;
}
.header-btn-register:hover {
    background: var(--primary-dark);
}
/* Основной контент */
.public-main {
    min-height: calc(100dvh - var(--header-height) - 100px);
    padding-top: 0;
}

.public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Футер */
.public-footer {
    background: #1a2332;
    color: #9aa8b8;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.public-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.public-footer a { color: #9aa8b8; text-decoration: none; }
.public-footer a:hover { color: white; }
.public-footer-links { margin-top: 8px; font-size: 12px; color: #718096; }

/* Кнопка-звездочка */
.btn-fav-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 2px solid #e2e8f0 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    padding: 0 !important;
    color: #94a3b8 !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
}
.btn-fav-icon:hover { border-color: #ef4444 !important; color: #ef4444 !important; background: #fef2f2 !important; }
.btn-fav-icon.active { background: #fef2f2 !important; border-color: #ef4444 !important; color: #ef4444 !important; }
.btn-fav-icon .fav-icon { line-height: 1 !important; display: block !important; font-family: Arial, sans-serif !important; }

/* ============================================
   ВОССТАНАВЛИВАЕМ ШАПКУ (PUBLIC HEADER)
   ============================================ */
.public-header {
    position: sticky;
    top: 0;
    height: 60px;
    background: #1a2332;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
}

.public-header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-header-left,
.public-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-logo {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.public-nav {
    display: flex;
    gap: 16px;
    margin-left: 24px;
}

.public-nav a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.public-nav a:hover { color: white; }

.public-sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.public-sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Мобильное меню — СКРЫТО по умолчанию */
.public-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}
.public-mobile-overlay.active { display: block; }

.public-mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100dvh;
    background: #1a2332;
    z-index: 1501;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}
.public-mobile-menu.active { left: 0; }

.public-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-weight: 600;
}
.public-mobile-close {
    background: transparent;
    border: none;
    color: #9aa8b8;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}
.public-mobile-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.public-mobile-nav a {
    display: block;
    padding: 14px 24px;
    color: #9aa8b8;
    text-decoration: none;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.public-mobile-nav a:hover,
.public-mobile-nav a:active {
    background: rgba(255,255,255,0.05);
    color: white;
}
.public-mobile-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 20px; }
.public-mobile-login { color: #818CF8 !important; }
.public-mobile-logout { color: #EF4444 !important; }

@media (max-width: 768px) {
    /* ... бургер, навигация ... */
    
    /* Компактные кнопки в шапке на мобилке */
    .header-btn-login {
        display: inline-flex !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        margin-right: 6px !important;
        white-space: nowrap;
    }
    .header-btn-register {
        display: inline-flex !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    /* Уменьшаем логотип и отступы, чтобы всё влезло */
    .public-logo {
        font-size: 18px !important;
        margin-right: 8px;
    }
    .public-header-inner {
        padding: 0 10px !important;
    }
}
/* === Модалка отклика (respond-modal) === */
.respond-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.respond-modal[style*="display: flex"],
.respond-modal[style*="display:flex"] {
    display: flex !important;
}
.respond-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 36, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.respond-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.respond-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f2;
}
.respond-modal-header h2 { margin: 0; font-size: 18px; font-weight: 700; color: #1a2332; }
.respond-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #7a8a9a;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
}
.respond-modal-close:hover { background: #f0f2f5; color: #1a2332; }
.respond-modal-body { padding: 20px 24px; }
.respond-vacancy-info { margin-bottom: 16px; font-size: 14px; color: #4a5568; }
.respond-vacancy-info strong { color: #1a2332; }
.respond-company { display: block; margin-top: 4px; font-size: 13px; color: #7a8a9a; }
.respond-form-group { margin-bottom: 16px; }
.respond-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 6px;
}
.respond-select,
.respond-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #eef0f2;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.2s;
}
.respond-select:focus,
.respond-textarea:focus { border-color: #4F46E5; background: #fff; }
.respond-textarea { resize: vertical; min-height: 100px; }
.respond-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #eef0f2;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}
.respond-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}
.respond-alert.success { background: #e8f8ee; color: #1a8a4a; border: 1px solid #c3e6cb; }
.respond-alert.error { background: #fde8e8; color: #b33a3a; border: 1px solid #f5c6cb; }
@media (max-width: 640px) {
    .respond-modal-content { max-height: 95vh; border-radius: 14px; }
    .respond-modal-header { padding: 16px 18px; }
    .respond-modal-body { padding: 16px 18px; }
    .respond-modal-footer {
        flex-direction: column-reverse;
        padding: 14px 18px;
    }
    .respond-modal-footer .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   HOME FILTERS — блок фильтров на главной
   ============================================================ */
.home-filters {
    max-width: 760px;
    margin: 24px auto 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.home-filters-form { display: flex; flex-direction: column; gap: 12px; }
.home-filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.home-filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-filter-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.home-filter-group label svg { flex-shrink: 0; }
.home-filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a2332;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.home-filter-group input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.home-city-wrap { position: relative; display: flex; gap: 6px; }
.home-city-wrap input { flex: 1; }
.home-city-detect {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.home-city-detect:hover { background: rgba(255, 255, 255, 0.2); }
.home-filter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    font-family: inherit;
    height: 40px;
}
.home-filter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}
.home-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.home-chips-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-right: 4px;
}
.home-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.home-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(124, 143, 255, 0.4);
}
.home-chip svg { flex-shrink: 0; }

@media (max-width: 768px) {
    .home-filters { padding: 12px; margin: 20px auto 0; }
    .home-filters-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .home-filter-submit { height: 42px; }
    .home-chips-label { display: none; }
    .home-chip { font-size: 11px; padding: 5px 10px; }
}
.articles-page { max-width: 1200px; margin: 0 auto; padding: 32px 20px 60px; }
.articles-header { margin-bottom: 28px; text-align: center; }
.articles-header h1 { font-size: 32px; color: #1a2332; margin: 0 0 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.articles-header h1 svg { color: #4F46E5; }
.articles-header p { color: #7a8a9a; font-size: 15px; margin: 0; }
.cats-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.cat-chip { background: white; border: 1px solid #eef0f2; padding: 8px 16px; border-radius: 20px; color: #5a6a7a; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.15s; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.cat-chip:hover { border-color: #4F46E5; color: #4F46E5; }
.cat-chip.active { background: #4F46E5; color: white; border-color: #4F46E5; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.article-card { display: flex; flex-direction: column; background: white; border: 1px solid #eef0f2; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.15s; }
.article-card:hover { transform: translateY(-3px); border-color: #4F46E5; box-shadow: 0 12px 28px rgba(79,70,229,0.1); }
.article-cover { height: 100px; background: linear-gradient(135deg, #4F46E5 0%, #7c3aed 100%); display: flex; align-items: center; justify-content: center; color: white; }
.article-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-cat { display: inline-block; background: #e8f0fe; color: #4F46E5; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 12px; width: fit-content; }
.article-body h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #1a2332; line-height: 1.35; }
.article-body .excerpt { margin: 0 0 16px; font-size: 14px; color: #7a8a9a; line-height: 1.6; flex: 1; }
.article-body .stats { display: flex; justify-content: space-between; font-size: 13px; color: #64748b; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.article-body .stats span { display: inline-flex; align-items: center; gap: 4px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: white; border: 1px solid #e1e4e8; border-radius: 10px; color: #4a5568; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.15s; }
.pagination a:hover { border-color: #4F46E5; color: #4F46E5; }
.pagination .active { background: #4F46E5; border-color: #4F46E5; color: white; }
.pagination .dots { border: none; background: none; }
.empty-block { background: white; border: 2px dashed #eef0f2; border-radius: 16px; padding: 60px 20px; text-align: center; color: #7a8a9a; }
.empty-block .icon { display: flex; justify-content: center; margin-bottom: 12px; }
@media (max-width: 768px) {
    .articles-page { padding: 20px 16px 40px; }
    .articles-header h1 { font-size: 22px; }
    .articles-header p { font-size: 13px; }
    .articles-grid { grid-template-columns: 1fr; gap: 14px; }
    .article-cover { height: 80px; }
    .article-body { padding: 20px; }
    .article-body h3 { font-size: 16px; }
    .pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
}

/* ============================================
   ФИКС МОБИЛЬНОЙ СЕТКИ ДЛЯ ВАКАНСИЙ И РЕЗЮМЕ
   (добавлено 04.11.2026)
   ============================================ */

@media (max-width: 992px) {
    .vacancies-list,
    .resumes-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .sort-options {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        gap: 6px !important;
        padding: 4px !important;
    }

    .sort-option {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    .empty-state {
        padding: 40px 16px !important;
    }

    .empty-state h3 {
        font-size: 18px !important;
    }

    .empty-state .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* === Фикс: кнопка "Фильтры" только на мобилке === */
.filters-toggle-mobile {
    display: none !important;
}
@media (max-width: 992px) {
    .filters-toggle-mobile {
        display: flex !important;
    }
}
/* === ФИКС: 2 колонки карточек на десктопе === */
@media (min-width: 1200px) {
    .vacancies-list,
    .resumes-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        align-items: start !important;
    }
}

/* === ФИКС: сайдбар — убрать внутренний скролл === */
@media (min-width: 993px) {
    .filters-sidebar {
        max-height: none !important;
        overflow-y: visible !important;
        position: sticky !important;
        top: 80px !important;
    }
}

/* === ФИКС: "Найдено: N" — крупнее === */
.results-count {
    font-size: 15px !important;
    color: #5a6a7a !important;
}
.results-count strong {
    font-size: 20px !important;
    color: #1a2332 !important;
    font-weight: 800 !important;
    margin: 0 4px !important;
}

/* === ФИКС: активная сортировка — фиолетовая === */
.sort-option.active {
    background: white !important;
    color: #4F46E5 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border: 1px solid #4F46E5 !important;
}

/* === ФИКС: мета-данные в карточке — плотнее === */
.resume-meta,
.vacancy-meta {
    gap: 6px 12px !important;
}
/* ============================================================
   ПАГИНАЦИЯ + СОРТИРОВКА (общие для /vacancies, /resumes)
   ============================================================ */
.sort-dropdown { display: flex; align-items: center; gap: 8px; }
.sort-dropdown label { font-size: 13px; color: #7a8a9a; white-space: nowrap; }
.sort-options { display: flex; gap: 4px; background: #f0f2f5; border-radius: 10px; padding: 4px; }
.sort-option { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: #5a6a7a; text-decoration: none; font-weight: 500; white-space: nowrap; transition: all 0.15s; }
.sort-option:hover { background: white; color: #1a2332; }
.sort-option.active { background: white; color: #4F46E5; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination-page, .pagination-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: white; border: 1px solid #e1e4e8; border-radius: 10px; color: #4a5568; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.15s; cursor: pointer; }
.pagination-page:hover, .pagination-arrow:hover { border-color: #4F46E5; color: #4F46E5; }
.pagination-page.active { background: #4F46E5; border-color: #4F46E5; color: white; }
.pagination-arrow.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pagination-dots { color: #7a8a9a; padding: 0 4px; font-weight: 600; }

@media (max-width: 992px) {
    .sort-dropdown { flex-direction: column; align-items: stretch; min-width: 0; }
    .sort-options { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; gap: 6px; padding: 4px; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
    .sort-option { flex: 0 0 auto; white-space: nowrap; }
    .pagination-page, .pagination-arrow { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
}
/* ============================================================
   СТАТУСЫ ОТКЛИКОВ (общие для applicant/employer response_view)
   ============================================================ */
.status-banner { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.status-pending { background: #fef4e6; color: #b37a2a; border-left: 4px solid #f39c12; }
.status-viewed { background: #e8f0fe; color: #2a5a8a; border-left: 4px solid #3498db; }
.status-approved { background: #e8f8ee; color: #1a8a4a; border-left: 4px solid #2ecc71; }
.status-rejected { background: #fde8e8; color: #b33a3a; border-left: 4px solid #e74c3c; }
/* ============================================================
   НАВЫКИ (общие для vacancy, resume, resume_full)
   ============================================================ */
.skills-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { background: #e8f0fe; color: var(--primary); padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
/* ============================================================
   ПОХОЖИЕ (общие для vacancy, company)
   ============================================================ */
.similar-section { grid-column: 1 / -1; margin-top: 32px; margin-bottom: 40px; }
.similar-section h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.similar-card { background: white; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); transition: all 0.15s; display: flex; flex-direction: column; }
.similar-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(79,70,229,0.08); }
.similar-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.similar-card .company { font-size: 13px; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.similar-card .company a { color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.similar-card .company a:hover { text-decoration: underline; }
.similar-card .salary { font-size: 15px; font-weight: 700; color: #1a2332; background: #e8f8ee; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-top: auto; align-self: flex-start; }
/* ============================================================
   КНОПКА "ВОЙТИ, ЧТОБЫ ОТКЛИКНУТЬСЯ" (для гостей)
   ============================================================ */
.btn-respond-guest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f1f5f9 !important;
    color: #4F46E5 !important;
    border: 1px solid #4F46E5 !important;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-respond-guest:hover {
    background: #eef2ff !important;
    transform: translateY(-1px);
}
.btn-respond-guest svg {
    flex-shrink: 0;
}
/* ============================================================
   МОБИЛЬНЫЙ ХЕДЕР: скрываем кнопки, оставляем бургер
   ============================================================ */
@media (max-width: 768px) {
    /* Скрываем кнопки "Вход" и "Регистрация" на мобилке */
    .header-btn-login,
    .header-btn-register {
        display: none !important;
    }

    /* Уменьшаем логотип (чтобы не наезжал на бургер) */
    .public-logo {
        font-size: 18px !important;
    }
}
/* ============================================================
   БУРГЕР НА МОБИЛКЕ — ПОКАЗЫВАЕМ
   ============================================================ */
@media (max-width: 768px) {
    .public-sidebar-toggle {
        display: flex !important;
    }
}
