/* ============================================================
   ISRAEL JOB — Design System v2 «Juicy Tech-Brutalism»
   Obsidian #0B0C0E · Electric Lime #CCFF00 · карточки #121418
   ============================================================ */

:root {
  /* Palette */
  --bg: #0B0C0E;                 /* Rich Obsidian */
  --card: #121418;               /* поверхности карточек */
  --card-2: #1A1D23;             /* приподнятый слой / hover */
  --accent: #CCFF00;             /* Electric Lime — CTA, HOT, активные состояния */
  --accent-2: #00F0FF;           /* Hyper Cyan — градиенты и вторичные акценты */
  --accent-ink: #0B0C0E;         /* текст на лаймовом */
  --text: #F2F3F0;
  --muted: #8B919A;
  --line: rgba(255, 255, 255, 0.08);   /* crisp border */
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Shape */
  --r-card: 16px;
  --r-inner: 12px;
  --r-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 32px rgba(0,0,0,.5);
  --shadow-pop: 0 16px 48px rgba(0,0,0,.6), 0 0 0 1px var(--line-strong);
  --glow-lime: 0 8px 28px rgba(204, 255, 0, .22);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --track-tight: -0.04em;

  /* Layout */
  --container: 1200px;
  --gap: 20px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Typography ---------- */
h1, .h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: var(--track-tight);
  font-weight: 800;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 .6em;
}
h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 .4em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.accent-text { color: var(--accent); }
.crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.crumbs a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: var(--glow-lime);
}
.btn-primary:hover { background: #d9ff33; box-shadow: 0 8px 36px rgba(204,255,0,.34); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { min-height: 60px; padding: 18px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.logo { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo .dot { color: var(--accent); }
.nav { display: flex; gap: 24px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 130%;
  background:
    radial-gradient(ellipse 60% 45% at 78% 18%, rgba(204,255,0,.10), transparent 60%),
    radial-gradient(ellipse 45% 40% at 15% 90%, rgba(0,240,255,.05), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--card);
  font-size: .85rem; font-weight: 700; color: var(--muted);
  margin-bottom: 24px;
}
.hero-kicker .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(204,255,0,.5); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(204,255,0,0); } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; margin-top: 44px;
}
.hero-stat { background: var(--card); padding: 18px 20px; }
.hero-stat b { display: block; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--accent); }
.hero-stat span { color: var(--muted); font-size: .82rem; }

.hero-showcase { display: grid; gap: 14px; }
.hero-showcase .job-card { box-shadow: var(--shadow-pop); }
.hero-showcase .job-card:nth-child(2) {
  transform: translateX(28px) scale(.96); opacity: .85;
}
@media (max-width: 900px) {
  .hero-showcase .job-card:nth-child(2) { display: none; }
}

/* ---------- Job Card v2 «dark neon», ₽-first ---------- */
.job-card {
  position: relative;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(204,255,0,.35);
  box-shadow: var(--shadow-pop);
}

.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-card-title {
  font-size: 1.18rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.18;
  margin: 0;
}
.badge-hot {
  flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  padding: 6px 12px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 0 18px rgba(204,255,0,.35);
}
.badge-hot::before { content: "●"; font-size: .6rem; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Зарплата: ₽ — крупно, ₪/$ — вторым, приглушённо */
.job-salary { display: flex; flex-direction: column; gap: 6px; }
.job-salary .rub-line { display: flex; align-items: baseline; gap: 8px; }
.job-salary .main {
  font-size: 1.95rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.job-salary .per { color: var(--muted); font-weight: 700; }
.job-salary .alt-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.job-salary .alt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.job-salary .hour {
  margin-left: auto; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: var(--r-pill);
}

.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tag {
  font-size: .8rem; font-weight: 700; color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 6px 12px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
}
.job-tag.housing { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.job-card-actions { display: flex; gap: 10px; margin-top: 4px; }
.job-card .btn { min-height: 48px; flex: 1; padding: 12px 16px; }
.job-card .btn-primary { box-shadow: none; }

/* ---------- Catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0 80px; }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; } }

.filters-panel {
  position: sticky; top: 88px; align-self: start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 900px) { .filters-panel { position: static; } }
.filters-panel label { font-size: .82rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.field input[type="text"], .field input[type="search"], .field input[type="number"],
.field input[type="tel"], .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-inner);
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input.is-invalid { border-color: #ff5470; }
.field-error { color: #ff5470; font-size: .85rem; margin: 6px 0 0; }
.field-check { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; }
.field-check input { width: 22px; height: 22px; accent-color: var(--accent); }

.jobs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
  min-height: 320px; /* CLS: резервируем высоту */
}
.jobs-count { color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.jobs-count b { color: var(--accent); }

.skeleton-card {
  border-radius: var(--r-card); border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
  min-height: 230px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-card);
  color: var(--muted);
}

/* ---------- Sticky mobile action bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,12,14,.9); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-bar .btn { flex: 1; min-height: 54px; }
@media (max-width: 720px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: 84px; }
}

/* ---------- Квиз ---------- */
.quiz-progress {
  height: 6px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line);
  overflow: hidden; margin-bottom: 20px;
}
.quiz-progress-fill {
  height: 100%; width: 20%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--r-pill);
  transition: width .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 0 14px rgba(204,255,0,.4);
}
.quiz-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px;
  box-shadow: var(--shadow-card);
}
.quiz-step { border: 0; padding: 0; margin: 0 0 20px; min-height: 240px; }
.quiz-step legend {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  padding: 0; margin-bottom: 18px;
}
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-inner);
  padding: 0; overflow: hidden; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.quiz-option:active { transform: scale(.985); }
.quiz-option span {
  padding: 16px 18px; font-weight: 700; font-size: 1.05rem; width: 100%;
}
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option:hover { border-color: var(--accent); }
.quiz-option:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(204,255,0,.12), rgba(0,240,255,.05));
  box-shadow: 0 0 0 1px var(--accent) inset;
}
/* fallback для браузеров без :has — JS не требуется, чекнутый радио виден фокусом */
.quiz-option input:checked + span::after { content: " ✓"; color: var(--accent); }

.quiz-nav { display: flex; gap: 10px; }
.quiz-hint { color: var(--muted); font-size: .78rem; margin: 14px 0 0; text-align: center; }

/* анимация смены шагов */
@keyframes stepInFwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.quiz-step.step-in-fwd { animation: stepInFwd .28s cubic-bezier(.2,.8,.2,1); }
.quiz-step.step-in-back { animation: stepInBack .28s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .quiz-step.step-in-fwd, .quiz-step.step-in-back { animation: none; }
}

/* совпавшие вакансии на финальном шаге */
.quiz-match-title { font-weight: 800; margin: 0 0 10px; }
.quiz-match {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-inner);
  padding: 12px 16px; margin-bottom: 8px;
  transition: border-color .15s ease;
}
.quiz-match:hover { border-color: var(--accent); }
.quiz-match .qm-title { font-weight: 700; font-size: .95rem; }
.quiz-match .qm-rub { color: var(--accent); font-weight: 800; white-space: nowrap; }
.quiz-match-note { color: var(--muted); font-size: .9rem; margin: 12px 0 18px; }

/* ---------- Видео-отзывы: bento + facade ---------- */
.video-bento {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) { .video-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-bento { grid-template-columns: 1fr; } }
.review-card.featured { grid-column: span 2; }
@media (max-width: 560px) { .review-card.featured { grid-column: span 1; } }

.review-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.review-card:hover { transform: translateY(-3px); border-color: rgba(204,255,0,.3); }

.video-facade {
  position: relative; aspect-ratio: 16 / 9; /* CLS: место зарезервировано */
  width: 100%; border: 0; padding: 0; cursor: pointer;
  background:
    radial-gradient(ellipse 70% 90% at 50% 100%, rgba(204,255,0,.10), transparent),
    linear-gradient(160deg, var(--card-2), var(--bg));
  display: block;
}
.video-facade .facade-bg {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; color: rgba(255,255,255,.06); user-select: none;
}
.video-facade .play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 28px rgba(204,255,0,.45);
  transition: transform .15s ease;
}
.video-facade:hover .play { transform: scale(1.12); }
.video-facade .play::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--accent-ink);
  transform: translateX(2px);
}
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.review-meta { padding: 14px 16px 16px; }
.review-meta b { display: block; font-size: .98rem; letter-spacing: -0.01em; }
.review-geo { color: var(--muted); font-size: .82rem; display: block; margin-top: 2px; }
.review-quote { color: var(--muted); font-size: .88rem; margin: 8px 0 0; line-height: 1.45; }

/* ---------- База знаний ---------- */
.cat-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.cat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 20px;
  transition: transform .15s ease, border-color .15s ease;
}
.cat-card:hover { transform: translateY(-3px); border-color: rgba(204,255,0,.35); }
.cat-emoji { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.cat-count {
  display: inline-block; min-width: 24px; text-align: center;
  font-size: .75rem; font-weight: 800; color: var(--accent-ink);
  background: var(--accent); border-radius: var(--r-pill); padding: 2px 8px;
  margin-left: 6px;
}
.cat-card b { font-size: 1.05rem; letter-spacing: -0.01em; }
.cat-card p { color: var(--muted); font-size: .85rem; margin: 6px 0 0; line-height: 1.45; }

.article-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.article-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px;
  transition: transform .15s ease, border-color .15s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: rgba(204,255,0,.35); }
.article-cat {
  display: inline-block; font-size: .78rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 4px 10px; margin-bottom: 12px;
}
.article-card h3 { font-size: 1.15rem; line-height: 1.25; }
.article-card p { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }

/* страница статьи */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.article-body h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.article-body p, .article-body li { color: #C9CDD3; line-height: 1.7; }
/* :not(.btn) — иначе лаймовый текст ссылок красит кнопки на лаймовом фоне («пустые» кнопки) */
.article-body a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul { padding-left: 22px; }
.article-body strong { color: var(--text); }
/* страховка от любых будущих каскадов: явные цвета кнопок внутри статьи */
.article-body .btn-primary { color: var(--accent-ink); text-decoration: none; }
.article-body .btn-ghost { color: var(--text); text-decoration: none; }
.article-body .btn-ghost:hover { color: var(--accent); }

.inline-jobs {
  margin-top: 40px; padding: 24px;
  border: 1px solid rgba(204,255,0,.25); border-radius: var(--r-card);
  background: linear-gradient(160deg, rgba(204,255,0,.05), transparent 55%);
}
.inline-jobs-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 16px; }
.inline-jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }

.article-sidebar { align-self: start; position: sticky; top: 88px; }
@media (max-width: 960px) { .article-sidebar { position: static; } }
.sidebar-magnet {
  background: var(--card); border: 1px solid rgba(204,255,0,.3);
  border-radius: var(--r-card); padding: 22px;
  box-shadow: var(--shadow-card);
}
.sm-kicker {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  border-radius: var(--r-pill); padding: 4px 12px; margin: 0 0 12px;
}
.sm-title { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin: 0 0 16px; }
.sm-title b { color: var(--accent); }

/* ---------- Sections / panels / calc ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 28px;
}

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-row { margin-bottom: 22px; }
.calc-row label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; gap: 12px; }
.calc-row output { color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
input[type="range"] {
  width: 100%; height: 48px; accent-color: var(--accent); background: transparent;
}
.calc-result { text-align: center; }
.calc-result .big {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em;
  color: var(--accent); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px rgba(204,255,0,.3);
}
.calc-result .sub { color: var(--muted); font-weight: 600; }

/* ---------- Статья: ретеншн-механики ---------- */
/* Прогресс чтения: тонкая lime-линия сразу под sticky-шапкой */
.reading-progress {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 49;
  height: 3px; background: transparent; pointer-events: none;
}
.reading-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(204,255,0,.5);
  transition: width .1s linear;
}

.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.meta-chip {
  font-size: .8rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* Callout-боксы: разбивают монотонное чтение */
.callout {
  border-radius: var(--r-inner); padding: 16px 18px; margin: 22px 0;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text) !important;
}
.callout.warn {
  border-color: rgba(204,255,0,.45);
  background: linear-gradient(120deg, rgba(204,255,0,.09), rgba(204,255,0,.02));
}
.callout.warn b { color: var(--accent); }
.callout.tip {
  border-color: rgba(0,240,255,.4);
  background: linear-gradient(120deg, rgba(0,240,255,.08), rgba(0,240,255,.02));
}
.callout.tip b { color: var(--accent-2); }
.article-body .callout { color: #C9CDD3 !important; }

/* Видео в статье + sticky PiP */
.video-article { margin: 26px 0; }
.video-article-inner {
  position: relative;
  border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line);
}
.video-article-inner.pip-mode {
  position: fixed; right: 16px; bottom: 96px; z-index: 70;
  width: min(300px, 44vw);
  box-shadow: var(--shadow-pop);
  animation: pipIn .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes pipIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
.pip-close {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(11,12,14,.85); color: var(--text);
  border: 1px solid var(--line-strong); font-size: .75rem; line-height: 1;
}
.pip-close:hover { border-color: var(--accent); color: var(--accent); }
.video-caption { color: var(--muted); font-size: .85rem; margin-top: 8px; }

/* Инлайн-вакансии в середине статьи: горизонтальный слайдер */
.inline-jobs-slider {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 82%);
  gap: 14px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.inline-jobs-slider .job-card { scroll-snap-align: start; }
.inline-jobs-slider::-webkit-scrollbar { height: 6px; }
.inline-jobs-slider::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.article-cta {
  margin-top: 40px; padding: 24px;
  border: 1px solid var(--line-strong); border-radius: var(--r-card);
  background: var(--card);
}
.article-cta p { color: var(--text) !important; margin: 0 0 14px; }

/* ---------- Лид-чат ---------- */
.chat-widget { position: fixed; right: 18px; bottom: 22px; z-index: 80; }
@media (max-width: 720px) { .chat-widget { bottom: 96px; } } /* над sticky-bar */

.chat-fab {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); border: 0;
  box-shadow: 0 0 28px rgba(204,255,0,.45), 0 8px 24px rgba(0,0,0,.4);
  display: grid; place-items: center;
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab:active { transform: scale(.95); }
.chat-fab-icon { font-size: 1.5rem; }
.chat-fab-dot {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-2); border: 2px solid var(--bg);
  box-shadow: 0 0 0 0 rgba(0,240,255,.5); animation: pulse 2s infinite;
}
.chat-fab.is-open .chat-fab-icon::before { content: "✕"; font-size: 1.2rem; }
.chat-fab.is-open .chat-fab-icon { font-size: 0; }

.chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(340px, calc(100vw - 36px));
  background: var(--card); border: 1px solid rgba(204,255,0,.3);
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-pop);
  animation: pipIn .22s cubic-bezier(.2,.8,.2,1);
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--card-2);
}
.chat-head b { display: block; font-size: .95rem; letter-spacing: -0.01em; }
.chat-sub { color: var(--muted); font-size: .78rem; }
.chat-status .pulse {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(204,255,0,.5); animation: pulse 2s infinite;
}
.chat-close {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); font-size: .7rem; line-height: 1;
}
.chat-close:hover { color: var(--accent); border-color: var(--accent); }

.chat-body { padding: 14px; max-height: 240px; overflow-y: auto; display: grid; gap: 8px; }
.chat-bubble {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px; font-size: .88rem; line-height: 1.5; color: #C9CDD3;
  max-width: 92%;
}
.chat-bubble.mine {
  background: rgba(204,255,0,.12); border-color: rgba(204,255,0,.35);
  border-radius: 12px 12px 4px 12px; justify-self: end; color: var(--text);
}

.chat-form {
  display: flex; gap: 8px; padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.chat-form input[type="tel"] {
  flex: 1; min-height: 46px; padding: 8px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  outline: none; font-size: .9rem;
}
.chat-form input[type="tel"]:focus { border-color: var(--accent); }
.chat-form .btn { min-height: 46px; padding: 8px 18px; box-shadow: none; }

/* ---------- Поиск билетов (/bilety): нативная форма ---------- */
.flight-search-card {
  width: 100%; max-width: 900px; margin: 8px auto;
  padding: clamp(18px, 3vw, 28px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.flight-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.flight-title .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(204,255,0,.5); animation: pulse 2s infinite;
  flex-shrink: 0;
}
.flight-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}
@media (max-width: 900px) { .flight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flight-grid { grid-template-columns: 1fr; } }

.flight-field { display: flex; flex-direction: column; gap: 8px; }
.flight-field label {
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .08em;
}
.flight-field input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-inner);
  outline: none; transition: border-color .15s ease;
  color-scheme: dark; /* нативный календарь в тёмной теме */
}
.flight-field input:focus { border-color: var(--accent); }

.flight-locked {
  min-height: 50px; padding: 12px 14px;
  background: rgba(11,12,14,.5); color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.05); border-radius: var(--r-inner);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  user-select: none; font-size: .95rem;
}
.flight-chip {
  font-size: .68rem; font-weight: 700; font-family: ui-monospace, monospace;
  color: var(--accent); background: rgba(204,255,0,.1);
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.flight-submit { justify-content: flex-end; }
.flight-submit .btn { min-height: 50px; border-radius: var(--r-inner); }

.flight-note {
  font-size: .75rem; color: rgba(255,255,255,.3);
  text-align: center; margin: 0;
}

/* ---------- Лид-формы ---------- */
.lead-form { display: grid; gap: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.site-footer { padding: 48px 0 64px; color: var(--muted); font-size: .9rem; }
.site-footer a:hover { color: var(--text); }

::selection { background: var(--accent); color: var(--accent-ink); }
