@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --color-white: #ffffff;
  --color-blue: #0039a6;
  --color-blue-light: #1a56c4;
  --color-blue-soft: #e8f0fc;
  --color-red: #d52b1e;
  --color-red-light: #ef4444;
  --color-red-soft: #fef2f2;
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-text: #1a2744;
  --color-text-muted: #5a6b85;
  --color-border: #dce4f0;
  --shadow-sm: 0 2px 8px rgba(0, 57, 166, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 57, 166, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 57, 166, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 76px;
  --max-w: 1280px;
  --page-pad: clamp(20px, 3vw, 36px);
  --readable: 42rem;
  --content-narrow: 760px;
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'Oswald', sans-serif;
  --tricolor: linear-gradient(90deg, var(--color-white) 33.33%, var(--color-blue) 33.33%, var(--color-blue) 66.66%, var(--color-red) 66.66%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-blue-light); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tricolor);
}

.header--scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
  padding-top: 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.logo span {
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-blue) 50%, var(--color-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover { opacity: 0.88; color: var(--color-blue); }

.nav { display: flex; gap: 4px; list-style: none; }

.nav a {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 100px;
  transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--color-blue);
  background: var(--color-blue-soft);
}

.nav__phone { display: none; }


.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__phone {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.header__max {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  background: var(--color-blue-soft);
  border: 1px solid var(--color-border);
  transition: background 0.2s, transform 0.2s;
}

.header__max:hover {
  color: var(--color-blue);
  background: #dce8fa;
  transform: translateY(-1px);
}

.header__max img { border-radius: 4px; }

.burger {
  display: none;
  background: var(--color-blue-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
  position: absolute;
  left: 10px; right: 10px;
  transition: 0.3s;
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--color-red) 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(213, 43, 30, 0.3);
}

.btn--primary:hover { color: #fff; box-shadow: 0 8px 28px rgba(213, 43, 30, 0.4); }

.btn--white {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 57, 166, 0.25);
}

.btn--white:hover { background: var(--color-blue-light); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn--outline:hover { background: var(--color-blue-soft); color: var(--color-blue); }

.btn--sm { padding: 10px 20px; font-size: 0.82rem; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 4px);
  overflow: hidden;
  color: var(--color-text);
  background: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero.jpg') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.65) 42%,
    rgba(232, 240, 252, 0.25) 72%,
    rgba(255, 255, 255, 0.15) 100%
  );
}

.hero__grid {
  display: none;
}

.hero__orb { display: none; }

.hero .container { position: relative; z-index: 2; }

.hero__content {
  width: 100%;
  padding-block: 60px 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--color-red);
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 36rem;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin: 0 0 36px;
  width: 100%;
}

.stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.stat:nth-child(1)::before { background: var(--color-red); }
.stat:nth-child(2)::before { background: var(--color-blue); }
.stat:nth-child(3)::before { background: var(--color-red); }

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1.1;
}

.stat:nth-child(1) .stat__value { color: var(--color-red); }

.stat__label {
  font-size: 0.82rem;
  margin-top: 8px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ─── Sections ─── */
section { padding: 88px 0; position: relative; }

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 14px;
  text-align: center;
  line-height: 1.15;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px; height: 4px;
  background: var(--tricolor);
  margin: 18px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0 auto 44px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ─── Cards ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 57, 166, 0.2);
}

.card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__img { transform: scale(1.05); }

.card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,57,166,0.15) 0%, transparent 50%);
}

.card > .card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 10px;
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 16px;
}

.card__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link::after { content: '→'; transition: transform 0.2s; }
.card:hover .card__link::after { transform: translateX(4px); }

/* Vacancy cards — читабельный список */
.cards--vacancies {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.cards--vacancies .card--vacancy {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cards--vacancies .card--vacancy:hover {
  transform: translateY(-4px);
}

.cards--vacancies .card--vacancy .card__img-wrap {
  aspect-ratio: 16 / 9;
  max-height: 140px;
}

.cards--vacancies .card--vacancy .card__body {
  padding: 18px 18px 16px;
  gap: 8px;
}

.cards--vacancies .card--vacancy .card__title {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 6px;
}

.cards--vacancies .card--vacancy .card__text {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cards--vacancies .card--vacancy .card__btn {
  margin-top: auto;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}

.cards--vacancies .card--vacancy .card__btn::after { content: ' →'; }

.cards--vacancies .card--vacancy:hover .card__btn {
  background: var(--color-blue);
  color: #fff;
}

.direction-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-blue-soft) 0%, #fff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-blue);
}

.direction-cta__img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.direction-cta__body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.direction-cta__body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .direction-cta { flex-direction: column; align-items: flex-start; }
  .direction-cta__img { width: 100%; height: 120px; }
}

/* ─── Benefits ─── */
.benefits { background: var(--color-white); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.benefit {
  padding: 32px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-blue);
  transition: box-shadow 0.3s;
}

.benefit:nth-child(2) { border-top-color: var(--color-red); }
.benefit:nth-child(3) { border-top-color: var(--color-blue); }

.benefit:hover { box-shadow: var(--shadow-md); }

.benefit h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.benefit ul { list-style: none; }

.benefit li {
  padding: 9px 0 9px 22px;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.benefit li:last-child { border-bottom: none; }

.benefit li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--color-red);
}

/* ─── Steps ─── */
.steps-section {
  background: linear-gradient(180deg, var(--color-blue-soft) 0%, var(--color-white) 100%);
}

.steps-section__head {
  text-align: center;
  max-width: min(100%, 820px);
  margin: 0 auto 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  text-align: center;
  padding: 22px 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-blue);
}

.step:nth-child(even) .step__num { background: var(--color-red); box-shadow: 0 0 0 2px var(--color-red); }

.step h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─── Filter / Tags ─── */
.tags,
[data-vacancy-filter] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  justify-content: center;
}

.tag {
  padding: 11px 22px;
  background: var(--color-white);
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font: inherit;
  appearance: none;
}

button.tag { line-height: inherit; }

.tag:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.tag--active {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
  box-shadow: 0 4px 16px rgba(0, 57, 166, 0.25);
}

.tag__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 2px 7px;
  margin-left: 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  background: rgba(0, 57, 166, 0.12);
  color: var(--color-blue);
}

.tag--active .tag__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.tags--left {
  justify-content: flex-start;
}

.section-title--left,
.section-subtitle--left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

/* Vacancy filter tabs */
.vacancy-panels {
  position: relative;
}

.vacancy-panel {
  display: none;
}

.vacancy-panel.is-active {
  display: block;
}

.vacancy-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: var(--color-blue-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.vacancy-panel__desc {
  flex: 1;
  min-width: min(100%, 280px);
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.vacancy-panel__dir-link {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

#vakansii-filter .cards--vacancies {
  margin-bottom: 0;
}

section.section--compact {
  padding: 48px 0;
}

#napravleniya {
  padding-bottom: 56px;
}

#vakansii-filter {
  padding-top: 56px;
}

/* ─── FAQ ─── */
.faq { width: 100%; max-width: var(--content-narrow); margin: 0 auto; }

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item[open] { border-color: rgba(0, 57, 166, 0.3); }

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}

.faq-item summary:hover { color: var(--color-blue); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-red);
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  transition: all 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.faq-item__answer {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.faq-item__answer ul { margin: 10px 0; padding-left: 20px; }

/* ─── Direction cards ─── */
.direction-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.direction-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  color: inherit;
}

.direction-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.direction-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.direction-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.direction-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.direction-card__body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 14px;
}

.direction-card__cta {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-red);
}

/* ─── Vacancy page ─── */
.page-hero--compact { padding-bottom: 28px; }
.page-hero--compact.page-hero--left { text-align: left; }
.page-hero--compact .page-hero__lead,
.page-hero--compact p { max-width: 720px; font-size: 1.05rem; line-height: 1.65; }
.page-hero--compact.page-hero--left .page-hero__lead,
.page-hero--compact.page-hero--left p { margin: 0; max-width: 42rem; }

.content--vacancy { padding-top: 32px; padding-bottom: 64px; }

.vacancy-page { width: 100%; max-width: none; margin: 0; }

.vacancy-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.vacancy-highlight {
  padding: 16px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  border-top: 3px solid var(--color-blue);
}

.vacancy-highlight:first-child { border-top-color: var(--color-red); }

.vacancy-highlight__val {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-blue);
  line-height: 1.2;
}

.vacancy-highlight:first-child .vacancy-highlight__val { color: var(--color-red); }

.vacancy-highlight__lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.35;
}

.vacancy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.vacancy-main { min-width: 0; }

.vacancy-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.vacancy-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.vacancy-block--accent {
  background: linear-gradient(135deg, var(--color-blue-soft) 0%, var(--color-white) 100%);
  border-left: 4px solid var(--color-blue);
}

.vacancy-block h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

.vacancy-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.vacancy-list li {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.vacancy-list li:last-child { margin-bottom: 0; }

.vacancy-list--plain { list-style: none; padding-left: 0; }
.vacancy-list--plain li {
  padding-left: 18px;
  position: relative;
}

.vacancy-list--plain li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: 700;
}

.vacancy-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.vacancy-steps li {
  padding: 14px 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.vacancy-steps strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-blue);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.vacancy-steps span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.faq--vacancy { margin-top: 4px; }

.vacancy-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.vacancy-sidebar__photo {
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.vacancy-sidebar__photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.vacancy-sidebar__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.vacancy-sidebar__note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.vacancy-sidebar__link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.vacancy-related {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

/* ─── Vakansii catalog page ─── */
.vakansii-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 24px) 0 40px;
  color: #fff;
  background: linear-gradient(135deg, #002d85 0%, var(--color-blue) 55%, #1a4fbf 100%);
  background-image: var(--vakansii-hero-img), linear-gradient(135deg, #002d85 0%, var(--color-blue) 55%, #1a4fbf 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.vakansii-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 35, 100, 0.9) 0%,
    rgba(0, 57, 166, 0.75) 50%,
    rgba(0, 57, 166, 0.5) 100%
  );
}

.vakansii-hero__inner {
  position: relative;
  z-index: 1;
}

.vakansii-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 10px 0 12px;
}

.vakansii-hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin-bottom: 22px;
}

.vakansii-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.vakansii-stat {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.vakansii-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.vakansii-stat span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.vakansii-directions {
  padding: 56px 0 48px;
}

.vakansii-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.vakansii-dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.vakansii-dir-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vakansii-dir-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vakansii-dir-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 25, 70, 0.92) 0%, rgba(0, 57, 166, 0.35) 55%, transparent 100%);
}

.vakansii-dir-card__body {
  position: relative;
  z-index: 1;
  padding: 22px 20px;
}

.vakansii-dir-card__count {
  display: inline-flex;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.vakansii-dir-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.vakansii-dir-card__text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.vakansii-dir-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-red-light);
}

.vakansii-landings {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}

.vakansii-landings__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  margin-bottom: 20px;
}

.cards--landings {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.vakansii-catalog {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.form-section__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: start;
}

.form-section__perks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.form-section__perks li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.form-section__perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: 700;
}

.form--card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

/* ─── Direction page ─── */
.direction-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 28px) 0 40px;
  color: #fff;
  background: linear-gradient(135deg, #002d85 0%, var(--color-blue) 55%, #1a4fbf 100%);
  background-image: var(--direction-hero-img), linear-gradient(135deg, #002d85 0%, var(--color-blue) 55%, #1a4fbf 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.direction-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 35, 100, 0.92) 0%,
    rgba(0, 57, 166, 0.78) 45%,
    rgba(0, 57, 166, 0.55) 100%
  );
}

.direction-hero__inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumbs — отдельные элементы, не сливаются при переносе */
.breadcrumb {
  margin: 0 0 16px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px 0;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.45;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin: 0 10px;
  color: var(--color-text-muted);
  opacity: 0.4;
  font-weight: 400;
  flex-shrink: 0;
}

.breadcrumb__item a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.breadcrumb__item a:hover {
  text-decoration: underline;
}

.breadcrumb__current {
  color: var(--color-text-muted);
  font-weight: 500;
  word-break: break-word;
}

.breadcrumb--light .breadcrumb__item + .breadcrumb__item::before {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb--light .breadcrumb__item a {
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumb--light .breadcrumb__item a:hover { color: #fff; }

.breadcrumb--light .breadcrumb__current {
  color: rgba(255, 255, 255, 0.72);
}

/* Старый формат на статических HTML-страницах */
.breadcrumb:not(:has(.breadcrumb__list)) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
  line-height: 1.45;
}

.breadcrumb:not(:has(.breadcrumb__list)) a {
  color: var(--color-blue);
  font-weight: 600;
  white-space: nowrap;
}

.breadcrumb:not(:has(.breadcrumb__list)) > span {
  margin: 0 10px;
  opacity: 0.4;
  flex-shrink: 0;
}

.breadcrumb:not(:has(.breadcrumb__list)) > span:last-child {
  margin: 0;
  opacity: 1;
  color: var(--color-text-muted);
  font-weight: 500;
  word-break: break-word;
}

.direction-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 14px 0 12px;
}

.direction-hero__title em {
  color: var(--color-red-light);
  font-style: normal;
}

.direction-hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin-bottom: 22px;
}

.direction-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.direction-highlight {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.direction-highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.direction-highlight span {
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.direction-tags span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-blue);
  background: var(--color-blue-soft);
  border: 1px solid var(--color-border);
}

.direction-block--steps .direction-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dir-step;
}

.direction-steps li {
  position: relative;
  padding: 12px 0 12px 44px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.direction-steps li:last-child { border-bottom: none; }

.direction-steps li::before {
  counter-increment: dir-step;
  content: counter(dir-step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-steps strong {
  color: var(--color-text);
}

.direction-sidebar__card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.direction-sidebar__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.direction-sidebar__list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.direction-sidebar__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
}

.direction-sidebar__phone {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--color-blue);
  background: var(--color-blue-soft);
  border: 1px solid var(--color-border);
}

.direction-sidebar__phone:hover {
  color: #fff;
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.content--direction { padding-top: 40px; padding-bottom: 64px; }

.direction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.direction-main { min-width: 0; }

.direction-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.direction-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 18px;
}

.direction-block h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.direction-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.direction-list li {
  margin-bottom: 9px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.direction-list li:last-child { margin-bottom: 0; }

.direction-table-wrap { overflow-x: auto; }

.direction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.direction-table th,
.direction-table td {
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.direction-table th {
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.direction-table tr:nth-child(even) td { background: var(--color-bg); }

.direction-main .seo-block {
  margin: 24px 0 0;
}

.direction-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.direction-sidebar__photo {
  margin: 0 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.direction-sidebar__photo img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.direction-sidebar__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.direction-sidebar__card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.direction-sidebar__link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.direction-vacancies {
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.direction-vacancies__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.direction-vacancies__subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: var(--readable);
}

.direction-vacancies__all {
  margin-top: 24px;
  font-size: 0.92rem;
}

.direction-vacancies__all a {
  color: var(--color-blue);
  font-weight: 600;
}

/* Legacy vacancy article (static HTML) */
.vacancy-article { max-width: 900px; margin: 0 auto; }
.vacancy-article h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 32px 0 14px;
  letter-spacing: 0.04em;
}
.vacancy-article ul { margin: 0 0 16px; padding-left: 22px; }
.vacancy-article li { margin-bottom: 8px; color: var(--color-text-muted); }
.vacancy-article p { color: var(--color-text-muted); margin-bottom: 12px; line-height: 1.7; }

.steps--compact { margin: 20px 0 32px; }
.steps--compact .step { padding: 18px 14px; }
.steps--compact .step__num { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 12px; }
.steps--compact .step h3 { font-size: 0.9rem; }
.steps--compact .step p { font-size: 0.82rem; }

/* ─── Regions ─── */
.regions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.regions-grid--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  justify-content: stretch;
}

/* ─── Contacts page — phone & MAX first ─── */
.contacts-primary {
  padding: 0 0 48px;
  margin-top: -24px;
}

.contacts-primary__card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #002d85 0%, var(--color-blue) 55%, #1a4fbf 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contacts-primary__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 8px 0 12px;
  line-height: 1.15;
}

.contacts-primary__lead {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.contacts-primary__hours {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.contacts-primary__hours strong {
  color: #fff;
}

.contacts-primary__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-primary__btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contacts-primary__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contacts-primary__btn-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.contacts-primary__btn-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contacts-primary__btn--phone {
  background: #fff;
  color: var(--color-blue);
}

.contacts-primary__btn--phone .contacts-primary__btn-label {
  color: var(--color-text-muted);
  opacity: 1;
}

.contacts-primary__btn--max {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.contacts-primary__btn--max img {
  border-radius: 6px;
  flex-shrink: 0;
}

.contacts-primary__btn--max .contacts-primary__btn-label,
.contacts-primary__btn--max .contacts-primary__btn-value {
  flex: 1;
  min-width: 120px;
}

.contacts-primary__form {
  margin-top: 4px;
}

.benefits-grid--contacts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.regions-list--page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

#punkty-otbora {
  padding-top: 48px;
  padding-bottom: 56px;
  background: var(--color-bg);
}

.region-card {
  background: var(--color-white);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  transition: all 0.2s;
}

.region-card:hover {
  border-left-color: var(--color-red);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.region-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 4px;
}

.region-card p { font-size: 0.84rem; color: var(--color-text-muted); margin: 0; }

.region-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  transition: all 0.2s;
}

.region-chip:hover {
  color: #fff;
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ─── Russia map (regions) ─── */
.section--regions-map {
  background: var(--color-white);
}

.section--regions-map .section-subtitle {
  margin-bottom: 28px;
}

.regions-panel {
  position: relative;
  height: clamp(520px, 58vw, 680px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.regions-panel--compact {
  height: clamp(440px, 48vw, 560px);
}

.russia-map-wrap--bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 0;
  background: linear-gradient(160deg, #eef3fa 0%, #f8fafc 55%, #e8f0fc 100%);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.russia-map-wrap--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 42%,
    rgba(255, 255, 255, 0.88) 72%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.regions-panel--compact .russia-map-wrap--bg::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.2) 38%,
    rgba(255, 255, 255, 0.92) 78%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.russia-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.5vw, 22px) clamp(12px, 2vw, 28px) clamp(10px, 1.5vw, 22px) clamp(16px, 4vw, 56px);
}

.russia-map__svg svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

.russia-map__svg .russia-region {
  fill: #dce6f2;
  stroke: #fff;
  stroke-width: 0.5;
  transition: fill 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  cursor: default;
}

.russia-map__svg .russia-region.is-muted {
  fill: #e8edf3;
  opacity: 0.55;
  pointer-events: none;
}

.russia-map__svg .russia-region.has-point {
  fill: rgba(0, 57, 166, 0.58);
  cursor: pointer;
}

.russia-map__svg .russia-region.has-point:hover,
.russia-map__svg .russia-region.has-point.is-highlighted,
.russia-map__svg .russia-region.has-point:focus {
  fill: var(--color-red);
  opacity: 1;
  filter: drop-shadow(0 2px 8px rgba(213, 43, 30, 0.45));
  outline: none;
}

.regions-panel__content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(400px, 42%);
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(220, 228, 240, 0.9);
  pointer-events: none;
}

.regions-panel__content > * {
  pointer-events: auto;
}

.regions-panel__content--chips {
  top: auto;
  right: auto;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  height: auto;
  max-height: 46%;
  padding: 18px 20px 16px;
  border-left: none;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.regions-panel .russia-map__tooltip {
  position: absolute;
  left: 28%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 4;
}

.regions-panel--compact .russia-map__tooltip {
  left: 50%;
  top: 14px;
}

.russia-map__tooltip {
  min-width: 180px;
  max-width: min(90%, 320px);
  padding: 10px 14px;
  background: var(--color-blue);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  pointer-events: none;
}

.russia-map__tooltip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.russia-map__tooltip span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.92;
  line-height: 1.35;
}

.russia-map__hint {
  margin: 0 0 12px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  text-align: left;
}

.regions-panel__content--chips .russia-map__hint {
  text-align: center;
}

.russia-map__error {
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.regions-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.regions-list--chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.region-card.is-active,
.region-chip.is-active {
  border-color: var(--color-red);
  border-left-color: var(--color-red);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
}

.region-chip.is-active {
  color: #fff;
  background: var(--color-red);
}

.regions-panel__cta {
  text-align: center;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .regions-panel {
    height: clamp(560px, 115vw, 680px);
  }

  .russia-map-wrap--bg::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.25) 35%,
      rgba(255, 255, 255, 0.94) 68%,
      #fff 100%
    );
  }

  .regions-panel__content {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 48%;
    border-left: none;
    border-top: 1px solid rgba(220, 228, 240, 0.9);
    padding: 16px 14px 14px;
  }

  .regions-panel__content--chips {
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    max-height: 50%;
  }

  .regions-panel .russia-map__tooltip {
    left: 50%;
    top: 10px;
  }

  .regions-list {
    max-height: none;
    flex: 1;
    min-height: 0;
  }
}

/* ─── Form ─── */
.form-section {
  background: linear-gradient(160deg, var(--color-blue-soft) 0%, var(--color-white) 50%, var(--color-red-soft) 100%);
  position: relative;
}

.form-section .section-title { color: var(--color-blue); }

.form-section--creative {
  background: var(--color-bg);
  overflow: hidden;
}

.form-section--creative::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tricolor);
}

.cta-contract__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-contract__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.cta-contract__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(0, 57, 166, 0.18);
}

.cta-contract__orb--2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -60px;
  background: rgba(213, 43, 30, 0.14);
}

.cta-contract {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.cta-contract__pitch {
  padding: clamp(32px, 4vw, 48px);
  background: linear-gradient(155deg, #002d85 0%, var(--color-blue) 52%, #1a4fbf 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-contract__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px 7px 10px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-contract__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.cta-contract__label {
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.cta-contract__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 14px;
}

.cta-contract__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 16px;
  background: var(--tricolor);
  border-radius: 2px;
}

.cta-contract__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  max-width: 34rem;
}

.cta-contract__perks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.cta-contract__perks li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-contract__perks li:last-child { border-bottom: none; }

.cta-contract__perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.25);
}

.cta-contract__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.cta-contract__stat {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  text-align: center;
}

.cta-contract__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.cta-contract__stat span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.cta-contract__phone-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.cta-contract__phone {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cta-contract__phone:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-2px);
}

.cta-contract__card {
  background: var(--color-white);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-contract__card-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.cta-contract__card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.cta-contract__card-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form--cta {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.form--cta .form-group textarea { min-height: 88px; }

.form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 44px 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 57, 166, 0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form .btn { width: 100%; }

/* ─── Page hero ─── */
.page-hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
  background: linear-gradient(180deg, var(--color-blue-soft) 0%, var(--color-bg) 100%);
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  height: 4px;
  background: var(--tricolor);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: var(--readable);
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

.page-hero--left { text-align: left; }
.page-hero--left .breadcrumb { margin-bottom: 14px; }
.page-hero--left .breadcrumb__current { max-width: 42rem; }
.page-hero--left h1 { margin-bottom: 12px; }
.page-hero--left h1 em {
  display: block;
  font-style: normal;
  color: var(--color-red);
  margin-top: 4px;
}
.page-hero--left p {
  margin: 0;
  max-width: var(--readable);
}


/* ─── Content ─── */
.content { padding: 64px 0; }
.content article { width: 100%; max-width: var(--content-narrow); margin: 0 auto; }
.content article.direction-page,
.content article.vacancy-page { max-width: none; margin: 0; }
.content article > img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  margin: 40px 0 14px;
}

.content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; }
.content p { margin-bottom: 14px; color: var(--color-text-muted); }
.content ul, .content ol { margin: 14px 0; padding-left: 22px; color: var(--color-text-muted); }
.content li { margin-bottom: 7px; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.content th, .content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.content th {
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.content tr:nth-child(even) { background: var(--color-blue-soft); }

/* ─── CTA ─── */
.cta-banner {
  padding: 48px 36px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 40px 0;
  background: linear-gradient(135deg, var(--color-blue-soft), var(--color-red-soft));
  border: 1px solid var(--color-border);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.cta-banner p { color: var(--color-text-muted); margin-bottom: 24px; }

/* ─── Messengers ─── */
.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  transition: all 0.2s;
}

.messenger:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: inherit; }

.messenger--max { border-color: var(--color-blue); color: var(--color-blue); }
.messenger--max:hover { background: var(--color-blue-soft); }

.messengers--inline { margin-top: 16px; }

.messengers-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.messengers-float__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.messengers-float__btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.messengers-float__btn--phone { background: var(--color-red); }

/* ─── Footer ─── */
.footer {
  background: var(--color-white);
  color: var(--color-text-muted);
  padding: 0 0 32px;
  border-top: 1px solid var(--color-border);
  position: relative;
}

.footer__tricolor {
  height: 6px;
  background: var(--tricolor);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.footer__logo span {
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  -webkit-background-clip: text;
  background-clip: text;
}

.footer h4 {
  font-family: var(--font-display);
  color: var(--color-blue);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 16px 0 12px;
  color: var(--color-text-muted);
}

.footer__disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.75;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }

.footer__nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--color-red); }

.footer__contact-list a {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 1rem;
}

.footer__messengers-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 20px 0 12px;
}

.footer__note {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.footer__note p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.footer__note a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__note a:hover { color: var(--color-red); }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer__bottom nav {
  display: flex;
  gap: 20px;
}

.footer__bottom a { color: var(--color-text-muted); font-size: 0.82rem; }
.footer__bottom a:hover { color: var(--color-blue); }

/* ─── Modal form ─── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-lg);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-blue);
  margin: 0 28px 6px 0;
  letter-spacing: 0.02em;
}

.modal__lead {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form input[type="text"],
.modal-form input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 10px;
  background: var(--color-bg);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  transition: box-shadow 0.2s;
}

.modal-form input::placeholder { color: #94a3b8; }

.modal-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-blue);
  background: var(--color-white);
}

.modal-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  cursor: pointer;
  margin-top: 4px;
}

.modal-form__consent input { margin-top: 2px; flex-shrink: 0; }
.modal-form__consent a { color: var(--color-blue); text-decoration: underline; }

.modal-form .btn { margin-top: 4px; padding: 13px 20px; }

.form--compact { max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; }

.form--compact .form-group { margin-bottom: 10px; }

.form--compact .form-group label {
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.form--compact .form-group input {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.form--compact .form-consent {
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.form--compact .btn { padding: 12px 20px; font-size: 0.85rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.modal__close:hover { color: var(--color-red); }

body.modal-open { overflow: hidden; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  cursor: pointer;
}

.form-consent input { margin-top: 3px; flex-shrink: 0; }
.form-consent a { color: var(--color-blue); text-decoration: underline; }

.form-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--color-red-soft);
  border: 1px solid rgba(213, 43, 30, 0.25);
  color: var(--color-red);
  font-size: 0.88rem;
  line-height: 1.45;
}

.btn--block { width: 100%; }

/* ─── Article / SEO blocks ─── */
.article-page { max-width: 900px; margin: 0 auto; }

.article-page__hero {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
}

.article-page__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.seo-block {
  margin: 40px 0;
  padding: 28px;
  background: var(--color-blue-soft);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-blue);
}

.seo-block h2 {
  font-size: 1.2rem;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.seo-block p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.seo-block p:last-child { margin-bottom: 0; }

.seo-block--inline {
  margin: 0;
}

.messenger--max img { border-radius: 4px; flex-shrink: 0; }

.messengers-float__btn--max {
  background: var(--color-white);
  border: 2px solid var(--color-blue);
  padding: 4px;
}

.messengers-float__btn--max img { border-radius: 6px; }
.messengers-float__btn--form { background: var(--color-red); border: none; cursor: pointer; color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .vacancy-layout,
  .direction-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .cta-contract {
    grid-template-columns: 1fr;
  }

  .cta-contract__stats {
    grid-template-columns: 1fr;
  }

  .direction-layout,
  .vacancy-layout {
    grid-template-columns: 1fr;
  }
  .direction-sidebar,
  .vacancy-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 8px;
  }
  .direction-sidebar__photo,
  .vacancy-sidebar__photo { margin: 0; }
  .direction-sidebar__photo img,
  .vacancy-sidebar__photo img { height: 120px; }
}

@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 18px 14px; }
  .stat__value { font-size: 1.25rem; }
  .stat__label { font-size: 0.75rem; }
}

.mobile-call-bar {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --page-pad: 18px;
  }

  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .header__actions .btn--sm { display: none; }
  .header__phone { display: none !important; }
  .header__max span { display: none; }
  .header__max {
    padding: 8px;
    min-width: 40px;
    justify-content: center;
  }
  .logo { font-size: 0.92rem; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: var(--page-pad);
    right: var(--page-pad);
    background: var(--color-white);
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
  }
  .nav.open li { width: 100%; }
  .nav.open a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .nav.open .nav__phone { display: none !important; }

  .burger { display: block; }

  /* Hero — главная */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 6px);
  }

  .hero__bg {
    background-position: center 25%;
    background-size: cover;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.96) 65%,
      rgba(244, 247, 251, 0.94) 100%
    );
  }

  .hero__content {
    padding-block: 20px 32px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
    margin-bottom: 12px;
    line-height: 1.18;
    letter-spacing: 0.01em;
  }

  .hero h1 em {
    display: block;
    margin-top: 2px;
    margin-left: 0;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: none;
    color: var(--color-text-muted);
  }

  .stats,
  .stats--3 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .stat {
    display: grid;
    grid-template-columns: minmax(7rem, 36%) 1fr;
    gap: 0 12px;
    align-items: center;
    padding: 14px 16px 14px 18px;
    text-align: left;
    border-radius: var(--radius);
  }

  .stat:hover {
    transform: none;
  }

  .stat::before {
    height: 100%;
    width: 4px;
    top: 0;
    bottom: 0;
    right: auto;
    left: 0;
  }

  .stat__value {
    font-size: 1.05rem;
    line-height: 1.2;
    word-break: normal;
  }

  .stat__label {
    font-size: 0.78rem;
    margin-top: 0;
    line-height: 1.45;
  }

  .hero__cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
  }

  /* Секции */
  section { padding: 44px 0; }
  .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 10px;
  }
  .section-title::after { width: 48px; margin-top: 12px; }
  .section-subtitle {
    margin-bottom: 28px;
    padding: 0;
    font-size: 0.92rem;
  }
  .section-label { font-size: 0.72rem; margin-bottom: 8px; }

  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit { padding: 22px 18px; }
  .benefit h3 { font-size: 1rem; margin-bottom: 12px; }
  .benefit li { font-size: 0.88rem; padding: 8px 0 8px 20px; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 20px 18px; text-align: center; }
  .step__num { width: 48px; height: 48px; font-size: 1.15rem; margin-bottom: 14px; }
  .step h3 { font-size: 0.95rem; }
  .step p { font-size: 0.86rem; }

  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card__body { padding: 18px; }
  .card__title { font-size: 1.05rem; }
  .card__text { font-size: 0.88rem; }

  .direction-cards { grid-template-columns: 1fr; }

  .cta-banner {
    padding: 32px 20px;
    margin: 28px 0;
  }
  .cta-banner h2 { font-size: 1.35rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .form { padding: 24px 18px; max-width: none; }

  .cta-contract__pitch,
  .cta-contract__card {
    padding: 24px 18px;
  }

  .cta-contract__title { font-size: 1.65rem; }

  .cta-contract__phone {
    width: 100%;
    justify-content: center;
  }

  .messengers-float { bottom: 72px; right: 14px; }
  .messengers-float__btn { width: 44px; height: 44px; }

  .form-row { grid-template-columns: 1fr; }
  .vacancy-highlights { grid-template-columns: 1fr; }
  .vacancy-steps { grid-template-columns: 1fr; }

  .direction-sidebar,
  .vacancy-sidebar {
    grid-template-columns: 1fr;
  }
  .direction-sidebar__photo img,
  .vacancy-sidebar__photo img { height: 150px; }

  .content article { max-width: none; }
  .direction-block { padding: 18px 16px; }

  .direction-hero {
    min-height: auto;
    padding: calc(var(--header-h) + 20px) 0 28px;
  }

  .direction-highlights {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .vakansii-hero {
    min-height: auto;
    padding: calc(var(--header-h) + 20px) 0 28px;
  }

  .vakansii-hero__stats {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .vakansii-dir-grid {
    grid-template-columns: 1fr;
  }

  .vakansii-dir-card {
    min-height: 220px;
  }

  .vacancy-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .vacancy-panel__dir-link {
    white-space: normal;
  }

  .form-section__grid {
    grid-template-columns: 1fr;
  }

  .contacts-primary__card {
    grid-template-columns: 1fr;
  }

  .benefits-grid--contacts {
    grid-template-columns: 1fr;
  }

  .breadcrumb__item a {
    white-space: normal;
  }

  .mobile-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, var(--color-blue) 0%, #002d85 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 -4px 20px rgba(0, 57, 166, 0.25);
  }
  .mobile-call-bar svg { flex-shrink: 0; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .stat__value { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
