/* Reset (раньше подключался через @import reset.css — лишний блокирующий запрос).
   Шрифт Inter подключается <link> в <head> каждой страницы. */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
}
img {
  vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}
html,
body {
  height: 100%;
  line-height: 1;
}
textarea,
button,
input {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}
button {
  cursor: pointer;
  background-color: inherit;
}

:root {
  /* graphite base */
  --bg: #0e0f12;
  --bg-soft: #121317;
  --surface: #16181d;
  --surface-2: #1c1f26;
  --text: #f4f5f8;
  --text-muted: #9ba3af;

  /* premium ruby red accent */
  --accent: #C62828;
  --accent-hover: #D32F2F;
  --accent-text: #ff5252; /* красный для текста на тёмном фоне: контраст ≥ 4,5 (#D32F2F давал 3,5) */
  --accent-soft: rgba(198, 40, 40, 0.12);
  --gold: #e5b567;

  /* glass + lines */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.08);

  /* shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 15px rgba(198, 40, 40, 0.3);

  --container: 78rem;
  --radius: 22px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --header-h: 4.5rem;
  --scroll-offset: calc(var(--header-h) + 1.75rem); /* ≈100px under fixed header */
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

/* Fixed header offset for in-page anchors */
section[id],
#application-form,
#lead-form,
#form,
#faq,
#vacancies,
#articles,
#calculator {
  scroll-margin-top: var(--scroll-offset);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.page {
  flex: 1;
}

[class*="__container"] {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== BUTTONS ===== */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.9rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-accent);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(198, 40, 40, 0.36);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button--ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.button--ghost:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.button--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  box-shadow: none;
}

.button--outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.button--sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.875rem;
  border-radius: 10px;
  box-shadow: none;
}

.button--sm:hover {
  box-shadow: none;
}

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

.button svg {
  width: 1.05em;
  height: 1.05em;
}

/* ===== TYPOGRAPHY / SECTION HEAD ===== */
.title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-head {
  margin-bottom: 3.25rem;
  max-width: 42rem;
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 1.075rem;
  line-height: 1.6;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(198, 40, 40, 0.25);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background 0.3s var(--ease), height 0.3s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 18, 0.85), transparent);
  opacity: 1;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.header--scrolled {
  background: rgba(14, 15, 18, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header--scrolled::before {
  opacity: 0;
}

.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 102;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.header__menu {
  flex-shrink: 1;
  min-width: 0;
}

.menu__list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.menu__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.menu__link:hover,
.menu__link.is-active {
  color: var(--text);
}

.menu__link.is-active::after {
  transform: scaleX(1);
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.actions-header__phone {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.actions-header__phone:hover {
  color: var(--accent-text);
}

.actions-header__button {
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  box-shadow: var(--shadow-accent);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.actions-header__button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.city-picker {
  position: relative;
}

.city-picker__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  list-style: none;
}

.city-picker__summary::-webkit-details-marker {
  display: none;
}

.city-picker__chevron {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.city-picker[open] .city-picker__chevron {
  transform: rotate(180deg);
}

.city-picker__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 340px;
  max-width: min(340px, 90vw);
  background: #14151a;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  padding: 1rem;
  z-index: 200;
}

.city-picker__search {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.city-picker__search:focus {
  outline: none;
  border-color: var(--accent);
}

.city-picker__list {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.75rem;
}

.city-picker__list a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: color 0.2s;
}

.city-picker__list a:hover,
.city-picker__list a.is-current {
  color: var(--accent-text);
}

.city-picker__empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.35rem 0;
  grid-column: 1 / -1;
}

.icon-menu {
  display: none;
  width: 2rem;
  height: 1.25rem;
  position: relative;
  z-index: 102;
}

/* Mobile-only CTA / socials inside drawer — hidden on desktop */
.menu__cta,
.menu__socials {
  display: none;
}

.icon-menu span,
.icon-menu::before,
.icon-menu::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: 0.3s var(--ease);
}

.icon-menu span {
  top: 50%;
  transform: translateY(-50%);
}

.icon-menu::before {
  top: 0;
}

.icon-menu::after {
  bottom: 0;
}

.menu-open .icon-menu span {
  opacity: 0;
}

.menu-open .icon-menu::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-open .icon-menu::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background-image: url("../Website-Images/Home/home-hero.jpg");
  background-image: image-set(url("../Website-Images/Home/home-hero.webp") type("image/webp"), url("../Website-Images/Home/home-hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 15, 18, 0.96) 0%, rgba(14, 15, 18, 0.82) 38%, rgba(14, 15, 18, 0.35) 70%, rgba(14, 15, 18, 0.55) 100%),
    radial-gradient(120% 90% at 85% 20%, rgba(198, 40, 40, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  animation: rise 0.8s var(--ease) both;
}

.hero__badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.25);
}

.hero__brand {
  font-family: var(--display);
  max-width: 20ch;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  animation: rise 0.9s 0.06s var(--ease) both;
}

.hero__brand span {
  color: var(--accent);
  white-space: nowrap;
}

.hero__title {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  animation: rise 0.9s 0.14s var(--ease) both;
}

.hero__text {
  max-width: 30rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: rise 0.9s 0.2s var(--ease) both;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  animation: rise 0.9s 0.24s var(--ease) both;
}

.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__chips svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* До 480px все плашки одного размера. Длинная («до 4 000 000 ₽ при подписании
   контракта») на узких экранах переносится — галочка остаётся по центру. */
@media (max-width: 480px) {
  .hero__chips {
    gap: 0.5rem;
  }

  .hero__chips li {
    font-size: 0.8125rem;
    padding: 0.5rem 0.8rem;
    gap: 0.4rem;
    line-height: 1.3;
  }

  .hero__chips svg {
    width: 1rem;
    height: 1rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.3s var(--ease) both;
}

.hero__disclaimer {
  margin-top: 0.85rem;
  max-width: 34rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.85;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STATS ===== */
.stats {
  position: relative;
  padding-block: 4.5rem;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.stats__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stats__item {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.stats__item:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 40, 40, 0.35);
  box-shadow: var(--shadow);
}

.stats__value {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.05;
  white-space: nowrap;
}

.stats__label {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* ===== CITY INTRO (уникальный текст + соседние города региона на страницах cities/<id>/) ===== */
.city-intro {
  padding-block: 2.5rem;
}

.city-intro:empty {
  display: none;
}

.city-intro__container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.city-intro__text {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.city-intro__nearby {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.6rem;
  font-size: 0.9375rem;
}

.city-intro__nearby-label {
  color: var(--text-muted);
}

.city-intro__nearby-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.city-intro__nearby-list a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.city-intro__nearby-list a:hover {
  border-bottom-style: solid;
}

/* ===== CALCULATOR ===== */
.calculator {
  padding-block: 5.5rem;
  background: var(--bg-soft, #121317);
  border-block: 1px solid var(--line);
}

.calculator__container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.calculator__note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 75, 0.35);
  background: linear-gradient(135deg, rgba(212, 168, 75, 0.12), rgba(198, 40, 40, 0.06));
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.calculator__note-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--gold, #d4a84b);
  color: #1a1c20;
  font-size: 0.85rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
}

.calculator__card {
  margin-top: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #1a1c20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(198, 40, 40, 0.08),
    0 0 40px rgba(198, 40, 40, 0.06);
}

.calculator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.calculator__inputs,
.calculator__results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calculator__field label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calculator__field select {
  width: 100%;
  min-height: 56px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239ba3af' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  transition: border-color 0.2s;
}

.calculator__field select:focus {
  border-color: var(--gold, #d4a84b);
}

.calculator__row,
.calculator__total {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.calculator__total {
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.16), rgba(212, 168, 75, 0.08));
  border-color: rgba(198, 40, 40, 0.35);
}

.calculator__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calculator__value {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
}

.calculator__total-value {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--accent);
}

.calculator__cta {
  margin-top: 0.25rem;
  width: 100%;
  justify-content: center;
  min-height: 56px;
  font-weight: 700;
}

.calculator__disclaimer {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.calculator__placeholder {
  margin: 0;
  padding: 1.25rem 1.15rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.calculator__figures {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

@media (max-width: 640px) {
  .calculator {
    padding-block: 4.5rem;
  }

  .calculator__card {
    padding: 1.25rem;
  }

  .calculator__total-value {
    font-size: 1.85rem;
  }
}

/* ===== VACANCIES ===== */
.vacancies {
  padding-block: 6.5rem;
  background: var(--bg);
}

.vacancies__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.vacancies__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: rgba(198, 40, 40, 0.45);
  color: #fff;
  background: rgba(198, 40, 40, 0.12);
}

.filter-btn.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.vacancies__search {
  margin-bottom: 1.25rem;
}

.vacancies__search-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.vacancies__search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.25rem;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.vacancies__search-btn {
  flex-shrink: 0;
  min-height: 56px;
  padding: 0 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.vacancies__search-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
  opacity: 1;
}

.vacancies__search-input:focus {
  border-color: var(--gold, #d4a84b);
}

.vacancies__empty {
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem;
  grid-column: 1 / -1;
  padding: 1.5rem 0;
}

#load-more-btn {
  display: block;
  min-height: 52px;
  font-weight: 700;
}

.vacancies__help {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(226, 59, 47, 0.12), rgba(212, 168, 75, 0.08));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.vacancies__help-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vacancies__help-text {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 40rem;
  opacity: 0.92;
}

.vacancies__help .button {
  min-height: 52px;
  font-weight: 700;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== ARTICLES ===== */
.articles {
  padding-block: 5.5rem;
  background: var(--bg-soft, #171e15);
  border-block: 1px solid var(--line);
}

.articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #1f291c);
  transition: border-color 0.25s, transform 0.25s;
}

.article-card:hover {
  border-color: rgba(212, 168, 75, 0.4);
  transform: translateY(-4px);
}

.article-card__link {
  display: block;
  padding: 1.5rem 1.5rem 0.75rem;
  height: auto;
}

.article-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1.5rem;
}

.article-card__meta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold, #d4a84b);
  margin-bottom: 0.75rem;
}

.article-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-card__text {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.88;
  margin-bottom: 1rem;
}

.article-card__more {
  font-weight: 700;
  color: var(--accent-text);
}

.article-card__cta {
  display: inline-flex;
  align-self: flex-start;
  margin: 0.25rem 1.5rem 0;
  min-height: 44px;
  align-items: center;
}

.articles__more {
  margin-top: 2rem;
  text-align: center;
}

/* ===== BLOG PAGE ===== */
.blog-list {
  padding-block: 3rem 5rem;
}

.blog-list__container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2.5rem;
}

.blog-post {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.blog-post__meta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold, #d4a84b);
  margin-bottom: 0.75rem;
}

.blog-post__title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-post__body {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.blog-post__body p + p {
  margin-top: 1rem;
}

/* ===== Развёрнутая статья (blog/<slug>/) ===== */
.blog-post__body--article {
  opacity: 1;
}

.blog-post__body--article > * + * {
  margin-top: 1rem;
}

.blog-post__updated {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-post__body--article .lead {
  font-size: 1.15rem;
  line-height: 1.6;
}

.blog-post__body--article h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5rem;
  scroll-margin-top: 6rem;
}

.blog-post__body--article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.75rem;
}

.blog-post__body--article ul,
.blog-post__body--article ol {
  padding-left: 1.4rem;
}

.blog-post__body--article ul {
  list-style: disc;
}

.blog-post__body--article ol {
  list-style: decimal;
}

.blog-post__body--article li + li {
  margin-top: 0.4rem;
}

.blog-post__body--article a:not(.button) {
  color: var(--gold, #d4a84b);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-post__body--article .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.blog-post__body--article table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.blog-post__body--article th,
.blog-post__body--article td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.blog-post__body--article th {
  font-weight: 700;
  background: rgba(212, 168, 75, 0.08);
}

.blog-post__body--article tbody tr:last-child td {
  border-bottom: 0;
}

.blog-post__body--article .note {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold, #d4a84b);
  background: rgba(212, 168, 75, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

.blog-toc {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.blog-toc__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-post__body--article .blog-toc ol {
  margin: 0;
}

.blog-post__body--article .blog-toc a {
  text-decoration: none;
}

.blog-post__body--article .checklist {
  list-style: none;
  padding-left: 0;
}

.blog-post__body--article .checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.blog-post__body--article .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  color: var(--gold, #d4a84b);
  font-weight: 700;
}

.blog-post__body--article .sources {
  font-size: 0.9rem;
}

.vacancies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vacancies__grid.is-grouped {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.vacancies__group-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.vacancies__group-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vacancy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  opacity: 1;
  visibility: visible;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.vacancy:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

.filter-btn.highlight-elite {
  background: linear-gradient(145deg, rgba(30, 30, 30, 1) 0%, rgba(156, 122, 59, 0.05) 100%);
  border: 2px solid #9C7A3B;
  box-shadow: 0 0 15px rgba(156, 122, 59, 0.15), inset 0 0 10px rgba(156, 122, 59, 0.1);
  color: #9C7A3B;
}

.filter-btn.highlight-elite.is-active {
  background: linear-gradient(145deg, rgba(156, 122, 59, 0.22) 0%, rgba(30, 30, 30, 1) 100%);
  color: #fff;
  border-color: #9C7A3B;
}

.vacancy.highlight-elite,
.highlight-elite {
  background: linear-gradient(145deg, rgba(30, 30, 30, 1) 0%, rgba(156, 122, 59, 0.05) 100%);
  border: 2px solid #9C7A3B;
  box-shadow: 0 0 15px rgba(156, 122, 59, 0.15), inset 0 0 10px rgba(156, 122, 59, 0.1);
}

.btn-ghost,
#loadMoreBtn {
  display: none;
  margin: 32px auto 0;
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.vacancy-card--elite {
  border: 2px solid #9C7A3B;
  box-shadow: 0 0 15px rgba(156, 122, 59, 0.15), inset 0 0 10px rgba(156, 122, 59, 0.1);
}

.vacancy-card--elite:hover {
  border-color: #9C7A3B;
  box-shadow: 0 0 22px rgba(156, 122, 59, 0.25), inset 0 0 10px rgba(156, 122, 59, 0.12), var(--shadow-lg);
}

/* Плашку "Приоритет" убрали с фото — дублировала золотую рамку элитных карточек
   и на некоторых фото перекрывала лица кандидатов. Статус элитной вакансии теперь
   виден по рамке карточки и подписи в .vacancy__tag. */
.vacancy-card__badge {
  display: none;
}

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

.vacancy__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Затемняем только нижнюю часть фото, где теперь лежат все подписи —
     верх кадра остаётся полностью чистым, чтобы никогда не перекрывать лицо. */
  background: linear-gradient(180deg, transparent 45%, rgba(10, 11, 14, 0.92) 100%);
}

.vacancy__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.vacancy:hover .vacancy__media img {
  transform: scale(1.06);
}

/* Тег категории и бейдж зарплаты сознательно вынесены единым столбиком
   в НИЖНИЙ левый угол фото (никогда не вверху) — на портретных кадрах
   лицо почти всегда в верхней половине кадра, а низ — грудь/фон. */
.vacancy__media-footer {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.vacancy__salary-badge {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vacancy__tag {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 15, 18, 0.7);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button--vacancy {
  background: transparent;
  border: 1px solid rgba(198, 40, 40, 0.6);
  color: var(--accent-text);
  border-radius: 8px;
  box-shadow: none;
}

.button--vacancy:hover {
  background: #C62828;
  color: #fff;
  border-color: #C62828;
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.3);
}

.vacancy__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.vacancy__title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.vacancy__pay {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
}

.vacancy__pay strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  margin-top: 0.15rem;
}

.vacancy__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.vacancy__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.vacancies__more {
  margin-top: 3rem;
  text-align: center;
}

/* ===== BENEFITS ===== */
.benefits {
  padding-block: 6.5rem;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(198, 40, 40, 0.08), transparent 45%),
    var(--bg-soft);
}

.benefits__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.benefit:hover {
  transform: translateY(-8px);
  border-color: rgba(198, 40, 40, 0.3);
  box-shadow: var(--shadow);
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(198, 40, 40, 0.25);
  color: var(--accent-text);
}

.benefit__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.benefit__value {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  white-space: nowrap;
}

.benefit__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.benefit__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.benefit__text a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ===== FIT CASES ===== */
.fit-cases {
  padding-block: 6.5rem;
}

.fit-cases__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.fit-case {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.fit-case:hover {
  transform: translateY(-8px);
  border-color: rgba(198, 40, 40, 0.3);
  box-shadow: var(--shadow);
}

.fit-case__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.fit-case__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ===== ABOUT TEASER ===== */
.about-teaser {
  padding-block: 6.5rem;
}

.about-teaser__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-teaser__image {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.about-teaser__image:hover img {
  transform: scale(1.05);
}

.about-teaser__content .title {
  margin: 0.5rem 0 1.25rem;
}

.about-teaser__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.about-teaser__content p:last-of-type {
  margin-bottom: 2rem;
}

.reqs {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.reqs li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.975rem;
}

.reqs li::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C62828' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* ===== STEPS / TIMELINE ===== */
.steps {
  padding-block: 6.5rem;
  background: var(--bg-soft);
}

/* ===== DOCS CHECK (home) ===== */
.docs-check {
  padding-block: 6.5rem;
}

.docs-check__container {
  display: grid;
  gap: 1.5rem;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.75rem 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  counter-increment: step;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 40, 40, 0.3);
}

/* connective timeline line on desktop (only within a row of the 3x2 grid) */
.step:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  top: 3.15rem;
  left: calc(100% + 0.1rem);
  width: 1.3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  z-index: 1;
}

/* variant for sections with exactly 4 steps: one row on desktop */
.steps--quad .steps__list {
  grid-template-columns: repeat(4, 1fr);
}

.steps--quad .step::after {
  content: "";
  position: absolute;
  top: 3.15rem;
  left: calc(100% + 0.1rem);
  width: 1.3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  z-index: 1;
}

.steps--quad .step:last-child::after {
  content: none;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: var(--shadow-accent);
}

.step__num::before {
  content: "0" counter(step);
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  margin-bottom: 0.85rem;
}

.step__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}

.step__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq {
  padding-block: 6.5rem;
}

.faq .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.spollers-faq {
  display: grid;
  gap: 0.85rem;
  max-width: 52rem;
  margin: 0 auto;
}

.spollers-faq__item {
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.spollers-faq__item.active {
  border-color: rgba(198, 40, 40, 0.35);
  background: var(--glass-strong);
}

.spollers-faq__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 16px 20px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
}

.spollers-faq__button::after {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C62828' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
  transition: transform 0.3s var(--ease);
}

.spollers-faq__item.active .spollers-faq__button::after {
  transform: rotate(135deg);
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.spollers-faq__text p,
.spollers-faq__text ul {
  padding: 15px 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.spollers-faq__text li {
  list-style: disc;
  margin-left: 1.25rem;
  margin-bottom: 0.35rem;
}

/* ===== CTA / OUTRO ===== */
.outro {
  position: relative;
  padding-block: 6.5rem;
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.82), rgba(14, 15, 18, 0.94)),
    radial-gradient(90% 90% at 80% 10%, rgba(198, 40, 40, 0.2), transparent 55%),
    url("../Website-Images/CTA.jpg") center / cover no-repeat fixed;
  /* WebP вдвое легче JPEG (22.11.2026); старые браузеры берут строку выше */
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.82), rgba(14, 15, 18, 0.94)),
    radial-gradient(90% 90% at 80% 10%, rgba(198, 40, 40, 0.2), transparent 55%),
    image-set(url("../Website-Images/CTA.webp") type("image/webp"), url("../Website-Images/CTA.jpg") type("image/jpeg")) center / cover no-repeat fixed;
}

.outro_about {
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.82), rgba(14, 15, 18, 0.94)),
    radial-gradient(90% 90% at 80% 10%, rgba(198, 40, 40, 0.2), transparent 55%),
    url("../Website-Images/CTA.jpg") center / cover no-repeat fixed;
  /* WebP вдвое легче JPEG (22.11.2026); старые браузеры берут строку выше */
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.82), rgba(14, 15, 18, 0.94)),
    radial-gradient(90% 90% at 80% 10%, rgba(198, 40, 40, 0.2), transparent 55%),
    image-set(url("../Website-Images/CTA.webp") type("image/webp"), url("../Website-Images/CTA.jpg") type("image/jpeg")) center / cover no-repeat fixed;
}

.outro_services {
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.82), rgba(14, 15, 18, 0.94)),
    radial-gradient(90% 90% at 80% 10%, rgba(198, 40, 40, 0.2), transparent 55%),
    url("../Website-Images/CTA.jpg") center / cover no-repeat fixed;
  /* WebP вдвое легче JPEG (22.11.2026); старые браузеры берут строку выше */
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.82), rgba(14, 15, 18, 0.94)),
    radial-gradient(90% 90% at 80% 10%, rgba(198, 40, 40, 0.2), transparent 55%),
    image-set(url("../Website-Images/CTA.webp") type("image/webp"), url("../Website-Images/CTA.jpg") type("image/jpeg")) center / cover no-repeat fixed;
}

.outro__container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.outro__title {
  margin-bottom: 1.15rem;
}

.outro__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 30rem;
  line-height: 1.6;
  font-size: 1.075rem;
}

.outro__phone {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.outro__phone:hover {
  color: var(--accent-text);
}

.outro__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.outro__trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.outro__trust svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent-text);
  flex-shrink: 0;
}

/* ===== FORM ===== */
.form {
  background: rgba(20, 21, 26, 0.72);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-lg);
}

.form__title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.form__field {
  margin-bottom: 0.85rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(10, 11, 14, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__field input.is-invalid,
.form__field input.is-invalid:focus {
  border-color: #ff8a80;
  box-shadow: 0 0 0 3px rgba(255, 138, 128, 0.16);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--text-muted);
}

.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239ba3af' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}

.form__field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.form__consent input {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form__antifraud {
  margin: -0.5rem 0 1.25rem;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form .button {
  width: 100%;
}

.form__hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form__hint--field {
  margin-top: 0.4rem;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Невидимая галочка-ловушка для ботов. Скрыта классом, а не display:none
   или inline-стилем — такие поля боты распознают и пропускают. */
.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.form__consent input.is-invalid {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form__field select.is-invalid {
  border-color: var(--accent);
}

.form__notice {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.1);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form .button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.form__success {
  display: none;
  padding: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(198, 40, 40, 0.4);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: center;
}

.form.is-success .form__success {
  display: block;
  animation: rise 0.5s var(--ease) both;
}

.form.is-success .form__fields {
  display: none;
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  min-height: 24rem;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
}

.page-hero_about {
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.55), rgba(14, 15, 18, 0.94)),
    radial-gradient(100% 90% at 85% 0%, rgba(198, 40, 40, 0.2), transparent 55%),
    url("../Website-Images/About/About-Hero.jpg") center / cover no-repeat;
  /* WebP вдвое легче JPEG (22.11.2026); старые браузеры берут строку выше */
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.55), rgba(14, 15, 18, 0.94)),
    radial-gradient(100% 90% at 85% 0%, rgba(198, 40, 40, 0.2), transparent 55%),
    image-set(url("../Website-Images/About/About-Hero.webp") type("image/webp"), url("../Website-Images/About/About-Hero.jpg") type("image/jpeg")) center / cover no-repeat;
}

.page-hero_services {
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.55), rgba(14, 15, 18, 0.94)),
    radial-gradient(100% 90% at 85% 0%, rgba(198, 40, 40, 0.2), transparent 55%),
    url("../Website-Images/Services/Services-Hero-2.jpg") center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.55), rgba(14, 15, 18, 0.94)),
    radial-gradient(100% 90% at 85% 0%, rgba(198, 40, 40, 0.2), transparent 55%),
    image-set(url("../Website-Images/Services/Services-Hero-2.webp") type("image/webp"), url("../Website-Images/Services/Services-Hero-2.jpg") type("image/jpeg")) center / cover no-repeat;
}

.page-hero_contact {
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.55), rgba(14, 15, 18, 0.94)),
    radial-gradient(100% 90% at 85% 0%, rgba(198, 40, 40, 0.2), transparent 55%),
    url("../Website-Images/Contact/Contact-Hero.jpg") center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.55), rgba(14, 15, 18, 0.94)),
    radial-gradient(100% 90% at 85% 0%, rgba(198, 40, 40, 0.2), transparent 55%),
    image-set(url("../Website-Images/Contact/Contact-Hero.webp") type("image/webp"), url("../Website-Images/Contact/Contact-Hero.jpg") type("image/jpeg")) center / cover no-repeat;
}

.page-hero__title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 0.85rem;
  animation: rise 0.8s var(--ease) both;
}

.page-hero__text {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.075rem;
  line-height: 1.6;
  animation: rise 0.8s 0.1s var(--ease) both;
}

/* ===== PAYMENTS (stat cards) ===== */
.payments {
  padding-block: 6.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(198, 40, 40, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
}

.payments__layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pay-bonus {
  position: relative;
  display: grid;
  gap: 0.625rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(198, 40, 40, 0.35);
  background:
    linear-gradient(135deg, rgba(198, 40, 40, 0.16) 0%, rgba(229, 181, 103, 0.07) 42%, var(--glass) 100%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.pay-bonus__glow {
  position: absolute;
  top: -45%;
  right: -5%;
  width: min(22rem, 55vw);
  height: min(22rem, 55vw);
  background: radial-gradient(circle, rgba(198, 40, 40, 0.28), transparent 68%);
  pointer-events: none;
}

.pay-bonus__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(198, 40, 40, 0.18);
  border: 1px solid rgba(198, 40, 40, 0.35);
  color: #ffb4b4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pay-bonus__value {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 40px rgba(198, 40, 40, 0.35);
}

.pay-bonus__text {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.payments__groups {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pay-group {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pay-group:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.pay-group[open] {
  border-color: rgba(198, 40, 40, 0.28);
  box-shadow: var(--shadow);
}

.pay-group[data-category="elite"] {
  border-color: rgba(156, 122, 59, 0.35);
}

.pay-group[data-category="elite"][open] {
  border-color: rgba(156, 122, 59, 0.55);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35), 0 0 24px rgba(156, 122, 59, 0.12);
}

.pay-group[data-category="elite"][open] .pay-group__summary {
  background: linear-gradient(90deg, rgba(156, 122, 59, 0.14), transparent 70%);
}

.pay-group[data-category="elite"] .pay-group__icon {
  background: rgba(156, 122, 59, 0.16);
  color: #d4a84b;
  border: 1px solid rgba(156, 122, 59, 0.35);
}

.pay-group[data-category="africa"][open] .pay-group__summary {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), transparent 70%);
}

.pay-group[data-category="africa"] .pay-group__icon {
  background: rgba(76, 175, 80, 0.12);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.pay-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.3s var(--ease);
}

.pay-group__summary::-webkit-details-marker {
  display: none;
}

.pay-group[open] .pay-group__summary {
  border-bottom: 1px solid var(--glass-border);
}

.pay-group__summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pay-group__lead {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.pay-group__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid rgba(198, 40, 40, 0.22);
}

.pay-group__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.pay-group__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.pay-group__title {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pay-group__subtitle {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.pay-group__trail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pay-group__meta {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pay-group__chevron {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.pay-group__chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.75;
}

.pay-group[open] .pay-group__chevron {
  transform: rotate(180deg);
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.12);
  color: var(--accent-text);
}

.pay-group__grid {
  padding: 1.25rem;
  animation: payGroupReveal 0.45s var(--ease);
}

@keyframes payGroupReveal {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pay-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.375rem 1.25rem 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
}

.pay-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.pay-item:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 40, 40, 0.32);
  box-shadow: var(--shadow);
}

.pay-item:hover::after {
  opacity: 1;
}

.pay-item--lead {
  border-color: rgba(229, 181, 103, 0.35);
  background: linear-gradient(160deg, rgba(229, 181, 103, 0.1), rgba(255, 255, 255, 0.03));
}

.pay-item--lead::before {
  content: "Топ в группе";
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(229, 181, 103, 0.14);
  border: 1px solid rgba(229, 181, 103, 0.35);
  color: var(--gold);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pay-item__value {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-text);
  line-height: 1.05;
}

.pay-item__name {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ===== GUARANTEES ===== */
.guarantees {
  padding-block: 6.5rem;
  background: var(--bg-soft);
}

.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.guarantee {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.guarantee:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 40, 40, 0.3);
  box-shadow: var(--shadow);
}

.guarantee__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(198, 40, 40, 0.25);
  color: var(--accent-text);
}

.guarantee__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.guarantee__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.guarantee__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.guarantee__text a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ===== MISSION ===== */
.mission {
  padding-block: 6.5rem;
}

.mission__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission__image {
  min-height: 28rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mission__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mission__image:hover img {
  transform: scale(1.05);
}

.mission__content .title {
  margin: 0.5rem 0 0;
}

.mission__content p {
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact {
  padding-block: 6.5rem;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__title {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.connect-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.connect-item {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s var(--ease);
}

.connect-item:hover {
  border-color: rgba(198, 40, 40, 0.3);
}

.connect-item__type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.35rem;
}

.connect-item__label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.connect-item__label a:hover {
  color: var(--accent-text);
}

.contact__note {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.docs {
  display: grid;
  gap: 0.65rem;
}

.docs li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-left: 1.5rem;
  position: relative;
}

.docs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.map {
  height: 28rem;
  background: var(--surface);
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.5) contrast(1.05) brightness(0.9);
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0b0d;
  border-top: 1px solid var(--line);
}

.footer__container {
  padding-block: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

.footer__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer__brand span {
  color: var(--accent);
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 20rem;
}

.footer__nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.15rem;
}

.footer__nav {
  display: grid;
  gap: 0.75rem;
}

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

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

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__bottom-inner a:hover {
  color: var(--text);
}

/* ===== REVEAL ON SCROLL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* Вакансии: не прячем через reveal — видимость только через фильтр (display) */
.vacancies__grid[data-reveal-stagger] > .vacancy,
.vacancies__grid > .vacancy,
.vacancies__group-cards > .vacancy {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.07s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.35s; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 0.42s; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 0.49s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

/* ===== UTIL ===== */
.vacancy.is-hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .stats__container,
  .payments__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacancies__grid,
  .vacancies__group-cards,
  .benefits__list,
  .steps__list,
  .fit-cases__list,
  .guarantees__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps__list {
    grid-auto-rows: auto;
  }

  .steps--quad .steps__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .outro__container,
  .about-teaser__container,
  .mission__container,
  .contact__container,
  .footer__container {
    grid-template-columns: 1fr;
  }

  .about-teaser__image,
  .mission__image {
    min-height: 22rem;
  }

  /* Фото консультации на /about/ целиком, без обрезки головы справа (аудит фото 01.11.2026, F02) */
  .mission__image {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .footer__container {
    gap: 2rem;
  }
}

/* Контейнер шапки ограничен 78rem, поэтому на широких экранах места больше
   не становится: пунктам меню нужно ~658px, а свободно ~534px, и лишнее
   «вытекало» влево под логотип. Иконки мессенджеров есть в подвале и в мобильном
   меню, поэтому на десктопе уступают место пунктам. */
@media (min-width: 1151px) {
  .socials--header {
    display: none !important;
  }
}

@media (max-width: 1300px) and (min-width: 1151px) {
  .header__container {
    gap: 10px;
  }

  .header__navigation {
    gap: 10px;
  }

  .menu__list {
    gap: 15px;
  }

  .menu__link {
    font-size: 14px;
  }

  .actions-header {
    gap: 8px;
  }

  .actions-header__phone {
    font-size: 0.8125rem;
  }

  .actions-header__button {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }

  .socials--header .socials__link {
    width: 2rem;
    height: 2rem;
  }

  .logo {
    font-size: 1.05rem;
    flex-shrink: 0;
  }
}

@media (max-width: 900px) {
  .outro,
  .outro_about,
  .outro_services {
    background-attachment: scroll;
  }
}

/* Header → burger earlier to avoid overlap on tablets / small laptops */
@media (max-width: 1150px) {
  .actions-header__phone {
    display: none;
  }

  .icon-menu {
    display: block;
  }

  .menu__body {
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 18, 0.98);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    gap: 2.25rem;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    touch-action: auto;
    padding: 6rem 1rem 2.5rem;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    z-index: 101;
  }

  .menu-open .menu__body {
    opacity: 1;
    visibility: visible;
  }

  .menu__list {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1.75rem;
    text-align: center;
  }

  .menu__link {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
  }

  .menu__link::after {
    display: none;
  }

  .menu__body .actions-header__button,
  .menu__cta {
    display: inline-flex;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
  }

  .menu__socials {
    display: flex;
    flex-wrap: wrap;
  }

  .header .logo,
  .header .icon-menu,
  .header .actions-header {
    position: relative;
    z-index: 1003;
  }

  .logo {
    flex-shrink: 0;
  }

  .menu__body {
    z-index: 1001 !important;
    pointer-events: none;
  }

  .menu-open .menu__body {
    pointer-events: auto;
  }

  .menu-open .header {
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
    backdrop-filter: none;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  .socials--header {
    display: none !important;
  }

  .menu__socials {
    margin-top: 0.5rem;
  }

  .menu__item--city {
    width: min(320px, 88vw);
  }

  .city-picker__summary {
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
  }

  .city-picker__panel {
    position: static;
    width: 100%;
    margin-top: 1rem;
    box-shadow: none;
  }

  .city-picker__list {
    max-height: 200px;
  }
}

@media (max-width: 640px) {
  [class*="__container"] {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .stats__container,
  .vacancies__grid,
  .vacancies__group-cards,
  .benefits__list,
  .steps__list,
  .fit-cases__list,
  .guarantees__grid,
  .payments__grid {
    grid-template-columns: 1fr;
  }

  .steps--quad .steps__list {
    grid-template-columns: 1fr;
  }

  .pay-group__summary {
    align-items: flex-start;
    gap: 0.875rem;
  }

  .pay-group__trail {
    width: 100%;
    justify-content: space-between;
  }

  .pay-bonus__value {
    font-size: clamp(1.875rem, 9vw, 2.5rem);
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 3.5rem;
  }

  .vacancies,
  .benefits,
  .about-teaser,
  .steps,
  .docs-check,
  .faq,
  .outro,
  .payments,
  .guarantees,
  .mission,
  .contact {
    padding-block: 4.5rem;
  }

  .pay-group__grid {
    padding: 1rem;
  }

  .pay-group__grid .pay-item {
    padding: 1.25rem;
  }

  .stats {
    padding-block: 3.5rem;
  }

  .page-hero {
    min-height: 20rem;
  }

  .vacancy__actions {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 1.5rem;
  }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  margin-bottom: 1.25rem;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.5;
}
.breadcrumbs__link {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumbs__link:hover {
  color: var(--text);
}
.breadcrumbs__current {
  color: var(--text);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.logo--image img {
  max-height: 2.5rem;
  width: auto;
}

.entry-content {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1.05rem;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--accent-text); text-decoration: underline; }

/* ===== SOCIALS ===== */
.socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.socials__link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.socials__link:hover {
  color: var(--text);
  border-color: var(--gold, #d4a84b);
  background: rgba(255, 255, 255, 0.04);
}

.socials--header {
  display: none;
}

.socials--outro,
.socials--footer {
  margin-top: 1rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.form__error {
  margin-top: 0.75rem;
  color: #ff8a80;
  font-size: 0.875rem;
}

.captcha-note {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.7;
}

.captcha-note a {
  color: inherit;
  text-decoration: underline;
}

.smart-captcha {
  margin: 0.75rem 0 0.25rem;
}

/* ===== Lead modal ===== */
.lead-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lead-modal.is-open {
  display: flex;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.72);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}

.lead-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(20, 21, 26, 0.9);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__close:hover,
.lead-modal__close:focus {
  border-color: var(--accent);
  color: #fff;
}

.lead-modal .form {
  margin: 0;
}

body.lead-modal-open {
  overflow: hidden;
}

.contact__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgba(20, 21, 26, 0.72);
}

.contact__cta-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== LEGAL BLOCK ===== */
.legal-block {
  padding-block: 5rem;
  background: var(--bg-soft, #171e15);
  border-block: 1px solid var(--line);
}

.legal-block__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.legal-card {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.legal-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.legal-card__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer__cities-accordion {
  position: relative;
}

.footer__cities-summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  list-style: none;
  transition: color 0.25s var(--ease);
  user-select: none;
}

.footer__cities-summary::-webkit-details-marker {
  display: none;
}

.footer__cities-summary:hover {
  color: var(--accent-text);
}

.footer__cities-accordion[open] .footer__cities-summary {
  color: var(--accent-text);
}

.footer__cities-panel {
  margin-top: 0.85rem;
}

.footer__city-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  max-height: 250px;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 0.75rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}

.socials--contact {
  margin-top: 30px;
}

.footer__region-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.footer__city-list a:hover {
  color: var(--text);
}

.footer__cities-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.footer__cities-all:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

/* ===== CITIES INDEX PAGE (/cities/) ===== */
.cities-index {
  padding-block: 5rem;
}

.cities-index__intro {
  color: var(--text-muted);
  font-size: 1.075rem;
  line-height: 1.6;
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.cities-index__grid {
  column-count: 4;
  column-gap: 2.5rem;
}

.cities-index__group {
  break-inside: avoid;
  margin-bottom: 2.25rem;
}

.cities-index__letter {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.cities-index__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cities-index__list a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.25s var(--ease);
}

.cities-index__list a:hover {
  color: var(--text);
}

@media (max-width: 1150px) {
  .cities-index__grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .cities-index__grid {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .cities-index__grid {
    column-count: 1;
  }
}

.vacancy--featured {
  outline: none;
}

/* ===== MOBILE MENU FIX (stacking above scrolled header content) ===== */
.header {
  z-index: 1000;
}

@media (min-width: 1151px) {
  .socials--header {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .menu__cta,
  .menu__socials {
    display: none !important;
  }

  .menu__body {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
  }

  .icon-menu {
    display: none;
  }
}

@media (min-width: 1024px) {
  .stats__value {
    font-size: clamp(1.4rem, 1.55vw, 1.75rem);
  }
}

/* В одну колонку — только телефоны. На планшете (768 px) две колонки:
   иначе 53 вакансии растягивали /services/ до 36 000 px. */
@media (max-width: 640px) {
  .vacancies__grid,
  .vacancies__group-cards,
  .legal-block__grid,
  .benefits__list,
  .fit-cases__list,
  .stats__container,
  .articles__grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .footer__city-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacancies__search-row {
    flex-direction: column;
  }

  .vacancies__search-btn {
    width: 100%;
  }

  .vacancy {
    width: 100%;
    /* Явно фиксируем: карточка не тянется на всю высоту экрана,
       высота определяется только собственным содержимым. */
    height: auto;
    min-height: 0;
  }

  .vacancy__media {
    /* То же соотношение сторон, что и на десктопе — без искажений
       и без «резинового» растягивания фото по высоте. */
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .vacancy__media img {
    height: 100%;
    object-fit: cover;
  }

  .actions-header__button {
    display: none;
  }

  .hero {
    /* Та же картинка, что на десктопе (не отдельное мобильное фото) —
       background-size: cover сохраняет пропорции без искажения, просто
       обрезая края под узкий экран. */
    background-image: url("../Website-Images/Home/home-hero.jpg");
    background-image: image-set(url("../Website-Images/Home/home-hero.webp") type("image/webp"), url("../Website-Images/Home/home-hero.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(14, 15, 18, 0.78) 0%, rgba(14, 15, 18, 0.52) 42%, rgba(14, 15, 18, 0.88) 100%),
      radial-gradient(110% 85% at 50% 0%, rgba(198, 40, 40, 0.16), transparent 58%);
  }

  .filter-btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    min-height: 52px;
  }

  .vacancy__title {
    font-size: 1.25rem;
    font-weight: 700;
  }

  .vacancy__pay,
  .vacancy__desc {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.95;
  }

  .vacancy__actions .button {
    min-height: 52px;
    width: 100%;
    font-weight: 700;
  }

  .vacancies__help {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .vacancies__help .button {
    width: 100%;
  }

  #load-more-btn {
    width: 100%;
  }
}

/* ===== PAYOUT BREAKDOWN (главная + городские: из чего складывается выплата) ===== */
.payout {
  padding-block: 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.payout__formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
}

.payout__part {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.payout__part--total {
  background: var(--accent-soft);
  border-color: rgba(198, 40, 40, 0.35);
}

.payout__part-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.payout__part-value {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.payout__part--total .payout__part-value {
  color: var(--accent-text);
}

.payout__part-note {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: auto;
}

.payout__link {
  color: var(--accent-text);
  font-weight: 600;
  border-bottom: 1px solid rgba(198, 40, 40, 0.4);
}

.payout__link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.payout__op {
  align-self: center;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.payout__timeline {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.payout__timeline-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.payout__timeline-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.payout__timeline-list li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.payout__time {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.payout__time-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.payout__timeline-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.payout__timeline-note a {
  color: var(--accent-text);
  font-weight: 600;
}

.payout__timeline-note a:hover {
  color: #fff;
}

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

  .payout__op {
    justify-self: center;
  }

  .payout__timeline-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .payout {
    padding-block: 3.5rem;
  }

  .payout__timeline {
    padding: 1.5rem;
  }
}

/* ===== MOBILE ACTION BAR =====
   На телефоне шапка сворачивается в бургер: ни номера, ни кнопки заявки не видно,
   пока меню не откроют. Панель внизу держит оба действия и мессенджеры под большим
   пальцем на всех экранах страницы. На десктопе не выводится. */
.action-bar {
  display: none;
}

@media (max-width: 768px) {
  .action-bar {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(14, 15, 18, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--glass-border);
  }

  .action-bar__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .action-bar .socials {
    gap: 0.4rem;
    flex: 0 0 auto;
  }

  .action-bar .socials__link {
    width: 2.75rem;
    height: 2.75rem;
  }

  .action-bar__call,
  .action-bar__cta {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 2.75rem;
    padding-inline: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .action-bar__call {
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    color: var(--text);
  }

  .action-bar__cta {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
  }

  .action-bar__cta:active {
    background: var(--accent-hover);
  }

  /* Панель перекрывает низ страницы — освобождаем место под ней. */
  body {
    padding-bottom: 4.25rem;
  }

  /* При открытом меню или модалке панель мешает — убираем. */
  body.menu-open .action-bar,
  body.lead-modal-open .action-bar {
    display: none;
  }
}

/* Узкие телефоны (320-400 px): «Оставить заявку» в одну строку не помещается —
   ужимаем подписи и иконки, но оставляем цели тапа не меньше 40 px. */
@media (max-width: 400px) {
  .action-bar {
    padding-inline: 0.5rem;
  }

  .action-bar__inner {
    gap: 0.35rem;
  }

  .action-bar .socials__link {
    width: 2.5rem;
    height: 2.5rem;
  }

  .action-bar__call,
  .action-bar__cta {
    height: 2.5rem;
    padding-inline: 0.25rem;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
  }
}

/* Панель «Написать» над нижней панелью: MAX, ВКонтакте, Telegram, WhatsApp */
.action-bar__write { display: none; }
@media (max-width: 768px) {
  .action-bar__write {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    min-width: 0; height: 2.75rem; padding-inline: 0.5rem; border: 0; border-radius: var(--radius-sm);
    font: inherit; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #3b6cff, #7a3cff);
  }
  .action-bar__chats {
    position: absolute; left: 0.75rem; right: 0.75rem; bottom: calc(100% + 0.5rem);
    display: grid; gap: 0.5rem; padding: 0.6rem;
    background: rgba(14, 15, 18, 0.97); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  }
  .action-bar__chats[hidden] { display: none; }
  .action-bar__chats .socials__link {
    width: auto; height: 3rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    border: 0; border-radius: var(--radius-sm); color: #fff; font-weight: 800; font-size: 1rem;
  }
  .action-bar__chats .socials__link svg { width: 1.25rem; height: 1.25rem; }
  .action-bar__chats .socials__link--max { background: linear-gradient(135deg, #3b6cff, #7a3cff); }
  .action-bar__chats .socials__link--vk { background: linear-gradient(135deg, #2f8cff, #0059d6); }
  .action-bar__chats .socials__link--tg { background: linear-gradient(135deg, #4cc3f5, #1c8fd6); }
  .action-bar__chats .socials__link--wa { background: linear-gradient(135deg, #2fe07a, #0f9d58); }
}
@media (max-width: 400px) {
  .action-bar__write { height: 2.5rem; padding-inline: 0.25rem; font-size: 0.8125rem; }
}

/* ===== ПОСАДОЧНАЯ /rubikon/ ===== */
.hero--rubikon {
  background-image: url("../Website-Images/vacancies/vac-rubikon-operator-gen.jpg");
  background-image: image-set(url("../Website-Images/vacancies/vac-rubikon-operator-gen.webp") type("image/webp"), url("../Website-Images/vacancies/vac-rubikon-operator-gen.jpg") type("image/jpeg"));
}

.rubikon-about,
.rubikon-req,
.rubikon-drones,
.rubikon-training,
.rubikon-risk,
.rubikon-money {
  padding-block: 5rem;
  border-bottom: 1px solid var(--line);
}

.rubikon-about,
.rubikon-drones,
.rubikon-risk {
  background: var(--bg-soft);
}

.rubikon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.rubikon-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.rubikon-card h3 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.rubikon-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Таблицы фактов: на узком экране скроллятся внутри себя, страница не едет вбок. */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-weight: 700;
  color: #fff;
  background: var(--surface-2);
  white-space: nowrap;
}

.data-table td:first-child {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  color: var(--text-muted);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.note-line {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rubikon-risk__body {
  display: grid;
  gap: 1.1rem;
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.rubikon-risk__body p:first-child {
  color: var(--text);
}

.rubikon-money .payout__formula {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .rubikon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rubikon-money .payout__formula {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rubikon-about,
  .rubikon-req,
  .rubikon-drones,
  .rubikon-training,
  .rubikon-risk,
  .rubikon-money {
    padding-block: 3.5rem;
  }

  .rubikon-grid {
    grid-template-columns: 1fr;
  }
}

/* Подпись под заголовком группы «Рубикон БПЛА» — ведёт на отдельную посадочную. */
.vacancies__group-note {
  margin: -0.5rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 46rem;
}

.vacancies__group-note a {
  color: var(--accent-text);
  font-weight: 600;
  border-bottom: 1px solid rgba(198, 40, 40, 0.4);
}

.vacancies__group-note a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Страница «Рубикон»: кадры направлений и блок «что посмотреть дальше» */
.rubikon-shots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.rubikon-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
}
.rubikon-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.rubikon-shot figcaption {
  padding: 1rem 1.1rem 1.2rem;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}
.rubikon-next__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.rubikon-next__list li {
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}
.rubikon-next__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--accent, #d2402f);
}
.rubikon-next__list a { font-weight: 600; }

@media (max-width: 900px) {
  .rubikon-shots__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rubikon-shots__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Кадр оператора светлее остальных: под текстом он забивает буквы,
     поэтому на узких экранах затемняем сильнее общего правила. */
  .hero--rubikon::before {
    background:
      linear-gradient(180deg, rgba(14, 15, 18, 0.9) 0%, rgba(14, 15, 18, 0.76) 45%, rgba(14, 15, 18, 0.94) 100%),
      radial-gradient(110% 85% at 50% 0%, rgba(198, 40, 40, 0.16), transparent 58%);
  }
}

/* ===== РЕГИОНАЛЬНЫЕ СТРАНИЦЫ: города региона и таблица округа ===== */
.city-intro__cities {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.district {
  padding-block: 5rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.district .section-head p a {
  color: var(--accent-text);
  font-weight: 600;
}

.data-table--district td:nth-child(n + 2),
.data-table--district th:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}

.data-table--district td a {
  color: #fff;
  border-bottom: 1px solid var(--glass-border);
}

.data-table--district td a:hover {
  color: var(--accent-text);
  border-bottom-color: var(--accent-hover);
}

.data-table--district tr.is-current td {
  background: var(--accent-soft);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .district {
    padding-block: 3.5rem;
  }
}

/* ===== ХАБ /cities/: округа -> регионы -> города ===== */
.cities-index__grid--regions {
  column-count: 2;
  column-gap: 3rem;
}

.cities-index__grid--regions .cities-index__letter {
  font-size: 1.15rem;
}

.cities-index__grid--regions .cities-index__list {
  gap: 1rem;
}

.cities-index__region {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cities-index__grid--regions .cities-index__region > a {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.cities-index__grid--regions .cities-index__region > a:hover {
  color: var(--accent-text);
}

.cities-index__sum {
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.cities-index__cities {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cities-index__grid--regions {
    column-count: 1;
  }
}

.year-income {
  padding-block: 5rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .year-income {
    padding-block: 3.5rem;
  }
}

/* ===== КВИЗ «Какая должность вам подойдёт» (js/quiz.js) ===== */
.quiz [hidden],
.calculator [hidden] {
  display: none !important;
}

.quiz {
  padding-block: 5rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.quiz__card {
  max-width: 46rem;
  padding: 2rem 2.25rem 1.75rem;
}

.quiz__progress {
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--glass-strong);
  overflow: hidden;
}

.quiz__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.quiz__counter {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz__step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.quiz__question {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.quiz__hint {
  margin: -0.5rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.quiz__options {
  display: grid;
  gap: 0.6rem;
}

.quiz__options--grid {
  grid-template-columns: repeat(2, 1fr);
}

.quiz__option {
  position: relative;
  display: block;
  cursor: pointer;
}

/* Сам radio прячем визуально, но оставляем доступным с клавиатуры. */
.quiz__option input,
.quiz__vacancy input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.quiz__option span {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s;
}

.quiz__option:hover span {
  border-color: rgba(198, 40, 40, 0.45);
}

.quiz__option input:focus-visible + span,
.quiz__vacancy input:focus-visible + .quiz__vacancy-body {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.quiz__option input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.quiz__select {
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(10, 11, 14, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
}

.quiz__select.is-invalid {
  border-color: var(--accent);
}

/* --- результат --- */
.quiz__vacancies {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.quiz__vacancy {
  position: relative;
  display: block;
  cursor: pointer;
}

.quiz__vacancy-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: border-color 0.2s, background 0.2s;
}

.quiz__vacancy input:checked + .quiz__vacancy-body {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.quiz__vacancy-title {
  font-weight: 700;
  color: #fff;
}

.quiz__vacancy-salary {
  color: var(--accent-text);
  font-weight: 700;
  white-space: nowrap;
}

.quiz__vacancy-desc {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.quiz__note {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.quiz__money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.quiz__money-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.quiz__money-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz__money-value {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.quiz__money-note {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.quiz__lead {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.quiz__nav:empty,
.quiz__nav:not(:has(> :not([hidden]))) {
  display: none;
}

.quiz__back {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 0;
}

.quiz__back:hover {
  color: var(--text);
}

/* .form .button растягивает кнопки на всю ширину — в навигации квиза не нужно. */
.form .quiz__next {
  width: auto;
  margin-left: auto;
}

@media (max-width: 640px) {
  .quiz {
    padding-block: 3.5rem;
  }

  .quiz__card {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .quiz__options--grid,
  .quiz__money {
    grid-template-columns: 1fr;
  }
}

/* ===== СТРАНИЦЫ СПЕЦИАЛЬНОСТЕЙ /services/<slug>/ (tools/build_specialties.py) ===== */
.hero--spec {
  min-height: 82vh;
}

.crumbs {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.crumbs a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}

.crumbs a:hover {
  color: #fff;
}

.spec-vacancies,
.spec-section {
  padding-block: 5rem;
  border-bottom: 1px solid var(--line);
}

.spec-section--soft {
  background: var(--bg-soft);
}

.spec-list {
  display: grid;
  gap: 0.85rem;
  max-width: 52rem;
}

.spec-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.spec-text {
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Несколько абзацев подряд — блок «Набор приостановлен» (build_specialties.py, paused) */
.spec-text + .spec-text {
  margin-top: 0.85em;
}

.spec-section .section-head p a {
  color: var(--accent-text);
  font-weight: 600;
}

.spec-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.spec-related a {
  display: inline-flex;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.spec-related a:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* Блок «Популярные специальности» на /services/ и подписи в группах вакансий */
.spec-links {
  padding-block: 2.5rem 0;
}

.spec-links__title {
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .spec-vacancies,
  .spec-section {
    padding-block: 3.5rem;
  }

  .hero--spec {
    min-height: auto;
  }
}

.spec-related__sum {
  margin-left: 0.4rem;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.875em;
}

/* Блок «Вакансии по теме» в статьях блога */
.blog-jobs {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(198, 40, 40, 0.35);
  background: var(--accent-soft);
}

.blog-jobs__title {
  margin-bottom: 0.6rem;
  font-weight: 800;
  color: #fff;
}

.blog-jobs ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.blog-jobs li {
  list-style: none;
  color: var(--text-muted);
}

.blog-jobs li a,
.blog-jobs__more a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-jobs li span {
  margin-left: 0.35rem;
  color: var(--accent-text);
  font-size: 0.875em;
}

.blog-jobs__more {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ===== ПОИСК ПО СПИСКУ (калькулятор, квиз): enhanceSelectCombobox в script.js ===== */
.combo {
  position: relative;
}

.combo__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}

.combo__input {
  width: 100%;
  min-height: 56px;
  padding: 16px 2.75rem 16px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239ba3af' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E")
    no-repeat right 1rem center;
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.combo__input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.combo__input:focus {
  border-color: var(--gold, #d4a84b);
}

.combo__input.is-invalid {
  border-color: var(--accent);
}

.combo__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 22rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.combo__option {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}

.combo__option.is-active,
.combo__option:hover {
  background: var(--accent-soft);
}

.combo__label {
  color: var(--text);
  font-weight: 600;
}

.combo__sub {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.combo__hint,
.combo__empty {
  padding: 0.65rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.combo__hint {
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.combo__empty a {
  color: var(--accent-text);
  font-weight: 600;
}

/* Соединительная линия у последнего шага вела в пустоту (5 шагов на «Рубиконе»,
   4 — если секция без .steps--quad). У последнего шага линии нет никогда. */
.step:last-child::after {
  content: none;
}

/* Плашка «Спецконтракт без автопролонгации» в первом экране — ссылка на статью. */
.hero__chip-link {
  color: inherit;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
}

.hero__chip-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Статьи блога на телефоне: контейнер — CSS-сетка, а элемент сетки по умолчанию не
   сужается уже самого широкого содержимого. Таблицы (min-width: 32rem) распирали колонку
   за край экрана, правая часть обрезалась. Разрешаем сужение — таблица прокручивается
   внутри своей .table-wrap, как и задумано. */
.blog-list__container > * {
  min-width: 0;
}

/* iOS Safari увеличивает страницу при фокусе на поле со шрифтом меньше 16 px
   и не возвращает масштаб. Поэтому у всех полей ввода — не меньше 16 px. */
@media (max-width: 1024px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select:not(.combo__native),
  textarea {
    font-size: max(16px, 1em);
  }
}

/* Каталог направлений на /services/ (tools/link_specialties.py → hub) */
.spec-links--hub {
  padding-block: 3rem 0.5rem;
}

.spec-links--hub .spec-links__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.spec-links__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.spec-links__lead--after {
  margin: 2rem 0 0;
}

.spec-dirs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-dir {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius, 16px);
  background: var(--glass);
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}

.spec-dir:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.spec-dir__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.spec-dir__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
}

.spec-dir__title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.spec-dir__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.spec-dir__sum {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--accent-text);
}

@media (max-width: 1100px) {
  .spec-dirs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Телефон: компактные строки — картинка слева, без длинного описания. */
@media (max-width: 640px) {
  .spec-links--hub {
    padding-top: 2rem;
  }

  .spec-dirs {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .spec-dir {
    flex-direction: row;
    align-items: stretch;
  }

  .spec-dir__img {
    width: 88px;
    height: auto;
    min-height: 100%;
    aspect-ratio: auto;
    align-self: stretch;
    flex-shrink: 0;
  }

  .spec-dir {
    position: relative;
    min-height: 72px;
  }

  .spec-dir__body {
    padding: 0.75rem 0.9rem;
    gap: 0.2rem;
  }

  .spec-dir__title {
    font-size: 1rem;
  }

  .spec-dir__text {
    display: none;
  }

  .spec-dir__sum {
    margin-top: 0;
    font-size: 0.9rem;
  }
}

/* О нас: надбавки к довольствию (306-ФЗ) */
.pay-extras { padding: 56px 0; }
.pay-extras__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pay-extras__list li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.pay-extras__list span { opacity: 0.75; font-size: 0.9375rem; }
.pay-extras__note { margin-top: 16px; opacity: 0.8; }

/* Часы работы под телефоном в шапке (курс jonn22: часы работы на первом экране) */
.actions-header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.actions-header__hours { font-size: 0.75rem; opacity: 0.7; white-space: nowrap; }
@media (max-width: 1150px) { .actions-header__hours { display: none; } }

/* Калькулятор: регион без опубликованной суммы (REGIONAL_PENDING, 01.10.2026) */
.calc__pending { margin-top: 12px; font-size: 14px; line-height: 1.45; opacity: .85; }

/* Памятка за подписку во ВКонтакте (01.10.2026): «ДОКУМЕНТЫ» / «ВЫПЛАТЫ» — отвечает бот группы (vk-callback.php) */
.memo-offer { margin-top: 18px; padding: 14px 16px; border: 1px dashed currentColor; border-radius: 12px; opacity: .95; }
.memo-offer__title { margin: 0 0 4px; font-weight: 800; }
.memo-offer p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.memo-offer__btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #0057b8; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.memo-offer__btn:hover { filter: brightness(1.08); }

/* После заявки: позвонить или написать, не дожидаясь звонка (06.10.2026) */
.thanks-chat { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.thanks-chat[hidden] { display: none; }
.thanks-chat__text { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.thanks-chat__links { display: flex; flex-wrap: wrap; gap: 8px; }
.thanks-chat__links a { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; }
.thanks-chat__links a:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== Сетки без пустых мест (07.10.2026) =====
   Последний неполный ряд раздела вакансий и списка статей растягивается на всю ширину — после «Показать ещё»
   не остаётся одиночной карточки с пустым местом рядом. Одна карточка в ряду — широкая: фото слева (ширина
   обычной колонки), текст справа; две в трёхколоночном ряду — по половине, фото той же высоты, что у соседей.
   Скрытые «Показать ещё» карточки идут только в конце раздела и в подсчёт рядов не попадают. */
.vacancies__group-cards { container-type: inline-size; }

@media (min-width: 1101px) {
  .vacancies__group-cards { grid-template-columns: repeat(6, 1fr); }
  .vacancies__group-cards > .vacancy { grid-column: span 2; }
  .vacancies__group-cards > .vacancy:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .vacancies__group-cards > .vacancy:last-child:nth-child(3n+2),
  .vacancies__group-cards > .vacancy:nth-last-child(2):nth-child(3n+1) { grid-column: span 3; }
  .vacancies__group-cards > .vacancy:last-child:nth-child(3n+2) .vacancy__media,
  .vacancies__group-cards > .vacancy:nth-last-child(2):nth-child(3n+1) .vacancy__media {
    max-height: calc((100cqw - 3rem) / 3 * 0.625);
  }
  .vacancies__group-cards > .vacancy:last-child:nth-child(3n+1) { flex-direction: row; }
  .vacancies__group-cards > .vacancy:last-child:nth-child(3n+1) .vacancy__media {
    flex: 0 0 33%;
    flex-basis: calc((100cqw - 3rem) / 3);
    aspect-ratio: auto;
    min-height: calc((100cqw - 3rem) / 3 * 0.625);
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .vacancies__group-cards > .vacancy:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .vacancies__group-cards > .vacancy:last-child:nth-child(odd) .vacancy__media {
    flex: 0 0 50%;
    flex-basis: calc((100cqw - 1.5rem) / 2);
    aspect-ratio: auto;
    min-height: calc((100cqw - 1.5rem) / 2 * 0.625);
  }
  .articles__grid > .article-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 1101px) {
  .articles__grid > .article-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Блок «Пункт отбора» на страницах регионов (16.10.2026) */
.punkt__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; font-size: 1rem; }
.punkt__list a { color: inherit; font-weight: 600; }

/* Адаптивность 23.10.2026: сумма остаётся красной и читается поверх фотографии. */
@media (max-width: 768px) {
  .hero__brand span { color: #ff7373; text-shadow: 0 2px 3px #000, 0 0 12px rgba(0,0,0,.9); }
}
/* Размер текста прежний, область нажатия логотипа, меню и ссылок не меньше 44 px. */
@media (max-width: 1150px) {
  .logo, .menu__link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .icon-menu { width: 44px; height: 44px; flex: 0 0 44px; }
  .icon-menu span, .icon-menu::before, .icon-menu::after { left: 6px; width: 32px; }
  .icon-menu::before { top: 12px; }
  .icon-menu::after { bottom: 10px; }
  .menu-open .icon-menu::before { top: calc(50% - 1px); }
  .menu-open .icon-menu::after { bottom: calc(50% - 1px); }
}
/* Контент карточек и таблиц не расширяет колонку на промежуточных экранах. */
.table-wrap { min-width: 0; max-width: 100%; }
.spec-dirs > *, .articles__grid > *, .vacancies__group-cards > * { min-width: 0; }
@media (max-width: 767px) {
  .footer__nav a, .footer__bottom-inner > a, .footer__cities-all, .memo-offer__btn { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}

/* Область нажатия ссылок у согласия и мелких ссылок на телефоне — не меньше ~44 px, раскладка не меняется (вертикальный padding у строчных ссылок) — 23.10.2026 */
.form__consent a{padding:.8rem 0}
.crumbs a{padding:.8rem 0}

/* Форма на первом экране главной и блок допродажи региона (23.10.2026) */
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__main { min-width: 0; }
.hero-form { width: 100%; max-width: 26rem; padding: 1.5rem; animation: rise 0.9s 0.2s var(--ease) both; }
.hero-form__title { font-family: var(--display); font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 1rem; }
.hero-form .form__field { margin-bottom: 0.75rem; }
.hero-form .button { width: 100%; margin-top: 0.25rem; }
.hero-form__note { margin-top: 0.6rem; font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.hero-form .captcha-note { margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; }
.hero-form .form__consent { font-size: 0.78rem; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 24rem; gap: 3rem; }
  .hero--with-form .hero__brand { font-size: clamp(2.5rem, 4.6vw, 4rem); }
}
@media (max-width: 1023px) {
  .hero--with-form { min-height: 0; }
  .hero-form { max-width: 34rem; }
  /* Телефон и планшет: заголовок, плашки с суммами, сразу форма; описание и кнопки — под формой */
  .hero--with-form .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero--with-form .hero__main { display: contents; }
  .hero--with-form .hero__brand { order: 1; }
  .hero--with-form .hero__chips { order: 2; margin-bottom: 1.25rem; }
  .hero--with-form .hero-form { order: 3; margin-bottom: 1.75rem; }
  .hero--with-form .hero__title { order: 4; }
  .hero--with-form .hero__actions { order: 5; }
  .hero--with-form .hero__disclaimer { order: 6; }
}

.region-upsell { padding: 3.5rem 0; background: linear-gradient(180deg, rgba(198, 40, 40, 0.10), rgba(198, 40, 40, 0.02)); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.region-upsell__container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.region-upsell__eyebrow { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
.region-upsell__title { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.region-upsell__text { max-width: 46rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1.5rem; }
.region-upsell__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; }
.region-upsell__list a { display: flex; flex-direction: column; gap: 0.25rem; min-height: 44px; padding: 1rem 1.25rem; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--glass-border); color: inherit; text-decoration: none; transition: border-color .2s; }
.region-upsell__list a:hover, .region-upsell__list a:focus-visible { border-color: var(--accent); }
.region-upsell__sum { font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.region-upsell__name { font-size: 0.95rem; color: var(--text-muted); }
.region-upsell__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.region-upsell__more { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.region-upsell__also { max-width: 46rem; line-height: 1.6; margin: 0 0 1rem; }
.region-upsell__also a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.region-upsell__note { font-size: 0.8rem; color: var(--text-muted); max-width: 46rem; line-height: 1.5; }
@media (max-width: 767px) {
  .region-upsell { padding: 2.5rem 0; }
  .region-upsell__container { padding: 0 1rem; }
  .region-upsell__list { grid-template-columns: 1fr 1fr; }
  .region-upsell__list a { padding: 0.85rem 1rem; }
  .region-upsell__sum { font-size: 1.05rem; }
  .region-upsell__actions .button { width: 100%; text-align: center; }
}

/* Короткая форма внутри статьи (10.11.2026, tools/inline_cta.py v2) */
.inline-lead__form { max-width: 30rem; margin-top: 1rem; padding: 1.25rem; animation: none; }
.inline-lead__form .form__label { font-size: 0.85rem; }

/* Цитаты военнослужащих из СМИ на главной (19.11.2026) */
.quotes-media .fit-cases__list { grid-template-columns: repeat(2, 1fr); }
.quote-media { margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.quote-media__text { margin: 0; padding-left: 1rem; border-left: 3px solid var(--accent, #c62828); }
.quote-media__text p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote-media__who { margin-top: auto; color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.quote-media__who a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .quotes-media .fit-cases__list { grid-template-columns: 1fr; }
}

/* 21.11.2026: ссылки в шагах оформления и подводке вакансий на главной */
.step__text a,
.vacancies .section-head p a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ===== Блок «Сколько положено вам?» в статьях: мессенджеры после первого ответа (29.11.2026) ===== */
.blog-post__body--article .msg-cta { margin: 1.5rem 0; }
.blog-post__body--article .msg-cta p { margin: 0 0 0.85rem; }
.msg-cta__links.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.msg-cta__links .socials__link {
  width: auto; height: 2.9rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: var(--radius-sm, 0.5rem); color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; box-shadow: none;
}
.msg-cta__links .socials__link svg { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.msg-cta__links .socials__link--wa { background: linear-gradient(135deg, #2fe07a, #0f9d58); }
.msg-cta__links .socials__link--tg { background: linear-gradient(135deg, #4cc3f5, #1c8fd6); }
.msg-cta__links .socials__link--max { background: linear-gradient(135deg, #3b6cff, #7a3cff); }
.msg-cta__links .socials__link--vk { background: linear-gradient(135deg, #2f8cff, #0059d6); }
.blog-post__body--article .msg-cta__links .socials__link,
.blog-post__body--article .msg-cta__links .socials__link:hover { color: #fff; text-decoration: none; }
.msg-cta__links .socials__link:hover { filter: brightness(1.08); }
.msg-cta__links .socials__link:focus-visible { outline: 2px solid var(--gold, #d4a84b); outline-offset: 2px; }
@media (min-width: 769px) { .msg-cta__links.socials { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
