:root {
  --blue: #1b4ddb;
  --blue-d: #143cb3;
  --navy: #0a1f44;
  --navy-2: #12305f;
  --sky: #eef3fc;
  --sky-2: #dbe5f8;
  --ink: #0b1324;
  --mute: #56627a;
  --line: #dde4f0;
  --white: #fff;
  --r: 16px;
  --font: "Golos Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.55 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(38px, 5.4vw, 68px); }
h2 { font-size: clamp(30px, 3.8vw, 48px); }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--mute); }
.todo { outline: 1.5px dashed #e8590c; outline-offset: 2px; border-radius: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border-radius: 12px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none;
  cursor: pointer; touch-action: manipulation; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--white { background: #fff; border-color: #fff; color: var(--blue); }
.btn--white:hover { background: var(--sky); border-color: var(--sky); }
.btn:disabled { opacity: .55; cursor: progress; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 36px; height: 36px; border-radius: 9px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 11l7 11 7-11' stroke='white' stroke-width='3' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; flex: none; }
.logo__txt { display: grid; line-height: 1.2; }
.logo__txt b { font-weight: 700; font-size: 16px; }
.logo__txt small { font-size: 13px; color: var(--mute); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--blue); }

/* ---------- 1. Первый экран ---------- */
.hero { background: var(--sky); padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.kicker { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 8px; background: var(--sky-2); color: var(--navy); font-size: 15px; font-weight: 600; }
.hero h1 { margin-bottom: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--sky-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 4vw, 48px); background: #fff; border-radius: var(--r); }
.facts li { display: grid; gap: 2px; padding: 22px 26px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.facts span { color: var(--mute); font-size: 15px; }

/* ---------- Секции ---------- */
.sec { padding: clamp(64px, 8vw, 104px) 0; }
.sec--sky { background: var(--sky); }
.sec--navy { background: var(--navy); color: #fff; }
.sec--blue { background: var(--blue); color: #fff; }
.sec__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.note { margin-top: 28px; color: var(--mute); font-size: 15px; }

/* ---------- 2. Вакансии ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--blue); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.notice { margin-bottom: 24px; padding: 20px 24px; border-radius: var(--r); background: var(--sky); border-left: 4px solid var(--blue); }
.notice__h { font-weight: 700; margin-bottom: 8px; }
.notice li { position: relative; padding-left: 18px; }
.notice li + li { margin-top: 4px; }
.notice li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.jobs .job__more { margin-top: auto; padding-top: 18px; border-top: 0; }
.jobs .job__more summary { border-top: 1px solid var(--line); }
.job__img { width: calc(100% + 2 * var(--p)); max-width: none; margin: calc(-1 * var(--p)) calc(-1 * var(--p)) 20px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px 15px 0 0; background: var(--sky); }
.job { --p: 26px; display: flex; flex-direction: column; padding: var(--p); border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s; }
.job:hover { border-color: #b7c7e8; }
.job[hidden] { display: none; }
.job__cat { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.job__pay { margin: 12px 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.job__pay span { font-size: 15px; font-weight: 400; color: var(--mute); }
.job__desc { color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { padding: 5px 10px; border-radius: 8px; background: var(--sky); color: var(--navy); font-size: 14px; font-weight: 500; }
.job__more { margin-top: 18px; border-top: 1px solid var(--line); }
.job__more summary { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; min-height: 44px; color: var(--blue); font-weight: 600; cursor: pointer; list-style: none; }
.job__more summary::-webkit-details-marker { display: none; }
.job__more summary::after, .faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.job__more[open] summary::after, .faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.job__more h4 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; color: var(--mute); }
.job__more li, .checks li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.job__more li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- 3. Довольствие ---------- */
.money { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pay th, .pay td { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: left; }
.pay thead th { padding-top: 0; font-size: 14px; font-weight: 500; color: #a9b8d6; }
.pay tbody th { font-weight: 500; font-size: 18px; }
.pay td, .pay thead th:last-child { text-align: right; }
.pay td { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }
.money__side { padding: 28px; border-radius: var(--r); background: var(--navy-2); }
.money__side h3 { margin-bottom: 18px; }
.checks li { padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' stroke='white' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center / 100%; }
.money__how { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); color: #c9d4ea; font-size: 15px; }
.money__how b { color: #fff; }
.fine { margin-top: 24px; color: #a9b8d6; font-size: 14px; max-width: 62em; }

/* ---------- 4. Условия ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols--one { grid-template-columns: minmax(0, 1fr); }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: #fff; }
.panel h3 { font-size: 26px; margin-bottom: 8px; }
.kv div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--mute); }
.kv dd { font-weight: 500; }

/* ---------- 5. Оформление ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding-top: 60px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: -8px; height: 2px; background: var(--sky-2); }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--mute); font-size: 15px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gallery img:first-child { aspect-ratio: auto; }

/* ---------- 6. Заявка ---------- */
.apply { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.apply .lead { color: #dbe4fb; margin: 16px 0 28px; }
.checks--inv li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' stroke='%231b4ddb' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); }
.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: #fff; color: var(--ink); }
.field { display: grid; gap: 8px; border: 0; }
.field > label, .field > legend { font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; color: var(--mute); margin-left: 6px; }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; resize: vertical; transition: border-color .15s; }
.field input::placeholder, .field textarea::placeholder { color: #8b96aa; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 77, 219, .15); }
.field input:user-invalid { border-color: #c62828; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: var(--sky); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; border-radius: 9px; font-weight: 500; transition: background .15s, color .15s; }
.seg input:checked + span { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 3px rgba(10, 31, 68, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--mute); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--blue); cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.form__msg:empty { display: none; }
.form__msg { padding: 14px 16px; border-radius: 12px; background: #e7f6ec; color: #135c2c; font-weight: 500; }
.form__msg.is-error { background: #fdecec; color: #a3201b; }

/* ---------- 7. FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--blue); }
.faq summary:hover { color: var(--blue); }
.faq p { padding-bottom: 22px; color: var(--mute); max-width: 44em; }

/* ---------- 8. Связь ---------- */
.contact { padding-bottom: clamp(64px, 8vw, 104px); }
.contact__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--navy); color: #fff; }
.contact__box p { margin-top: 10px; color: #c9d4ea; max-width: 34em; }

/* ---------- 9. Подвал ---------- */
.ftr { background: var(--sky); color: var(--mute); font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 48px 32px; }
.ftr__h { color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.ftr p + p { margin-top: 6px; }
.ftr a { color: var(--mute); }
.ftr a:hover { color: var(--blue); }
.ftr__base { padding-block: 20px 28px; border-top: 1px solid var(--sky-2); font-size: 14px; }

.dock { display: none; }

/* ---------- Юридические страницы ---------- */
.doc main { max-width: 820px; padding-block: 40px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin: 24px 0 16px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -.01em; }
.doc p, .doc__list { color: var(--mute); }
.doc p + p, .doc__list + p { margin-top: 10px; }
.doc__list { list-style: disc; padding-left: 22px; margin-top: 6px; }
.doc main > p:first-child a { font-weight: 600; text-decoration: none; }

/* ---------- Адаптив ---------- */
.nav a, .hdr .btn, .logo__txt b { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .hdr .btn { margin-left: auto; }
}
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps li:nth-child(3)::after { display: none; }
  .money, .apply, .faq-wrap, .cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav, .hdr .btn { display: none; }
  .hdr__in { justify-content: space-between; height: 60px; }
  .hero__grid, .cols, .ftr__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; border-radius: 18px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li { padding: 16px 20px; }
  .jobs { grid-template-columns: 1fr; }
  .job { --p: 22px; }
  .filter { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .pay tbody th { font-size: 16px; }
  .pay td { font-size: 18px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 8px 0 28px 60px; min-height: 72px; }
  .steps li::after, .steps li:nth-child(3)::after { display: block; top: 48px; bottom: 4px; left: 21px; right: auto; width: 2px; height: auto; }
  .steps li:last-child::after { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .contact__box .btn { width: 100%; }
  .ftr__base { padding-bottom: 96px; }

  .dock {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    min-height: 54px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 6px 20px rgba(10, 31, 68, .25); transition: transform .25s, opacity .25s;
  }
  .dock.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
}

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