/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;

    --text-primary: #1a1a1a;
    --text-secondary: #5f6368;
    --text-muted: #9aa0a6;

    --border-color: #e8eaed;
    --border-light: #f1f3f4;

    --accent: #1a73e8;
    --accent-light: #e8f0fe;

    --success: #34a853;
    --success-light: #e6f4ea;

    --warning: #f9ab00;
    --warning-light: #fef7e0;

    --error: #ea4335;
    --error-light: #fce8e6;

    --favorite: #ff6b6b;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: 0.15s ease;
    --transition-slow: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    overscroll-behavior-y: contain;
}

.app {
    max-width: 100%;
    min-height: 100vh;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes slideUp { to { transform: translateY(0); } }

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* Если используешь utility-классы анимаций — оставь. */
.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-fadeInUp { animation: fadeInUp 0.4s ease; }
.animate-slideInRight { animation: slideInRight 0.3s ease; }

/* ==================== PULL TO REFRESH ==================== */
.pull-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pull-indicator.visible { transform: translateX(-50%) translateY(0); }

.pull-indicator.loading .pull-arrow { animation: spin 0.8s linear infinite; }

.pull-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.pull-indicator.ready .pull-arrow { transform: rotate(180deg); }

/* ==================== ONBOARDING ==================== */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.onboarding-overlay.show { display: flex; animation: fadeIn 0.3s ease; }

.onboarding-modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    max-width: 360px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

.onboarding-slide { display: none; padding: 32px 24px; text-align: center; }

.onboarding-slide.active { display: block; animation: fadeIn 0.3s ease; }

.onboarding-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-icon svg { width: 40px; height: 40px; color: var(--accent); }

.onboarding-slide h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.onboarding-slide p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.onboarding-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all var(--transition);
}

.onboarding-dot.active { background: var(--text-primary); width: 24px; border-radius: 4px; }

.onboarding-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.onboarding-btn:active { opacity: 0.85; }

.onboarding-skip { margin-top: 12px; font-size: 14px; color: var(--text-muted); background: none; border: none; cursor: pointer; }

/* ==================== HEADER & TOOLBAR ==================== */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}

.toolbar-logo { display: flex; align-items: center; }

.logo-image {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.toolbar-title { font-size: 18px; font-weight: 700; }

.toolbar-actions { display: flex; gap: 8px; }

.toolbar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.toolbar-btn:active {
    background: var(--border-color);
    transform: scale(0.95);
}

.toolbar-btn svg { width: 20px; height: 20px; color: var(--text-primary); }

.toolbar-btn.active svg { color: var(--favorite); }

.favorites-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--favorite);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Profile badge (восклицательный знак) */
.profile-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    background: var(--warning);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== CATEGORIES ==================== */
.categories {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar { display: none; }

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
}

.category-btn:active,
.category-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ==================== SEARCH + SORT ROW ==================== */
.search-sort-container {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    align-items: center;
}

.search-wrapper { position: relative; flex: 1; }

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
}

.search-input:focus {
    background: var(--bg-primary);
    border-color: var(--text-muted);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.search-input::placeholder { color: var(--text-muted); }

/* Sort Button */
.sort-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.sort-btn:active { background: var(--bg-tertiary); }

.sort-btn svg { width: 20px; height: 20px; color: var(--text-primary); }

/* ==================== SORT DROPDOWN (MODAL) ==================== */
.sort-dropdown {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.sort-dropdown.open { display: block; }

.sort-dropdown-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.sort-dropdown-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 16px 32px;
    transform: translateY(100%);
    animation: slideUp 0.3s ease forwards;
    max-width: 540px;
    margin: 0 auto;
}

.sort-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sort-dropdown-header span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.sort-dropdown-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.sort-dropdown-close svg { width: 18px; height: 18px; color: var(--text-secondary); }

.sort-options { display: flex; flex-direction: column; gap: 4px; }

.sort-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition);
    width: 100%;
    text-align: left;
    font-family: var(--font-family);
}

.sort-option:active { background: var(--bg-secondary); }

.sort-option svg { width: 20px; height: 20px; color: var(--text-secondary); flex-shrink: 0; }

.sort-option span { flex: 1; font-size: 15px; color: var(--text-primary); }

.sort-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.sort-option.active .sort-check { border-color: var(--text-primary); background: var(--text-primary); }

.sort-option.active .sort-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.sort-option.active svg { color: var(--text-primary); }
.sort-option.active span { font-weight: 600; }

/* ==================== CUSTOM SELECT (SORT) ==================== */
.sort-container {
    padding: 0 16px 12px;
    position: relative;
}

.sort-wrapper { position: relative; }

.sort-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sort-select:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Кастомная стрелка */
.sort-wrapper::after {
    content: '';
    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(--text-secondary);
    pointer-events: none;
    transition: transform var(--transition);
}

.sort-wrapper:focus-within::after { transform: translateY(-50%) rotate(180deg); }

.sort-select option {
    padding: 12px 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
}

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.skeleton-image { width: 100%; aspect-ratio: 4/3; }

.skeleton-content { padding: 12px; }

.skeleton-title { height: 20px; margin-bottom: 8px; width: 80%; }

.skeleton-meta { display: flex; gap: 8px; margin-bottom: 8px; }

.skeleton-salary { height: 16px; width: 60px; }

.skeleton-type { height: 16px; width: 50px; }

.skeleton-text { height: 14px; width: 100%; margin-bottom: 4px; }

.skeleton-text:last-child { width: 70%; }

/* ==================== VACANCIES GRID ==================== */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 24px;
}

/* ==================== VACANCY CARD ==================== */
.vacancy-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: fadeInUp 0.4s ease backwards;
}

.vacancy-card:nth-child(1) { animation-delay: 0.05s; }
.vacancy-card:nth-child(2) { animation-delay: 0.1s; }
.vacancy-card:nth-child(3) { animation-delay: 0.15s; }
.vacancy-card:nth-child(4) { animation-delay: 0.2s; }
.vacancy-card:nth-child(5) { animation-delay: 0.25s; }
.vacancy-card:nth-child(6) { animation-delay: 0.3s; }

/* Ссылка карточки — БЕЗ подчёркивания (жёстко) */
.vacancy-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    flex: 1;
    transition: all var(--transition);
}

.vacancy-card-link:hover,
.vacancy-card-link:focus,
.vacancy-card-link:active { text-decoration: none !important; }

/* Все тексты внутри карточки — без подчёркивания */
.vacancy-card-link * { text-decoration: none !important; }

.vacancy-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Favorite button on card */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.favorite-btn:active { transform: scale(0.9); }

.favorite-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.favorite-btn.active svg {
    color: var(--favorite);
    fill: var(--favorite);
    animation: heartBeat 0.4s ease;
}

.vacancy-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.vacancy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Hover scale (если есть hover-устройства) */
.vacancy-card:hover .vacancy-image img { transform: scale(1.05); }

.vacancy-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.vacancy-image-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.vacancy-content { display: flex; flex-direction: column; padding: 12px; flex: 1; }

.vacancy-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-primary);
    text-decoration: none !important;
}

.vacancy-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    gap: 6px;
}

/* NB: salary/type оформлены “чипами”, как в твоём втором блоке */
.vacancy-salary,
.vacancy-type {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-decoration: none !important;
}

.vacancy-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.vacancy-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.vacancy-more { font-size: 13px; font-weight: 500; color: var(--text-primary); text-decoration: none !important; }

.arrow-icon { width: 14px; height: 14px; color: var(--text-primary); }

/* External link badge */
.external-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.external-badge svg { width: 12px; height: 12px; }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.empty-state svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 16px; }

.empty-state p { font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }

.empty-state span { font-size: 14px; color: var(--text-muted); }

/* ==================== LOADER ==================== */
.loader { display: flex; justify-content: center; padding: 40px; }

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== VACANCY PAGE ==================== */
.vacancy-page { padding-bottom: 0; }

.vacancy-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.back-btn:active { background: var(--bg-tertiary); }

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

.header-actions { display: flex; gap: 8px; }

.header-cta-btn {
    padding: 8px 16px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.header-cta-btn:active { opacity: 0.8; }

.header-favorite-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.header-favorite-btn svg { width: 18px; height: 18px; color: var(--text-secondary); }

.header-favorite-btn.active svg { color: var(--favorite); fill: var(--favorite); }

/* Hero */
.vacancy-hero {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.vacancy-hero img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* Main content */
.vacancy-main { padding: 20px 16px; animation: fadeInUp 0.4s ease; }

.vacancy-top { margin-bottom: 20px; }

.vacancy-page-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

/* Key Info */
.key-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.key-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    animation: fadeInUp 0.4s ease backwards;
}

.key-info-item:nth-child(1) { animation-delay: 0.1s; }
.key-info-item:nth-child(2) { animation-delay: 0.15s; }

.key-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.key-info-icon svg { width: 20px; height: 20px; color: var(--text-primary); }

.key-info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.key-info-label { font-size: 12px; color: var(--text-muted); }

.key-info-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* Sections */
.section { margin-bottom: 28px; animation: fadeInUp 0.4s ease backwards; }

.section:nth-of-type(1) { animation-delay: 0.2s; }
.section:nth-of-type(2) { animation-delay: 0.25s; }
.section:nth-of-type(3) { animation-delay: 0.3s; }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-title svg { width: 20px; height: 20px; color: var(--text-secondary); }

/* Advantages */
.advantages-list { display: flex; flex-direction: column; gap: 10px; }

.advantage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--success-light);
    border-radius: var(--radius-sm);
    animation: slideInRight 0.3s ease backwards;
}

.advantage-item:nth-child(1) { animation-delay: 0.25s; }
.advantage-item:nth-child(2) { animation-delay: 0.3s; }
.advantage-item:nth-child(3) { animation-delay: 0.35s; }
.advantage-item:nth-child(4) { animation-delay: 0.4s; }
.advantage-item:nth-child(5) { animation-delay: 0.45s; }

.advantage-item svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.advantage-item span { font-size: 14px; color: var(--text-primary); }

/* Description */
.description-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ==================== DESCRIPTION LIST (для форматирования описания) ==================== */
.description-text p { margin-bottom: 12px; }

.description-text strong { font-weight: 600; color: var(--text-primary); }

.description-text em { font-style: italic; }

.description-text u { text-decoration: underline; }

.description-list { list-style: none; padding: 0; margin: 12px 0; }

.description-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.description-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-weight: bold;
}

/* Share Button */
.share-section { margin-bottom: 24px; }

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
}

.share-btn:active { background: var(--bg-tertiary); }

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

/* Share Modal */
.share-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 16px 32px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    max-width: 540px;
    margin: 0 auto;
}

.share-modal.show { transform: translateY(0); }

.share-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.share-modal-backdrop.show { display: block; animation: fadeIn 0.2s ease; }

.share-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.share-modal-header h3 { font-size: 18px; font-weight: 600; }

.share-modal-close {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.share-modal-close svg { width: 18px; height: 18px; }

.share-options { display: flex; flex-direction: column; gap: 8px; }

.share-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition);
    width: 100%;
    text-align: left;
}

.share-option:active { background: var(--bg-tertiary); }

.share-option svg { width: 24px; height: 24px; color: var(--text-secondary); }

/* ==================== SIMILAR VACANCIES ==================== */
.similar-section {
    margin: 32px 16px 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.similar-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 0;
}

.similar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.similar-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition);
}

.similar-card:active { transform: scale(0.98); }

.similar-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    overflow: hidden;
}

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

.similar-card-content { padding: 12px; }

.similar-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.similar-card-salary { font-size: 12px; color: var(--text-secondary); }

/* Content CTA */
.content-cta { margin-top: 32px; margin-bottom: 32px; animation: fadeInUp 0.4s ease 0.35s backwards; }

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.cta-button:active { opacity: 0.85; }

.cta-button svg { width: 18px; height: 18px; }

/* ==================== APPLICATION FORM ==================== */
.application-section { background: var(--bg-secondary); border-top: 1px solid var(--border-color); }

.application-form { padding: 28px 16px 40px; }

.form-header { margin-bottom: 24px; }

.form-header h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }

.form-header p { font-size: 14px; color: var(--text-secondary); }

.form-group { margin-bottom: 16px; }

.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }

.form-input,
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
}

.form-group input:focus { border-color: var(--text-primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }

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

.form-group input.error { border-color: var(--error); background: var(--error-light); }

.field-error { display: block; font-size: 12px; color: var(--error); margin-top: 4px; min-height: 16px; }

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all var(--transition);
}

.submit-btn:active { opacity: 0.85; }

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

.submit-btn.loading { position: relative; color: transparent; }

.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.privacy-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.privacy-link { color: var(--text-secondary); text-decoration: underline; }

/* ==================== SUCCESS OVERLAY ==================== */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.success-overlay.show { display: flex; animation: fadeIn 0.3s ease; }

.success-modal { text-align: center; padding: 40px 24px; max-width: 320px; animation: fadeInUp 0.4s ease; }

.success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.success-icon svg { width: 36px; height: 36px; color: var(--success); }

.success-modal h3 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }

.success-modal p { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }

.success-btn {
    display: inline-flex;
    padding: 14px 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: opacity var(--transition);
}

.success-btn:active { opacity: 0.85; }

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ==================== FAVORITES PAGE ==================== */
.favorites-header { padding: 20px 16px; text-align: center; border-bottom: 1px solid var(--border-color); }

.favorites-header h1 { font-size: 22px; font-weight: 700; }

.favorites-header p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.favorites-empty svg { width: 64px; height: 64px; color: var(--text-muted); margin-bottom: 20px; }

.favorites-empty h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }

.favorites-empty p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

.favorites-empty-btn {
    padding: 12px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

/* ==================== PRIVACY PAGE ==================== */
.privacy-page .vacancy-main { padding-top: 0; }

.privacy-content { padding: 24px 16px; }

.privacy-content h1 { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }

.privacy-content h2 { font-size: 16px; font-weight: 600; margin: 28px 0 12px; color: var(--text-primary); }

.privacy-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.65; }

.privacy-content ul { margin-left: 20px; margin-bottom: 16px; }

.privacy-content li { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }

.privacy-content strong { color: var(--text-primary); font-weight: 600; }

/* ==================== PROFILE HINT (подсказка) ==================== */
.profile-hint {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 8px 16px;
    animation: slideDown 0.3s ease;
}

.profile-hint-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    position: relative;
}

.profile-hint-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-hint-icon svg { width: 18px; height: 18px; color: white; }

.profile-hint-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }

.profile-hint-text strong { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.profile-hint-text span { font-size: 12px; color: var(--text-secondary); }

.profile-hint-btn {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.profile-hint-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-hint-close svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ==================== QUICK APPLY ON CARD ==================== */
.card-quick-apply { padding: 0 12px 12px; }

.card-divider { height: 1px; background: var(--border-color); margin-bottom: 10px; }

/* SMALLER versions (оставлены) */
.card-quick-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.card-quick-apply-btn:active { opacity: 0.85; transform: scale(0.98); }

.card-quick-apply-btn svg { width: 14px; height: 14px; }

.card-quick-apply-sent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    background: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.card-quick-apply-sent svg { width: 14px; height: 14px; }

/* ==================== QUICK APPLY SECTION (на странице вакансии) ==================== */
.quick-apply-section { padding: 0 16px 24px; }

.quick-apply-container {
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
}

.quick-apply-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }

.quick-apply-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-apply-icon svg { width: 20px; height: 20px; color: white; }

.quick-apply-text { display: flex; flex-direction: column; gap: 4px; }

.quick-apply-text strong { font-size: 15px; font-weight: 600; color: var(--text-primary); }

.quick-apply-text span { font-size: 13px; color: var(--text-secondary); }

.quick-apply-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.quick-apply-button:active { opacity: 0.85; transform: scale(0.98); }

.quick-apply-button svg { width: 18px; height: 18px; }

.quick-apply-sent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.quick-apply-sent svg { width: 20px; height: 20px; }

/* ==================== FILL PROFILE SECTION ==================== */
.fill-profile-section { padding: 0 16px 24px; }

.fill-profile-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.fill-profile-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fill-profile-icon svg { width: 24px; height: 24px; color: var(--text-secondary); }

.fill-profile-text { display: flex; flex-direction: column; gap: 4px; }

.fill-profile-text strong { font-size: 15px; font-weight: 600; color: var(--text-primary); }

.fill-profile-text span { font-size: 13px; color: var(--text-secondary); }

.fill-profile-btn {
    padding: 10px 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

/* ==================== PROFILE PAGE ==================== */
.profile-page .profile-content { padding: 24px 16px; }

.profile-avatar { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }

.profile-avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.profile-avatar-circle svg { width: 40px; height: 40px; color: var(--text-muted); }

.profile-username { font-size: 16px; font-weight: 600; color: var(--text-primary); }

.profile-info-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.profile-info-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-info-icon svg { width: 20px; height: 20px; color: white; }

.profile-info-text { display: flex; flex-direction: column; gap: 4px; }

.profile-info-text strong { font-size: 15px; font-weight: 600; color: var(--text-primary); }

.profile-info-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

.profile-form { margin-bottom: 24px; }

.profile-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--success-light);
    border-radius: var(--radius-md);
    margin-top: 16px;
    margin-bottom: 24px;
}

.profile-status-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }

.profile-status-icon.success svg { width: 20px; height: 20px; color: var(--success); }

.profile-status span { font-size: 14px; color: var(--success); font-weight: 500; }

/* ==================== PROFILE TELEGRAM LINKS ==================== */
.profile-telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 24px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition);
}

.profile-telegram-link:active { background: var(--bg-tertiary); }

.profile-telegram-link svg { width: 20px; height: 20px; color: #0088cc; }

.profile-telegram-link span { color: var(--text-primary); font-weight: 500; }

.profile-telegram-link-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.profile-telegram-link-top:active { opacity: 0.9; }

.profile-telegram-link-top svg { width: 20px; height: 20px; color: white; }

.profile-telegram-link-top span { color: white; font-weight: 600; }

/* ==================== TELEGRAM BANNER ==================== */
.telegram-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.telegram-banner.show { transform: translateY(0); }

.telegram-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

.telegram-banner-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.telegram-banner-icon svg { width: 22px; height: 22px; color: white; }

.telegram-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.telegram-banner-text strong { font-size: 14px; font-weight: 600; color: white; }

.telegram-banner-text span { font-size: 12px; color: rgba(255, 255, 255, 0.85); line-height: 1.3; }

.telegram-banner-btn {
    padding: 8px 14px;
    background: white;
    color: #0088cc;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.telegram-banner-btn:active { opacity: 0.9; }

.telegram-banner-close {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.telegram-banner-close svg { width: 16px; height: 16px; color: white; }

/* Отступ для контента когда баннер показан */
body.has-telegram-banner .app { padding-top: 80px; }

/* Адаптив для маленьких экранов */
@media (max-width: 380px) {
    .telegram-banner-content { flex-wrap: wrap; }
    .telegram-banner-btn { width: 100%; text-align: center; margin-top: 8px; }
}

/* ==================== HIDE PULL INDICATOR BY DEFAULT ==================== */
.pull-indicator { display: none !important; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 400px) {
    .vacancies-grid { gap: 16px; }
    .vacancy-title { font-size: 15px; height: 40px; }
    .vacancy-description { font-size: 13px; }
}

@media (min-width: 480px) {
    .vacancy-hero { height: 240px; }
    .vacancy-page-title { font-size: 28px; }
}

@media (min-width: 600px) {
    .app {
        max-width: 540px;
        margin: 0 auto;
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        min-height: 100vh;
    }
}
