:root {
  --navy: #0c1f44;
  --navy-2: #0a1838;
  --red: #e1342b;
  --red-dark: #c52a22;
  --tg: #29a9eb;
  --tg-dark: #1f93d2;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --text: #1b2436;
  --muted: #6b7488;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --border: #e7ebf2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 31, 68, .08);
  --shadow-lg: 0 20px 50px rgba(12, 31, 68, .15);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ФЛАГ UK ---------- */
.flag {
  width: 30px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.flag--sm { width: 22px; height: 13px; }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn__ico { width: 18px; height: 18px; flex-shrink: 0; }

.btn--tg { background: var(--tg); color: #fff; box-shadow: 0 6px 16px rgba(41, 169, 235, .35); }
.btn--tg:hover { background: var(--tg-dark); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225, 52, 43, .35); }
.btn--red:hover { background: var(--red-dark); }
.btn--lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn--lg .btn__ico { width: 20px; height: 20px; }
.btn--block { display: flex; width: 100%; }

.btn--red-outline {
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn--red-outline:hover { background: var(--red); color: #fff; }

/* ---------- ТОП-БАР ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy) 0%, #14306a 100%);
  color: #fff;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}
.topbar__item { font-weight: 600; }
.topbar__item--muted { color: #aebbd6; font-weight: 500; }

/* ---------- ХЕДЕР ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Белая полоса — на всю ширину экрана */
.header__bar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}
/* При прокрутке — только тень, высота остаётся прежней */
.header.scrolled .header__bar {
  box-shadow: 0 6px 24px rgba(12, 31, 68, .1);
  border-bottom-color: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo__flag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 10px;
  padding: 9px 8px;
}
.logo__flag .flag { box-shadow: none; }
.logo__text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.05;
  color: var(--navy);
}
.logo__text b { color: var(--red); }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text b { color: #fff; }

.nav {
  display: flex;
  gap: 28px;
  margin: 0 auto;
}
.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 6px 0;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { width: 100%; }

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header__label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
  text-align: center;
}
.header__btns { display: flex; gap: 8px; justify-content: center; }
.header__btns .btn { padding: 9px 15px; font-size: 13px; }
.header__btns .btn__ico { width: 16px; height: 16px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: .3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 21, 51, .95) 0%, rgba(8, 21, 51, .85) 45%, rgba(8, 21, 51, .4) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 76px 20px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: 66px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: 19px;
  color: #d7deea;
  margin-bottom: 28px;
}
.hero__list { margin-bottom: 34px; }
.hero__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 13px;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.check svg { width: 15px; height: 15px; color: #fff; }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat span {
  font-size: 14px;
  color: #b4c0d8;
}

/* ---------- СЕКЦИИ ---------- */
.section { padding: 82px 0; }
.section--gray { background: var(--bg-soft); }
.section__title {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: var(--navy);
  letter-spacing: -.5px;
}
.section__title--left { text-align: left; margin-bottom: 0; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
  flex-wrap: wrap;
  gap: 14px;
}
.link-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}
.link-all__ico { width: 18px; height: 18px; transition: transform .2s; }
.link-all:hover { text-decoration: underline; }
.link-all:hover .link-all__ico { transform: translateX(4px); }

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.feature:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.feature__icon {
  width: 78px; height: 78px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.feature__icon svg { width: 36px; height: 36px; }
.feature__icon--red { background: #fde9e8; color: var(--red); }
.feature__icon--green { background: #e4f8ec; color: #1ca35a; }
.feature__icon--blue { background: #e5f4fd; color: var(--tg); }
.feature__icon--orange { background: #fff1e3; color: #ef8c1b; }
.feature h3 { font-size: 18px; margin-bottom: 10px; color: var(--navy); }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- ПОЛОСА КОНТАКТОВ ---------- */
.contact-band {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #122a5c 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
  overflow: hidden;
}
.contact-band::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(225,52,43,.25) 0%, transparent 70%);
}
.contact-band__title { position: relative; font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.contact-band__sub { position: relative; color: #c4cee0; font-size: 17px; margin-bottom: 32px; }
.contact-band__btns { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- ВАКАНСИИ ---------- */
.vacancies {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.vacancy {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.vacancy:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vacancy__img { position: relative; height: 175px; overflow: hidden; }
.vacancy__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vacancy:hover .vacancy__img img { transform: scale(1.07); }
.vacancy__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(225,52,43,.4);
}
.vacancy__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.vacancy__body h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.vacancy__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.vacancy__pin { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
.vacancy__salary { color: var(--red); font-weight: 800; font-size: 17px; margin-bottom: 18px; }
.vacancy__body .btn { margin-top: auto; }

/* ---------- МОДАЛЬНОЕ ОКНО ВАКАНСИИ ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 51, .65);
  backdrop-filter: blur(4px);
  animation: fade .2s ease;
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .25s cubic-bezier(.2, .8, .3, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }

.modal__img {
  position: relative;
  height: 240px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__salary {
  position: absolute;
  left: 24px; bottom: 16px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: 0 8px 20px rgba(225, 52, 43, .45);
}

.modal__body { padding: 28px 30px 30px; }
.modal__title { font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.modal__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}
.modal__loc .vacancy__pin { width: 16px; height: 16px; color: var(--red); }
.modal__desc { color: #404a5e; font-size: 15px; margin-bottom: 24px; }

.modal__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}
.fact {
  background: var(--bg-soft);
  border-radius: 11px;
  padding: 12px 16px;
}
.fact__k { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fact__v { font-size: 15px; color: var(--navy); }

.modal__subtitle {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 800;
}
.modal__list { margin-bottom: 24px; }
.modal__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 15px;
  color: #404a5e;
}
.modal__list li::before {
  content: '';
  position: absolute;
  left: 6px; top: 9px;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.modal__list--check li::before {
  content: '✓';
  left: 0; top: 0;
  width: auto; height: auto;
  background: none;
  color: var(--wa);
  font-weight: 800;
}
.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.modal__actions .btn {
  flex: 1 1 0;
  min-width: 200px;
  max-width: 280px;
}

/* ---------- ОТЗЫВЫ (СЛАЙДЕР) ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.reviews {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.review {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.review__stars { color: #f5b50a; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.review__text { color: #404a5e; font-size: 15px; margin-bottom: 24px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review__author b { display: block; color: var(--navy); font-size: 15px; }
.review__author span { color: var(--muted); font-size: 13px; }

/* Навигация слайдера */
.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}
.slider__arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  flex-shrink: 0;
}
.slider__arrow:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.slider__arrow-ico { width: 20px; height: 20px; }
.slider__arrow-ico--left { transform: rotate(180deg); }
.slider__dots { display: flex; gap: 9px; }
.slider__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #cdd5e3;
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}
.slider__dot.active { background: var(--red); width: 28px; border-radius: 5px; }

/* ---------- ФУТЕР ---------- */
.footer { background: var(--navy-2); color: #fff; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 20px;
  flex-wrap: wrap;
}
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__nav a { color: #c4cee0; font-size: 15px; font-weight: 600; }
.footer__nav a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  color: #8794ab;
  font-size: 14px;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .vacancies { grid-template-columns: repeat(2, 1fr); }
  .review { flex: 0 0 calc((100% - 24px) / 2); }
  .nav, .header .header__contacts { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .burger { display: flex; margin-left: auto; }
  .hero__title { font-size: 48px; }
  .topbar__item--muted { display: none; }
}

@media (max-width: 560px) {
  .features, .vacancies { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; }
  .hero__subtitle { font-size: 16px; }
  .hero__stats { gap: 26px; }
  .stat b { font-size: 26px; }
  .section { padding: 58px 0; }
  .section__title { font-size: 28px; }
  .review { flex: 0 0 100%; }
  .footer__inner { flex-direction: column; text-align: center; }
}
