/* ============================================================
   mechanicbpla.ru — main.css
   Mobile-first, дизайн-токены через CSS custom properties.
   Системный шрифт-стек: без внешних загрузок, CSP-безопасно.
============================================================ */

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

:root {
  /* Цвета */
  --c-primary: #0E4E8A;
  --c-primary-dark: #0A3A68;
  --c-primary-light: #E8F1FB;
  --c-accent: #F59E0B;
  --c-accent-dark: #D97706;
  --c-success: #16A34A;

  --c-text: #1A2332;
  --c-text-soft: #3D4B60;
  --c-muted: #64748B;
  --c-border: #E2E8F0;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F5F8FC;
  --c-bg-dark: #0B2540;

  /* Типографика */
  --ff-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --fs-base: 16px;
  --lh-base: 1.55;

  /* Радиусы и тени */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 60, .06);
  --shadow-md: 0 8px 24px rgba(10, 30, 60, .08);
  --shadow-lg: 0 20px 50px rgba(10, 30, 60, .14);

  /* Сетка */
  --container: 1120px;
  --container-narrow: 760px;
  --gutter: 16px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.2; color: var(--c-text); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 6vw, 44px); }
h2 { font-size: clamp(24px, 4.5vw, 36px); }
h3 { font-size: clamp(18px, 3vw, 22px); }
p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -10000px; top: 8px;
  background: #000; color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--accent { background: var(--c-accent); color: #13202E; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--lg { padding: 14px 28px; font-size: 17px; min-height: 50px; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
/* ---------- Promo bar (cross-link к другой вакансии) ---------- */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, #F59E0B 0%, #FB923C 60%, #F59E0B 100%);
  background-size: 200% 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background-position .35s ease, transform .15s ease;
}
.promo-bar:hover,
.promo-bar:focus-visible {
  background-position: 100% 0;
  text-decoration: none;
  color: #fff;
}
.promo-bar__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.promo-bar__text { color: #fff; }
.promo-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.promo-bar__arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.promo-bar:hover .promo-bar__arrow { transform: translateX(3px); }

@media (max-width: 520px) {
  .promo-bar { font-size: 13px; padding: 9px 12px; gap: 6px; }
  .promo-bar__badge { font-size: 10px; padding: 2px 7px; }
  .promo-bar__cta { padding-left: 4px; }
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: saturate(180%) blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
  text-decoration: none;
  line-height: 1.1;
}
.brand__mark { flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: inherit;
}
.brand__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.brand--footer { color: #fff; }
.brand--footer .brand__tagline { color: rgba(255, 255, 255, .55); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.1;
  color: var(--c-primary);
  text-decoration: none;
}
.contact-phone__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contact-phone__number {
  font-size: 19px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.01em;
}
.brand__break { display: none; }
@media (max-width: 767px) {
  .brand__tagline { display: none; }
  .brand__break { display: inline; }
  .brand__name { font-size: 15px; line-height: 1.05; }
  .contact-phone__label { display: none; }
  .contact-phone__number { font-size: 16px; }
  .brand { gap: 8px; }
  .brand__mark { width: 36px; height: 36px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 32px 0 48px;
  background: linear-gradient(160deg, #EAF2FB 0%, #F7FAFD 60%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 78, 138, .08) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: .6;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 28px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 78, 138, .1);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.hero__lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--c-text-soft);
  margin: 14px 0 18px;
  max-width: 52ch;
}
.hero__lead strong { color: var(--c-text); }
.hero__cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.hero__note { font-size: 14px; color: var(--c-muted); margin-top: 14px; }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-soft);
  box-shadow: var(--shadow-sm);
}
.chip::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-success);
}

/* Hero form card */
.hero__form-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.hero__form-title {
  font-size: 22px;
  margin: 0 0 4px;
}
.hero__form-sub {
  color: var(--c-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

/* ---------- Sections ---------- */
.section {
  padding: 48px 0;
}
.section--alt { background: var(--c-bg-alt); }
.section--form { background: linear-gradient(180deg, #F5F8FC 0%, #fff 100%); padding-bottom: 72px; }

.section__title { text-align: center; margin-bottom: 12px; }
.section__lead {
  text-align: center;
  color: var(--c-text-soft);
  max-width: 66ch;
  margin: 0 auto 32px;
  font-size: clamp(15px, 2vw, 17px);
}
.section__note {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--c-primary-light);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--c-text-soft);
}
.section__disclaimer {
  margin-top: 22px;
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards grid ---------- */
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--c-primary-light);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.card__title { font-size: 17px; margin: 0 0 6px; }
.card__text { margin: 0; color: var(--c-text-soft); font-size: 15px; }

/* Tiles (conditions) */
.tile {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.tile__icon { margin-bottom: 8px; }
.tile__title { font-size: 17px; margin: 0; }
.tile__text { margin: 0; color: var(--c-text-soft); font-size: 15px; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--c-text-soft);
  line-height: 1.45;
}
.checklist li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-success) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}

/* ---------- Salary cards ---------- */
.salary-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.salary-card--featured {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(14, 78, 138, .1), var(--shadow-md);
  transform: translateY(0);
}
.salary-card__badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.salary-card__level {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.salary-card__amount {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.salary-card__from { font-size: 15px; font-weight: 500; color: var(--c-muted); margin-right: 4px; }
.salary-card__currency { font-size: 15px; font-weight: 500; color: var(--c-muted); }
.salary-card__text { margin: 0; color: var(--c-text-soft); font-size: 14px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}
.step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.step__title { font-size: 17px; margin: 0 0 6px; }
.step__text { margin: 0; color: var(--c-text-soft); font-size: 15px; }
.steps__cta { text-align: center; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  position: relative;
  color: var(--c-text);
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}
.faq__item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--c-text-soft);
  font-size: 15px;
}

/* ---------- Lead form ---------- */
.lead-form {
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 6px; }
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-soft);
  letter-spacing: 0.01em;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  min-height: 48px;
}
.field input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(14, 78, 138, .15);
}
.field input[aria-invalid="true"],
.field.field--error input {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--c-text-soft);
  cursor: pointer;
  line-height: 1.4;
}
.checkbox input {
  margin: 2px 0 0;
  width: 18px; height: 18px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}
.checkbox a { color: var(--c-primary); text-decoration: underline; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.form-error {
  margin: 0;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
}
.form-consent {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-muted);
  text-align: center;
}
.form-consent a { color: var(--c-muted); text-decoration: underline; }
.form-consent a:hover { color: var(--c-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg-dark);
  color: #B9C8DE;
  padding: 40px 0 20px;
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  gap: 28px;
}
.site-footer__title {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.site-footer__list { display: grid; gap: 8px; }
.site-footer__list a {
  color: #B9C8DE;
  text-decoration: none;
}
.site-footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal {
  margin: 16px 0 0;
  font-size: 13px;
  color: #8AA0BE;
  line-height: 1.6;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 20px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #8AA0BE;
  text-align: center;
}
.site-footer__bottom p { margin: 0; }

/* ---------- MAX button (нейтральная оболочка + фирменный ярлык) ---------- */
.btn-max {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  background: #fff;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .05s;
  white-space: nowrap;
  line-height: 1;
}
.btn-max:hover { border-color: var(--c-primary); background: #F5F8FC; color: var(--c-text); text-decoration: none; }
.btn-max:active { transform: translateY(1px); }
.btn-max img { display: block; }

.btn-max--compact {
  padding: 6px 12px 6px 6px;
  font-size: 13px;
  gap: 6px;
}
@media (max-width: 767px) {
  .btn-max--compact span { display: none; }
  .btn-max--compact { padding: 6px; gap: 0; border-radius: 50%; }
}

.btn-max--inline {
  padding: 10px 18px 10px 10px;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  background: linear-gradient(135deg, #6B5DF2 0%, #1EA0F5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(107, 93, 242, .35), 0 2px 4px rgba(0, 0, 0, .08);
}
.btn-max--inline:hover {
  background: linear-gradient(135deg, #5A4CE0 0%, #1088DB 100%);
  color: #fff;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(107, 93, 242, .45), 0 3px 6px rgba(0, 0, 0, .1);
}
.btn-max--inline img { border-radius: 5px; }

/* Floating MAX — сдержанный вариант */
.max-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 52px;
  height: 52px;
  padding: 0;
  background: #fff;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(14, 78, 138, .14), 0 3px 8px rgba(0, 0, 0, .06);
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.max-floating:hover {
  border-color: var(--c-primary);
  color: var(--c-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(14, 78, 138, .18), 0 3px 8px rgba(0, 0, 0, .08);
}
.max-floating:active { transform: translateY(0); }
.max-floating__icon { position: relative; z-index: 2; }
.max-floating__label {
  display: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.max-floating__pulse { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Thanks page ---------- */
.thanks {
  padding: 56px 0 80px;
  background: linear-gradient(180deg, #F5F8FC 0%, #fff 100%);
}
.thanks__card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.thanks__icon { margin: 0 auto 22px; }
.thanks__title { margin: 0 0 14px; font-size: clamp(26px, 5vw, 36px); }
.thanks__lead {
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--c-text-soft);
  margin: 0 auto 28px;
  max-width: 50ch;
}
.thanks__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto 20px;
}
.thanks__hint { font-size: 14px; color: var(--c-muted); margin: 0 0 28px; }
.thanks__back { margin: 0; font-size: 15px; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { padding: 32px 0 48px; }
.prose__crumbs { font-size: 13px; color: var(--c-muted); margin: 0 0 18px; }
.prose__crumbs a { color: var(--c-muted); }
.prose__meta { color: var(--c-muted); font-size: 14px; margin: -8px 0 24px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: clamp(20px, 3.5vw, 24px);
  scroll-margin-top: 88px;
}
.prose p { font-size: 16px; line-height: 1.65; color: var(--c-text-soft); margin: 0 0 14px; }
.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}
.prose ul li { margin-bottom: 6px; color: var(--c-text-soft); font-size: 16px; line-height: 1.6; }
.prose a { color: var(--c-primary); text-decoration: underline; }
.prose strong { color: var(--c-text); }
.prose__back { margin-top: 40px; font-size: 15px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--c-text-soft);
  flex: 1 1 220px;
}

/* ============================================================
   Tablet >= 768px
============================================================ */
@media (min-width: 768px) {
  :root { --gutter: 24px; }

  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }

  .hero__grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .hero__form-card { padding: 28px; position: sticky; top: 88px; }

  .site-header__inner { min-height: 72px; }
  .contact-phone span { display: inline; }

  .card-grid { gap: 18px; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }

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

  .salary-grid { grid-template-columns: repeat(3, 1fr); }
  .salary-card--featured { transform: translateY(-8px); }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }

  .max-floating { width: auto; height: 52px; padding: 0 18px 0 14px; gap: 10px; }
  .max-floating__label { display: inline; }

  .thanks__card { padding: 56px 40px; }
  .thanks__actions { flex-direction: row; justify-content: center; max-width: none; }
}

/* ============================================================
   Desktop >= 1200px
============================================================ */
@media (min-width: 1200px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }

  .hero__grid { gap: 60px; }
}

/* ============================================================
   Payout banner — единовременная выплата при подписании контракта
============================================================ */
.payout-banner {
  position: relative;
  margin: 28px 0 8px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.payout-banner::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245,158,11,.35) 0%, transparent 70%);
  pointer-events: none;
}
.payout-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}
.payout-banner__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 4px;
}
.payout-banner__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 3.5vw, 26px);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}
.payout-banner__amount {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-accent);
  margin: 4px 0 2px;
}
.payout-banner__amount small {
  display: inline-block;
  font-size: 0.45em;
  font-weight: 600;
  color: #fff;
  vertical-align: middle;
  margin-right: 6px;
}
.payout-banner__amount-suffix {
  font-size: 0.5em;
  font-weight: 700;
  color: #fff;
  margin-left: 6px;
}
.payout-banner__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  max-width: 56ch;
}
.payout-banner__breakdown {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}
.payout-banner__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.payout-banner__row b {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.payout-banner__row--total {
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.22);
  font-size: 15px;
}
.payout-banner__row--total b { color: var(--c-accent); font-size: 17px; }
.payout-banner__note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.65);
}
@media (min-width: 768px) {
  .payout-banner { padding: 36px 36px; }
  .payout-banner__inner { grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
  .payout-banner__breakdown { margin: 0; padding: 20px; }
}

/* ============================================================
   Guarantees grid — социальный пакет и гарантии
============================================================ */
.guarantee-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.guarantee-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.guarantee-item__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-radius: 50%;
}
.guarantee-item__icon svg { width: 22px; height: 22px; }
.guarantee-item__body { flex: 1; min-width: 0; }
.guarantee-item__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--c-text); }
.guarantee-item__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--c-text-soft); }
@media (min-width: 768px) {
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .guarantee-item { padding: 22px; }
}
@media (min-width: 1200px) {
  .guarantee-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Documents grid — пакет документов на оформление
============================================================ */
.docs-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 0 0 18px;
}
.docs-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.docs-item__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}
.docs-item__icon svg { width: 20px; height: 20px; }
.docs-item__body { flex: 1; min-width: 0; }
.docs-item__title { display: block; font-size: 15px; font-weight: 600; color: var(--c-text); margin-bottom: 2px; }
.docs-item__hint { display: block; font-size: 13px; color: var(--c-muted); line-height: 1.45; }
@media (min-width: 768px) {
  .docs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 1200px) {
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Cross-promo — кросс-ссылка на смежную вакансию
============================================================ */
.cross-promo {
  padding: 36px 0;
  background: var(--c-bg);
}
.cross-promo__card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0E4E8A 0%, #0A3A68 65%, #082B4F 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cross-promo__card::before {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(245,158,11,.28) 0%, transparent 65%);
  pointer-events: none;
}
.cross-promo__body { position: relative; z-index: 1; }
.cross-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cross-promo__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
}
.cross-promo__title b { color: var(--c-accent); }
.cross-promo__lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  max-width: 56ch;
}
.cross-promo__points {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.cross-promo__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
}
.cross-promo__points li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--c-accent);
  border-radius: 50%;
}
.cross-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.cross-promo__cta:hover { background: var(--c-accent-dark); text-decoration: none; transform: translateX(2px); }
.cross-promo__cta::after { content: "→"; font-weight: 700; }
.cross-promo__visual {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
}
.cross-promo__amount {
  text-align: center;
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}
.cross-promo__amount-from { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.cross-promo__amount-value {
  display: block;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 800;
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: -0.02em;
}
.cross-promo__amount-unit { display: block; font-size: 14px; color: rgba(255,255,255,.85); margin-top: 4px; }
.cross-promo__amount-note { display: block; font-size: 13px; color: rgba(255,255,255,.7); margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.2); }
@media (min-width: 768px) {
  .cross-promo { padding: 48px 0; }
  .cross-promo__card { padding: 36px; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
  .cross-promo__visual { display: flex; }
}
