/* ==========================================================================
   Specialist Group XBA — landing page styles
   ========================================================================== */

:root {
  --navy-950: #071626;
  --navy-900: #0b2340;
  --navy-800: #0f2e52;
  --navy-700: #17427a;
  --blue-500: #2166ad;
  --blue-400: #3d84d6;
  --teal-500: #14b8a1;
  --teal-100: #e3faf5;
  --gold-500: #e3a83b;
  --gold-600: #c98f27;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #17213a;
  --text-muted: #5b6b85;
  --border: #e4e9f1;

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(11, 35, 64, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 35, 64, 0.10);
  --shadow-lg: 0 20px 60px rgba(11, 35, 64, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.icon-sprite { display: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(227, 168, 59, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(227, 168, 59, .45); }
/* Рамка берётся из палитры, а не из полупрозрачного белого: `rgba(255,255,255,.5)` писалось
   под тёмный фон, а на светлом читалось как отсутствие рамки — кнопка выглядела жирным текстом.
   Ни одно применение класса на тёмном фоне не осталось, но на случай будущей кнопки внутри
   `.section-dark` или подвала прежнее поведение сохранено правилом ниже. */
.btn-outline { border-color: var(--border); color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.section-dark .btn-outline,
.site-footer .btn-outline { border-color: rgba(255,255,255,.5); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 252, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(11,35,64,.08); }
/* Ряд шапки сжимается по содержимому и центрируется в окне, а не начинается у левого края
   колонки 1180 px. Прежняя раскладка «колонка 1180 + переполнение вправо» уводила шапку
   за правый край экрана: замер показал переполнение на всех пяти языках между 981 и 1200 px,
   а на английском — вплоть до 1584 px (при 1440 `scrollWidth` 1488). Внутренняя композиция
   ряда не меняется: свободного места в нём и раньше не было, менялось только положение.
   `flex-wrap` — предохранитель: когда ряд не помещается даже в окно, меню уходит на вторую
   строку, а не за край; поэтому же `height` стал `min-height`. */
.header-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  min-height: 76px; gap: 24px;
  width: fit-content; min-width: min(var(--container), 100%); max-width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--navy-900); flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
}
.brand-logo { display: block; width: auto; max-width: 160px; height: auto; max-height: 42px; object-fit: contain; }
.brand-name em { font-style: normal; color: var(--blue-500); }

/* `flex: 1 1 auto`, а не `flex: 1`: при `flex-basis: 0` гипотетический размер меню равен нулю,
   перенос строки не срабатывает никогда и меню вместо этого выдавливается за край. Свободное
   место по-прежнему целиком достаётся меню — оно единственное растёт, ширина та же. */
.main-nav { display: flex; gap: 28px; flex: 1 1 auto; min-width: 0; justify-content: center; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--text-muted); transition: color .2s; position: relative; white-space: nowrap; }
.main-nav a:hover { color: var(--navy-900); }

/* `margin-left: auto` работает только тогда, когда действия ушли на вторую строку: в один ряд
   свободного места нет вовсе (ширина ряда равна содержимому), а если меню окажется коротким —
   место заберёт растущее меню, и авто-отступ останется нулевым. */
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.language-select { position: relative; display: inline-block; flex-shrink: 0; }
.language-select-trigger {
  display: inline-flex; align-items: center; gap: 8px; min-width: 86px; height: 38px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 0 12px; color: var(--navy-900); font-size: 12.5px; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow-sm); user-select: none;
}
.language-select-trigger::-webkit-details-marker { display: none; }
.language-select-trigger::marker { content: ""; }
.language-select-caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; opacity: .65;
}
.language-select[open] .language-select-caret { transform: translateY(1px) rotate(225deg); }
.language-select-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 150px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px; box-shadow: var(--shadow-md);
}
.language-select-option {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px;
  border-radius: 8px; color: var(--text-muted); font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.language-select-option:hover { background: var(--bg); color: var(--navy-900); }
.language-select-option.is-active { background: var(--navy-900); color: #fff; }
.language-select-flag { width: 20px; text-align: center; font-size: 15px; line-height: 1; }
.language-select-selected { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: none; border-radius: 10px; background: transparent; padding: 6px; color: var(--navy-900);
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.nav-toggle-bar { display: block; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 120px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(20,184,161,.16), transparent 60%),
    radial-gradient(50% 40% at 10% 0%, rgba(227,168,59,.14), transparent 60%),
    linear-gradient(180deg, #f2f6fb 0%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--teal-100); color: #0d7d6f; font-weight: 700; font-size: 13px;
  margin-bottom: 22px; border: 1px solid rgba(20,184,161,.25);
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); color: var(--navy-950); }
.text-accent { color: var(--blue-500); background: linear-gradient(90deg, var(--blue-500), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 17.5px; color: var(--text-muted); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: var(--border); color: var(--navy-900); }
.hero .btn-outline:hover { background: var(--surface); box-shadow: var(--shadow-sm); }

.hero-visual { position: relative; height: 460px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .5; }
.orb-1 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(61,132,214,.35), transparent 70%); top: 10%; right: 5%; animation: float-slow 8s ease-in-out infinite; }
.orb-2 { width: 160px; height: 160px; background: radial-gradient(circle, rgba(20,184,161,.3), transparent 70%); bottom: 5%; left: 0; animation: float-slow 7s ease-in-out infinite reverse; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-md);
  width: max-content; animation: float-y 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 16px; color: var(--navy-950); }
.float-card small { display: block; font-size: 12px; color: var(--text-muted); max-width: 150px; }
.fc-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-100); color: #0d7d6f; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc-icon-accent { background: #fdf1dd; color: var(--gold-600); }

.fc-1 { top: 4%; left: 4%; animation-delay: 0s; }
.fc-2 { top: 30%; right: 0%; animation-delay: .6s; }
.fc-3 { bottom: 22%; left: 0%; animation-delay: 1.2s; }
.fc-4 { bottom: 0%; right: 8%; animation-delay: 1.8s; }

@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-slow { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-16px, 20px); } }

.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 56px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--text-muted), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; top: -34px; left: 0; width: 100%; height: 100%; background: linear-gradient(var(--blue-500), transparent); animation: scroll-drip 2s ease-in-out infinite; }
@keyframes scroll-drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy-950); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: clamp(28px, 3vw, 38px); font-weight: 900; color: var(--gold-500); font-variant-numeric: tabular-nums; }
.stat-label { color: #b7c3d9; font-size: 13.5px; max-width: 200px; margin: 0 auto; }

/* ---------- Section shared ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy-950); color: #fff; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 10px; }
.eyebrow-light { color: var(--teal-500); }
.section h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy-950); }
.text-light { color: #fff; }
.lead { color: var(--text-muted); font-size: 16.5px; }
.section-dark .lead { color: #b7c3d9; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(26px, 3vw, 34px); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.point { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.point:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.point svg { color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sector-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform .3s ease, box-shadow .3s ease; }
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sector-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--teal-100); color: #0d7d6f; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sector-icon-accent { background: #fdf1dd; color: var(--gold-600); }
.sector-card h3 { font-size: 20px; color: var(--navy-950); }
.sector-card ul { display: flex; flex-direction: column; gap: 10px; }
.sector-card li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-muted); padding: 10px 0; border-top: 1px solid var(--border); }
.sector-card li:first-child { border-top: none; }
.sector-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); flex-shrink: 0; }

.pagination { display: flex; justify-content: center; margin-top: 40px; }
.pagination-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination-link {
  min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-muted);
  font-size: 13.5px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.pagination-link:not(.is-disabled):hover { border-color: var(--blue-400); color: var(--navy-900); transform: translateY(-1px); }
.pagination-link.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pagination-link.is-disabled { opacity: .5; box-shadow: none; }

/* Точки входа в разделы под блоками главной. Отдельного стиля у кнопок нет — используются
   существующие .btn, добавлена только раскладка. */
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Иконка сферы приходит классом Font Awesome из справочника — размер и цвет задаём здесь,
   чтобы карточка выглядела так же, как со старым SVG-спрайтом. */
.sector-icon i { font-size: 26px; line-height: 1; color: var(--blue-500); }
.sector-icon-accent i { color: var(--gold-500); }

/* ---------- Карточка материала в списке раздела ---------- */
/* Своя карточка, а не `.sector-card`: тем классом свёрстан блок сфер на главной, а внешний вид
   лендинга — визуальный контракт (ADR-001). Любая правка `.sector-card` меняет главную, и это
   уже случалось дважды: телом статьи, напечатанным стилями карточки, и `.sector-card li`,
   разносившим пункты списка по колонкам флексбокса.

   Новых цветов, теней и радиусов здесь нет — всё из переменных и той же шкалы, что у
   `.job-card`: поверхность, граница 1 px, `--radius`, `--shadow-sm`.

   Раскладка без медиазапросов: `auto-fill` от 300 px сам даёт три колонки на 1440, две на 820
   и одну на 390. `auto-fit` здесь был бы ошибкой — единственная карточка в разделе растянулась
   бы на всю ширину экрана, а у нас разделы с одной-двумя записями обычное дело. */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.entry-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.entry-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-400); }
/* Пропорция задаётся рамке, а не картинке: файлы приходят разного размера (1200×630 у превью
   для соцсетей, 1000×510 у схемы), и без общей пропорции карточки в ряду стоят разной высоты.
   Подложка под картинкой того же цвета, что фон страницы, — она видна ту долю секунды, пока
   картинка грузится, и на прозрачных PNG. */
.entry-card-media { position: relative; display: block; aspect-ratio: 1200 / 630; background: var(--bg); border-bottom: 1px solid var(--border); }
/* Картинка вынута из потока намеренно. С `height: 100%` в потоке она получала не высоту
   рамки, а свою собственную — процент считается от определённой высоты родителя, а высота
   от `aspect-ratio` таковой не является, — и сама растягивала рамку. Портрет кандидата
   700 px высотой делал из карточки колонку во весь экран. `inset: 0` даёт картинке
   определённый прямоугольник, и `object-fit: cover` обрезает её по центру. */
.entry-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
/* Заголовок карточки — 20 px, как у `.job-card h3` и `.sector-card h3`. Без этой строки он
   берёт `.section h2` и печатается clamp(26px, 3vw, 36px): на трёхстрочном заголовке карточка
   превращается в один заголовок. */
.entry-card h2 { font-size: 20px; line-height: 1.25; color: var(--navy-900); margin: 0; }
.entry-card h2 a { color: inherit; }
.entry-card:hover h2 a { color: var(--blue-500); }
/* Кликабельна вся карточка при одной ссылке в разметке: невидимый слой ссылки растянут на
   карточку. Так область нажатия на телефоне — вся карточка, а не строка заголовка, и при этом
   не нужен ни второй адрес в кнопке, ни обработчик на JS. */
.entry-card-link::after { content: ""; position: absolute; inset: 0; }
.entry-card-link:focus-visible::after { outline: 2px solid var(--blue-500); outline-offset: -3px; }
/* Сведения разделены пробелом, а не точкой-разделителем: строка переносится на узком экране,
   и разделитель оказывался бы в начале новой строки. */
.entry-card-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13.5px; color: var(--text-muted); }
.entry-card-excerpt { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Jobs on the landing ---------- */
/* Карточка вакансии повторяет приёмы соседних блоков: поверхность, граница, радиус и тень —
   те же переменные, что у .sector-card, поэтому блок не выбивается из composition лендинга. */
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.job-card h3 { font-size: 20px; color: var(--navy-900); margin-bottom: 18px; }
.job-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.job-facts li { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.job-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.job-facts span { color: var(--text-muted); }
.job-facts strong { color: var(--navy-900); font-weight: 700; text-align: right; }
/* Страна и профессия ведут в свои разделы — из любого списка, где есть карточка. */
.job-facts strong a { color: var(--blue-500); }
.job-facts strong a:hover { color: var(--navy-900); }
.job-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Offices ---------- */
/* Те же кирпичи, что у карточек вакансий: поверхность, граница, радиус, тень. */
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.office-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.office-card h2 { font-size: 20px; color: var(--navy-900); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.office-badge { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #0d7d6f; background: var(--teal-100); border-radius: 999px; padding: 4px 10px; }
.office-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.office-facts li { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.office-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.office-facts span { color: var(--text-muted); }
.office-facts strong { color: var(--navy-900); font-weight: 700; text-align: right; }
.office-facts strong a { color: var(--blue-500); }
.office-facts strong a:hover { color: var(--navy-900); }
/* Ссылка «Все офисы» стоит в ряду карточек контактов и ведёт себя как они. */
.info-card-link strong { color: var(--blue-500); }

/* ---------- Job detail page ---------- */
/* Страница вакансии собрана из тех же кирпичей, что карточки лендинга: поверхность, граница,
   радиус и тень берутся из общих переменных, новых цветов не вводится. */
.job-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 32px; }
.job-detail-card .job-facts { margin: 0; }
.job-detail-body { display: grid; gap: 24px; }
.job-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.job-section h2 { font-size: 20px; color: var(--navy-900); margin: 0 0 14px; }
.job-prose { color: var(--text); font-size: 15.5px; }
.job-prose > :first-child { margin-top: 0; }
.job-prose > :last-child { margin-bottom: 0; }
.job-prose p { margin: 0 0 12px; }
.job-prose h2, .job-prose h3, .job-prose h4 { color: var(--navy-900); font-size: 17px; margin: 20px 0 10px; }
.job-prose ul, .job-prose ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
/* Маркеры возвращаются вручную: глобальный сброс `ul { list-style: none }` в начале файла
   написан для меню и каталогов лендинга и гасит точки и в тексте. Без этих двух строк
   маркированный список в теле материала неотличим от цепочки абзацев со сдвигом. */
.job-prose ul { list-style: disc; }
.job-prose ol { list-style: decimal; }
.job-prose li { color: var(--text-muted); }
.job-prose a { color: var(--blue-500); text-decoration: underline; }
.job-prose blockquote { margin: 0 0 12px; padding: 12px 16px; border-left: 3px solid var(--blue-400); background: var(--bg); border-radius: var(--radius-sm); color: var(--text-muted); }
.job-prose table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14.5px; }
.job-prose th, .job-prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.job-prose th { background: var(--bg); color: var(--navy-900); }
/* Схема в тексте. Без этих трёх строк браузер рисует `figure` своим стилем по умолчанию —
   отступ 40 px слева и справа, — а подпись ничем не отличается от абзаца. Отступ 12 px, размер
   подписи 14.5 px и цвет из переменных взяты у соседних правил `.job-prose`, новых значений нет.
   Ширину картинке не задаём: она приходит своей (1000 px), а общее `img { max-width: 100% }`
   в начале файла ужимает её на узком экране, сохраняя пропорции. */
.job-prose figure { margin: 0 0 12px; }
.job-prose figure img { height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.job-prose figcaption { margin-top: 8px; font-size: 14.5px; color: var(--text-muted); }
/* Схема открывается в полный размер по нажатию: ссылка на сам файл ставится при выводе
   (`App\Support\BodyImageLinks`). Одного правила хватает — без него `.job-prose a`
   подчёркивает ссылку, и под картинкой чертится линия, а строчная ссылка оставляет под
   картинкой несколько пикселей от базовой линии строки. `width: fit-content` — чтобы ссылка кончалась
   там же, где картинка: блок во всю ширину колонки ловил бы нажатие и на пустом месте
   справа от узкой схемы. */
.job-prose a.image-link { display: block; width: fit-content; text-decoration: none; }

/* ---------- Тело материала на внутренней странице ---------- */
/* Панель берётся у `.job-section`, типографика — у `.job-prose`; своих деклараций у
   `.entry-body` ровно одна, ниже. Правило намеренно висит на нём, а не на `.job-prose`:
   таблицы бывают только в тексте, который пишет редактор, и разделы вакансии трогать незачем.

   Таблица прокручивается внутри своей рамки, а не вылезает из карточки. `display: block`
   делает саму таблицу областью прокрутки; строки остаются одной анонимной таблицей, поэтому
   колонки шапки и тела не разъезжаются, а `border-collapse` наследуется и рамки не удваиваются.
   Полоса прокрутки появляется только тогда, когда колонки уже не сжимаются: у таблицы статьи
   на 390 px минимальная ширина 305 px против 296 px карточки, и эти 9 px раньше просто
   вылезали за правую рамку в поле контейнера; на 820 и 1440 px таблица занимает всю ширину
   и выглядит побайтово так же, как без этого правила.
   Плата за приём: короткая таблица теперь сжимается по содержимому, а не растягивается на
   всю ширину. Для тела материала это верно — таблица на две колонки во всю страницу читается
   хуже, — но правило намеренно не вынесено на `.job-prose`, чтобы не менять разделы вакансии. */
.entry-body table { display: block; overflow-x: auto; }

/* ---------- Countries marquee ---------- */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Стран меньше трёх — крутить нечего: ряд стоит на месте и центрируется. */
.marquee-static { -webkit-mask-image: none; mask-image: none; }
.marquee-static .marquee-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }

.country-card { width: 260px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.country-card h4 { margin: 10px 0 4px; font-size: 18px; color: var(--navy-950); }
.country-card p { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.country-flag { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--blue-500); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.status-pill.active { background: var(--teal-100); color: #0d7d6f; }
.status-pill.new { background: #fdf1dd; color: var(--gold-600); }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Why (dark) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px; transition: transform .3s ease, background .3s ease; }
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.why-card .why-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(20,184,161,.15); color: var(--teal-500); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.why-card h4 { color: #fff; font-size: 16.5px; margin-bottom: 8px; }
.why-card p { color: #a9b7cc; font-size: 14px; margin: 0; }

/* ---------- Process ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-steps::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; }
.step-num { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy-950); color: var(--gold-500); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-md); }
.process-step h4 { font-size: 16px; color: var(--navy-950); margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- Partners ---------- */
.partners-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.partners-list { display: flex; flex-direction: column; gap: 14px; }
/* Обёртка кнопок блока «Работодателям». Сейчас кнопка одна — призыв к форме: ссылка в раздел
   снята по решению владельца 2026-08-30 (T-053) до появления содержания в `/{locale}/employers`
   и вернётся по T-054. Правило оставлено именно поэтому. Приём тот же, что у `.section-actions`
   в блоке стран, но без центрирования — колонка выровнена по левому краю, а `.btn` не переносит
   текст (`white-space: nowrap`), поэтому вернувшаяся пара обязана переноситься целыми кнопками. */
.partners-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.partners-list li { display: flex; align-items: flex-start; gap: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; font-weight: 600; font-size: 15px; }
.partners-list li .pl-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-100); color: #0d7d6f; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { margin-bottom: 18px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label, .form-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--navy-900); }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 14.5px; background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(61,132,214,.14); background: #fff; }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-help { margin: 6px 0 0; color: var(--text-muted); font-size: 12.5px; }
/* Пометка у необязательных полей: без неё кандидат считал обязательными все и бросал форму. */
.form-optional { color: var(--text-muted); font-weight: 400; font-size: 12.5px; }
.role-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.role-opt { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--bg); }
.role-opt:has(input:checked) { border-color: var(--blue-500); background: rgba(61,132,214,.08); color: var(--blue-500); }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.consent-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue-500); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 20px; font-size: 13.5px; font-weight: 600; margin: 12px 0 0; text-align: center; }
.form-status.success { color: #0d7d6f; }
.form-status.error { color: #c53030; }
.application-panel { margin-top: 48px; }
.public-application-form { max-width: 760px; margin: 0 auto; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info h3 { font-size: 18px; color: var(--navy-950); margin-bottom: 4px; }
.info-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.info-card:not(.info-card-static):hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.info-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-100); color: #0d7d6f; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card small { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 2px; }
.info-card strong { display: block; font-size: 14.5px; color: var(--navy-950); }

/* Соцсети: те же скруглённые квадраты, что у иконок в карточках контактов рядом, —
   блок не выбивается из ряда. */
.social-block { margin-top: 8px; }
.social-title { font-size: 14px; color: var(--navy-900); margin: 0 0 12px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  width: 44px; height: 44px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--blue-500); font-size: 18px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--blue-500); color: #fff; border-color: var(--blue-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b7c3d9; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-footer { color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: 14px; max-width: 320px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-grid > div { display: flex; flex-direction: column; }
.footer-grid a, .footer-grid span { display: block; font-size: 14px; margin-bottom: 10px; color: #b7c3d9; transition: color .2s; }
.footer-grid a:hover { color: var(--gold-500); }
.footer-office { margin-bottom: 14px; }
.footer-office:last-child { margin-bottom: 0; }
.footer-grid .footer-office-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
/* Контакт в подвале: сначала иконка, затем значение. Голые строки телефона и адреса
   не читались — было непонятно, что есть что. */
.footer-grid .footer-contact { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.footer-grid .footer-contact span { display: inline; margin: 0; }
/* Без плашки: у контурных иконок оптический центр не совпадает с центром квадрата, и в
   подложке они смотрелись сдвинутыми. Иконка выравнивается по строке текста. */
.footer-contact-icon { flex-shrink: 0; display: inline-flex; color: #8fa3c4; line-height: 0; margin-top: 2px; }
.footer-contact-icon svg { display: block; }
.footer-grid a.footer-contact:hover .footer-contact-icon { color: var(--gold-500); }
.footer-bottom { padding-top: 24px; font-size: 13px; text-align: center; color: #7f8ead; }
/* Подпись исполнителя под копирайтом: отдельная строка, чтобы не сливалась со строкой прав. */
.footer-developer { display: block; margin-top: 8px; color: #7f8ead; }
.footer-developer a { color: #9fb0cc; text-decoration: none; border-bottom: 1px solid rgba(159,176,204,.35); transition: color .2s, border-color .2s; }
.footer-developer a:hover { color: var(--gold-500); border-bottom-color: var(--gold-500); }

/* ---------- Floating Telegram button ---------- */
.fab-telegram {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), #0d9488);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(20,184,161,.4);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 10px 26px rgba(20,184,161,.4); } 50% { box-shadow: 0 10px 34px rgba(20,184,161,.65); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Порог мобильного меню отделён от общего порога раскладки 980 px и поднят до ширины колонки.
   Ниже 1180 px ряд шапки не помещается в строку **ни на одном из пяти языков**: самому
   короткому (хорватскому) нужно 1148 px содержимого при 1132 px колонки. Раньше в полосе
   981…1180 px меню просто уезжало за правый край экрана; теперь там работает уже готовый
   бургер. Остальные правила раскладки остаются на 980 px — их вид не менялся. */
@media (max-width: 1179px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .main-nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .main-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 980px) {
  .job-grid { grid-template-columns: 1fr; }
  .job-detail-card, .job-section { padding: 22px; }
  .office-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; margin-top: 20px; }
  .about-grid, .partners-grid, .contact-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process-steps::before { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

@media (max-width: 640px) {
  /* На телефоне подпись и значение не помещаются в строку: значение уходит под подпись,
     иначе длинный график работы ломал колонку. */
  .job-facts li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .job-facts strong { text-align: left; }
  .container { padding: 0 24px; }
  .header-inner { gap: 10px; }
  .brand { gap: 8px; font-size: 15px; min-width: 0; }
  .brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
  .header-actions { gap: 8px; flex-shrink: 0; }
  .language-select-trigger { min-width: 78px; height: 36px; padding: 0 10px; }
  .language-select-menu { min-width: 142px; }
  .header-actions .btn-sm { display: none; }
  .hero { padding: 40px 0 80px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-visual { height: 420px; }
  .float-card { padding: 12px 14px; }
  .fc-2 { right: 18%; }
  .about-points { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 380px) {
  .container { padding: 0 20px; }
  .brand-name { display: none; }
  .header-inner { gap: 8px; }
}
