/* ===== База ===== */
:root {
  --bg: #0C0F0A;
  --bg-alt: #12170E;
  --surface: #1E2717;
  --surface-2: #26311D;
  --border: #2E3B23;
  --text: #eceae2;
  --muted: #a3ab95;
  --accent: #F2A33C;
  --accent-hover: #D98F2B;
  --ok: #7FB069;
  --no: #D96A5A;
  --radius: 4px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-head: 'Russo One', 'Arial Black', sans-serif;
  --hero-image: url("../img/hero.webp");
  --font-body: 'Golos Text', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { text-wrap: balance; }

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #1a1408;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1a1408;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 16px 28px;
  cursor: pointer;
  text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 11px 18px; font-size: 12px; }
.btn--full { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 12px;
  padding: 11px 18px;
  width: 100%;
}
.btn--outline:hover { background: var(--accent); color: #1a1408; }

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 15, 10, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo__star { width: 28px; height: 28px; fill: var(--accent); flex-shrink: 0; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 64px;
  background: var(--bg);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-image, none) center / cover no-repeat;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0C0F0A;
  opacity: .72;
}
.hero__grid { position: relative; display: grid; gap: 40px; }
.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid rgba(242, 163, 60, .4);
  border-radius: 2px;
  padding: 7px 16px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5.5vw, 48px);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 18px;
}
.hero__lead { color: var(--muted); font-size: 18px; max-width: 560px; margin-bottom: 30px; text-wrap: pretty; }
.hero__lead strong { color: var(--accent); }
.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 32px;
}
.hero__stats li:nth-child(even) { border-left: 1px solid var(--border); padding-left: 24px; }
.hero__stats b {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(18px, 3vw, 24px);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero__stats span { font-size: 12px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Карточка с формой ===== */
.lead-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 24px 48px rgba(12, 15, 10, .6);
  align-self: start;
}
.lead-card__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 8px;
}
.lead-card__sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="number"],
.lead-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: rgba(12, 15, 10, .6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  outline: none;
  transition: border-color .25s var(--ease);
  appearance: none;
}
.lead-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3ab95' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.lead-form select:invalid { color: var(--muted); }
.lead-form input:focus, .lead-form select:focus { border-color: var(--accent); }
.lead-form input::placeholder { color: var(--muted); }
.lead-form input.field-error, .lead-form select.field-error { border-color: var(--no); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent); }

.form-status { font-size: 14px; min-height: 20px; text-align: center; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--no); }

/* ===== Секции ===== */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--cta { padding-bottom: 96px; }
.section__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 4.5vw, 36px);
  margin-bottom: 14px;
}
.section__sub { color: var(--muted); max-width: 700px; margin-bottom: 36px; text-wrap: pretty; }
.note { margin-top: 28px; font-size: 12px; color: var(--muted); }

/* ===== Выплаты ===== */
.pay-grid { display: grid; gap: 20px; }
.pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.pay-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 18px;
}
.pay-card__list { list-style: none; }
.pay-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.pay-card__list li span { color: var(--muted); }
.pay-card__list li b { white-space: nowrap; font-size: 16px; font-variant-numeric: tabular-nums; }
.pay-card__list .pay-card__total { border-bottom: none; padding-top: 14px; }
.pay-card__total b {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  color: var(--accent);
}
.pay-month {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.pay-month h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 18px;
}
.pay-month b { font-variant-numeric: tabular-nums; }
.pay-card__list--month { margin-top: 18px; padding-top: 6px; border-top: 2px solid var(--border); }
.pay-month__note { margin-top: 20px; font-size: 14px; color: var(--text); }

/* ===== Должности ===== */
.vac-group { margin-bottom: 44px; }
.vac-group__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.vac-grid { display: grid; gap: 16px; }
.vac-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px 22px;
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.vac-card:hover { border-color: var(--accent); }
.vac-card__img {
  margin: 0 -22px 16px;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  position: relative;
}
.vac-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.9);
  transition: transform .7s var(--ease);
}
.vac-card:hover .vac-card__img img { transform: scale(1.03); }
.vac-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.vac-card h4:first-child { margin-top: 22px; }
.vac-card__pay {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: 0 0 4px;
}
.vac-card__pay-note { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.vac-card__meta { display: grid; gap: 8px; margin-bottom: 14px; }
.vac-card__meta div {
  font-size: 12px;
  padding: 8px 10px;
  background: rgba(12, 15, 10, .5);
  border-radius: 2px;
  border-left: 2px solid var(--border);
}
.vac-card__meta dt {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 2px;
}
.vac-card__meta dd { color: var(--text); margin: 0; }
.vac-card__desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* ===== Кто может ===== */
.who-grid { display: grid; gap: 0 32px; }
.who-card {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.who-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--accent); font-family: var(--font-head); font-weight: 400; }
.who-card p { font-size: 14px; color: var(--muted); }

/* ===== Шаги ===== */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.steps b {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  color: #1a1408;
  background: var(--accent);
  border-radius: var(--radius);
}
.steps h4 { font-size: 16px; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--muted); }

/* ===== Льготы ===== */
.benefits-grid { display: grid; gap: 24px 16px; }
.benefit { display: flex; align-items: flex-start; gap: 12px; }
.benefit svg { flex-shrink: 0; margin-top: 2px; }
.benefit h4 { font-size: 16px; margin-bottom: 6px; }
.benefit p { font-size: 14px; color: var(--muted); }

/* ===== FAQ ===== */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq details[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; min-height: 0; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

/* ===== Широкая карточка (финальный CTA) ===== */
.lead-card--wide { max-width: 560px; margin: 0 auto; text-align: center; }
.lead-card--wide .consent { text-align: left; }

/* ===== Юридический текст ===== */
.legal-text h3 { font-size: 16px; margin: 26px 0 8px; color: var(--accent); }
.legal-text p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* ===== Подвал ===== */
.footer { border-top: 1px solid var(--border); padding: 44px 0 120px; background: #0C0F0A; }
.footer__inner { display: grid; gap: 28px; margin-bottom: 32px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 420px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--muted); font-size: 14px; }
.footer__nav a:hover { color: var(--accent); }
.footer__legal { border-top: 1px solid var(--border); padding-top: 24px; }
.footer__legal p { font-size: 12px; color: #6b7260; margin-bottom: 6px; }

/* ===== Мобильная CTA-кнопка ===== */
.mobile-cta {
  position: fixed;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 90;
  display: none;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #1a1408;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-cta.is-visible { opacity: 1; transform: translateY(0); }
.mobile-cta:hover { background: var(--accent-hover); text-decoration: none; }
.mobile-cta:active { transform: scale(.98); }

/* ===== Появление hero ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero__badge { animation: rise .7s var(--ease) both; }
.hero h1 { animation: rise .7s var(--ease) .08s both; }
.hero__lead { animation: rise .7s var(--ease) .16s both; }
.hero__stats { animation: rise .7s var(--ease) .24s both; }
.hero__cta { animation: rise .7s var(--ease) .32s both; }
.hero .lead-card { animation: rise .7s var(--ease) .4s both; }

/* ===== Адаптив ===== */
@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .vac-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__nav { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 80px 0 90px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .vac-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: 1 / -1; }
  .footer { padding-bottom: 48px; }
}

@media (max-width: 959px) {
  .mobile-cta { display: block; }
}

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