/* ╔═══════════════════════════════════════════════╗
   ║  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; }
body.article-page { overflow-x: hidden; overscroll-behavior-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);
}
.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.25rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--fg);
}
.zt-wordmark-footer { display: inline-block; font-size: 1rem; }
.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; }

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

@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; }
}

/* ═══════════════════════════════════
   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-company {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--fg);
  transition: color 0.2s;
}
.vacancy-company:hover { color: var(--primary); }
.company-avatar {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #ff6b35, #f59e0b);
  color: white; font-family: var(--font-heading);
  font-weight: 800; font-size: 0.6875rem;
  display: flex; align-items: center; justify-content: center;
}
.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.7; margin-bottom: 0.75rem;
}

.vacancy-list {
  display: flex; flex-direction: column; gap: 0.625rem;
  padding-left: 1.25rem;
}
.vacancy-list li {
  font-size: 0.9375rem; color: var(--fg-muted);
  line-height: 1.6; position: relative;
  padding-left: 0.75rem;
}
.vacancy-list li::before {
  content: '';
  position: absolute; left: -0.75rem; 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: -1rem; 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);
}

/* 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: 44px; height: 44px; border-radius: 12px;
  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;
}
.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-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: 3rem 0 4rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}
.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 {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.3s var(--ease);
  cursor: pointer;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.2); }

.job-title {
  font-size: 1rem; font-weight: 600; color: var(--fg);
  margin: 0.5rem 0 0.625rem; transition: color 0.2s;
}
.job-card:hover .job-title { color: var(--primary); }

.job-meta {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.8125rem; color: var(--fg-muted); margin-bottom: 1rem;
}
.job-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.875rem; 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-card); 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-brand { max-width: 280px; }
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
}
.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.08);
  color: var(--primary);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.footer-social svg { width: 17px; height: 17px; flex-shrink: 0; }
.footer-social:hover {
  transform: translateY(-1px);
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.12);
  color: var(--primary-dark);
}
.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);
  min-height: 64px;
  padding: 1rem 0 1.15rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom p {
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.45;
}

@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; }
  .footer-socials { gap: 0.75rem; }
  .footer-social { width: 44px; height: 44px; border-radius: 14px; }
}
@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
   ═══════════════════════════════════ */

/* ═══════════════════════════════════
   ARTICLE PAGE — typography focused
   ═══════════════════════════════════ */

/* Narrow container для тексту (оптимальна ширина читання) */
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Article hero ── */
.article-hero {
  padding: 2rem 0 1.5rem;
  background: linear-gradient(180deg, #eef2ff 0%, #f0f4ff 50%, var(--bg) 100%);
}

.article-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}
.article-breadcrumbs a {
  color: var(--fg-muted);
  transition: color 0.2s;
  text-decoration: none;
}
.article-breadcrumbs a:hover { color: var(--primary); }

.article-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--fg);
  margin: 0 0 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg);
}
.author-date {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 1px;
}

/* ── Featured banner ── */
.article-banner {
  padding: 0 0 2rem;
  background: var(--bg);
}
.article-banner-shell {
  position: relative;
}
.article-banner-shell::before {
  content: "";
  position: absolute;
  inset: -2.5rem -3rem -2rem;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 58% at 50% 48%, color-mix(in srgb, var(--article-banner-glow, #2563eb) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 42% 40% at 24% 50%, color-mix(in srgb, var(--article-banner-glow, #2563eb) 16%, transparent), transparent 74%),
    radial-gradient(ellipse 42% 40% at 76% 50%, color-mix(in srgb, var(--article-banner-glow, #2563eb) 16%, transparent), transparent 74%);
  filter: blur(44px) saturate(118%);
  opacity: 0.72;
}
.article-banner-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  contain: paint;
}
.article-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

/* ── Article layout (sidebar share + body) ── */
.article-layout {
  padding: 0 0 3rem;
}
.article-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── Sticky share rail (desktop only) ── */
.share-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: sticky;
  top: 90px;
}
.share-rail-label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-light);
  margin-bottom: 0.25rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.share-rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.share-rail-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}
.share-rail-btn.copied {
  background: rgba(22,163,74,0.1);
  border-color: var(--success);
  color: var(--success);
}
.share-rail-btn svg {
  display: block;
  flex-shrink: 0;
}
.zt-share-brand {
  color: var(--fg-muted);
}
.zt-share-telegram { color: #229ED9; }
.zt-share-facebook { color: #1877F2; }
.zt-share-linkedin { color: #0A66C2; }
.zt-share-copy { color: var(--fg-muted); }
.zt-share-brand:hover {
  background: #fff;
}
.zt-share-telegram:hover {
  border-color: rgba(34, 158, 217, 0.35);
  color: #229ED9;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.16);
}
.zt-share-facebook:hover {
  border-color: rgba(24, 119, 242, 0.35);
  color: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.16);
}
.zt-share-linkedin:hover {
  border-color: rgba(10, 102, 194, 0.35);
  color: #0A66C2;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.16);
}
.zt-share-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .share-rail { display: none; }
}

/* ── Article body (prose) ── */
.article-body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--fg);
}

.article-body :where(p, li, blockquote, figcaption, table, td, th, span),
.article-body :where(p, li, blockquote) a {
  font-family: var(--font-body) !important;
}

.article-body :where(h1, h2, h3, h4, h5, h6),
.article-body :where(h1, h2, h3, h4, h5, h6) :where(strong, b, span) {
  font-family: var(--font-heading) !important;
  font-weight: inherit !important;
}

.article-body > * + * {
  margin-top: 1.5rem;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--fg);
  font-weight: 500;
}

.article-body p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--fg);
}

.article-body h1,
.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fg);
  margin-top: 2.5rem !important;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.article-body h1:first-child,
.article-body h2:first-child {
  margin-top: 0 !important;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.78;
}
.article-body ul li,
.article-body ol li {
  margin-bottom: 0.5rem;
  position: relative;
}
.article-body ul li::marker {
  color: var(--primary);
}

.article-body a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.article-body a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.article-body strong {
  font-weight: 700;
  color: var(--fg);
}

.article-body code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 8px;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  border-radius: 6px;
  font-weight: 600;
}
.article-body img,
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.article-body .wp-caption,
.article-body figure {
  max-width: 100%;
}
.article-body figcaption,
.article-body .wp-caption-text {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-align: center;
}
.zt-blog-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, #eef2ff, #ffffff);
}

/* ── Highlight box (for promocodes, important info) ── */
.article-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02));
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius);
  margin: 2rem 0 !important;
}
.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.highlight-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.highlight-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 !important;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .article-highlight {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .highlight-content {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}

/* ── Pull quote ── */
.article-quote {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--fg);
  border-left: 4px solid var(--primary);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem 0 !important;
}
.article-quote strong {
  color: var(--primary);
}

/* ── Tags ── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.article-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Mobile share (replaces sticky rail) ── */
.article-share-mobile {
  display: none;
  margin-top: 2rem !important;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.share-mobile-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.share-mobile-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.share-mobile-icons .share-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.share-mobile-icons .share-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.share-mobile-icons .share-icon.copied {
  background: rgba(22,163,74,0.1);
  border-color: var(--success);
  color: var(--success);
}
.share-mobile-icons .zt-share-telegram { color: #229ED9; }
.share-mobile-icons .zt-share-facebook { color: #1877F2; }
.share-mobile-icons .zt-share-linkedin { color: #0A66C2; }
.share-mobile-icons .zt-share-copy { color: var(--fg-muted); }

@media (max-width: 768px) {
  .article-share-mobile { display: block; }
}

/* ═══════════════════════════════════
   TG CTA SECTION
   ═══════════════════════════════════ */
.tg-cta {
  padding: 3rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.tg-cta-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tg-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.tg-cta-text {
  flex: 1;
  min-width: 200px;
}
.tg-cta-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.tg-cta-text p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .tg-cta { padding: 2rem 0; }
  .tg-cta-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .tg-cta-icon { width: 56px; height: 56px; }
  .tg-cta-text h3 { font-size: 1.125rem; }
  .tg-cta-inner .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════
   RECOMMENDED JOBS
   ═══════════════════════════════════ */
.rec-jobs { padding: 3rem 0 2rem; }

.rec-jobs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.rec-jobs-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.15;
}
.rec-jobs-title-large {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { gap: 0.625rem; }

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

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

.rec-jobs-grid .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;
}
.rec-jobs-grid .job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
  color: inherit;
}
.rec-jobs-grid .job-card:focus-visible {
  outline: 3px solid rgba(37,99,235,0.24);
  outline-offset: 3px;
}
.rec-jobs-grid .job-card-hot { border-color: rgba(37,99,235,0.15); }
.rec-jobs-grid .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);
}
.rec-jobs-grid .job-category-marketing { background: rgba(37,99,235,0.08); color: var(--primary); }
.rec-jobs-grid .job-category-ai { background: rgba(124,58,237,0.08); color: #7c3aed; }
.rec-jobs-grid .job-category-design { background: rgba(236,72,153,0.08); color: #ec4899; }
.rec-jobs-grid .job-category-finance { background: rgba(22,163,74,0.08); color: var(--success); }
.rec-jobs-grid .job-category-sales { background: rgba(22,163,74,0.08); color: var(--success); }
.rec-jobs-grid .job-category-hr { background: rgba(245,158,11,0.08); color: var(--warning); }
.rec-jobs-grid .job-category-product { background: rgba(14,165,233,0.08); color: var(--info); }
.rec-jobs-grid .job-category-project-manager { background: rgba(14,165,233,0.08); color: var(--info); }
.rec-jobs-grid .job-category-it-development,
.rec-jobs-grid .job-category-devops,
.rec-jobs-grid .job-category-qa { background: rgba(99,102,241,0.08); color: #4f46e5; }
.rec-jobs-grid .job-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.75rem;
  transition: color 0.2s;
}
.rec-jobs-grid .job-card:hover .job-title { color: var(--primary); }
.rec-jobs-grid .job-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.125rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.rec-jobs-grid .job-company-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
}
.rec-jobs-grid .job-company-logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  overflow: hidden;
  flex: 0 0 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}
.rec-jobs-grid .job-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-jobs-grid .job-company-name {
  color: var(--fg-muted);
  font-weight: 600;
}
.rec-jobs-grid .job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
}
.rec-jobs-grid .job-salary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--fg);
}

.rj-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.rj-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
}

.rj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.rj-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rj-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);
  background: var(--destructive);
  color: #fff;
  letter-spacing: 0.04em;
}
.rj-cat {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.rj-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.rj-card:hover .rj-title { color: var(--primary); }
.rj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.rj-dot { color: var(--border); }
.rj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.rj-salary {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--primary);
}
.rj-type {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════
   EMPLOYER CTA
   ═══════════════════════════════════ */
.employer-cta { padding: 2rem 0 3rem; }
.employer-cta-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--fg);
  border-radius: var(--radius);
  color: #fff;
  flex-wrap: wrap;
}
.employer-cta-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.employer-cta-text {
  flex: 1;
  min-width: 240px;
}
.employer-cta-text h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}
.employer-cta-text p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}
.btn-dark {
  background: #fff !important;
  color: var(--fg) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
}
.btn-dark:hover {
  background: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

@media (max-width: 600px) {
  .employer-cta-card { padding: 1.5rem; flex-direction: column; text-align: center; }
  .employer-cta-card .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════
   RELATED ARTICLES
   ═══════════════════════════════════ */
.related-posts {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--border-light);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.2);
}
.post-img {
  aspect-ratio: 870 / 350;
  overflow: hidden;
}
.post-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.post-card:hover .post-img img { transform: scale(1.03); }
.post-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.post-cat {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-date { font-size: 0.75rem; color: var(--fg-light); }
.post-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover .post-title { color: var(--primary); }

@media (max-width: 600px) {
  .post-card { flex-direction: row; }
  .post-img { width: 110px; aspect-ratio: 1 / 1; flex-shrink: 0; }
  .post-body { padding: 0.875rem 1rem; }
  .post-title { font-size: 0.875rem; }
}

/* ═══════════════════════════════════
   MOBILE OPTIMIZATIONS (iPhone Safari)
   ═══════════════════════════════════ */
@media (max-width: 768px) {
  .article-hero { padding: 1.25rem 0 1rem; }
  .article-banner { padding: 0 0 1.5rem; }
  .article-banner-shell::before {
    inset: -1.5rem -1rem -1.25rem;
    filter: blur(30px) saturate(114%);
    opacity: 0.66;
  }
  .article-banner-frame { border-radius: var(--radius-sm); }
  .article-layout { padding: 0 0 2rem; }

  .article-body { font-size: 1rem; }
  .article-body p,
  .article-body ul,
  .article-body ol { font-size: 1rem; line-height: 1.72; }
  .article-lead { font-size: 1.125rem; }
  .article-body h1,
  .article-body h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); margin-top: 2rem !important; }
  .article-body h3 { font-size: 1.125rem; margin-top: 1.5rem !important; }
  .article-quote { font-size: 1.0625rem; padding-left: 1rem; margin: 2rem 0 !important; }

  .author-avatar { width: 38px; height: 38px; font-size: 0.6875rem; }
  .author-name { font-size: 0.875rem; }
  .author-date { font-size: 0.75rem; }

  .container-narrow { padding: 0 1.25rem; }

  .rec-jobs { padding: 2rem 0 1.5rem; }
  .related-posts { padding: 1.5rem 0 3rem; }
}

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

@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;
}

/* Prevent rubber-band на body коли sidebar sticky */
body {
  overscroll-behavior-y: none;
}

/* 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 .container {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .breadcrumbs .container::-webkit-scrollbar { display: none; }
}

/* 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: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.share-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,0.04);
}
.share-icon svg { flex-shrink: 0; }

/* 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: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .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 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .meta-sep { display: none; }

  .vacancy-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
  }

  .vacancy-company {
    font-size: 0.9375rem;
  }
  .company-avatar {
    width: 32px; height: 32px;
    border-radius: 8px;
    font-size: 0.625rem;
  }

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

  .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: 36px; height: 36px;
    border-radius: 9px;
    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: 1.5rem;
  }
  .vacancy-section h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  .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.5rem 0 2rem;
  }
  .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;
  }
  /* 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 site-wide heading weight polish */
.section-title,
.sec-title,
.hero-title,
.blog-hero-title,
.jobs-hero-title,
.thanks-page .section-title {
  font-weight: 600 !important;
}

/* v2.9 — article share icons match published vacancy share controls */
.article-page .share-rail-btn,
.article-page .share-mobile-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;
  text-decoration: none;
}

.article-page .share-rail-btn.zt-share-telegram,
.article-page .share-rail-btn.zt-share-facebook,
.article-page .share-rail-btn.zt-share-linkedin,
.article-page .share-rail-btn.zt-share-copy,
.article-page .share-mobile-icons .share-icon.zt-share-telegram,
.article-page .share-mobile-icons .share-icon.zt-share-facebook,
.article-page .share-mobile-icons .share-icon.zt-share-linkedin,
.article-page .share-mobile-icons .share-icon.zt-share-copy {
  color: var(--fg);
}

.article-page .share-rail-btn:hover,
.article-page .share-mobile-icons .share-icon:hover {
  transform: translateY(-2px);
}

.article-page .share-rail-btn svg,
.article-page .share-mobile-icons .share-icon svg {
  width: 1.12rem;
  height: 1.12rem;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.article-page .share-rail-btn.zt-share-copy svg,
.article-page .share-mobile-icons .share-icon.zt-share-copy svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.article-page .share-rail-btn.zt-share-telegram:hover,
.article-page .share-mobile-icons .share-icon.zt-share-telegram:hover {
  color: #229ed9;
  background: rgba(34, 158, 217, 0.08);
  border-color: rgba(34, 158, 217, 0.35);
  box-shadow: none;
}

.article-page .share-rail-btn.zt-share-facebook:hover,
.article-page .share-mobile-icons .share-icon.zt-share-facebook:hover {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow: none;
}

.article-page .share-rail-btn.zt-share-linkedin:hover,
.article-page .share-mobile-icons .share-icon.zt-share-linkedin:hover {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
  border-color: rgba(10, 102, 194, 0.35);
  box-shadow: none;
}

.article-page .share-rail-btn.zt-share-copy:hover,
.article-page .share-mobile-icons .share-icon.zt-share-copy:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: none;
}

.article-page .share-rail-btn.copied,
.article-page .share-mobile-icons .share-icon.copied {
  color: var(--success);
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.35);
}

@media (max-width: 768px) {
  .article-page .share-mobile-icons .share-icon {
    width: 40px;
    height: 40px;
  }
}

/* v2.10 — article mobile viewport and prose scale guard */
@media (max-width: 768px) {
  html,
  body.article-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .article-page .container,
  .article-page .container-narrow,
  .article-page .article-hero,
  .article-page .article-banner,
  .article-page .article-layout,
  .article-page .article-grid,
  .article-page .article-body,
  .article-page .tg-cta,
  .article-page .rec-jobs,
  .article-page .related-posts {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .article-page .container,
  .article-page .container-narrow {
    padding-left: clamp(1rem, 4vw, 1.25rem);
    padding-right: clamp(1rem, 4vw, 1.25rem);
  }

  .article-page .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-page .article-body {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .article-page .article-body :where(p, li, blockquote, figcaption, table, td, th, span) {
    max-width: 100%;
  }

  .article-page .article-title {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    line-height: 1.14;
    letter-spacing: 0;
  }

  .article-page .article-body h1,
  .article-page .article-body h2 {
    font-size: clamp(1.55rem, 6.2vw, 1.9rem) !important;
    line-height: 1.22 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.85rem !important;
  }

  .article-page .article-body h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
    line-height: 1.28 !important;
    margin-top: 1.65rem !important;
    margin-bottom: 0.65rem !important;
  }

  .article-page .article-body p,
  .article-page .article-body ul,
  .article-page .article-body ol {
    font-size: 1rem !important;
    line-height: 1.72 !important;
  }

  .article-page .article-body img,
  .article-page .article-body figure,
  .article-page .article-body iframe,
  .article-page .article-body video,
  .article-page .article-body table {
    max-width: 100%;
  }
}
