/* ============================================================================
   kit-page-home.css — главная (Views/Home/Index.cshtml) по макетам Main.dc.html (1440) и MainMobile.dc.html (412).
   Значения — inline-стили макетов, вынесенные в классы с понятными именами (hm-*); классы кита (.hero-bg,
   .hero-card, .hero-line, .sec-title, .vc) — из css/kit.css и css/kit-components.css.
   Плашка hero и линия с крестами стоят по краям контейнера страницы (--kit-side из kit.css: окно минус 20px с
   каждой стороны, не шире 1880 — в артборде 1440 это 20px) — как шапка и блоки ниже (решение владельца 19.10.2026).
   v2g (16.11.2026, утверждённая концепция 2): вместо виджета типов объекта и «Направлений» — плитка-ссылка .hm-vt
   «Открытые вакансии / N / Смотреть все» в правом нижнем углу плашки; ≤1160px — плитка-строка под кнопками вместо
   цифр; ≤768px — раскладка MainMobile.
   ============================================================================ */

/* ---------- подсказка «Дополните анкету» (только кандидату) ---------- */
.hm-notice { padding: 16px 0; }
.hm-notice-link { font-weight: 600; white-space: nowrap; }

/* ---------- hero (Main: section 720, фон #ff9a1c + hero-career.jpg, линия top 14, плашка 68/60) ---------- */
.hm-hero { position: relative; height: 720px; overflow: hidden; color: #ffffff; }
.hm-hero-bg { background: #ff9a1c; }
.hm-hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-line-d { top: 14px; left: var(--kit-side); right: var(--kit-side); }
.hm-line-m { display: none; }
.hero-card.hm-card {
  left: var(--kit-side); right: var(--kit-side); top: 68px; bottom: 60px;
  background-image: url(../img/orange-ellips.webp);
}
.hm-card > .hm-content {
  position: absolute; left: 40px; bottom: 40px; width: 64%;
  display: flex; flex-direction: column; gap: 36px;
}
.hm-head { display: flex; flex-direction: column; gap: 20px; }
.hm-h1 { font-size: 64px; font-weight: 400; line-height: .94; letter-spacing: -0.01em; color: #ffffff; }
.hm-lead { font-size: 18px; line-height: 1.5; color: #ffffff; opacity: .85; max-width: 560px; }
.hm-actions { display: flex; gap: 12px; }
.hm-stats { display: flex; gap: 40px; }
.hm-stat { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }
.hm-stat-num { font-size: 32px; font-weight: 500; line-height: 1.1; color: #ffffff; }
.hm-stat-txt { font-size: 16px; line-height: 1.25; color: #ffffff; opacity: .8; }
.hm-m { display: none; }

/* плитка-ссылка «Открытые вакансии / N / Смотреть все»: полупрозрачная, как плашка; вся плитка — одна ссылка.
   Большая (.hm-vt-d) — правый нижний угол плашки, 320px; строка (.hm-vt-m) — под кнопками ≤1160px */
.hm-vt {
  color: #ffffff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: background-color .3s;
}
.hm-vt:hover, .hm-vt:focus-visible { color: #ffffff; background: rgba(255,255,255,.24); }
.hm-vt:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.hm-vt-go {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: #ffffff; color: #121212; flex: none; transition: transform .3s;
}
.hm-vt-go svg.ic { width: 20px; height: 20px; }
.hm-vt:hover .hm-vt-go { transform: translate(2px, -2px); }
.hm-vt-k { font-size: 16px; line-height: 1.3; opacity: .9; }
.hm-vt-more { font-size: 18px; font-weight: 600; line-height: 1.2; }
.hm-card > .hm-vt-d {
  position: absolute; right: 40px; bottom: 40px; width: 320px; padding: 28px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.hm-vt-d .hm-vt-n { font-size: 104px; font-weight: 400; line-height: .85; letter-spacing: -0.03em; }
.hm-vt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.hm-vt-m { display: none; }

/* ---------- «Последние вакансии (N)» (сразу под hero: section 56/72, 3 колонки gap 20, кнопка по центру +12) ---------- */
.hm-latest { padding: 56px 0 72px; }
.hm-col { display: flex; flex-direction: column; gap: 28px; }
.hm-sec-head { display: flex; flex-direction: column; gap: 10px; }
.hm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-more { display: flex; justify-content: center; padding-top: 12px; }

/* ---------- планшет: плитка-строка под кнопками, контент плашки во всю ширину ---------- */
/* (контент — 64% плашки, плитка — 320px справа: ближе 1160px они сходятся, поэтому плитка становится строкой,
   а цифры уходят, как в макете телефона; без вакансий плитки нет и цифры остаются) */
@media (max-width: 1160px) {
  .hm-card > .hm-vt-d { display: none; }
  .hm-card > .hm-content { width: auto; right: 40px; }
  .hm-has-vt .hm-stats { display: none; }
  .hm-vt-m { display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 20px; border-radius: 18px; max-width: 520px; }
  .hm-vt-m .hm-vt-n { font-size: 48px; font-weight: 400; line-height: .9; letter-spacing: -0.03em; }
  .hm-vt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .hm-vt-m .hm-vt-more { font-size: 16px; }
  .hm-vt-m .hm-vt-k { font-size: 13.5px; opacity: .85; }
  .hm-vt-m .hm-vt-go { margin-left: auto; width: 44px; height: 44px; }
}

/* три карточки в ряд не помещаются (подвал переносится) — одна колонка, как на мобильном */
@media (max-width: 960px) {
  .hm-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- мобильный (MainMobile.dc.html, 412) ---------- */
@media (max-width: 768px) {
  /* MainMobile: hero 600, плашка top 72 / поля 8, контент у нижнего края (20px). Плашка в потоке и растёт вместе с
     текстом: на узких телефонах и в KG (длиннее заголовок и лид) верх контента не обрезается */
  .hm-hero { height: auto; min-height: 600px; }
  .hm-line-d { display: none; }
  .hero-card.hm-card {
    position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 72px 8px 8px; min-height: 520px;
    display: flex; flex-direction: column; justify-content: flex-end; border-radius: 12px; background-size: 60%;
  }
  .hm-card > .hm-content { position: relative; left: auto; right: auto; bottom: auto; width: auto; padding: 20px; gap: 20px; }
  .hm-line-m { display: flex; position: relative; top: auto; left: auto; right: auto; column-gap: 10px; }
  .hm-h1 { font-size: 38px; line-height: .95; }
  .hm-lead { font-size: 15px; max-width: none; }
  .hm-actions { flex-direction: column; gap: 10px; }
  .hm-actions .btn { width: 100%; }
  .hm-stats { gap: 24px; }
  .hm-stat-num { font-size: 26px; }
  .hm-stat-txt { font-size: 14px; }
  .hm-d { display: none; }
  .hm-m { display: inline; }
  .hm-vt-m { max-width: none; }

  .hm-sec-head { gap: 14px; }
  .hm-latest { padding: 28px 0 32px; }
  .hm-latest .hm-col { gap: 20px; }
  .hm-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hm-more { padding-top: 0; }
  .hm-more .btn { width: 100%; }
}
