/* =========================================================
   Решение и Коммуникация — сдержанная юридическая эстетика
   Сдержанная, премиальная: уголь/сталь + латунь + парча
   ========================================================= */

:root {
  --color-bg: #0e1116;
  --color-bg-2: #141922;
  --color-surface: #181e28;
  --color-surface-2: #1f2733;
  --color-border: #2c3543;
  --color-border-soft: #232b36;
  --color-text: #eef1f5;
  --color-text-muted: #9aa6b5;
  --color-text-faint: #6b7686;

  --color-brass: #c8a35b;
  --color-brass-2: #e3c387;
  --color-brass-deep: #9c7c3e;

  --color-paper: #f4f1ea;
  --color-paper-ink: #1a1d23;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', 'Inter', sans-serif;

  --radius: 4px;
  --radius-lg: 6px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow: 0 24px 60px -28px rgba(0,0,0,.7);
  --shadow-soft: 0 10px 40px -24px rgba(0,0,0,.6);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.text-gold { color: var(--color-brass); }

.hero-container { position: relative; z-index: 1; }
.hero-content { position: relative; max-width: 820px; }
.badge-gold { border-color: var(--color-brass-deep); color: var(--color-brass); background: rgba(200,163,91,.06); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Display typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.08;
  text-transform: uppercase;
}

.section { padding: clamp(48px, 5vw, 72px) 0; position: relative; }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-brass);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--color-brass);
  opacity: .8;
}

.section-title {
  font-size: clamp(30px, 4.6vw, 52px);
  color: var(--color-text);
  letter-spacing: .005em;
}
.section-title .text-gold { color: var(--color-brass); }

.section-subtitle {
  margin-top: 18px;
  margin-bottom: clamp(24px, 4vw, 40px);
  color: var(--color-text-muted);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 620px;
  line-height: 1.6;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14,17,22,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.header.scrolled {
  background: rgba(14,17,22,.97);
  border-bottom-color: var(--color-border);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 28px;
}
.header-cta { margin-left: auto; white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 12.5px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text);
}
.logo img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.logo .accent { color: var(--color-brass); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: .02em;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 3px;
  height: 1px;
  background: var(--color-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--font-display);
  transition: transform .2s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-brass);
  color: #1a1407;
  border-color: var(--color-brass);
}
.btn-primary:hover {
  background: var(--color-brass-2);
  border-color: var(--color-brass-2);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-brass); color: var(--color-brass); }

.btn-sm { padding: 9px 16px; font-size: 12.5px; }
.btn-small { padding: 9px 15px; font-size: 12.5px; }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-brass); color: var(--color-brass); }
.btn-large { padding: 15px 32px; font-size: 15px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius);
}
.mobile-toggle span {
  width: 18px; height: 1.5px;
  background: var(--color-text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 128px 0 56px;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .5;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--color-bg) 0%, rgba(14,17,22,.86) 38%, rgba(14,17,22,.45) 70%, rgba(14,17,22,.8) 100%);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-display);
  border: 1px solid var(--color-brass-deep);
  color: var(--color-brass);
  background: rgba(200,163,91,.06);
  border-radius: 999px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.14;
  letter-spacing: .004em;
}
.hero-subtitle {
  margin-top: 22px;
  max-width: 520px;
  color: var(--color-text-muted);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.stat-card {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-brass);
  background: rgba(24,30,40,.55);
  border-radius: var(--radius);
}
.stat-value, .stat-number {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: .01em;
  white-space: nowrap;
}
.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: .02em;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: nowrap;
}
.hero-note {
  margin: 0;
  max-width: 320px;
  padding-left: 16px;
  border-left: 2px solid var(--color-brass);
  font-size: 15px;
  color: #cdd2d9;
  line-height: 1.5;
  letter-spacing: .01em;
  flex-shrink: 0;
}

/* ---------- Generic card ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brass-deep);
}

/* ---------- Payments ---------- */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.payment-card {
  position: relative;
  padding: 30px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
  backface-visibility: hidden;
}
.payment-card:hover { transform: translateY(-4px); border-color: var(--color-brass-deep); background: var(--color-surface-2); }
.payment-icon { width: 30px; height: 30px; color: var(--color-brass); margin-bottom: 6px; }
.payment-icon svg { width: 100%; height: 100%; }
.payment-card-highlight {
  background: linear-gradient(170deg, rgba(200,163,91,.12), rgba(24,30,40,.9));
  border-color: var(--color-brass-deep);
}
.payment-amount {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: .01em;
  white-space: nowrap;
}
.payment-label, .payment-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brass);
  letter-spacing: .01em;
}
.payment-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.salary {
  margin-top: clamp(36px, 5vw, 56px);
}
.salary-table-wrapper {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  margin-top: clamp(36px, 5vw, 56px);
}
.salary-table-wrapper h3, .salary-table-wrapper .table-title {
  font-size: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--color-border-soft);
  letter-spacing: .02em;
}
.salary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--color-border-soft);
}
.salary-row:last-child { border-bottom: none; }
.salary-role, .salary-specialty { color: var(--color-text); font-size: 15px; flex: 1; }
.salary-amount {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-brass);
  white-space: nowrap;
  margin-left: auto;
}
.salary-apply { margin-left: auto; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-card {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.benefit-card:hover { transform: translateY(-3px); border-color: var(--color-brass-deep); }
.benefit-icon {
  width: 38px; height: 38px;
  color: var(--color-brass);
  margin-bottom: 16px;
}
.benefit-icon svg { width: 100%; height: 100%; }
.benefit-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: .01em;
}
.benefit-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.58;
}

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

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review-card {
  padding: 28px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200,163,91,.12);
  border: 1px solid var(--color-brass-deep);
  color: var(--color-brass);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.review-name { font-size: 15px; font-weight: 600; color: var(--color-text); }
.review-city { font-size: 13px; color: var(--color-text-faint); }
.review-text { font-size: 14.5px; color: var(--color-text-muted); line-height: 1.62; }

/* ---------- Vacancies ---------- */
.section-media {
  width: 100%;
  max-width: 760px;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  margin: clamp(28px, 4vw, 44px) auto 0;
  filter: saturate(.9);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,.5);
  display: block;
}
.vacancies-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .03em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.filter-btn:hover { color: var(--color-text); border-color: var(--color-brass-deep); }
.filter-btn.active {
  background: var(--color-brass);
  border-color: var(--color-brass);
  color: #1a1407;
}
.vacancies-carousel-wrapper { position: relative; }
.vacancies-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.vacancies-carousel::-webkit-scrollbar { height: 6px; }
.vacancies-carousel::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 999px; }
.vacancy-card {
  flex: 0 0 clamp(260px, 30%, 320px);
  scroll-snap-align: start;
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.vacancy-card:hover { transform: translateY(-4px); border-color: var(--color-brass-deep); }
.vacancy-icon { width: 34px; height: 34px; color: var(--color-brass); }
.vacancy-icon svg { width: 100%; height: 100%; }
.vacancy-card h4 { font-size: 17px; color: var(--color-text); min-height: 44px; }
.vacancy-salary {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-brass);
}
.vacancy-desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; flex: 1; }
.vacancy-tag {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 999px;
}
.vacancy-card .btn { margin-top: 4px; }

.carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(14,17,22,.8);
  color: var(--color-text);
  display: grid;
  place-items: center;
  z-index: 5;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.carousel-btn:hover { border-color: var(--color-brass); color: var(--color-brass); }
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }

/* ---------- Requirements ---------- */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.requirement-card {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.requirement-card:hover { border-color: var(--color-brass-deep); }
.requirement-number {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: rgba(200,163,91,.18);
  line-height: 1;
  margin-bottom: 12px;
}
.requirement-card h4 {
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 8px;
}
.requirement-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.58; }

/* ---------- Convicted ---------- */
.convicted-note {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--color-brass);
  background: rgba(200,163,91,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Stages ---------- */
.stages-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stage-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease);
}
.stage-card:hover { border-color: var(--color-brass-deep); }
.stage-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brass);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}
.stage-card h4 { font-size: 15px; color: var(--color-text); margin-bottom: 4px; }
.stage-card p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* ---------- Documents ---------- */
.documents-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.document-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease);
}
.document-item:hover { border-color: var(--color-brass-deep); }
.document-check {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--color-brass);
  margin-top: 2px;
}
.document-content h4 { font-size: 15.5px; color: var(--color-text); margin-bottom: 4px; letter-spacing: .01em; }
.document-content p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.faq-tab {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: .03em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.faq-tab.active { background: var(--color-brass); border-color: var(--color-brass); color: #1a1407; }
.faq-content { margin-top: 8px; }
.faq-panel { display: none; }
.faq-panel.active { display: block; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--color-text);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .01em;
}
.faq-question .faq-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--color-brass);
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-question .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-answer p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.62;
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.contact-card {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.contact-card:hover { border-color: var(--color-brass-deep); transform: translateY(-3px); }
.contact-icon { width: 30px; height: 30px; color: var(--color-brass); margin-bottom: 16px; }
.contact-icon svg { width: 100%; height: 100%; }
.contact-card h4 { font-size: 14px; color: var(--color-text-muted); letter-spacing: .04em; margin-bottom: 6px; }
.contact-card a, .contact-card .value { font-size: 17px; color: var(--color-text); font-weight: 600; }
.contact-card .value-sub { font-size: 13px; color: var(--color-text-faint); margin-top: 6px; }

.map-illustration {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
}
.map-illustration img { width: 100%; height: clamp(260px, 34vw, 380px); object-fit: cover; }
.map-frame { width: 100%; height: clamp(280px, 36vw, 400px); border: 0; display: block; }
.map-address {
  position: absolute;
  left: 20px; bottom: 20px;
  padding: 12px 18px;
  background: rgba(14,17,22,.82);
  border: 1px solid var(--color-brass-deep);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-brass);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border-soft);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border-soft);
}
.footer-brand { max-width: 360px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }
.footer-cta { margin-top: 22px; align-self: flex-start; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 40px;
}
.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--color-brass); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-text-faint);
}
.footer-bottom a { color: var(--color-text-faint); }
.footer-bottom a:hover { color: var(--color-brass); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.cta-band img { width: 100%; height: clamp(240px, 30vw, 340px); object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14,17,22,.9), rgba(14,17,22,.45));
}
.cta-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}
.cta-content h2 { font-size: clamp(24px, 3.4vw, 40px); color: #fff; max-width: 620px; }
.cta-content h2 .text-gold { color: var(--color-brass-2); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,10,14,.74);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
  padding: 24px;
}
.modal-overlay.active { display: grid; opacity: 1; }
.modal {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transform: translateY(16px);
  transition: transform .3s var(--ease);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 18px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.modal-close:hover { color: var(--color-brass); border-color: var(--color-brass-deep); }
.modal-title { font-size: 24px; margin-bottom: 22px; color: var(--color-text); }

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
.form-group { display: grid; gap: 7px; }
.form-group label { font-size: 13px; color: var(--color-text-muted); letter-spacing: .02em; }
.form-input, .form-group select, .form-select {
  width: 100%;
  padding: 13px 15px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s var(--ease);
}
.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form-input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-brass);
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.checkbox-group input { margin-top: 3px; accent-color: var(--color-brass); }
.checkbox-label { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-bg-2);
  position: relative;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.checkbox-input:checked + .checkbox-custom {
  background: var(--color-brass);
  border-color: var(--color-brass);
}
.checkbox-input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #1a1407;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.btn-block { width: 100%; }
.form-success {
  padding: 22px;
  border: 1px solid var(--color-brass-deep);
  border-radius: var(--radius);
  background: rgba(200,163,91,.08);
  color: var(--color-text);
  font-size: 15px;
  text-align: center;
  line-height: 1.55;
  display: none;
}
.form-success .success-icon { width: 40px; height: 40px; color: var(--color-brass); margin: 0 auto 12px; }
.form-error {
  padding: 12px 16px;
  border: 1px solid #7d3a3a;
  border-radius: var(--radius);
  background: rgba(125,58,58,.12);
  color: #e6a3a3;
  font-size: 13.5px;
  text-align: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(20,25,34,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner, .cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cookie-text { font-size: 13.5px; color: var(--color-text-muted); max-width: 760px; line-height: 1.55; }
.cookie-text a { color: var(--color-brass); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- Scroll reveal (JS adds .animate-in via IntersectionObserver) ---------- */
.section-title,
.payment-card, .benefit-card, .vacancy-card, .requirement-card,
.faq-item, .contact-card, .review-card {
  opacity: 0;
  transform: translateY(22px);
}
.animate-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .payments-grid, .benefits-grid, .reviews-grid, .requirements-grid, .convicted-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .mobile-toggle { display: flex; }
}
@media (max-width: 960px) {
  .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-2);
    border-bottom: 1px solid var(--color-border);
    padding: 12px var(--gutter);
  }
  .nav.open .nav-link { padding: 14px 0; border-bottom: 1px solid var(--color-border-soft); }
  .nav.open .nav-link::after { display: none; }
  .mobile-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 720px) {
  .payments-grid, .benefits-grid, .reviews-grid, .requirements-grid,
  .contacts-grid, .stages-list, .documents-list { grid-template-columns: 1fr; }
  .salary-row { flex-wrap: wrap; }
  .salary-apply { margin-left: 0; width: 100%; }
  .salary-apply .btn { width: 100%; }
  .header-cta { padding: 6px 10px; font-size: 11px; }
  .hero-actions { flex-wrap: wrap; gap: 24px; align-items: flex-start; }
  .hero-note { flex-shrink: 1; max-width: 100%; width: 100%; font-size: 14px; padding-left: 14px; }
}
  .hero-note { flex-shrink: 1; max-width: 100%; width: 100%; font-size: 14px; padding-left: 14px; }
  .stage-card { flex-direction: column; gap: 8px; padding: 22px; }
  .stage-number { min-width: 0; font-size: 24px; }
}

/* ---------- New theme additions (legal / Решение и Коммуникация) ---------- */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.stage-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease);
}
.stage-card:hover { border-color: var(--color-brass-deep); }
.stage-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-brass);
  line-height: 1;
  flex-shrink: 0;
}
.stage-card h4 { font-size: 14px; color: var(--color-text); margin-bottom: 0; }
.stage-card p { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.5; }
.section-media-wrap {
  display: flex;
  justify-content: center;
}
.section-media-wrap .section-media { margin-bottom: 0; width: min(100%, 880px); }

/* ---------- Chargeback visual ---------- */
.chargeback-visual {
  width: 100%;
  margin-top: 32px;
}
.chargeback-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}
.chargeback-overlay {
  display: none;
}
.chargeback-cards {
  position: relative;
  inset: auto;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  padding: 0;
  border-radius: 0;
}
.chargeback-visual .payments-grid {
  margin-top: 24px;
}
.chargeback-cards .payments-grid {
  width: 100%;
  max-width: var(--maxw);
}

/* ---------- Payment card backgrounds ---------- */
.payment-card {
  position: relative;
  overflow: hidden;
}
.payment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/service.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.payment-card > * {
  position: relative;
  z-index: 1;
}
.payment-card:nth-child(1)::before { background-position: 0% 0%; }
.payment-card:nth-child(2)::before { background-position: 100% 0%; }
.payment-card:nth-child(3)::before { background-position: 0% 100%; }
.payment-card:nth-child(4)::before { background-position: 100% 100%; }

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

.chargeback-cards .payment-card {
  background: rgba(24, 30, 40, 0.88);
  backdrop-filter: blur(10px);
}
.chargeback-cards .payment-card:hover {
  background: rgba(35, 42, 55, 0.95);
  border-color: var(--color-brass);
  box-shadow: 0 0 20px rgba(200, 163, 91, 0.15);
}