* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2d3d;
  background: #fff;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #e3e8ed;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo-link { display: flex; align-items: center; width: 52px; height: 52px; flex: 0 0 auto; }
.logo { width: 52px; height: 52px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; margin-right: auto; }
.main-nav a {
  color: #163d64;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.main-nav a:hover { color: #146ab4; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: #163d64;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.header-phone:hover { color: #146ab4; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px; padding: 7px;
  border: 1px solid #d1dce5; border-radius: 8px;
  background: #fff; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: #163d64; }

.btn {
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary { background: #146ab4; color: #fff; }
.btn-primary:hover { background: #0f5d9e; }
.btn-primary:disabled { opacity: .65; cursor: wait; }
.btn-large { min-height: 54px; min-width: 220px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, .modal-close:focus-visible, .social-toggle:focus-visible, .menu-toggle:focus-visible {
  outline: 3px solid rgba(20,106,180,.35);
  outline-offset: 3px;
}
main { padding-top: 72px; }
section[id] { scroll-margin-top: 88px; }

.hero {
  background:
    linear-gradient(90deg, rgba(8, 29, 48, .9) 0%, rgba(8, 29, 48, .74) 52%, rgba(8, 29, 48, .5) 100%),
    url("images/hero.jpg") center / cover no-repeat,
    #173e63;
  background-image: linear-gradient(90deg, rgba(8, 29, 48, .9) 0%, rgba(8, 29, 48, .74) 52%, rgba(8, 29, 48, .5) 100%), image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-inner { min-height: 350px; display: flex; align-items: center; padding: 46px 0; }
.hero-text { max-width: 790px; color: #fff; }
.hero h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
.hero p { max-width: 720px; margin: 0 0 12px; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }
.hero-facts { margin: 0 0 22px; color: rgba(255,255,255,.96); font-size: 16px; font-weight: 700; line-height: 1.45; }
.hero-facts span { margin: 0 6px; opacity: .7; }
.hero .btn { background: #fff; color: #163d64; }
.hero .btn:hover { background: #f2f6f9; }

.section { padding: 32px 0; }
.section-gray { background: #f3f5f7; }
h2 {
  margin: 0 0 17px;
  color: #163d64;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.section-subtitle { margin: -6px 0 17px; color: #66798a; font-size: 18px; }
.simple-grid { display: grid; gap: 14px; }
.simple-grid.three { grid-template-columns: repeat(3, 1fr); }
.simple-grid.two { grid-template-columns: repeat(2, 1fr); }

.city-list {
  margin: 0;
  padding: 0 0 0 28px;
  display: grid;
  gap: 10px;
  max-width: 920px;
}
.city-item { padding: 0 0 0 2px; }
.city-item::marker { color: #146ab4; }
.city-item strong { display: block; color: #163d64; font-size: 23px; line-height: 1.25; }
.city-item p { margin: 2px 0 0; color: #607485; }

.info-card {
  min-height: 94px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #dce3e9;
  border-radius: 12px;
  background: #fff;
}
.info-card strong.amount-line {
  display: block;
  color: #146ab4;
  font-size: clamp(18px, 2.1vw, 30px);
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.info-card span { color: #607485; }
.subsection-divider { height: 1px; margin: 24px 0 18px; background: #dfe6eb; }
.subsection-title { margin: 0 0 13px; color: #163d64; font-size: 22px; line-height: 1.2; }
.subsection-title.first { margin-top: 2px; }

.vacancy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; max-width: 930px; }
.vacancy {
  min-height: 48px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #dce3e9;
}
.vacancy strong { font-size: 18px; }
.vacancy span { color: #146ab4; font-weight: 700; white-space: nowrap; font-size: 15px; }
.date-note { margin: 13px 0 0; color: #778b9a; font-size: 13px; }
.center { display: flex; justify-content: center; margin-top: 20px; }


.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.plain-list li {
  position: relative;
  padding: 11px 16px 11px 35px;
  border: 1px solid #dce3e9;
  border-radius: 10px;
  background: #fff;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #146ab4;
}
.plain-list.compact { gap: 8px; }
.plain-list.compact li { border: 0; border-radius: 0; padding: 0 0 0 21px; background: transparent; }
.plain-list.compact li::before { left: 4px; top: 10px; width: 6px; height: 6px; }

.requirements {
  padding: 16px 18px;
  background: #f8fafb;
  border: 1px solid #dce3e9;
  border-left: 4px solid #146ab4;
  border-radius: 10px;
}
.requirements p { margin: 0 0 12px; }
.requirements p:last-child { margin-bottom: 0; }
.requirements strong { color: #163d64; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dce3e9;
  border-radius: 12px;
  background: #fff;
  color: #163d64;
}
.step-number {
  flex: 0 0 auto;
  color: #146ab4;
  font-size: 20px;
  font-weight: 700;
}

.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.social-card {
  padding: 18px;
  border: 1px solid #dce3e9;
  border-radius: 12px;
  background: #fff;
}
.social-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #163d64;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.social-toggle-icon { display: none; color: #146ab4; font-size: 25px; font-weight: 400; line-height: 1; }
.social-content { margin-top: 12px; }
.social-content[hidden] { display: none; }

.final-form-section { background: #edf5fb; }
.final-form {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
  border: 1px solid #dce3e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(27,57,82,.06);
}
.final-form h2 { margin-bottom: 10px; }
.final-form > div > p { margin: 0; color: #66798a; }
.application-form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  background: #fff;
  color: #1d2d3d;
}
.field input[aria-invalid="true"] { border-color: #c34232; }
.field-error { min-height: 18px; margin: -1px 0 0; color: #c34232; font-size: 13px; line-height: 1.35; }
.field-error:empty { display: none; }
.form-message { min-height: 22px; margin: 0; color: #c34232 !important; font-size: 14px; }

.site-footer {
  background: #fff;
  color: #607485;
  font-size: 12px;
  border-top: 1px solid #dce3e9;
}
.footer-inner { padding: 28px 0 26px; }
.footer-title { margin: 0 0 9px; color: #163d64; font-size: 14px; font-weight: 700; }
.footer-info { display: grid; gap: 4px; max-width: 900px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e7edf1;
}
.footer-links a { color: #146ab4; font-size: 12px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.mobile-sticky-cta { display: none; }

.modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal.is-open { display: flex; }
.modal { align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,25,39,.75); }
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  touch-action: pinch-zoom;
  overscroll-behavior: contain;
}
.modal-dialog h2 { margin: 0 40px 8px 0; font-size: 30px; }
.modal-form-subtext { margin: 0 0 20px; color: #66798a; font-size: 15px; line-height: 1.45; }
.modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 42px; height: 42px;
  border: 0;
  background: transparent;
  color: #6d7d8a;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .container { width: min(100% - 28px, 700px); }
  .header-inner { gap: 14px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 14px; }
  .menu-toggle { display: block; }
  .header-btn { min-height: 42px; padding: 9px 14px; font-size: 14px; }
  .header-phone { font-size: 14px; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid #dce3e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(27,57,82,.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; font-size: 16px; }
  .simple-grid.three, .steps { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .final-form { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .container { width: calc(100% - 20px); }
  .site-header { height: 64px; }
  main { padding-top: 64px; }
  section[id] { scroll-margin-top: 76px; }
  .logo-link, .logo { width: 46px; height: 46px; }
  .header-inner { gap: 8px; }
  .header-actions { margin-left: auto; }
  .header-phone { display: none; }
  .header-btn { display: none; }
  .main-nav { top: 64px; left: 10px; right: 10px; }

  .hero-inner { min-height: 285px; padding: 32px 0; }
  .hero h1 { margin-bottom: 15px; font-size: 35px; }
  .hero p { font-size: 18px; }
  .hero-facts { margin-bottom: 18px; font-size: 14px; }
  .hero .btn { display: none; }

  .section { padding: 26px 0; }
  h2 { font-size: 29px; margin-bottom: 16px; }
  .section-subtitle { margin-bottom: 14px; font-size: 17px; }
  .city-list { gap: 8px; padding-left: 27px; }
  .city-item strong { font-size: 20px; }
  .city-item p { font-size: 16px; }

  .simple-grid.two, .vacancy-grid, .steps { grid-template-columns: 1fr; }
  .info-card { min-height: 82px; padding: 12px 14px; }
  .info-card strong.amount-line { font-size: clamp(18px, 6vw, 26px); }
  .subsection-divider { margin: 19px 0 15px; }
  .subsection-title { font-size: 20px; margin-bottom: 11px; }

  .vacancy { min-height: 48px; }
  .vacancy strong { font-size: 17px; }
  .vacancy span { font-size: 14px; }
  .center { margin-top: 20px; }

  .plain-list li { padding: 10px 13px 10px 33px; }
  .plain-list li::before { left: 14px; top: 20px; width: 7px; height: 7px; }
  .requirements { padding: 16px 17px; }

  .social-card { padding: 14px; }
  .social-toggle { font-size: 20px; }
  .social-toggle-icon { display: block; }
  .social-content { margin-top: 13px; }

  .final-form { padding: 16px; }
  .btn-large { min-width: 0; width: 100%; }
  .modal { padding: 8px; }
  .modal-dialog { max-height: calc(100dvh - 16px); padding: 26px 20px 22px; }
  .footer-links { flex-direction: column; gap: 7px; }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 900;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: calc(100% - 20px);
  }
  .mobile-sticky-btn {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: #146ab4;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(11,48,78,.22);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .mobile-sticky-btn:hover { background: #0f5d9e; }
  .mobile-sticky-call {
    border: 0;
    background: #146ab4;
    color: #fff;
  }
  .mobile-sticky-call:hover { background: #0f5d9e; color: #fff; }
  body.modal-open .mobile-sticky-cta { display: none; }
}

.thanks { min-height: calc(100dvh - 72px); display: grid; place-items: center; background: #f3f5f7; }
.thanks-card { max-width: 650px; margin: 0 auto; padding: 42px; text-align: center; border: 1px solid #dce3e9; border-radius: 14px; background: #fff; }
.thanks-card h1 { margin: 0 0 16px; color: #163d64; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.thanks-card p { margin: 0 auto 26px; color: #66798a; font-size: 19px; }
@media (max-width: 620px) { .thanks { min-height: calc(100dvh - 64px); } .thanks-card { padding: 32px 20px; } }


.legal-page {
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0 0 26px;
  color: #163d64;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.legal-page h2 {
  margin: 30px 0 10px;
  color: #163d64;
  font-size: 22px;
  line-height: 1.25;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p {
  margin: 0 0 12px;
}

.legal-page ul {
  margin: 0 0 14px;
  padding-left: 25px;
}

.legal-page li {
  margin-bottom: 7px;
}

.legal-page .legal-note {
  color: #697c8c;
  font-size: 14px;
}

.legal-page .legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: #146ab4;
  text-decoration: none;
  font-weight: 700;
}

.legal-page .legal-back:hover {
  text-decoration: underline;
}

.thanks-button { text-decoration: none !important; }

.vacancy-section-gap {
  border-top: 1px solid #e3e8ed;
}
