/* ═══════════════════════════════════════════════════════════════
   KUVALDA+ WEB — DESIGN SYSTEM v3
   По эскизу 2.png — чистый минималистичный дизайн
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   FONTS
───────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Inter-Bold.woff2') format('woff2');
}

/* Рукописный шрифт для надписи */
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Caveat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Caveat-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Caveat-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Caveat-Bold.ttf') format('truetype');
}

/* ─────────────────────────────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────────────────────────────── */

:root {
    /* Colors — Neutral */
    --background: #ffffff;
    --foreground: #0a0a0a;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --input: #e4e4e7;

    /* Colors — Primary (Orange) */
    --primary: #f97316;
    --primary-foreground: #ffffff;
    --primary-hover: #ea580c;
    
    /* Colors — Secondary */
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    
    /* Colors — Semantic */
    --success: #22c55e;
    --success-light: #f0fdf4;
    --warning: #eab308;
    --warning-light: #fefce8;
    --destructive: #ef4444;
    --destructive-light: #fef2f2;
    
    /* Colors — Cards */
    --card: #ffffff;
    --card-resume: #f0f9ff;
    --card-vacancy: #fff7ed;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-handwriting: 'Caveat', cursive;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    
    /* Layout */
    --container-max: 1000px;
    --header-height: 64px;
}

/* ─────────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ─────────────────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.page {
    min-height: 100vh;
}

.main {
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-12);
}

/* ─────────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────────── */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 80px;
}

.header-btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--foreground);
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo span {
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 40px;
    padding: 0 var(--space-5);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-telegram {
    background: #2AABEE;
    color: #ffffff;
}

.btn-telegram:hover {
    background: #1a96d4;
}

.btn-secondary {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--muted);
}

.btn-sm {
    height: 36px;
    padding: 0 var(--space-4);
    font-size: 0.8125rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* ─────────────────────────────────────────────────────────────────
   NAV GRID — Navigation Cards
───────────────────────────────────────────────────────────────── */

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    max-width: 700px;
    margin: 0 auto var(--space-6);
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.nav-card:hover {
    border-color: #d4d4d8;
    box-shadow: var(--shadow-md);
}

.nav-card-icon {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
}

.nav-card-icon img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.nav-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────
   NOTIFICATION BADGE — Web Version
───────────────────────────────────────────────────────────────── */
.nav-card--cabinet {
    position: relative;
}

.nav-card--cabinet .notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f68f3b, #eb7425);
    color: #ffffff;
    border-radius: var(--radius-full);
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 0 5px;
    border: 2px solid var(--background);
    box-shadow: 0 2px 8px rgba(235, 100, 37, 0.4);
    z-index: 10;
    animation: badge-pulse-web 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes badge-pulse-web {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(235, 110, 37, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(235, 93, 37, 0.6), 0 0 0 4px rgba(59, 130, 246, 0.15);
    }
}

.nav-card-icon .notification-badge:hover {
    animation: none;
}

/* ─────────────────────────────────────────────────────────────────
   AI ROW — Second Row with Handwriting Text
───────────────────────────────────────────────────────────────── */

.ai-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--space-4);
    max-width: 700px;
    margin: 0 auto var(--space-8);
    align-items: center;
}

.handwriting-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.handwriting-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.handwriting-svg text {
    font-family: var(--font-handwriting);
    font-size: 22px;
    font-weight: 500;
    fill: var(--foreground);
}

/* ─────────────────────────────────────────────────────────────────
   TABS
───────────────────────────────────────────────────────────────── */

.tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.tabs {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1);
    background: var(--muted);
    border-radius: var(--radius-full);
}

.tab {
    padding: var(--space-2) var(--space-5);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: transparent;
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}

.tab:hover {
    color: var(--foreground);
}

.tab.active {
    color: var(--foreground);
    background: var(--background);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ─────────────────────────────────────────────────────────────────
   SECTION
───────────────────────────────────────────────────────────────── */

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-6);
}

/* ─────────────────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────────────────── */

.cards-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 720px;
    margin: 0 auto;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #d4d4d8;
    box-shadow: var(--shadow-md);
}

.card-resume {
    background: var(--card-resume);
    border-color: #bfdbfe;
}

.card-resume:hover {
    border-color: #93c5fd;
}

.card-vacancy {
    background: var(--card-vacancy);
    border-color: #fed7aa;
}

.card-vacancy:hover {
    border-color: #fdba74;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-1);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.card-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.card-body {
    margin-bottom: var(--space-4);
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Availability — оранжевый текст */
.card-availability {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: var(--space-3);
}

/* Experience — серый текст */
.card-experience {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: var(--space-1);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}

/* Avatar — окошко для картинки */
.card-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Salary — оранжевый текст с иконкой */
.card-salary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

.card-salary svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Icon-only button для избранного */
.btn-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-icon-only:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon-only svg {
    width: 20px;
    height: 20px;
}

/* ─────────────────────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 var(--space-3);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-md);
}

.badge-success {
    background: transparent;
    color: var(--success);
}

.badge-warning {
    background: transparent;
    color: #ca8a04;
}

.badge-primary {
    background: transparent;
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────────────
   STATUS
───────────────────────────────────────────────────────────────── */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
}

/* ─────────────────────────────────────────────────────────────────
   VIEW ALL BUTTON
───────────────────────────────────────────────────────────────── */

.view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    max-width: 720px;
    padding: var(--space-3) var(--space-5);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-full);
    transition: all 0.7s ease;
    position: relative;
    overflow: hidden;
}

.view-all-btn:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.view-all-btn svg {
    width: 16px;
    height: 16px;
}

/* ─────────────────────────────────────────────────────────────────
   CABINET PAGE
───────────────────────────────────────────────────────────────── */

/* Header для cabinet — с кнопкой назад и заголовком */
.header-inner--cabinet {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: var(--space-4);
    padding-left: var(--space-12);
    padding-right: var(--space-12);
}

/* Back button */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.back-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Page title в шапке */
.page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
}

/* Logo в cabinet выравнивается по центру оставшегося пространства */
.header-inner--cabinet .logo {
    justify-self: center;
}

/* Cabinet sections */
.cabinet-section {
    margin-bottom: var(--space-8);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Section header с иконкой */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.section-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.section-title--left {
    text-align: left;
    margin-bottom: 0;
}

/* Empty state — заглушка */
.empty-state {
    width: 100%;
    max-width: 780px;
    padding: 3rem var(--space-5);
    background: var(--muted);
    border-radius: var(--radius-xl);
    border: 1px dashed var(--border);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state-text {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    text-align: center;
}

/* Info notice — информационная плашка */
.info-notice {
    padding: var(--space-4) var(--space-5);
    background: var(--warning-light);
    border: 1px solid #fde68a;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.info-notice-text {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.6;
}

/* Status archived */
.status--archived {
    color: var(--muted-foreground);
    background: var(--muted);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

/* Card archived — слегка приглушённая */
.card-archived {
    opacity: 0.85;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--space-4);
}

.modal-container {
    background: var(--background);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--muted-foreground);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: var(--muted);
    color: var(--foreground);
}

.modal-body {
    padding: var(--space-5);
    overflow-y: auto;
}

.modal-message {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: var(--space-4);
}

.modal-cards-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-5);
    border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────────────
   FAVORITES PAGE
───────────────────────────────────────────────────────────────── */

/* Звёздочка избранного в углу карточки */
.favorite-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fbbf24;
    flex-shrink: 0;
}

.favorite-badge svg {
    width: 20px;
    height: 20px;
}

/* Активная кнопка избранного (сердечко заполненное) */
.btn-favorite-active {
    color: var(--primary);
    background: var(--primary-foreground);
    border: 1px solid var(--primary);
}

.btn-favorite-active:hover {
    background: #fff7ed;
}

.btn-favorite-active svg {
    fill: var(--primary);
    stroke: var(--primary);
}

/* Карточка в избранном */
.card-favorite {
    position: relative;
}

/* ─────────────────────────────────────────────────────────────────
   CANDIDATES PAGE
───────────────────────────────────────────────────────────────── */

/* Контейнер табов */
.tabs-container {
    max-width: 720px;
    margin: 0 auto var(--space-5);
}

/* Табы */
.tabs {
    display: flex;
    background: var(--muted);
    border-radius: var(--radius-lg);
    padding: 4px;
    gap: 4px;
}

.tab {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-align: center;
}

.tab:hover {
    color: var(--foreground);
}

.tab.active {
    background: var(--background);
    color: var(--foreground);
    box-shadow: var(--shadow-sm);
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Фильтры */
.filters-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto var(--space-5);
}

.filter-row {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    width: 100%;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-select,
.filter-input {
    flex: 1;
    min-width: 0;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--foreground);
    background: var(--muted);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    transition: all 0.2s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--background);
}

.filter-select.full-width {
    width: 100%;
}

/* Searchable Dropdown */
.searchable-dropdown {
    position: relative;
    flex: 1;
}

/* Контейнеры searchable-dropdown в filter-row должны растягиваться */
.filter-row > div {
    flex: 1;
    min-width: 0;
}

/* searchable-dropdown внутри filter-row */
.filter-row .searchable-dropdown {
    width: 100%;
}

.searchable-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--foreground);
    background: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.searchable-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--background);
}

.dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted-foreground);
    pointer-events: none;
    transition: transform 0.2s;
}

.searchable-dropdown.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.dropdown-list.hidden {
    display: none;
}

.dropdown-items {
    padding: var(--space-2) 0;
}

.dropdown-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background-color 0.15s;
    font-size: 0.9375rem;
}

.dropdown-item:hover,
.dropdown-item.highlighted {
    background-color: var(--muted);
}

.dropdown-item mark {
    background-color: #fef08a;
    color: inherit;
    font-weight: 500;
    border-radius: 2px;
    padding: 0 2px;
}

.dropdown-no-results {
    padding: var(--space-4);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Cards container для candidates */
.cards-container {
    max-width: 720px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────────── */

/* Loader — три точки с анимацией */
.pagination-loader {
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0;
}

.loader-dots {
    display: flex;
    gap: 6px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0.6); 
        opacity: 0.5; 
    }
    40% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* End message — всё загружено */
.pagination-end {
    text-align: center;
    padding: var(--space-5) 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.pagination-end span {
    color: var(--success);
    margin-right: var(--space-1);
}

/* Error — ошибка загрузки */
.pagination-error {
    text-align: center;
    padding: var(--space-5);
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pagination-error span {
    display: block;
    margin-bottom: var(--space-3);
    color: #991b1b;
}

.btn-retry {
    padding: var(--space-2) var(--space-4);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-retry:hover {
    background: var(--primary-hover);
}

/* ─────────────────────────────────────────────────────────────────
   CREATE PAGE — FORMS
───────────────────────────────────────────────────────────────── */

/* Form container */
.form-container {
    max-width: 720px;
    margin: 0 auto;
}

/* Form group */
.form-group {
    margin-bottom: var(--space-5);
}

/* Form label */
.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

/* Form input */
.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--foreground);
    background: var(--muted);
    transition: all 0.2s;
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--background);
}

/* Form textarea */
.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--foreground);
    background: var(--muted);
    resize: vertical;
    transition: all 0.2s;
    line-height: 1.5;
}

.form-textarea::placeholder {
    color: var(--muted-foreground);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--background);
}

/* Submit button — синяя */
.submit-button {
    width: 100%;
    padding: var(--space-4);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: var(--space-3);
}

.submit-button:hover {
    background: var(--primary-hover);
}

/* Archive button — красная */
.archive-button {
    width: 100%;
    padding: var(--space-4);
    background: #ef4444;
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.archive-button:hover {
    background: #dc2626;
}

/* Info notice link */
.info-notice-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.info-notice-link:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE FIRST APPROACH
───────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   TABLET (max-width: 768px)
═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    /* === HEADER === */
    .header-inner {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    /* === NAV GRID === */
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .ai-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }
    
    .handwriting-text {
        grid-column: 1 / -1;
        order: -1;
    }
    
    .handwriting-svg {
        max-width: 320px;
    }
    
    .handwriting-svg text {
        font-size: 22px;
    }
    
    .nav-card {
        padding: var(--space-4) var(--space-3);
    }
    
    .nav-card-icon {
        width: 72px;
        height: 72px;
    }
    
    .nav-card-icon img {
        width: 72px;
        height: 72px;
    }
    
    .nav-card-label {
        font-size: 0.8125rem;
    }
    
    /* === CABINET HEADER TABLET === */
    .header-inner--cabinet {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .header-inner--cabinet .back-btn {
        flex-shrink: 0;
    }
    
    .header-inner--cabinet .page-title {
        flex-shrink: 0;
    }
    
    .header-inner--cabinet .logo {
        flex: 1;
        justify-content: center;
    }
    
    .header-inner--cabinet #logoutBtn {
        flex-shrink: 0;
    }
    
    .back-btn {
        width: 40px;
        height: 40px;
    }
    
    .back-btn img {
        width: 40px;
        height: 40px;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    /* === CABINET SECTIONS TABLET === */
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .section-header {
        gap: var(--space-2);
    }
    
    .section-title--left {
        font-size: 1rem;
    }
    
    /* === CARDS TABLET === */
    .card {
        padding: var(--space-4);
    }
    
    .card-footer {
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    
    .card-avatar {
        width: 40px;
        height: 40px;
    }
    
    .card-salary svg {
        width: 16px;
        height: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE (max-width: 480px) — SMARTPHONES
═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    :root {
        --header-height: 52px;
    }
    
    /* === CONTAINER === */
    .container {
        padding: 0 var(--space-3);
    }
    
    /* === HEADER MOBILE === */
    .header-inner {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
    }
    
    .btn-sm {
        height: 32px;
        padding: 0 var(--space-3);
        font-size: 0.75rem;
    }
    
    /* === CABINET HEADER MOBILE === */
    .header-inner--cabinet {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }
    
    .header-inner--cabinet .page-title {
        display: none;
    }
    
    .header-inner--cabinet .logo {
        flex: 1;
        justify-content: flex-start;
        margin-left: var(--space-2);
    }
    
    .back-btn {
        width: 32px;
        height: 32px;
    }
    
    .back-btn img {
        width: 32px;
        height: 32px;
    }
    
    /* === NAV GRID MOBILE === */
    .nav-card {
        padding: var(--space-3) var(--space-2);
    }
    
    .nav-card-icon {
        width: 56px;
        height: 56px;
    }
    
    .nav-card-icon img {
        width: 56px;
        height: 56px;
    }
    
    .nav-card-label {
        font-size: 0.75rem;
    }
    
    .handwriting-svg {
        max-width: 280px;
    }
    
    .handwriting-svg text {
        font-size: 20px;
    }
    
    /* === SECTIONS MOBILE === */
    .section-title {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .section-icon {
        width: 48px;
        height: 48px;
    }
    
    .section-title--left {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    /* === EMPTY STATE MOBILE === */
    .empty-state {
        padding: 2.5rem var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .empty-state-text {
        font-size: 0.875rem;
    }
    
    /* === INFO NOTICE MOBILE === */
    .info-notice {
        padding: var(--space-3);
        border-radius: var(--radius-lg);
    }
    
    .info-notice-text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    
    /* === CARDS MOBILE === */
    .card {
        padding: var(--space-3);
        border-radius: var(--radius-lg);
    }
    
    .card-header {
        margin-bottom: var(--space-2);
    }
    
    .card-title {
        font-size: 0.9375rem;
    }
    
    .card-meta {
        flex-wrap: wrap;
        gap: var(--space-2);
        font-size: 0.75rem;
    }
    
    .card-meta-item svg {
        width: 12px;
        height: 12px;
    }
    
    .card-body {
        margin-bottom: var(--space-3);
    }
    
    .card-description {
        font-size: 0.8125rem;
    }
    
    .card-availability {
        font-size: 0.8125rem;
        margin-top: var(--space-2);
    }
    
    .card-experience {
        font-size: 0.75rem;
    }
    
    .card-footer {
        flex-wrap: wrap;
        gap: var(--space-2);
        padding-top: var(--space-3);
    }
    
    .card-avatar {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
    }
    
    .card-salary {
        font-size: 0.875rem;
        width: 100%;
        margin-bottom: var(--space-2);
    }
    
    .card-salary svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
    
    .card-actions .btn {
        flex: 1;
        min-width: 0;
    }
    
    .btn-icon-only {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }
    
    .btn-icon-only svg {
        width: 18px;
        height: 18px;
    }
    
    /* === STATUS MOBILE === */
    .status {
        font-size: 0.75rem;
    }
    
    .status-dot {
        width: 6px;
        height: 6px;
    }
    
    .status--archived {
        font-size: 0.6875rem;
        padding: 2px 6px;
    }
    
    /* === FAVORITES MOBILE === */
    .favorite-badge {
        width: 24px;
        height: 24px;
    }
    
    .favorite-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .btn-favorite-active {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }
    
    /* === TABS MOBILE === */
    .tabs {
        width: 100%;
    }
    
    .tab {
        flex: 1;
        padding: var(--space-2) var(--space-3);
        font-size: 0.8125rem;
    }
    
    /* === FILTERS MOBILE === */
    .filters-container {
        margin-bottom: var(--space-4);
    }
    
    .filter-row {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .filter-select,
    .filter-input,
    .searchable-input {
        padding: var(--space-3);
        font-size: 0.875rem;
    }
    
    /* === SEARCHABLE DROPDOWN MOBILE === */
    .dropdown-list {
        max-height: 220px;
    }
    
    .dropdown-item {
        padding: var(--space-3);
        font-size: 0.875rem;
    }
    
    /* === PAGINATION MOBILE === */
    .pagination-loader {
        padding: var(--space-5) 0;
    }
    
    .loader-dots span {
        width: 6px;
        height: 6px;
    }
    
    .pagination-end {
        padding: var(--space-4) 0;
        font-size: 0.8125rem;
    }
    
    .pagination-error {
        padding: var(--space-4);
        margin: var(--space-3) 0;
    }
    
    /* === FORMS MOBILE === */
    .form-group {
        margin-bottom: var(--space-4);
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: var(--space-1);
    }
    
    .form-input {
        padding: var(--space-3);
        font-size: 0.875rem;
    }
    
    .form-textarea {
        padding: var(--space-3);
        font-size: 0.875rem;
        min-height: 80px;
    }
    
    .submit-button,
    .archive-button {
        padding: var(--space-3);
        font-size: 0.9375rem;
    }
    
    /* === MODAL MOBILE === */
    .modal-container {
        margin: var(--space-3);
        max-height: calc(100vh - var(--space-6));
    }
    
    .modal-header {
        padding: var(--space-4);
    }
    
    .modal-title {
        font-size: 0.9375rem;
    }
    
    .modal-body {
        padding: var(--space-4);
    }
    
    .modal-footer {
        padding: var(--space-4);
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP (min-width: 769px)
═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    .header-inner--cabinet {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   FOCUS STATES
───────────────────────────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ─────────────────────────────────────────────────────────────────
   CALCULATORS PAGE
───────────────────────────────────────────────────────────────── */

/* Секция калькуляторов */
.calculators-section {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Карточка калькулятора */
.calc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.2s ease;
}

.calc-card:hover {
    border-color: #d4d4d8;
    box-shadow: var(--shadow-md);
}

.calc-card:active {
    transform: scale(0.995);
}

/* Контент карточки */
.calc-card-content {
    flex: 1;
    min-width: 0;
}

.calc-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.calc-card-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.calc-card-version {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #e8750a;
  margin-top: 6px;
}

/* ─── Бегущая рамка: featured-карточка ─── */

.calc-card--featured {
    position: relative;
    border-color: transparent;
}

.calc-card--featured:hover {
    border-color: transparent;
}

.calc-card__border-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.calc-card__border-rect {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    stroke-dasharray: 20 8;
    stroke-linecap: round;
    animation: marching-ants 2.3s linear infinite;
}

@keyframes marching-ants {
    to {
        stroke-dashoffset: -28;
    }
}

/* Стрелка */
.calc-card-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--muted-foreground);
    transition: transform 0.2s ease, color 0.2s ease;
}

.calc-card-arrow svg {
    width: 100%;
    height: 100%;
}

.calc-card:hover .calc-card-arrow {
    color: var(--foreground);
    transform: translateX(4px);
}

/* Info notice link */
.info-notice-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-notice-link:hover {
    color: var(--primary-hover);
}

/* ─────────────────────────────────────────────────────────────────
   CALCULATORS PAGE — MOBILE (max-width: 480px)
───────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .calculators-section {
        gap: var(--space-3);
    }
    
    .calc-card {
        padding: var(--space-4) var(--space-5);
        border-radius: var(--radius-lg);
    }
    
    .calc-card-title {
        font-size: 0.9375rem;
    }
    
    .calc-card-subtitle {
        font-size: 0.8125rem;
    }
    
    .calc-card-arrow {
        width: 20px;
        height: 20px;
    }

    .calc-card__border-rect {
        rx: 12;
        ry: 12;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DYNAMIC CARDS STYLES
   Стили для карточек, генерируемых JavaScript
   Добавить в КОНЕЦ styles.css
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   EMPTY STATE (Заглушки)
───────────────────────────────────────────────────────────────── */

.empty-card {
    max-width: 100%;
    margin: var(--space-4) 0;
    padding: var(--space-6);
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    background: var(--muted);
    
    /* Фиксированная высота для единообразия */
    height: 80px;              /* ← Изменить min-height на height */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .empty-card {
        min-height: 64px;
        padding: var(--space-4) var(--space-3);
        font-size: 0.8125rem;
        border-radius: var(--radius-lg);
    }
}

/* ─────────────────────────────────────────────────────────────────
   VACANCY CARD (Карточки вакансий)
───────────────────────────────────────────────────────────────── */

.vacancy-card {
    background: var(--card-vacancy);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.vacancy-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

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

.vacancy-location {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.vacancy-experience {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    margin-top: var(--space-1);
}

.vacancy-description {
    color: var(--foreground);
    font-size: 0.875rem;
    margin-top: var(--space-2);
    line-height: 1.5;
}

.vacancy-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.vacancy-salary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.vacancy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.vacancy-button:hover {
    background: var(--primary-hover);
}

/* ─────────────────────────────────────────────────────────────────
   RESUME CARD (Карточки резюме)
───────────────────────────────────────────────────────────────── */

.resume-card {
    background: var(--card-resume);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.resume-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.resume-card .card-info {
    flex: 1;
    min-width: 0;
}

.resume-card .card-location {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   CABINET VACANCY CARD
───────────────────────────────────────────────────────────────── */

.cabinet-vacancy-card {
    background: var(--card-vacancy);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.salary-and-edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.salary-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.response-count-info {
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

/* ─────────────────────────────────────────────────────────────────
   CARD COMMON ELEMENTS
───────────────────────────────────────────────────────────────── */

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.card-description {
    color: var(--foreground);
    font-size: 0.875rem;
    margin-top: var(--space-2);
    line-height: 1.5;
}

.card-availability {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: var(--space-2);
}

.card-experience {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    margin-top: var(--space-1);
}

/* Card Icons */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-icon {
    background: var(--warning-light);
}

.doc-icon::before {
    content: "📋";
    font-size: 1.5rem;
}

.worker-icon {
    background: var(--card-resume);
}

.worker-icon::before {
    content: "👷";
    font-size: 1.5rem;
}

/* Status Icons */
.green-plus {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-plus {
    font-size: 2rem;
    color: var(--success);
    flex-shrink: 0;
    cursor: pointer;
}

.green-check,
.status-icon {
    color: var(--success);
    font-size: 1.25rem;
}

.add-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────
   CARD BUTTONS
───────────────────────────────────────────────────────────────── */

.card-buttons,
.card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 var(--space-5);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.card-button.button-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.card-button.button-primary:hover {
    background: var(--primary-hover);
}

.card-button.button-secondary {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.card-button.button-secondary:hover {
    background: var(--muted);
}

.edit-btn,
.btn-edit {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.edit-btn:hover,
.btn-edit:hover {
    background: var(--muted);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSE INFO BAR
───────────────────────────────────────────────────────────────── */

.response-info-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--success-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-top: var(--space-3);
}

.response-info-bar a {
    color: var(--primary);
    font-weight: 500;
}

.response-icon {
    font-size: 1rem;
}

.trash-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.trash-btn:hover {
    opacity: 1;
}

.trash-btn::before {
    content: "🗑️";
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   MODAL STYLES
───────────────────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
}

.modal-container {
    background: var(--background);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--muted-foreground);
    transition: background 0.15s;
}

.modal-close:hover {
    background: var(--muted);
}

.modal-body {
    padding: var(--space-5);
}

.modal-message {
    color: var(--muted-foreground);
    margin-bottom: var(--space-4);
}

.modal-cards-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-5);
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   ДОПОЛНЕНИЕ К styles.css
   Стили для Splash Screen и JS-генерируемых карточек
   Добавить в КОНЕЦ styles.css
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   SPLASH SCREEN
───────────────────────────────────────────────────────────────── */

.splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.splash img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

.splash--hide {
    opacity: 0;
    visibility: hidden;
}

/* ─────────────────────────────────────────────────────────────────
   JS-GENERATED CARDS — Resume (.resume-card)
   Стилизуем чтобы выглядели как статические .card.card-resume
───────────────────────────────────────────────────────────────── */

.resume-card {
    background: var(--card-resume);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    transition: all 0.2s ease;
}

.resume-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-md);
}

/* Header резюме */
.resume-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.resume-card .card-info {
    flex: 1;
    min-width: 0;
}

.resume-card .card-location {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

/* Кнопки резюме */
.resume-card .card-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    margin-top: var(--space-3);
}

/* ─────────────────────────────────────────────────────────────────
   JS-GENERATED CARDS — Vacancy (.vacancy-card)
   Стилизуем чтобы выглядели как статические .card.card-vacancy
───────────────────────────────────────────────────────────────── */

.vacancy-card {
    background: var(--card-vacancy);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    transition: all 0.2s ease;
}

.vacancy-card:hover {
    border-color: #fdba74;
    box-shadow: var(--shadow-md);
}

/* Info row вакансии */
.vacancy-card .vacancy-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.vacancy-card .vacancy-details {
    flex: 1;
    min-width: 0;
}

.vacancy-card .vacancy-location {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.vacancy-card .vacancy-experience {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: var(--space-1);
}

.vacancy-card .vacancy-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-top: var(--space-2);
}

/* Extra row (salary + buttons) */
.vacancy-card .vacancy-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.vacancy-card .vacancy-salary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────────────
   COMMON ELEMENTS FOR JS CARDS
───────────────────────────────────────────────────────────────── */

/* Card Icons */
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.worker-icon {
    background: #e0f2fe;
}

.worker-icon::before {
    content: "👷";
}

.doc-icon {
    background: #ffedd5;
}

.doc-icon::before {
    content: "📋";
}

/* Status icons */
.green-plus {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.green-check {
    color: var(--success);
    font-size: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────────
   CARD BUTTONS (JS-generated)
───────────────────────────────────────────────────────────────── */

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 var(--space-4);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.card-button.button-primary,
.button-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.card-button.button-primary:hover,
.button-primary:hover {
    background: var(--primary-hover);
}

.card-button.button-secondary,
.button-secondary {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.card-button.button-secondary:hover,
.button-secondary:hover {
    background: var(--muted);
}

/* Response buttons */
.response-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 var(--space-4);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.response-btn--respond {
    background: var(--primary);
    color: var(--primary-foreground);
}

.response-btn--respond:hover {
    background: var(--primary-hover);
}

.response-btn--withdraw {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.response-btn--withdraw:hover {
    background: var(--muted);
}

/* Favorite button */
.button-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 var(--space-3);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.button-favorite:hover {
    background: var(--muted);
}

.button-favorite--remove {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.button-favorite--remove:hover {
    background: var(--primary-hover);
}

/* ─────────────────────────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────────────────────────── */

.empty-card {
    max-width: 100%;
    margin: var(--space-4) 0;
    padding: var(--space-6);
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    background: var(--muted);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Заглушка внутри секции (не в .cards-list) */
.tab-content > .empty-card {
    max-width: 720px;
    margin: var(--space-10) auto var(--space-10);
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
───────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    
    /* Splash */
    .splash img {
        max-width: 90%;
    }
    
    /* Resume card */
    .resume-card {
        padding: var(--space-4);
    }
    
    .resume-card .card-header {
        flex-wrap: wrap;
    }
    
    .resume-card .card-buttons {
        gap: var(--space-2);
    }
    
    /* Vacancy card */
    .vacancy-card {
        padding: var(--space-4);
    }
    
    .vacancy-card .vacancy-info {
        flex-wrap: wrap;
    }
    
    .vacancy-card .vacancy-extra {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    /* Card icons */
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    /* Buttons */
    .card-button,
    .response-btn,
    .button-favorite {
        height: 32px;
        padding: 0 var(--space-3);
        font-size: 0.75rem;
    }
    
    /* Empty state */
    .empty-card {
        height: 64px;
        padding: var(--space-4) var(--space-3);
        font-size: 0.8125rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   FILTER ROW FIX — Адаптивные фильтры для candidates.html
   Добавить в конец styles.css
───────────────────────────────────────────────────────────────── */

/* Фильтры — базовые стили */
.filter-row {
    display: flex;
    gap: var(--space-3);
    width: 100%;
}

/* Селекты в filter-row занимают равную ширину */
.filter-row .filter-select {
    flex: 1;
    min-width: 0; /* Позволяет сжиматься */
}

/* Мобильная адаптация — фильтры в колонку */
@media (max-width: 600px) {
    .filter-row {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .filter-row .filter-select {
        width: 100%;
    }
}

/* Заглушка избранного — ширина как у карточек (720px) */
#favoritesContainer > .empty-card {
    width: 100%;
    max-width: 780px;
    margin: var(--space-4) auto;
    height: auto;
    min-height: 160px;
    padding: 3rem var(--space-5);
}

/* ═══════════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ UI-CARDS-WEB.JS
   Добавить в конец styles.css
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   ЗВЕЗДА ИЗБРАННОГО (вместо статуса на карточках в favorites.html)
───────────────────────────────────────────────────────────────── */

.favorite-star {
    color: var(--warning, #eab308);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.favorite-star svg {
    width: 100%;
    height: 100%;
}

/* ─────────────────────────────────────────────────────────────────
   КНОПКА ИЗБРАННОГО — АКТИВНОЕ СОСТОЯНИЕ
───────────────────────────────────────────────────────────────── */

.btn-icon-only--active {
    color: var(--primary, #f97316);
}

.btn-icon-only--active svg {
    fill: var(--primary, #f97316);
}

/* ─────────────────────────────────────────────────────────────────
   СЧЁТЧИК ОТКЛИКОВ В КАБИНЕТЕ
───────────────────────────────────────────────────────────────── */

.card-response-count {
    padding: var(--space-2, 8px) var(--space-4, 16px);
    background: var(--success-light, #f0fdf4);
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    color: var(--success, #22c55e);
    font-weight: 500;
    margin-top: var(--space-3, 12px);
}

/* ─────────────────────────────────────────────────────────────────
   КНОПКИ НА КАРТОЧКАХ — СТИЛИ ИЗ APP.JS (createCardButtons)
───────────────────────────────────────────────────────────────── */

/* Основные кнопки действий */
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    white-space: nowrap;
}

.button-primary {
    background: var(--primary, #f97316);
    color: white;
}

.button-primary:hover {
    background: var(--primary-hover, #ea580c);
}

.button-secondary {
    background: var(--secondary, #f4f4f5);
    color: var(--secondary-foreground, #18181b);
    border: 1px solid var(--border, #e4e4e7);
}

.button-secondary:hover {
    background: var(--muted, #f4f4f5);
    border-color: #d4d4d8;
}

/* Кнопки отклика/приглашения */
.response-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.response-btn--respond {
    background: var(--primary, #f97316);
    color: white;
}

.response-btn--respond:hover {
    background: var(--primary-hover, #ea580c);
}

.response-btn--withdraw {
    background: var(--secondary, #f4f4f5);
    color: var(--secondary-foreground, #18181b);
    border: 1px solid var(--border, #e4e4e7);
}

.response-btn--withdraw:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Кнопки избранного с эмодзи */
.button-favorite {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid var(--border, #e4e4e7);
    background: white;
}

.button-favorite--add {
    color: var(--muted-foreground, #71717a);
}

.button-favorite--add:hover {
    border-color: var(--primary, #f97316);
    color: var(--primary, #f97316);
}

.button-favorite--remove {
    color: var(--primary, #f97316);
    border-color: var(--primary, #f97316);
    background: #fff7ed;
}

.button-favorite--remove:hover {
    background: #ffedd5;
}

/* Кнопка редактирования */
.edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--secondary, #f4f4f5);
    color: var(--secondary-foreground, #18181b);
    border: 1px solid var(--border, #e4e4e7);
}

.edit-btn:hover {
    background: var(--muted, #f4f4f5);
    border-color: #d4d4d8;
}

/* Кнопка восстановления */
.btn-restore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--primary, #f97316);
    color: white;
    border: none;
}

.btn-restore:hover {
    background: var(--primary-hover, #ea580c);
}

/* ─────────────────────────────────────────────────────────────────
   АДАПТИВНОСТЬ ДЛЯ КНОПОК
───────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .card-button,
    .response-btn,
    .button-favorite,
    .edit-btn,
    .btn-restore {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    .card-actions {
        flex-wrap: wrap;
        gap: var(--space-2, 8px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   CSS-ИСПРАВЛЕНИЯ v4.0 — ФИНАЛЬНЫЕ
   Дата: 21.01.2026
   
   ИНСТРУКЦИЯ:
   1. Удалить из styles.css всё начиная со строки 3158 
      (комментарий "CSS-ИСПРАВЛЕНИЯ ДЛЯ КАРТОЧЕК ВАКАНСИЙ")
   2. Добавить этот код вместо удалённого
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. ОТСТУПЫ МЕЖДУ КАРТОЧКАМИ — 10px
───────────────────────────────────────────────────────────────── */

/* Главная страница — резюме (в .cards-list) */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

/* Главная страница — вакансии (в #vacanciesTab напрямую) */
#vacanciesTab > .card {
    margin-bottom: 10px;
}

#vacanciesTab > .card:last-of-type {
    margin-bottom: 0;
}

/* Страница candidates — оба таба (в .cards-container) */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────
   2. КНОПКА ИЗБРАННОГО — ТОЛЬКО ИКОНКА 40×40
───────────────────────────────────────────────────────────────── */

.button-favorite,
.button-favorite--add,
.button-favorite--remove {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border, #e4e4e7);
    background: var(--background, #ffffff);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

/* Пустое сердце */
.button-favorite::after,
.button-favorite--add::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.button-favorite:hover::after,
.button-favorite--add:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}

.button-favorite:hover,
.button-favorite--add:hover {
    border-color: var(--primary, #f97316);
}

/* Заполненное сердце */
.button-favorite--remove::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23f97316' stroke='%23f97316' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.button-favorite--remove {
    border-color: var(--primary, #f97316);
    background: #fff7ed;
}

.button-favorite--remove:hover {
    background: #ffedd5;
}

/* ─────────────────────────────────────────────────────────────────
   3. МОБИЛЬНАЯ АДАПТАЦИЯ
───────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .button-favorite,
    .button-favorite--add,
    .button-favorite--remove {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    
    .button-favorite::after,
    .button-favorite--add::after,
    .button-favorite--remove::after {
        width: 18px;
        height: 18px;
    }
    
    .cards-list,
    .cards-container {
        gap: 8px;
    }
    
    #vacanciesTab > .card {
        margin-bottom: 8px;
    }
}

/* Ограничение ширины карточек в табе вакансий на главной */
#vacanciesTab {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ─────────────────────────────────────────────────────────────────
   ВЫРАВНИВАНИЕ И ВЫСОТА ПОДВАЛА КАРТОЧЕК
   Добавить в конец styles.css
───────────────────────────────────────────────────────────────── */

/* Подвал карточки — выравнивание по центру и уменьшение высоты */
.card-footer {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 0;
}

/* Убираем лишние отступы у элементов внутри подвала */
.card-footer .card-avatar,
.card-footer .card-salary,
.card-footer .card-actions {
    margin-top: 0;
    margin-bottom: 0;
}

/* Кнопки в подвале — выравнивание */
.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Уменьшаем нижний padding карточки */
.card {
    padding-bottom: 16px;
}

/* Смещаем кнопку "Откликнуться" вниз */
.response-btn {
    position: relative;
    top: 2px; /* сдвиг вниз на 2px */
}

/* Смещаем кнопку "Связаться" вниз */
button[data-action="contact"] {
    position: relative;
    top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CSS-ИСПРАВЛЕНИЯ ДЛЯ ИЗБРАННОГО И КАБИНЕТА
   Версия: 5.0 — 21.01.2026
   
   Добавить в конец styles.css
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. ИЗБРАННОЕ — промежутки и ширина
───────────────────────────────────────────────────────────────── */

#favoritesContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

#favoritesContainer > .card {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────
   2. КАБИНЕТ — секции с карточками
───────────────────────────────────────────────────────────────── */

.cabinet-section {
    max-width: 720px;
    margin: 0 auto;
    margin-bottom: var(--space-6, 24px);
}

/* Заголовок секции */
.cabinet-section .section-header {
    margin-bottom: 16px;
}

/* Карточки внутри секции — промежутки */
.cabinet-section > .card {
    margin-bottom: 10px;
}

.cabinet-section > .card:last-of-type {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────
   3. АРХИВ — дополнительные стили
───────────────────────────────────────────────────────────────── */

#archiveSection {
    max-width: 720px;
    margin: 0 auto;
}

#archiveSection > .card {
    margin-bottom: 10px;
}

#archiveSection > .card:last-of-type {
    margin-bottom: 0;
}

/* Статус "В архиве" */
.status--archived {
    color: var(--muted-foreground, #71717a);
    font-size: 0.875rem;
}

/* Приглушённый вид архивной карточки */
.card-archived {
    opacity: 0.85;
}

.card-archived:hover {
    opacity: 1;
}

/* Скрываем дублирующийся бейдж "В архиве" в подвале */
.archive-badge {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   KUVALDA+ WEB — STATUS CHECK ICON
   Стиль для иконки галочки в карточках истории откликов
   
   Добавить в конец styles.css
═══════════════════════════════════════════════════════════════ */

/* Иконка галочки (для карточек в Истории откликов) */
.status-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary, #f97316);
}

.status-check svg {
    width: 24px;
    height: 24px;
}

.error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 4px;
}