:root {
  --navy: #10243f;
  --navy-2: #18355a;
  --blue: #1677ff;
  --red: #e31c3d;
  --ink: #122033;
  --muted: #4d5d72;
  --line: #d7e0ea;
  --bg: #eef3f8;
  --h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--h);
  background: var(--navy);
  color: #fff;
}
.header__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: #d5e4f5; }
.nav a:hover { color: #fff; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-full { width: 100%; }

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  color: #fff;
}
.hero__img, .hero__shade { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  background: linear-gradient(90deg, rgba(10, 24, 44, 0.88) 0%, rgba(10, 24, 44, 0.35) 70%);
}
.hero__in { position: relative; z-index: 1; padding: 56px 0 48px; max-width: 640px; margin-left: max(16px, calc((100% - 1080px) / 2)); }
.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.lead { margin: 0 0 20px; color: #dce6f2; font-size: 17px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
  margin: 0;
  color: #ffb3bf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag-blue { color: var(--blue); }

.bar { background: var(--blue); color: #fff; }
.bar__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px 0;
}
.bar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bar b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.bar__item > div { flex: 1; min-width: 0; }
.bar__item > div span { font-size: 13px; opacity: 0.85; }
.bar .ico { margin: 0; flex: 0 0 42px; }

.block { padding: 48px 0; }
.block-navy { background: var(--navy); color: #fff; }
.block-gray { background: #dce6f0; }
.block h2 {
  margin: 8px 0 20px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}
.about img { width: 100%; height: 240px; object-fit: cover; border-radius: 16px; }
.about p { color: var(--muted); }

.dirs, .who, .how {
  display: grid;
  gap: 12px;
}
.dirs { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  min-height: 148px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 18px rgba(0, 0, 0, 0.12),
    0 10px 22px rgba(16, 36, 63, 0.22);
}
.card__main { min-width: 0; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; opacity: 0.88; }
.ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.16);
}
.ico svg { width: 22px; height: 22px; display: block; }
.card-blue { background: linear-gradient(180deg, #3b8fff 0%, #1677ff 58%, #0d5fd4 100%); }
.card-navy { background: linear-gradient(180deg, #274872 0%, #18355a 58%, #122845 100%); }
.card-red { background: linear-gradient(180deg, #f0435c 0%, #e31c3d 58%, #c31430 100%); }
.card-steel { background: linear-gradient(180deg, #3b8893 0%, #2a6f7a 58%, #1f5861 100%); }

.who { grid-template-columns: repeat(3, 1fr); }
.who article {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #23466f 0%, #18355a 100%);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(0, 0, 0, 0.22);
}
.who .ico { margin: 0; }

.how { grid-template-columns: repeat(4, 1fr); }
.how div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  border-left: 4px solid var(--blue);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 18px rgba(16, 36, 63, 0.1);
}
.how i {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-style: normal;
  font-weight: 800;
}
.how p { margin: 0; font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filter-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.is-active { background: var(--navy); color: #fff; }

.vacancy-list { display: grid; gap: 8px; }
.vacancy {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.vacancy__top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.vacancy h3 { margin: 0; font-size: 16px; }
.vacancy__salary { color: var(--red); font-weight: 800; }
.vacancy__meta, .vacancy__more { color: var(--muted); font-size: 13px; font-weight: 700; }
.vacancy__more { color: var(--blue); }
.vacancy__body {
  display: none;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  padding: 0 16px 16px;
}
.vacancy.is-open .vacancy__body { display: grid; }
.vacancy__body h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.vacancy__body ul { margin: 0; padding-left: 16px; color: var(--muted); }

.cta {
  background: var(--red);
  color: #fff;
  padding: 40px 0;
}
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0 0 16px; }
.cta .btn-red { background: #fff; color: var(--red); }

.footer {
  background: #0b1a2e;
  color: #9eb0c4;
  padding: 24px 0 100px;
  font-size: 14px;
}
.footer__in {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}
.footer b { color: #fff; }
.footer p { margin: 6px 0 0; }
.footer__links { display: grid; gap: 6px; }
.footer__links a { color: #d5e4f5; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.check a { color: var(--blue); }

.cookies {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  background: #0b1a2e;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(16, 36, 63, 0.28);
}
.cookies p { margin: 0; font-size: 13px; }
.cookies a { color: #9ec4ff; }
.cookies__btns { display: flex; gap: 8px; flex-shrink: 0; }
body.has-cookies .mob { display: none !important; }

.legal-page { background: #fff; }
.legal { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 80px; }
.legal h1 { margin: 8px 0 10px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; }
.legal h2 { margin: 28px 0 10px; font-size: 20px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--blue); }
.legal code { font-size: 13px; }
.legal ul { padding-left: 18px; }
.legal-meta { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.legal-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.legal-nav a.is-on { background: var(--navy); color: #fff; }

.mob {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
}
.mob.is-visible { display: flex; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 40; }
.modal__bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal__box {
  position: relative;
  width: min(440px, calc(100% - 24px));
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
}
.modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}
form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
input {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.check { grid-template-columns: 18px 1fr; align-items: center; color: var(--ink); }
.check input { width: 18px; height: 18px; padding: 0; }
.form-error { margin: 0; color: var(--red); font-size: 13px; }

@media (max-width: 800px) {
  .nav {
    display: none;
    position: fixed;
    inset: var(--h) 0 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: var(--navy);
    gap: 16px;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { display: flex; }
  .burger { display: block; }
  .hero { min-height: 360px; }
  .hero__in { margin-left: 16px; padding: 36px 0 28px; width: calc(100% - 32px); }
  .bar__in, .dirs, .who, .how, .about, .vacancy__top, .vacancy__body, .footer__in {
    grid-template-columns: 1fr 1fr;
  }
  .about { display: grid; }
  .about img { height: 160px; }
}

@media (max-width: 640px) {
  .bar__in, .dirs, .who, .how, .about, .vacancy__body, .footer__in {
    grid-template-columns: 1fr;
  }
  .vacancy__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .vacancy__top h3 { width: 100%; }
  .btns { display: grid; }
  .hero__shade { background: linear-gradient(180deg, rgba(10,24,44,0.35), rgba(10,24,44,0.88)); }
  .mob { display: none; }
  .mob.is-visible { display: flex; }
  .cookies { flex-direction: column; align-items: stretch; }
  .cookies__btns { display: grid; }
}
