/* Общи правила за сайта: отстъпи по ширина на екрана, хедър и мобилни оформления.
   Страниците са с вградени стилове — тук са само нещата, които зависят от ширината. */

:root { --ja-px: 48px; }
@media (max-width: 1100px) { :root { --ja-px: 32px; } }
@media (max-width: 760px) { :root { --ja-px: 16px; } }

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* ---------- хедър ---------- */
.ja-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; }
.ja-nav { display: flex; gap: 4px; font-size: 15px; }
.ja-nav a { white-space: nowrap; }
.ja-head-right { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.ja-cta-short { display: none; }

/* до 900px: лого, език и бутон на първия ред, навигацията — плъзгаща се лента отдолу */
@media (max-width: 900px) {
  .ja-head { gap: 10px 8px; padding-top: 12px !important; padding-bottom: 8px !important; }
  .ja-head-right { gap: 8px; }
  .ja-cta { padding: 10px 14px !important; font-size: 14px; }
  /* навигацията става една лента, която се плъзга настрани */
  .ja-nav {
    order: 3;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: calc(100% + 2 * var(--ja-px));
    margin: 0 calc(-1 * var(--ja-px));
    padding: 0 var(--ja-px) 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ja-nav::-webkit-scrollbar { display: none; }
  .ja-nav a { flex: none; padding: 7px 10px !important; }
}
@media (max-width: 400px) {
  .ja-head-right { gap: 6px; }
  .ja-lang a { padding: 6px 8px !important; }
  .ja-cta { padding: 9px 11px !important; font-size: 13px; }
}
@media (max-width: 355px) {
  .ja-cta-long { display: none; }
  .ja-cta-short { display: inline; }
}

/* ---------- начало: точките с ползите ---------- */
@media (max-width: 760px) {
  .ja-proof { flex-direction: column !important; align-items: flex-start !important; width: fit-content; max-width: 100%; margin-left: auto !important; margin-right: auto !important; text-align: left; gap: 10px !important; }
  .ja-proof-item { align-items: flex-start !important; }
  .ja-proof-dot { margin-top: 6px; }
}

/* ---------- търсачка с бутон (обяви, компании) ---------- */
@media (max-width: 760px) {
  .ja-search { flex-wrap: wrap; padding: 8px !important; }
  .ja-search input { flex: 1 1 100% !important; padding: 10px 10px 8px; font-size: 16px !important; }
  .ja-search a { flex: 1 1 100%; text-align: center; }
  /* филтрите — една лента, която се плъзга настрани */
  .ja-chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--ja-px)); padding: 0 var(--ja-px) 2px; }
  .ja-chips::-webkit-scrollbar { display: none; }
  .ja-chips > * { flex: none; white-space: nowrap; }
}

/* ---------- обяви ---------- */
@media (max-width: 900px) {
  .ja-jobs-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .ja-filters { position: static !important; }
  /* областите — хоризонтална лента вместо дълъг списък */
  .ja-fields { flex-direction: row !important; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ja-fields::-webkit-scrollbar { display: none; }
  .ja-fields a { flex: none; white-space: nowrap; }
}
@media (max-width: 760px) {
  .ja-job { grid-template-columns: 40px minmax(0, 1fr) auto !important; padding: 16px !important; gap: 12px !important; }
  .ja-job-logo { width: 40px !important; height: 40px !important; }
  .ja-job-why { display: block !important; }
  .ja-job-why b { margin-right: 6px; }
  .ja-results-head { flex-direction: column; align-items: flex-start !important; }
}

/* ---------- компания ---------- */
@media (max-width: 900px) {
  .ja-co-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- демо чат ---------- */
@media (max-width: 760px) {
  .ja-chat { height: 600px !important; }
}

/* ---------- страница на професия (/marketing): брой обяви и направления ---------- */
.ja-mk-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: end; }
.ja-mk-stat { display: grid; grid-template-areas: "label" "num" "sub"; gap: 6px; padding: 28px 30px; border-radius: 28px; background: oklch(0.93 0.045 300); color: oklch(0.25 0.1 300); }
.ja-mk-stat-label { grid-area: label; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.ja-mk-total { grid-area: num; font-size: 84px; font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.ja-mk-stat-sub { grid-area: sub; font-size: 15px; }
.ja-mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ja-mk-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "names num" "bar bar"; gap: 12px; align-content: space-between; min-height: 96px; padding: 18px 20px; background: #fff; border: 1px solid #efedf2; border-radius: 20px; }
.ja-mk-names { grid-area: names; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ja-mk-name { font-size: 16px; font-weight: 600; line-height: 1.25; }
.ja-mk-en { font-size: 13px; color: #6b6776; line-height: 1.3; }
.ja-mk-num { grid-area: num; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ja-mk-num b { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ja-mk-word { font-size: 12px; color: #6b6776; }
.ja-mk-bar { grid-area: bar; align-self: end; display: block; height: 6px; border-radius: 3px; background: #f1eff4; overflow: hidden; }
.ja-mk-bar span { display: block; height: 100%; border-radius: 3px; background: oklch(0.72 0.1 300); }
.ja-mk-cta { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px 24px; flex-wrap: wrap; padding: 32px 36px; border-radius: 28px; background: oklch(0.95 0.03 300); color: oklch(0.28 0.1 300); }
.ja-mk-cta-btn { padding: 15px 22px; border-radius: 14px; background: #1d1b22; color: #fff !important; font-size: 16px; font-weight: 600; text-align: center; }
@media (max-width: 1200px) { .ja-mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ja-mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ja-mk-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
/* телефон: броят в един ред, направленията — списък в една карта */
@media (max-width: 600px) {
  .ja-mk-stat { grid-template-areas: "num label" "num sub"; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; padding: 18px 20px; border-radius: 22px; }
  .ja-mk-total { font-size: 56px; line-height: 1; }
  .ja-mk-stat-label { align-self: end; font-size: 15px; letter-spacing: 0; }
  .ja-mk-stat-sub { align-self: start; }
  .ja-mk-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; background: #fff; border: 1px solid #efedf2; border-radius: 20px; }
  .ja-mk-cat { grid-template-areas: "names num" "bar num"; gap: 6px 14px; align-items: center; min-height: 56px; padding: 12px 16px; background: transparent; border: 0; border-bottom: 1px solid #f1eff4; border-radius: 0; }
  .ja-mk-cat:last-child { border-bottom: 0; }
  .ja-mk-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
  .ja-mk-en { font-size: 12px; }
  .ja-mk-num b { font-size: 17px; }
  .ja-mk-word { display: none; }
  .ja-mk-bar { height: 4px; }
  .ja-mk-cta { padding: 22px 20px; border-radius: 22px; }
  .ja-mk-cta-btn { flex: 1 1 100%; }
}

/* ---------- страница на професия: къде са обявите (градове) ---------- */
.ja-mk-loc-mob { display: none; }
.ja-mk-loc-desk { display: flex; flex-direction: column; gap: 12px; }
.ja-mk-loc-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ja-mk-city { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; background: #fff; border: 1px solid #efedf2; border-radius: 22px; }
.ja-mk-city-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ja-mk-city-name { font-size: 18px; font-weight: 600; }
.ja-mk-city-pct { font-size: 13px; color: #6b6776; white-space: nowrap; }
.ja-mk-city-num { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.ja-mk-city-num b { font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.ja-mk-city .ja-mk-city-num > span { color: #6b6776; }
.ja-mk-city .ja-mk-bar, .ja-mk-city-row .ja-mk-bar { align-self: stretch; }
.ja-mk-bar-lg { height: 8px; border-radius: 4px; }
.ja-mk-loc-rest { display: flex; flex-wrap: wrap; gap: 12px; }
.ja-mk-remote { flex: 1 1 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 22px 24px; border-radius: 22px; background: oklch(0.93 0.045 165); color: oklch(0.28 0.08 165); }
.ja-mk-remote-head { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.ja-mk-other { flex: 3 1 480px; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; background: #fff; border: 1px solid #efedf2; border-radius: 22px; }
.ja-mk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #f4f2f6; font-size: 15px; }
.ja-mk-chip b { font-weight: 600; }
@media (max-width: 1100px) { .ja-mk-loc-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* телефон: „Дистанционно“ отгоре, градовете — списък в една карта */
@media (max-width: 600px) {
  .ja-mk-loc-desk { display: none; }
  .ja-mk-loc-mob { display: flex; flex-direction: column; gap: 12px; }
  .ja-mk-remote-row { flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; }
  .ja-mk-remote-row > b { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
  .ja-mk-remote-row > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.3; }
  .ja-mk-city-list { display: flex; flex-direction: column; padding: 4px 0; background: #fff; border: 1px solid #efedf2; border-radius: 20px; }
  .ja-mk-city-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 16px; border-bottom: 1px solid #f1eff4; }
  .ja-mk-city-row:last-child { border-bottom: 0; }
  .ja-mk-city-row > b { flex: none; min-width: 32px; text-align: right; font-size: 17px; font-weight: 600; }
  .ja-mk-city-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .ja-mk-city-row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 500; }
  .ja-mk-city-row .ja-mk-bar { height: 4px; }
}

/* ---------- списък с обяви на професия/направление (/marketing/obyavi/, /marketing/<направление>/) ---------- */
.ja-ls-main-wrap { max-width: 1040px; margin: 0 auto; box-sizing: content-box; padding: clamp(12px, 3vw, 24px) var(--ja-px, 48px) clamp(48px, 7vw, 72px); display: flex; flex-direction: column; gap: clamp(18px, 3vw, 24px); }
.ja-ls-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.ja-ls-count { display: flex; align-items: baseline; gap: 10px; padding: 16px 22px; border-radius: 20px; background: oklch(0.93 0.045 300); color: oklch(0.25 0.1 300); }
.ja-ls-count b { font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.ja-ls-count > span { font-size: 15px; font-weight: 500; }
.ja-ls-count-zero { background: #f1eff4; color: #5d5a66; }
.ja-ls-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 15px; color: #5d5a66; }
.ja-ls-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: oklch(0.4 0.1 300); }
.ja-ls-job { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 22px; background: #fff; border: 1px solid #efedf2; border-radius: 22px; transition: border-color .2s ease, box-shadow .2s ease; }
a.ja-ls-job:hover { border-color: #d9d4e0; box-shadow: 0 14px 32px -22px rgba(30, 20, 50, .3); }
a.ja-ls-job:hover .ja-ls-title { color: oklch(0.4 0.12 300); }
.ja-ls-job-static { grid-template-columns: 52px minmax(0, 1fr); }
.ja-ls-mono { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.ja-ls-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ja-ls-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ja-ls-title { font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ja-ls-new { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: oklch(0.93 0.045 165); color: oklch(0.32 0.08 165); }
.ja-ls-meta { font-size: 14px; color: #5d5a66; line-height: 1.4; }
.ja-ls-meta b { color: #1d1b22; font-weight: 600; }
.ja-ls-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.ja-ls-fact { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #f4f2f6; color: #4f4c58; }
.ja-ls-open { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 2px; white-space: nowrap; }
.ja-ls-open-l { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: oklch(0.4 0.1 300); }
.ja-ls-host { font-size: 12px; color: #6b6776; }
.ja-ls-open-m { display: none; }
.ja-ls-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; font-size: 15px; }
.ja-ls-pager > a, .ja-ls-pager > span { min-width: 44px; height: 44px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.ja-ls-pager > a { background: #fff; border: 1px solid #efedf2; }
.ja-ls-pager > a:hover { border-color: #d9d4e0; }
.ja-ls-pager > .ja-ls-cur { background: #1d1b22; color: #fff; font-weight: 600; }
.ja-ls-pager > .ja-ls-off { color: #b5b1bd; }
@media (max-width: 600px) {
  .ja-ls-count { padding: 10px 16px; border-radius: 16px; }
  .ja-ls-count b { font-size: 28px; }
  .ja-ls-sort { display: none; }
  .ja-ls-job, .ja-ls-job-static { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 20px; }
  .ja-ls-mono { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
  .ja-ls-title { font-size: 16px; }
  .ja-ls-meta { font-size: 13px; }
  .ja-ls-fact { font-size: 12px; padding: 4px 9px; }
  .ja-ls-open { display: none; }
  .ja-ls-open-m { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 600; color: oklch(0.4 0.1 300); }
}

/* картите на направленията на /marketing/ са линкове към списъка */
a.ja-mk-cat { color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
a.ja-mk-cat:hover { opacity: 1; border-color: oklch(0.78 0.08 300); box-shadow: 0 6px 18px -10px oklch(0.4 0.1 300 / .35); }
a.ja-mk-cat:hover .ja-mk-name { color: oklch(0.4 0.12 300); }
.ja-mk-stat { grid-template-areas: "label" "num" "sub" "link"; }
.ja-mk-stat-link { grid-area: link; margin-top: 8px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .ja-mk-stat { grid-template-areas: "num label" "num sub" "link link"; }
  a.ja-mk-cat:hover { box-shadow: none; }
}

/* /jobs: карта-блок (не цяла връзка) с категории; заглавието е разтеглената връзка */
.ja-ls-card { position: relative; }
.ja-ls-card:hover { border-color: #d9d4e0; box-shadow: 0 14px 32px -22px rgba(30, 20, 50, .3); }
.ja-ls-card:hover .ja-ls-title { color: oklch(0.4 0.12 300); }
.ja-ls-stretch::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.ja-ls-stretch:focus-visible { outline: none; }
.ja-ls-stretch:focus-visible::after { outline: 2px solid oklch(0.4 0.1 300); outline-offset: 2px; }
.ja-ls-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; position: relative; z-index: 1; }
.ja-ls-cat-ic { flex: none; color: #8d8996; margin-right: 2px; }
.ja-ls-cat { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.ja-ls-cat b { font-weight: 600; }
.ja-ls-cat-f { opacity: .75; }
.ja-ls-cat-sep { opacity: .5; }
.ja-ls-cat:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .ja-ls-card:hover { box-shadow: none; }
  .ja-ls-stretch::after { border-radius: 20px; }
  .ja-ls-cats { flex-direction: column; align-items: flex-start; }
  .ja-ls-cat-ic { display: none; }
  .ja-ls-cat { font-size: 12px; border-radius: 14px; }
}

/* кога е качена обявата в системата + текущото направление сред балончетата */
.ja-ls-up { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: #6b6776; line-height: 1.3; }
.ja-ls-up svg { flex: none; color: #8d8996; }
.ja-ls-up time { color: #4f4c58; font-weight: 500; font-variant-numeric: tabular-nums; }
.ja-ls-cat-cur { box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 600px) { .ja-ls-up { font-size: 12px; } }

/* Името на компанията в картата на обявата води към профила ѝ (над разтегнатия линк на заглавието) */
.ja-ls-co { position: relative; z-index: 1; color: #1d1b22; font-weight: 600; }
.ja-ls-co:hover { text-decoration: underline; }

/* HR агенция: силно отличим етикет до името на компанията в картите с обяви */
.ja-ls-agency { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 0 8px; padding: 2px 9px 2px 8px; border-radius: 999px; background: oklch(0.86 0.11 60); color: oklch(0.3 0.09 50); font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; vertical-align: 1px; }
.ja-ls-agency::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: oklch(0.55 0.17 45); }
.ja-ls-card.ja-ls-card--agency { background: oklch(0.985 0.018 70); border-color: oklch(0.86 0.08 62); box-shadow: inset 4px 0 0 oklch(0.72 0.14 55); }
