/* ╔═══════════════════════════════════════════════╗
   ║  ZaichenkoTeam — Vacancy Detail Page          ║
   ║  Vanilla CSS with shared design tokens        ║
   ╚═══════════════════════════════════════════════╝ */

/* ── DESIGN TOKENS (shared with homepage) ── */
: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), 0 1px 2px rgba(0,0,0,0.03);
  --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);
  --shadow-primary-hover: 0 8px 25px rgba(37,99,235,0.35);
  --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);
}

/* ── RESET ── */
*, *::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;
  overflow-y: auto;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════
   HEADER (shared — copy from homepage)
   ═══════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,246,250,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 140;
  pointer-events: none;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  box-shadow: 0 0 18px rgba(37,99,235,0.28);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; }
.logo-svg { height: 22px; width: auto; max-width: 160px; color: var(--fg); }
.zt-wordmark {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.zt-wordmark-footer {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.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-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); }
/* Burger — прихований на desktop, видимий на mobile */
.mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; color: var(--fg);
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}
.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); }

.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);
  text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary-hover); transform: translateY(-2px); }

@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; max-width: 120px; }
}

/* ═══════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════ */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}
.breadcrumbs a { color: var(--fg-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }
.bc-sep { margin: 0 0.5rem; color: var(--fg-light); }
.bc-current { color: var(--fg); font-weight: 500; }

@media (max-width: 768px) {
  .breadcrumbs { font-size: 0.75rem; padding: 0.75rem 0; }
}

/* ═══════════════════════════════════
   VACANCY PAGE LAYOUT
   ═══════════════════════════════════ */
.vacancy-page { padding: 2.5rem 0 4rem; }

.job-company-cover {
  margin: 0.0625rem 0 2.25rem;
}

.job-company-cover-inner {
  position: relative;
  isolation: isolate;
  max-width: 980px;
  border-radius: 28px;
}

.job-company-cover-inner::before {
  content: "";
  position: absolute;
  inset: -24px -28px;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 16% 18%, color-mix(in srgb, var(--company-cover-glow, var(--company-brand)) 27%, transparent), transparent 54%),
    radial-gradient(ellipse at 82% 82%, color-mix(in srgb, var(--company-cover-glow, var(--company-brand)) 20%, transparent), transparent 58%),
    radial-gradient(ellipse at center, color-mix(in srgb, var(--company-cover-glow, var(--company-brand)) 11%, rgba(255, 255, 255, 0.58)), transparent 72%);
  filter: blur(20px) saturate(125%);
  opacity: 0.72;
  z-index: -1;
}

.job-company-cover-frame {
  display: block;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  transform: translateZ(0);
  contain: paint;
  line-height: 0;
  clip-path: inset(0 round 28px);
  -webkit-clip-path: inset(0 round 28px);
  mask-image: radial-gradient(#fff, #000);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.job-company-cover-image {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-height: clamp(220px, 24vw, 340px);
  object-fit: contain;
  object-position: center;
  border-radius: 28px;
  overflow: hidden;
  clip-path: inset(0 round 28px);
  -webkit-clip-path: inset(0 round 28px);
  mask-image: radial-gradient(#fff, #000);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  border: 0;
  box-shadow: none;
}

.vacancy-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-areas:
    "main sidebar"
    "share sidebar";
  gap: 2rem;
  align-items: start;
}

.vacancy-main { grid-area: main; }
.vacancy-sidebar { grid-area: sidebar; }
.vacancy-share { grid-area: share; }

@media (max-width: 1024px) {
  .vacancy-layout { grid-template-columns: 1fr 300px; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .vacancy-layout { grid-template-columns: 1fr; }
  .vacancy-page { padding: 1.5rem 0 3rem; }
  .job-company-cover { margin: 0.125rem 0 1.75rem; }
  .job-company-cover-inner { padding: 0 1.25rem; border-radius: 22px; }
  .job-company-cover-inner::before { inset: -12px 0; border-radius: 24px; filter: blur(15px) saturate(125%); opacity: 0.72; }
  .job-company-cover-frame {
    border-radius: 20px;
    clip-path: inset(0 round 20px);
    -webkit-clip-path: inset(0 round 20px);
  }
  .job-company-cover-image {
    max-height: 220px;
    border-radius: 20px;
    clip-path: inset(0 round 20px);
  }
}

/* ═══════════════════════════════════
   VACANCY HEADER
   ═══════════════════════════════════ */
.vacancy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.vacancy-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem; font-weight: 700;
  padding: 0.3rem 0.75rem;
  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-category { 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); }

.vacancy-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.vacancy-meta-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.5rem; margin-bottom: 1.25rem;
  font-size: 0.875rem; color: var(--fg-muted);
}
.vacancy-meta-subrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vacancy-company {
  display: inline-flex; align-items: center; gap: 1rem;
  font-weight: 600; color: var(--fg);
  transition: color 0.2s;
}
.vacancy-company:hover { color: var(--primary); }
.company-avatar {
  width: 96px; height: 96px; border-radius: 24px;
  background: linear-gradient(135deg, #ff6b35, #f59e0b);
  color: white; font-family: var(--font-heading);
  font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.company-avatar-image {
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}
.company-avatar-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.company-link {
  font-size: 1.125rem;
  line-height: 1.2;
}
.vacancy-meta-item {
  display: inline-flex; align-items: center; gap: 0.375rem;
}
.vacancy-meta-item svg { color: var(--fg-light); flex-shrink: 0; }
.meta-sep { color: var(--border); }

.vacancy-salary-row {
  display: flex; align-items: baseline; gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.vacancy-salary {
  font-family: var(--font-heading);
  font-size: 1.75rem; font-weight: 800;
  color: var(--fg); letter-spacing: -0.03em;
}
.salary-period { font-size: 0.875rem; color: var(--fg-muted); }

.vacancy-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag {
  font-size: 0.75rem; font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: all 0.2s;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 768px) {
  .vacancy-title { font-size: 1.5rem; }
  .vacancy-salary { font-size: 1.375rem; }
  .vacancy-meta-row { font-size: 0.8125rem; }
}

/* ═══════════════════════════════════
   VACANCY SECTIONS (description, requirements, etc)
   ═══════════════════════════════════ */
.vacancy-section {
  margin-bottom: 2rem;
}
.vacancy-section h2 {
  font-size: 1.125rem; font-weight: 700;
  color: var(--fg); margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.vacancy-section p {
  font-size: 0.9375rem; color: var(--fg-muted);
  line-height: 1.6; margin-bottom: 0.75rem;
}
.vacancy-section a,
.vacancy-list a,
.sc-desc a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
  background: none;
  border-bottom: 0;
  text-shadow: none;
  transition: color 0.2s var(--ease);
}
.vacancy-section a:hover,
.vacancy-list a:hover,
.sc-desc a:hover {
  color: var(--primary);
}

.vacancy-list {
  display: flex; flex-direction: column; gap: 0.625rem;
  padding-left: 0;
  margin: 0;
}
.vacancy-list li {
  font-size: 0.9375rem; color: var(--fg-muted);
  line-height: 1.6; position: relative;
  padding-left: 1.5rem;
}
.vacancy-list li p {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}
.vacancy-list li::before {
  content: '';
  position: absolute; left: 0.25rem; top: 0.6em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
}

.vacancy-list-check li::before {
  content: '✓';
  width: auto; height: auto;
  background: none;
  color: var(--success);
  font-weight: 700; font-size: 0.8125rem;
  left: 0; top: 0.15em;
  border-radius: 0;
}

/* ═══════════════════════════════════
   SHARE
   ═══════════════════════════════════ */
.vacancy-share {
  display: flex; align-items: center; gap: 0.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.share-label { font-size: 0.8125rem; color: var(--fg-muted); font-weight: 500; }
.share-btn {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--fg-muted); transition: all 0.2s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════ */
.vacancy-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 80px;
}

@media (max-width: 768px) {
  .vacancy-sidebar {
    position: static;
    order: -1;
  }
}

/* Apply CTA Card */
.sidebar-apply {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn-apply {
  width: 100%;
  justify-content: center;
  font-size: 1.0625rem;
  padding: 1rem 2rem;
  margin-bottom: 0.75rem;
}

.apply-hint {
  display: flex; align-items: center; justify-content: center;
  gap: 0.375rem;
  font-size: 0.75rem; color: var(--fg-muted);
  margin-bottom: 1rem;
}
.apply-hint svg { color: #27aeed; flex-shrink: 0; }

.apply-stats {
  display: flex; justify-content: center; gap: 1.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem; color: var(--fg-muted);
}

body.apply-modal-open {
  overflow: hidden;
}

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.apply-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.apply-modal[hidden] {
  display: none;
}

.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(37, 99, 235, 0.24), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 214, 102, 0.2), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(244, 114, 182, 0.16), transparent 28%),
    rgba(10, 18, 36, 0.46);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.apply-sheet {
  position: relative;
  width: min(100%, 720px);
  max-height: none;
  overflow: visible;
  padding: clamp(1rem, 2.4vw, 1.55rem);
  border-radius: 30px;
  border: 1px solid rgba(204, 218, 255, 0.95);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,251,255,0.96)),
    radial-gradient(circle at 12% 0%, rgba(37,99,235,0.12), transparent 30%);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.apply-modal.is-open .apply-sheet {
  transform: translateY(0) scale(1);
}

.apply-sheet-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 8% 8%, rgba(37,99,235,0.16), transparent 22%),
    radial-gradient(circle at 92% 12%, rgba(255,214,102,0.2), transparent 18%),
    radial-gradient(circle at 80% 92%, rgba(244,114,182,0.13), transparent 22%);
  opacity: 0.9;
}

.apply-sheet-header,
.apply-form,
.apply-intro,
.apply-error {
  position: relative;
  z-index: 1;
}

.apply-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.apply-job-mini {
  min-width: 0;
}

.apply-sheet h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.apply-job-mini span {
  display: block;
  margin-top: 0.25rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.apply-job-mini .apply-job-name {
  color: var(--primary);
  font-weight: 700;
}

.apply-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(204, 218, 255, 0.95);
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.apply-close:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(37,99,235,0.32);
}

.apply-intro {
  max-width: 620px;
  margin: 0 0 0.95rem;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.apply-error {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-weight: 700;
}

.apply-form {
  display: grid;
  gap: 0.72rem;
}

.apply-cv-choice {
  margin: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.apply-cv-choice::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.08);
  flex: 0 0 auto;
}

.apply-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.apply-field {
  display: grid;
  gap: 0.38rem;
  font-family: var(--font-body);
}

.apply-field span {
  color: var(--fg);
  font-weight: 800;
  font-size: 0.86rem;
}

.apply-field em {
  color: var(--primary);
  font-style: normal;
}

.apply-field input,
.apply-field textarea {
  width: 100%;
  border: 1px solid rgba(204, 218, 255, 0.95);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  color: var(--fg);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.apply-field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.55;
}

.apply-field input:focus,
.apply-field textarea:focus {
  border-color: rgba(37,99,235,0.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.apply-file-field input {
  padding: 0.85rem;
}

.apply-cv-grid .apply-field input {
  min-height: 66px;
}

.apply-cv-grid .apply-field {
  grid-template-rows: auto 66px;
}

.apply-turnstile {
  display: flex;
  align-items: center;
  min-height: 65px;
}

.apply-field small,
.apply-form-footer p {
  color: var(--fg-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.apply-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.1rem;
}

.apply-form-footer p {
  max-width: 390px;
  margin: 0;
}

.apply-privacy-note {
  margin: -0.2rem 0 0;
  color: var(--fg-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.apply-privacy-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.apply-privacy-note a:hover {
  text-decoration: underline;
}

.apply-submit {
  min-width: 210px;
  justify-content: center;
  white-space: nowrap;
}

.apply-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .apply-modal {
    align-items: end;
    padding: 0;
  }

  .apply-modal-backdrop {
    backdrop-filter: blur(12px);
  }

  .apply-sheet {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 28px 28px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -22px 70px rgba(15, 23, 42, 0.26);
    transform: translateY(100%);
  }

  .apply-modal.is-open .apply-sheet {
    transform: translateY(0);
  }

  .apply-sheet-header {
    gap: 0.75rem;
    margin-bottom: 0.7rem;
  }

  .apply-job-mini {
    width: 100%;
  }

  .apply-sheet h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .apply-job-mini span,
  .apply-intro {
    font-size: 0.88rem;
  }

  .apply-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .apply-field-grid {
    grid-template-columns: 1fr;
  }

  .apply-cv-grid .apply-field {
    grid-template-rows: auto;
  }

  .apply-field input,
  .apply-field textarea {
    border-radius: 16px;
    padding: 0.82rem 0.95rem;
  }

  .apply-form-footer {
    display: grid;
  }

  .apply-turnstile {
    justify-content: center;
  }

  .apply-submit {
    width: 100%;
    min-width: 0;
  }
}

/* Company Card */
.sidebar-company {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sc-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.sc-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #ff6b35, #f59e0b);
  color: white; font-family: var(--font-heading);
  font-weight: 800; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sc-logo-image {
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 0;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}
.sc-logo-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-name { font-size: 1rem; font-weight: 700; color: var(--fg); }
.sc-industry { font-size: 0.75rem; color: var(--fg-muted); }

.sc-desc {
  font-size: 0.8125rem; color: var(--fg-muted);
  line-height: 1.6; margin-bottom: 1rem;
}
.sc-desc p { margin: 0 0 0.5rem; }
.sc-desc p:last-child { margin-bottom: 0; }
.sc-stats {
  display: flex; gap: 1.5rem; margin-bottom: 1rem;
  padding-top: 0.875rem; border-top: 1px solid var(--border-light);
}
.sc-stat { text-align: center; }
.sc-stat-value {
  display: block; font-family: var(--font-heading);
  font-weight: 800; font-size: 1.25rem; color: var(--fg);
}
.sc-stat-label { font-size: 0.75rem; color: var(--fg-muted); }

.sc-link {
  display: block; text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--primary); transition: gap 0.2s;
}
.sc-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   SIMILAR VACANCIES
   ═══════════════════════════════════ */
.similar-section {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 72% 46% at 50% -4%, rgba(37,99,235,0.08), transparent 70%),
    radial-gradient(ellipse 44% 34% at 82% 46%, rgba(124,58,237,0.055), transparent 72%),
    radial-gradient(ellipse 40% 30% at 18% 80%, rgba(14,165,233,0.05), transparent 72%),
    linear-gradient(180deg, rgba(245,248,255,0.76) 0%, rgba(241,246,255,0.62) 48%, rgba(248,250,255,0.76) 100%);
  border-top: 1px solid rgba(37,99,235,0.06);
  position: relative;
  overflow: hidden;
}
.similar-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,0.08), transparent 65%);
  filter: blur(62px);
  pointer-events: none;
}
.similar-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(168,85,247,0.06), transparent 65%);
  filter: blur(62px);
  pointer-events: none;
}
.similar-section .container {
  position: relative;
  z-index: 1;
}
.section-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700; color: var(--fg);
  text-align: center; margin-bottom: 2rem;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .similar-grid { grid-template-columns: 1fr; } }

.job-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
  color: inherit;
}
.job-card:focus-visible {
  outline: 3px solid rgba(37,99,235,0.24);
  outline-offset: 3px;
}
.job-card-hot { border-color: rgba(37,99,235,0.15); }

.job-badge-hot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: var(--destructive);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.job-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
}

.job-category-marketing { background: rgba(37,99,235,0.08); color: var(--primary); }
.job-category-ai { background: rgba(124,58,237,0.08); color: #7c3aed; }
.job-category-design { background: rgba(236,72,153,0.08); color: var(--pink); }
.job-category-finance { background: rgba(22,163,74,0.08); color: var(--success); }
.job-category-sales { background: rgba(22,163,74,0.08); color: var(--success); }
.job-category-hr { background: rgba(245,158,11,0.08); color: var(--warning); }
.job-category-product { background: rgba(14,165,233,0.08); color: var(--info); }
.job-category-project-manager { background: rgba(14,165,233,0.08); color: var(--info); }
.job-category-it-development,
.job-category-devops,
.job-category-qa { background: rgba(99,102,241,0.08); color: #4f46e5; }

.job-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.job-card:hover .job-title { color: var(--primary); }

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.125rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.job-company-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
}
.job-company-logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  overflow: hidden;
  flex: 0 0 auto;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(17, 24, 39, 0.05),
    0 10px 24px rgba(37, 99, 235, 0.12);
}
.job-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.job-company-name {
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.job-salary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--fg);
}
.job-type {
  font-size: 0.75rem; font-weight: 500; color: var(--fg-muted);
  background: var(--bg); padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════
   FOOTER (shared — matches 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-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-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: 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-logo { height: 16px; max-width: 120px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════
   MOBILE APPLY BUTTON (bottom fixed)
   ═══════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar-apply {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    background: var(--bg-card);
    border: none; border-radius: 0;
    border-top: 1px solid var(--border);
    padding: 0.875rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: flex; align-items: center; gap: 0.75rem;
  }
  .btn-apply { margin-bottom: 0; flex: 1; font-size: 0.9375rem; padding: 0.75rem 1rem; }
  .apply-hint, .apply-stats { display: none; }
  .vacancy-page { padding-bottom: 6rem; }
}

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

/* ═══════════════════════════════════
   ПРАВКИ v2 — share icons, dark footer, mobile Safari
   ═══════════════════════════════════ */

/* 3. Share — SVG іконки замість тексту */
.share-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.share-icon:hover { border-color: var(--primary); color: var(--primary); }
.share-icon.copied { background: rgba(22,163,74,0.1); border-color: var(--success); color: var(--success); }
.share-icon svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .vacancy-share { flex-wrap: wrap; gap: 0.375rem; }
  .share-icon { width: 38px; height: 38px; }
  .share-label { width: 100%; margin-bottom: 0.25rem; }
}


.fd-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px; margin-bottom: 0.75rem;
  font-size: 0.75rem;
}
.fd-links a { color: rgba(255,255,255,0.65); transition: color 0.2s; white-space: nowrap; }
.fd-links a:hover { color: white; }
.fd-sep { color: rgba(255,255,255,0.25); }

.fd-copy {
  font-size: 0.6875rem; color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .fd-links { flex-direction: column; gap: 0.375rem; }
  .fd-sep { display: none; }
}

/* ═══════════════════════════════════
   MOBILE SAFARI / iPHONE ОПТИМІЗАЦІЯ
   ═══════════════════════════════════ */

/* Safe area для iPhone X+ (notch / home indicator) */
.vacancy-page {
  padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  .sidebar-apply {
    bottom: 0; left: 0; right: 0;
    padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Prevent iOS Safari auto-zoom on inputs */
input, select, textarea {
  font-size: 16px !important; /* Safari зумить на <16px */
}

/* iOS momentum scrolling */
.vacancy-main, .vacancy-sidebar {
  -webkit-overflow-scrolling: touch;
}

/* Keep native page scrolling predictable across desktop + mobile */
html, body {
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

/* Touch targets — мін 44px для Apple HIG */
.share-icon, .btn-apply, .breadcrumbs a, .vacancy-company, .tag {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Breadcrumbs на mobile — горизонтальний скрол */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 0.625rem 0;
  }
  .breadcrumbs .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    padding-right: 1.5rem;
  }
  .breadcrumbs .container::-webkit-scrollbar { display: none; }
  .breadcrumbs a,
  .breadcrumbs .bc-current {
    flex-shrink: 0;
  }
  .bc-sep {
    margin: 0;
    flex-shrink: 0;
    opacity: 0.5;
  }
  .bc-current {
    font-weight: 600;
  }
}

/* Tags — wrap правильно на малих екранах */
@media (max-width: 480px) {
  .vacancy-tags { gap: 0.25rem; }
  .tag { padding: 0.25rem 0.625rem; font-size: 0.6875rem; min-height: 32px; min-width: auto; }
}

/* Company card sidebar — на mobile компактніше */
@media (max-width: 768px) {
  .sidebar-company { padding: 1.125rem; }
  .sc-logo { width: 38px; height: 38px; border-radius: 10px; font-size: 0.75rem; }
}

/* Vacancy title mobile */
@media (max-width: 480px) {
  .vacancy-title { font-size: 1.25rem; }
  .vacancy-salary { font-size: 1.25rem; }
}

/* Similar section mobile */
@media (max-width: 768px) {
  .similar-section { padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); }
}

/* Removed old footer styles — no longer needed (replaced by .footer-dark) */
/* footer visible */


/* ═══════════════════════════════════
   ПРАВКИ v3 — footer light, mobile CTA, hint visible
   ═══════════════════════════════════ */



/* 4. Mobile apply bar — показуємо hint + stats */
@media (max-width: 768px) {
  .sidebar-apply {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    background: var(--bg-card);
    border: none; border-radius: 0;
    border-top: 1px solid var(--border);
    padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: flex; flex-direction: column; gap: 0.375rem;
    text-align: center;
  }
  .btn-apply {
    width: 100%; margin-bottom: 0;
    font-size: 0.9375rem; padding: 0.75rem 1rem;
    justify-content: center;
  }
  /* Hint і stats ВИДИМІ на mobile */
  .apply-hint-always {
    display: flex !important;
    align-items: center; justify-content: center;
    gap: 0.25rem;
    font-size: 0.6875rem; color: var(--fg-muted);
    margin: 0;
  }
  .apply-stats-always {
    display: flex !important;
    justify-content: center; gap: 1rem;
    font-size: 0.6875rem; color: var(--fg-muted);
    padding-top: 0.25rem;
    border-top: none;
    margin: 0;
  }
}

/* Share icons — оновлені розміри */
.share-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(111, 139, 255, 0.16);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.share-icon:hover {
  transform: translateY(-2px);
}
.share-icon svg {
  width: 1.12rem;
  height: 1.12rem;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
  stroke-linejoin: round;
}
.share-icon-copy svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.share-icon-telegram:hover {
  color: #229ed9;
  background: rgba(34, 158, 217, 0.08);
  border-color: rgba(34, 158, 217, 0.35);
}
.share-icon-facebook:hover {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.35);
}
.share-icon-linkedin:hover {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
  border-color: rgba(10, 102, 194, 0.35);
}
.share-icon-copy:hover {
  color: var(--company-brand, var(--primary));
  background: color-mix(in srgb, var(--company-brand, var(--primary)) 8%, #ffffff);
  border-color: color-mix(in srgb, var(--company-brand, var(--primary)) 35%, var(--border));
}
.share-icon.copied {
  color: var(--success);
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.35);
}

/* Footer responsive лого */
.footer-logo {
  max-width: 180px;
  height: auto;
}
@media (max-width: 768px) {
  .footer-logo { max-width: 140px; }
}
@media (max-width: 480px) {
  .footer-logo { max-width: 120px; }
}

/* ═══════════════════════════════════
   ПРАВКИ v4 — чистий mobile, без badges, текстова CTA
   ═══════════════════════════════════ */

/* 1. Category label (замість badges) */
.vacancy-category-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}


}


}

/* 3. Vacancy header mobile — чисте вирівнювання, без хаосу */
@media (max-width: 768px) {
  .vacancy-header {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.625rem !important;
  }

  .vacancy-category-label {
    font-size: 0.6875rem;
    margin-bottom: 0.375rem;
  }

  .vacancy-title {
    font-size: 1.375rem !important;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .vacancy-meta-row {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    margin-bottom: 0.375rem !important;
  }
  .vacancy-meta-subrow {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    max-width: 100%;
  }
  .meta-sep { display: inline-flex !important; }

  .vacancy-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    white-space: nowrap;
  }
  .vacancy-meta-item svg {
    width: 14px;
    height: 14px;
  }

  .vacancy-company {
    width: auto;
    gap: 0.875rem;
    font-size: 1rem;
    white-space: nowrap;
  }
  .company-avatar {
    width: 88px; height: 88px;
    border-radius: 22px;
    font-size: 1rem;
  }
  .company-link { font-size: 1rem; }

  .vacancy-date {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
  }

  .vacancy-salary-row {
    margin-bottom: 0 !important;
  }
  .vacancy-salary {
    font-size: 1.5rem !important;
  }
  .salary-period {
    font-size: 0.8125rem;
  }

  .vacancy-tags {
    gap: 0.25rem;
  }
  .tag {
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
    min-height: auto;
    min-width: auto;
  }
}

/* Company card mobile — компактніший */
@media (max-width: 768px) {
  .sidebar-company {
    padding: 1rem;
    margin-bottom: 0.5rem;
  }
  .sc-header {
    margin-bottom: 0.625rem;
  }
  .sc-logo {
    width: 48px; height: 48px;
    border-radius: 13px;
    font-size: 0.6875rem;
  }
  .sc-name { font-size: 0.9375rem; }
  .sc-desc {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
  .sc-link {
    font-size: 0.8125rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
  }
}

/* Vacancy sections mobile — менші відступи */
@media (max-width: 768px) {
  .vacancy-section {
    margin-bottom: 1rem;
  }
  .vacancy-main .vacancy-section:first-of-type {
    margin-top: 0 !important;
  }
  .vacancy-section h2 {
    font-size: 1rem;
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
  }
  .vacancy-header + .vacancy-section {
    margin-top: 0 !important;
  }
  .vacancy-section p,
  .vacancy-list li {
    font-size: 0.875rem;
  }
}

/* Share mobile */
@media (max-width: 768px) {
  .vacancy-share {
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    gap: 0.375rem;
  }
  .share-label {
    width: 100%;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
  }
  .share-icon {
    width: 40px; height: 40px;
  }
}

/* Similar section mobile */
@media (max-width: 768px) {
  .similar-section {
    padding: 1.75rem 0 2.25rem;
  }
  .section-title {
    font-size: 1.125rem !important;
    margin-bottom: 1rem;
  }
  .similar-grid {
    gap: 0.5rem;
  }
  .job-card {
    padding: 1rem;
  }
}

/* Breadcrumbs — на мобілі як одна лінія */
@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.6875rem;
    padding: 0.625rem 0;
  }
  .breadcrumbs .container {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .breadcrumbs .container::-webkit-scrollbar { display: none; }
}

/* Mobile: vacancy content ПЕРШИМ, company card внизу */
@media (max-width: 768px) {
  .vacancy-layout {
    display: flex;
    flex-direction: column;
  }
  .vacancy-main {
    order: 1;
  }
  .vacancy-sidebar {
    order: 2;
    position: static;
  }
  .vacancy-share {
    order: 3;
  }
  /* Apply bar = fixed bottom, не в потоці */
  .sidebar-apply {
    order: 99;
  }
}

/* ═══════════════════════════════════
   HEADER — оригінальний з UA/EN на mobile
   ═══════════════════════════════════ */



.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);
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-right { display: none; }
  .mobile-menu { display: block; }
  .header-inner { height: 56px; }
  .logo-svg { height: 17px !important; max-width: 120px; }
}

/* Breadcrumbs — видимі на всіх розмірах */
.breadcrumbs {
  display: block;
}
@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.6875rem;
    padding: 0.625rem 0;
  }
  .breadcrumbs .container {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .breadcrumbs .container::-webkit-scrollbar { display: none; }
}

/* ═══════════════════════════════════
   КНОПКИ — візуальна ієрархія
   ═══════════════════════════════════ */

/* "Опублікувати вакансію" — напівпрозора, secondary */
.nav-cta {
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--primary) !important;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  box-shadow: none !important;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* "Відгукнутися" — головна CTA, анімована тінь */
.btn-apply {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #3b82f6 100%) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 1px 3px rgba(37, 99, 235, 0.15);
  animation: apply-pulse 3s ease-in-out infinite;
  position: relative;
}
.btn-apply:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4), 0 2px 6px rgba(37, 99, 235, 0.2) !important;
  transform: translateY(-2px);
}

@keyframes apply-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 1px 3px rgba(37, 99, 235, 0.15);
  }
  50% {
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.45), 0 2px 8px rgba(37, 99, 235, 0.2);
  }
}


/* UA/EN switcher inside burger menu */
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0;
}
.mobile-lang .lang-btn {
  padding: 0.35rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fg-light);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-lang .lang-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* ═══════════════════════════════════
   BREADCRUMBS — фікс вирівнювання
   ═══════════════════════════════════ */
.breadcrumbs .container {
  display: flex;
  align-items: baseline;  /* всі елементи на одній базовій лінії */
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumbs a,
.breadcrumbs .bc-sep,
.breadcrumbs .bc-current {
  display: inline;
  line-height: 1.5;
  vertical-align: baseline;
  font-size: 0.8125rem;
}
.bc-sep {
  margin: 0 0.5rem;
  color: var(--fg-light);
}
.bc-current {
  color: var(--fg);
  font-weight: 500;
}

@media (max-width: 768px) {
  .breadcrumbs .container {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: baseline;
  }
  .breadcrumbs .container::-webkit-scrollbar { display: none; }

  .breadcrumbs a,
  .breadcrumbs .bc-sep,
  .breadcrumbs .bc-current {
    font-size: 0.75rem;
  }
  .bc-sep {
    margin: 0 0.375rem;
  }
}


/* Зарплата — синій як MARKETING label */
.vacancy-salary {
  color: var(--primary) !important;
}

/* Final mobile burger tap polish */
.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;
}

/* Premium top stack — subtle glass/tint separation */
.header {
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.94) 0%, rgba(238, 242, 255, 0.9) 100%) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(37, 99, 235, 0.07);
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.14), transparent);
  pointer-events: none;
}

.breadcrumbs {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 252, 255, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.06) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 12px 30px rgba(37, 99, 235, 0.035);
}

.breadcrumbs::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.05), transparent 30%),
    radial-gradient(circle at 88% 50%, rgba(99, 102, 241, 0.04), transparent 28%);
}

.breadcrumbs .container {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════
   v2 MOBILE FIXES (23.04.2026)
   ═══════════════════════════════════════════ */

/* Global overflow — критично для mobile */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Fix mobile breadcrumb + title overlap */
@media (max-width: 768px) {
  .header {
    background:
      linear-gradient(180deg, rgba(244, 247, 255, 0.96) 0%, rgba(239, 243, 255, 0.92) 100%) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.88) inset,
      0 8px 22px rgba(37, 99, 235, 0.055);
  }

  .breadcrumbs {
    padding: 0.5rem 0 !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.72) inset,
      0 10px 24px rgba(37, 99, 235, 0.03);
  }

  .vacancy-title {
    font-size: clamp(1.375rem, 5vw, 1.625rem) !important;
    line-height: 1.25 !important;
    margin-top: 0.25rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Similar section mobile — ще помітніший фон */
  .similar-section {
    padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  .similar-section::before,
  .similar-section::after {
    width: 220px;
    height: 220px;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }
}

/* iPhone 17 Pro Max specific (440px) */
@media (max-width: 440px) {
  .vacancy-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
  }
}

/* iPhone SE / дуже малі */
@media (max-width: 380px) {
  .vacancy-title {
    font-size: 1.125rem !important;
  }
}

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

/* 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;
}

/* Final mobile top-spacing fix */
@media (max-width: 768px) {
  .vacancy-page {
    padding-top: 0.5rem !important;
  }

  .vacancy-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0.25rem !important;
    padding-bottom: 0.5rem !important;
  }

  .vacancy-category-label {
    margin-top: 0 !important;
  }

  .vacancy-title {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
  }
}

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

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

.salary-period,
.job-salary {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
}

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

  .salary-period,
  .job-salary {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
  }
}

/* v6.32 — mobile-only apply sheet compact polish */
@media (max-width: 720px) {
  .apply-modal {
    align-items: flex-end !important;
    padding-top: max(1rem, env(safe-area-inset-top, 0px)) !important;
  }

  .apply-sheet {
    max-height: calc(100svh - max(3rem, env(safe-area-inset-top, 0px))) !important;
    padding: 1.35rem 0.88rem calc(0.8rem + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 24px 24px 0 0 !important;
    scroll-padding-top: 1.25rem !important;
  }

  .apply-sheet-header {
    gap: 0.55rem !important;
    margin-bottom: 0.45rem !important;
  }

  .apply-sheet h2 {
    font-size: clamp(1.18rem, 6.1vw, 1.48rem) !important;
    font-weight: 720 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    padding-right: 0.25rem !important;
  }

  .apply-job-mini span {
    margin-top: 0.18rem !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .apply-intro {
    margin-bottom: 0.55rem !important;
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
    color: rgba(107, 114, 128, 0.72) !important;
  }

  .apply-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 13px !important;
  }

  .apply-form {
    gap: 0.56rem !important;
  }

  .apply-field {
    gap: 0.28rem !important;
  }

  .apply-field span {
    font-size: 0.78rem !important;
    font-weight: 720 !important;
  }

  .apply-field input,
  .apply-field textarea {
    min-height: 48px !important;
    border-radius: 15px !important;
    padding: 0.68rem 0.82rem !important;
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
  }

  .apply-field textarea {
    min-height: 88px !important;
  }

  .apply-cv-choice {
    padding: 0.15rem 0.25rem !important;
    font-size: 0.76rem !important;
    font-weight: 680 !important;
    line-height: 1.28 !important;
  }

  .apply-file-field input,
  .apply-cv-grid .apply-field input {
    min-height: 52px !important;
  }

  .apply-field small,
  .apply-form-footer p,
  .apply-privacy-note {
    color: rgba(107, 114, 128, 0.56) !important;
    font-size: 0.68rem !important;
    line-height: 1.42 !important;
  }

  .apply-submit {
    min-height: 48px !important;
    font-size: 0.92rem !important;
    width: min(100%, 34rem) !important;
    margin-inline: auto !important;
    justify-self: center !important;
    align-self: center !important;
  }
}

/* v6.40 — stable mobile apply sheet after browser UI changes */
@media (max-width: 720px) {
  .apply-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .apply-sheet {
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - max(0.75rem, env(safe-area-inset-top, 0px))) !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
  }

  .apply-form-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 0.55rem !important;
  }

  .apply-submit {
    display: inline-flex !important;
    width: min(100%, 34rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    align-self: center !important;
  }
}

@media (max-width: 380px), (max-width: 720px) and (max-height: 760px) {
  .apply-sheet {
    max-height: calc(100dvh - max(0.5rem, env(safe-area-inset-top, 0px))) !important;
    padding: calc(0.72rem + env(safe-area-inset-top, 0px)) 0.72rem calc(0.56rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .apply-sheet h2 {
    font-size: clamp(1.08rem, 5.9vw, 1.34rem) !important;
    line-height: 1.06 !important;
  }

  .apply-intro {
    display: none !important;
  }

  .apply-form {
    gap: 0.32rem !important;
  }

  .apply-field {
    gap: 0.16rem !important;
  }

  .apply-field span {
    font-size: 0.7rem !important;
    font-weight: 680 !important;
  }

  .apply-field input,
  .apply-field textarea {
    min-height: 40px !important;
    border-radius: 13px !important;
    padding: 0.48rem 0.62rem !important;
    font-size: 0.8rem !important;
  }

  .apply-field textarea {
    min-height: 56px !important;
    max-height: 62px !important;
    resize: none !important;
  }

  .apply-cv-choice {
    padding: 0.02rem 0.1rem !important;
    font-size: 0.68rem !important;
    font-weight: 660 !important;
    line-height: 1.16 !important;
  }

  .apply-cv-choice::before {
    width: 22px !important;
    height: 22px !important;
    box-shadow: inset 0 0 0 6px rgba(37, 99, 235, 0.92) !important;
  }

  .apply-file-field input,
  .apply-cv-grid .apply-field input {
    min-height: 42px !important;
  }

  .apply-field small,
  .apply-form-footer p,
  .apply-privacy-note {
    font-size: 0.56rem !important;
    line-height: 1.16 !important;
  }

  .apply-form-footer {
    gap: 0.28rem !important;
    margin-top: 0.35rem !important;
  }

  .apply-submit {
    min-height: 42px !important;
    width: min(100%, 34rem) !important;
    border-radius: 999px !important;
    font-size: 0.86rem !important;
  }
}
