/* ╔═══════════════════════════════════════════════╗
   ║  ZaichenkoTeam — Jobs Listing Page            ║
   ╚═══════════════════════════════════════════════╝ */

:root {
  --bg: #f5f6fa; --bg-card: #ffffff; --fg: #111827; --fg-muted: #6b7280; --fg-light: #9ca3af;
  --primary: #2563eb; --primary-light: #3b82f6; --primary-dark: #1d4ed8; --primary-fg: #ffffff;
  --success: #16a34a; --warning: #f59e0b; --info: #0ea5e9; --destructive: #ef4444;
  --border: #e5e7eb; --border-light: #f3f4f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04); --shadow-md: 0 4px 14px rgba(37,99,235,0.12); --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-primary: 0 4px 14px rgba(37,99,235,0.25);
  --radius: 1rem; --radius-sm: 0.75rem; --radius-full: 9999px;
  --font-heading: 'Montserrat', system-ui, sans-serif; --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--fg); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER (shared) ── */
.header { position: sticky; top: 0; z-index: 100; background: rgba(245,246,250,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-svg { height: 22px; width: auto; max-width: 160px; color: var(--fg); }
.nav-desktop { display: flex; gap: 2rem; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--fg-muted); transition: color 0.2s; }
.nav-link:hover { color: var(--fg); }
.nav-link-active { color: var(--primary) !important; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 2px; }
.lang-btn { padding: 0.3rem 0.7rem; font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; color: var(--fg-light); background: transparent; border: none; border-radius: var(--radius-full); cursor: pointer; }
.lang-btn.active { background: var(--primary); color: var(--primary-fg); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; border-radius: var(--radius-full); padding: 0.625rem 1.5rem; border: none; cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--fg); padding: 0.5rem; }
.mobile-menu { display: none; overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease); }
.mobile-menu.open { max-height: 420px; }
.mobile-nav { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.mobile-link { font-size: 0.875rem; font-weight: 500; color: var(--fg-muted); }
@media (max-width: 768px) { .nav-desktop,.nav-right { display: none; } .mobile-toggle { display: block; } .mobile-menu { display: block; } .header-inner { height: 56px; } .logo-svg { height: 17px; } }

/* ═══════════════════════════════════
   SEARCH HERO
   ═══════════════════════════════════ */
.jobs-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, #eef2ff 0%, #f0f4ff 50%, var(--bg) 100%);
  text-align: center;
}
.jobs-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.jobs-hero-sub {
  font-size: 0.9375rem; color: var(--fg-muted);
  margin-bottom: 1.75rem;
}
.jobs-hero-sub strong { color: var(--primary); font-weight: 700; }

.jobs-search {
  display: flex; align-items: stretch;
  max-width: 640px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px;
  box-shadow: 0 8px 30px rgba(37,99,235,0.08);
}
.js-field {
  flex: 1; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
}
.js-field svg { color: var(--fg-light); flex-shrink: 0; }
.js-field input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--fg);
}
.js-field input::placeholder { color: var(--fg-light); }
.js-btn {
  background: var(--primary); color: var(--primary-fg);
  border: none; border-radius: calc(var(--radius) - 4px);
  padding: 0 1.75rem; font-family: var(--font-heading);
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  transition: background 0.2s;
}
.js-btn:hover { background: var(--primary-dark); }

@media (max-width: 640px) {
  .jobs-hero { padding: 2rem 0 1.5rem; }
  .jobs-search { flex-direction: column; padding: 6px; }
  .js-field input { font-size: 16px; }
  .js-btn { padding: 0.875rem; width: 100%; border-radius: calc(var(--radius) - 6px); }
}

/* ═══════════════════════════════════
   LAYOUT: filters + results
   ═══════════════════════════════════ */
.jobs-main { padding: 2rem 0 4rem; }

.jobs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 960px) { .jobs-layout { grid-template-columns: 240px 1fr; gap: 1.25rem; } }
@media (max-width: 768px) { .jobs-layout { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════
   FILTERS SIDEBAR
   ═══════════════════════════════════ */
.filters-sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  position: sticky; top: 80px;
}
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.filters-title { font-size: 0.9375rem; font-weight: 700; }
.filters-actions { display: inline-flex; align-items: center; gap: 0.5rem; }
.filters-reset { background: none; border: none; font-size: 0.75rem; color: var(--primary); cursor: pointer; font-weight: 600; font-family: var(--font-heading); }
.filters-close { display: none; width: 2.25rem; height: 2.25rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--fg-muted); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.filters-mobile-apply { display: none; }

.filter-group { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-light); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-label { font-size: 0.8125rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--fg); }
.filter-option {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--fg-muted);
  padding: 0.3rem 0; cursor: pointer; transition: color 0.15s;
}
.filter-option:hover { color: var(--fg); }
.filter-check {
  width: 16px; height: 16px; border-radius: 4px;
  accent-color: var(--primary); cursor: pointer; flex-shrink: 0;
}
.filter-count { margin-left: auto; font-size: 0.75rem; color: var(--fg-light); }

.filters-cta {
  margin-top: 1.25rem; padding: 1rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02));
  border-radius: var(--radius-sm); text-align: center;
}
.filters-cta p { font-size: 0.8125rem; color: var(--fg-muted); margin-bottom: 0.5rem; }

/* Mobile: filters as overlay */
@media (max-width: 768px) {
  .filters-sidebar {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200; border-radius: 0; overflow-y: auto;
    padding: 1.5rem; padding-top: 4.5rem; padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
  }
  .filters-sidebar.filters-open { display: block; }
  .filters-sidebar::before {
    content: 'Фільтри'; position: fixed; top: 0; left: 0; right: 0;
    padding: 1rem 1.5rem; background: var(--bg-card); border-bottom: 1px solid var(--border);
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem; z-index: 1;
  }
  .lang-en .filters-sidebar::before { content: 'Filters'; }
  .filters-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: fixed; top: 0.65rem; right: 1rem; z-index: 3;
  }
  .filters-actions .filters-reset {
    position: fixed; top: 1.05rem; right: 4rem; z-index: 3;
  }
  .filters-mobile-apply {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
    border-top: 1px solid var(--border);
    box-shadow: 0 -18px 40px rgba(17,24,39,0.08);
  }
  .filters-mobile-apply .btn {
    width: 100%; justify-content: center; min-height: 3rem; border-radius: 999px;
  }
  body.filters-lock {
    overflow: hidden;
  }
}

/* ═══════════════════════════════════
   RESULTS TOOLBAR
   ═══════════════════════════════════ */
.results-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 1rem;
}
.results-count { font-size: 0.875rem; color: var(--fg-muted); }
.results-count strong { color: var(--fg); font-weight: 700; }
.results-sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--fg-muted); }
.results-sort select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem; font-family: var(--font-body);
  font-size: 0.8125rem; color: var(--fg); background: var(--bg-card);
  cursor: pointer; outline: none;
}
.results-sort select:focus { border-color: var(--primary); }

.mobile-filters-btn {
  display: none; align-items: center; gap: 0.375rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.5rem 0.875rem;
  font-family: var(--font-heading); font-size: 0.8125rem;
  font-weight: 600; color: var(--fg); cursor: pointer;
}
@media (max-width: 768px) { .mobile-filters-btn { display: inline-flex; } .results-sort label { display: none; } }

/* Active filters chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.3rem 0.625rem; font-size: 0.75rem; font-weight: 500;
  background: rgba(37,99,235,0.08); color: var(--primary);
  border-radius: var(--radius-full);
}
.chip-x { background: none; border: none; color: var(--primary); font-size: 0.875rem; cursor: pointer; padding: 0; line-height: 1; }
.chips-clear { background: none; border: none; font-size: 0.75rem; color: var(--fg-muted); cursor: pointer; font-weight: 500; }

/* ═══════════════════════════════════
   JOB CARDS (list view)
   ═══════════════════════════════════ */
.jobs-list { display: flex; flex-direction: column; gap: 0.5rem; }

.jobs-empty {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--fg-muted);
  text-align: center;
  font-size: 0.9375rem;
}

.jc {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.25s var(--ease);
  text-decoration: none; color: inherit;
}
.jc:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.jc-left { display: flex; align-items: flex-start; gap: 1rem; flex: 1; min-width: 0; }

.jc-logo {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white; font-family: var(--font-heading);
  font-weight: 800; font-size: 0.8125rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.jc-logo-image {
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.35rem;
}
.jc-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.jc-logo-placeholder {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

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

.jc-badges { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.375rem; }
.badge { display: inline-block; font-family: var(--font-heading); font-size: 0.625rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: var(--radius-full); letter-spacing: 0.02em; }
.badge-hot { background: var(--destructive); color: white; }
.badge-new { background: rgba(22,163,74,0.1); color: var(--success); }
.badge-cat { background: rgba(37,99,235,0.08); color: var(--primary); }
.badge-marketing { background: rgba(37,99,235,0.08); color: var(--primary); }
.badge-sales { background: rgba(22,163,74,0.08); color: var(--success); }
.badge-design { background: rgba(236,72,153,0.08); color: #ec4899; }
.badge-product { background: rgba(14,165,233,0.08); color: var(--info); }
.badge-hr { background: rgba(245,158,11,0.08); color: var(--warning); }

.jc-title {
  font-size: 1rem; font-weight: 700; color: var(--fg);
  margin-bottom: 0.25rem; transition: color 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jc:hover .jc-title { color: var(--primary); }

.jc-meta {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  font-size: 0.8125rem; color: var(--fg-muted);
  margin-bottom: 0.375rem;
}
.jc-dot { color: var(--border); }

.jc-right { text-align: right; flex-shrink: 0; }
.jc-salary { font-family: var(--font-heading); font-weight: 800; font-size: 0.9375rem; color: var(--fg); white-space: nowrap; }
.jc-date { font-size: 0.75rem; color: var(--fg-light); margin-top: 0.25rem; }

@media (max-width: 768px) {
  .jc { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.125rem; }
  .jc-right { display: flex; width: 100%; justify-content: space-between; align-items: center; padding-top: 0.625rem; border-top: 1px solid var(--border-light); }
  .jc-logo { width: 38px; height: 38px; border-radius: 9px; font-size: 0.75rem; }
  .jc-title { white-space: normal; font-size: 0.9375rem; }
  .jc-meta { font-size: 0.75rem; }
  }

/* ═══════════════════════════════════
   PAGINATION
   ═══════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.375rem; margin-top: 2rem;
}
.page-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--fg);
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.page-btn:hover:not(:disabled):not(.page-active) { border-color: var(--primary); color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.page-dots { font-size: 0.875rem; color: var(--fg-light); padding: 0 0.25rem; }
.page-prev svg, .page-next svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .page-btn { width: 36px; height: 36px; font-size: 0.75rem; }
}

/* ═══════════════════════════════════
   FOOTER (shared)
   ═══════════════════════════════════ */
.footer { background: linear-gradient(180deg, #eef2ff 0%, #f0f4ff 40%, #f5f6fa 100%); color: var(--fg); padding: 3rem 0 0; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(37,99,235,0.18), transparent); }
.footer-logo { color: var(--fg); height: 18px; width: auto; }
.footer-tagline { margin-top: 0.75rem; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--fg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer a { font-size: 0.8125rem; color: var(--fg-muted); transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(37,99,235,0.1); padding: 1.25rem 0; text-align: center; font-size: 0.8125rem; color: var(--fg-muted); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } .footer-brand { grid-column: 1/-1; } .footer-logo { height: 16px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════
   v2 ADDITIONS (23.04.2026)
   - Header/Footer consistency з home
   - Save job button
   - Fresh today banner
   - Mobile FAB
   - iPhone 17 Pro Max optimization
   ═══════════════════════════════════════════════════════════ */

/* Global overflow protection (як на home) */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* ── Mobile menu with lang switcher + active state (shared з home) ── */
.mobile-link-active {
  color: var(--primary) !important;
  font-weight: 700;
  background: rgba(37,99,235,0.06);
  border-left: 3px solid var(--primary);
  padding-left: calc(1rem - 3px) !important;
}
.mobile-lang {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  align-self: flex-start;
  margin: 0.75rem 0;
}
.mobile-lang .lang-btn {
  padding: 0.4rem 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.mobile-lang .lang-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Nav active з underline */
.nav-link-active {
  position: relative;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ── Footer (shared з home, full version) ── */
.footer {
  background: linear-gradient(180deg, #eef2ff 0%, #f0f4ff 50%, #f5f6fa 100%);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo-svg {
  height: 24px;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer ul a {
  font-size: 0.875rem;
  color: var(--fg);
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--primary); }
.footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: all 0.25s var(--ease);
}
/* Brand colors (як на home) */
.fs-tg { background: rgba(39,174,237,0.12); color: #27aeed; }
.fs-tg:hover { background: #27aeed; color: #fff; }
.fs-ig { background: rgba(225,48,108,0.12); color: #e1306c; }
.fs-ig:hover { background: linear-gradient(135deg, #fd5949 0%, #d6249f 50%, #285AEB 100%); color: #fff; }
.fs-fb { background: rgba(24,119,242,0.12); color: #1877f2; }
.fs-fb:hover { background: #1877f2; color: #fff; }
.fs-li { background: rgba(10,102,194,0.12); color: #0a66c2; }
.fs-li:hover { background: #0a66c2; color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* ═══════════════════════════════════
   MOBILE FLOATING FILTER BUTTON (FAB)
   ═══════════════════════════════════ */
.mobile-fab {
  display: none; /* прихований на desktop */
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--fg);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(17,24,39,0.35), 0 3px 8px rgba(17,24,39,0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}
.mobile-fab:active {
  transform: translateX(-50%) scale(0.96);
}
.mobile-fab.active {
  background: var(--primary);
}
.fab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size:  0.625rem;
  font-weight: 800;
  line-height: 1;
}
.mobile-fab.active .fab-badge {
  background: #fff;
  color: var(--primary);
}

@media (max-width: 768px) {
  .mobile-fab { display: inline-flex; }
}

/* ═══════════════════════════════════
   iPhone 17 Pro Max (440px) + mobile opts
   ═══════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero */
  .jobs-hero { padding: 2rem 0 !important; }
  .jobs-hero h1 { font-size: 1.75rem !important; line-height: 1.2 !important; text-wrap: balance; }
  .jobs-hero p { font-size: 0.9375rem !important; }

  /* Search bar — full width, stacked */
  .search-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .search-bar input,
  .search-bar select,
  .search-bar button {
    width: 100%;
    font-size: 16px !important; /* prevent iOS zoom */
    min-height: 48px;
  }

  /* Footer — mobile stacked */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 1rem 1.5rem;
  }
  .footer-brand {
    grid-column: span 2;
  }

  /* Job cards — вертикальний layout */
  .jc {
    flex-direction: column;
    padding: 1.125rem !important;
     /* місце для save button */
    gap: 0.75rem;
  }
  .jc-logo {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.875rem !important;
  }
  .jc-title {
    font-size: 0.9375rem !important;
    line-height: 1.3;
  }
  .jc-meta {
    font-size: 0.75rem !important;
    flex-wrap: wrap;
  }
  .jc-right {
    align-items: flex-start !important;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .jc-salary { font-size: 0.9375rem !important; }
  .jc-date { font-size: 0.75rem !important; }

  /* Save button — трохи менше на mobile */
  /* Fresh banner — компактніше */
  /* Мобільні фільтри приховуємо на default, показуємо через FAB */
  .jobs-filters {
    display: none;
  }
  .jobs-filters.filters-open {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: var(--bg-card);
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -20px 50px -10px rgba(0,0,0,0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 95;
    animation: sheet-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes sheet-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Pagination — компактний mobile */
  .pagination { gap: 0.25rem !important; }
  .pag-btn { min-width: 36px; height: 36px; font-size: 0.8125rem; }

  /* Results grid — 1 col */
  .jobs-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Active filter chips — scroll */
  .active-filters {
    display: flex !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.375rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .active-filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

/* ── iPhone SE / малі екрани ── */
@media (max-width: 400px) {
  .jobs-hero h1 { font-size: 1.5rem !important; }
  .jc { padding: 1rem !important;  }
  .jc-title { font-size: 0.875rem !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .jobs-filters.filters-open { animation: none !important; }
}

/* Safe area для footer */
@supports (padding: env(safe-area-inset-bottom)) {
  body { padding-bottom: 0; }
}


/* ═══════════════════════════════════════════
   v3 — TALENT POOL SECTION (copied from home)
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   v6.3 — TALENT POOL SECTION (Залиш CV → офер)
   ═══════════════════════════════════════════ */

.talent-pool {
  padding: 3rem 0;
}

.tp-card {
  position: relative;
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  color: #fff;
}

.tp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.tp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: tp-float 20s ease-in-out infinite;
}
.tp-blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent 60%);
  top: -120px; right: -80px;
}
.tp-blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #6366f1, transparent 60%);
  bottom: -140px; left: -60px;
  animation-delay: -10s;
  animation-duration: 24s;
}
@keyframes tp-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.tp-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.tp-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.tp-title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
  text-wrap: balance;
}

.tp-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tp-subtitle {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 2.25rem;
  max-width: 560px;
  text-wrap: balance;
}

.tp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}
@media (max-width: 768px) {
  .tp-features { grid-template-columns: 1fr; gap: 0.75rem; }
}

.tp-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.875rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tp-feature-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.tp-feature strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.125rem;
}

.tp-feature span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.65);
}

.tp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -8px rgba(255,255,255,0.3);
  min-height: 48px;
}
.tp-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(255,255,255,0.4);
}

.tp-foot {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin: 1rem 0 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .talent-pool { padding: 2rem 0; }
  .tp-card { padding: 2.25rem 1.5rem; border-radius: 1.125rem; }
  .tp-subtitle { font-size: 0.9375rem; margin-bottom: 1.75rem; }
  .tp-cta { padding: 0.875rem 1.625rem; font-size: 0.9375rem; width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .tp-card { padding: 2rem 1.25rem; }
  .tp-feature { padding: 0.875rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-blob { animation: none !important; }
}



/* ═══════════════════════════════════════════
   v6.4 — Talent Pool з 2 features (замість 3)
   ═══════════════════════════════════════════ */

/* Grid для 2 cards — центруємо і обмежуємо ширину */
.tp-features-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 680px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  .tp-features-2 { grid-template-columns: 1fr !important; }
}


/* Talent Pool has own padding, but on jobs page we want margin-top */
.jobs-list-wrap + .talent-pool,
main + .talent-pool,
.jobs-layout ~ .talent-pool {
  margin-top: 0;
}
.talent-pool {
  padding: 3rem 0 3rem !important;
}
@media (max-width: 768px) {
  .talent-pool { padding: 2rem 0 !important; }
}

/* Footer synced 1:1 with homepage */
.footer {
  background: linear-gradient(180deg, #eef2ff 0%, #f0f4ff 40%, #f5f6fa 100%);
  color: var(--fg);
  padding: 3.5rem 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.18), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand .logo-svg,
.footer-logo {
  color: var(--fg);
  height: 18px;
  width: auto;
  max-width: 160px;
}

.footer-tagline {
  margin-top: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: all 0.25s var(--ease);
}

.fs-tg { background: rgba(39,174,237,0.12); color: #27aeed; }
.fs-tg:hover { background: #27aeed; color: #fff; }
.fs-ig { background: rgba(225,48,108,0.12); color: #e1306c; }
.fs-ig:hover { background: linear-gradient(135deg, #fd5949 0%, #d6249f 50%, #285AEB 100%); color: #fff; }
.fs-fb { background: rgba(24,119,242,0.12); color: #1877f2; }
.fs-fb:hover { background: #1877f2; color: #fff; }
.fs-li { background: rgba(10,102,194,0.12); color: #0a66c2; }
.fs-li:hover { background: #0a66c2; color: #fff; }

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--fg);
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer a {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(37,99,235,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand .logo-svg,
  .footer-logo {
    height: 16px;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage footer social final override */
.footer-social,
.footer-social.fs-tg,
.footer-social.fs-ig,
.footer-social.fs-fb,
.footer-social.fs-li {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.08) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.footer-social svg {
  width: 17px !important;
  height: 17px !important;
}

.footer-social:hover,
.footer-social.fs-tg:hover,
.footer-social.fs-ig:hover,
.footer-social.fs-fb:hover,
.footer-social.fs-li:hover {
  background: rgba(37, 99, 235, 0.15) !important;
  color: var(--primary-dark) !important;
  border-color: rgba(37, 99, 235, 0.15) !important;
}

/* v6.28 — mobile tap polish + full-bleed company logos */
.mobile-toggle {
  border-radius: 14px !important;
  -webkit-tap-highlight-color: transparent !important;
}

.mobile-toggle:focus,
.mobile-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.mobile-toggle:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

.jc-logo-image {
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
}

.jc-logo-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

@media (max-width: 768px) {
  .jc-logo {
    width: 48px !important;
    height: 48px !important;
    border-radius: 13px !important;
  }
}

/* Final site-wide heading weight polish */
.section-title,
.sec-title,
.hero-title,
.jobs-hero h1,
.jobs-hero-title,
.blog-hero-title,
.thanks-page .section-title {
  font-weight: 600 !important;
}

/* Final salary typography polish */
.jc-salary {
  font-size: 0.75rem !important;
  font-weight: 560 !important;
  letter-spacing: -0.005em !important;
}

@media (max-width: 768px) {
  .jc-salary {
    font-size: 0.75rem !important;
    font-weight: 560 !important;
  }
}
