

/* Start:/local/templates/mrls/assets/css/style.css?177859067344027*/
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

input,
button,
textarea {
  outline: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input,
textarea {
  display: block;
}

button,
a {
  cursor: pointer;
}

button {
  background: transparent;
}

button:disabled {
  cursor: not-allowed;
}

a {
  text-decoration: none;
  color: inherit;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

p:not(:last-child) {
  margin-bottom: 8px;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/local/templates/mrls/assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* Для переменного веса */
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #002e5c;
  --gray: #09152a;
  --gray-2: #b0bac3;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--gray);
}

.uppercase {
  text-transform: uppercase;
}

ul li {
  list-style: none;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

ul li:last-of-type {
  margin-bottom: 0;
}

ul li::before {
  content: '';
  height: 6px;
  width: 6px;
  background: var(--primary);
  border-radius: 100%;

  position: absolute;
  top: 8px;
  left: 0;
}

.w-100 {
  width: 100% !important;
}

section,
.content-width {
  width: 100%;
  max-width: 1280px;
  padding: 0 40px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section,
  .content-width {
    padding: 0 16px;
  }
}

.full-width {
  max-width: unset;
  padding: 0;
}

.nice-scrollbar::-webkit-scrollbar {
  height: 4px;
  width: 2px;
}

.nice-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.nice-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--gray-2);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.d-none {
  display: none !important;
}

.text-center {
  text-align: center;
}

.font-600 {
  font-weight: 600;
}

.text-48,
h1 {
  font-size: 48px;
  line-height: 60px;
  font-weight: 900;
}

.text-24 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.text-20,
h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.text-28,
h2 {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  text-transform: uppercase;
}

.text-24-14 {
  font-size: 24px;
  line-height: 32px;
}

a.with-underline {
  transition: all 0.2s;
}

a.with-underline:hover {
  text-decoration: underline;
}

a.with-underline-always {
  text-decoration: underline;
}

a.with-underline-always:hover {
  text-decoration: none;
}

.text-16,
body {
  font-size: 16px;
  line-height: 24px;
}

.text-16-always {
  font-size: 16px;
  line-height: 24px;
}

p,
div,
a,
span {
  font-size: inherit;
  line-height: inherit;
}

.text-12 {
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 1224px) {
  .text-48,
  h1 {
    font-size: 44px;
    line-height: 48px;
  }
}

@media (max-width: 768px) {
  .text-48,
  h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .text-16,
  body {
    font-size: 14px;
    line-height: 20px;
  }

  .text-24,
  h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .text-28,
  h2 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
  }

  .text-24-14 {
    font-size: 14px;
    line-height: 24px;
  }

  .text-20,
  h3 {
    font-size: 16px;
    line-height: 24px;
  }
}

.btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  transition: all 0.2s;
  font-weight: 600;
}

.btn.noborder {
  border: none;
  padding: 0;
  background-color: transparent !important;
  color: var(--primary) !important;
}

.btn.noborder:hover {
  opacity: 0.6;
}

.btn:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  border: 2px solid white;
  color: white;
}

.btn-white:hover {
  background: white;
  color: var(--primary);
}

/* images */
.btn-arrow-img {
  height: 12px;
  width: 12px;
  background: url('/local/templates/mrls/assets/images/btn-arrow-blue-12.png');
  background-size: 12px;
  transition: all 0.2s;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.btn-arrow-img.s-16 {
  height: 16px;
  width: 16px;
  background: url('/local/templates/mrls/assets/images/btn-arrow-blue-16.png');
  background-size: 16px;
}

.btn:hover {
  .btn-arrow-img {
    background: url('/local/templates/mrls/assets/images/btn-arrow-white-12.png');
    background-size: 12px;
  }

  .btn-arrow-img.s-16 {
    background: url('/local/templates/mrls/assets/images/btn-arrow-white-16.png');
    background-size: 16px;
  }
}

.btn-white .btn-arrow-img {
  background: url('/local/templates/mrls/assets/images/btn-arrow-white-12.png');
  background-size: 100%;
}

.btn-white .btn-arrow-img.s-16 {
  background: url('/local/templates/mrls/assets/images/btn-arrow-white-16.png');
  background-size: 100%;
}

.btn-white:hover {
  .btn-arrow-img {
    background: url('/local/templates/mrls/assets/images/btn-arrow-blue-12.png');
    background-size: 100%;
  }

  .btn-arrow-img.s-16 {
    background: url('/local/templates/mrls/assets/images/btn-arrow-blue-16.png');
    background-size: 100%;
  }
}

/* arrow-right */
.btn-arrow-right-img {
  height: 12px;
  width: 12px;
  background: url('/local/templates/mrls/assets/images/btn-arrow-right-blue-12.png');
  background-size: 12px;
  transition: all 0.2s;
  background-repeat: no-repeat;
}

.btn:hover {
  .btn-arrow-right-img {
    background: url('/local/templates/mrls/assets/images/btn-arrow-right-white-12.svg');
    background-size: 12px;
  }
}

.m-auto {
  margin: 0 auto;
}

.mainpage-first {
  height: 820px;
  color: white;
  position: relative;

  img {
    height: 820px;
    width: 100%;
  }
}

.mainpage-first .swiper-slide {
  height: 820px !important;
}

.color-primary {
  color: var(--primary);
}

.mb-100 {
  margin-bottom: 100px;
}

.mb-80 {
  margin-bottom: 80px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-40-24 {
  margin-bottom: 40px;
}

.mb-36 {
  margin-bottom: 36px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .mb-100 {
    margin-bottom: 80px;
  }

  .mb-40-24 {
    margin-bottom: 24px;
  }
}

.mainpage-first .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #011d47b2;
  z-index: 2;
}

.mainpage-first {
  .content {
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
  }

  .swiper-slide {
    height: 820px !important;
  }

  .content {
    z-index: 3;
  }

  .swiper-navigation {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: flex-end;
  }

  h2 {
    max-width: 1000px;
  }

  p {
    margin-top: 16px;
    margin-bottom: 40px;
  }

  .btn {
    font-size: 24px;
    text-transform: uppercase;
  }

  .btn-arrow-img {
    height: 16px;
    width: 16px;
  }
}

@media (max-width: 1224px) {
  .mainpage-first {
    height: 700px;

    img {
      height: 700px;
    }

    .swiper-slide {
      height: 700px !important;
    }

    .content {
      top: 200px !important;
    }
  }
}

@media (max-width: 768px) {
  .mainpage-first {
    .content {
      top: 135px;
    }

    .btn {
      font-size: 16px;
    }

    p {
      margin-top: 8px;
      margin-bottom: 24px;
    }

    .swiper-navigation {
      justify-content: space-between;
    }

    .swiper-controls {
      gap: 24px !important;
    }
  }
}

.swiper-navigation {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 10;
}

.swiper-controls {
  display: flex;
  gap: 16px;
}

.mainpage-first .swiper-controls {
  gap: 40px;
}

.swiper-prev,
.swiper-next {
  height: 40px;
  width: 40px;
  cursor: pointer;
  background: url('/local/templates/mrls/assets/images/arrow-blue.png');
}

.swiper-prev.white,
.swiper-next.white {
  background: url('/local/templates/mrls/assets/images/arrow-white.png');
}

.swiper-next {
  transform: rotate(180deg);
}

.swiper-prev:hover,
.swiper-next:hover {
  background: url('/local/templates/mrls/assets/images/arrow-blue-hover.png');
}

.swiper-prev.white:hover,
.swiper-next.white:hover {
  background: url('/local/templates/mrls/assets/images/arrow-white-hover.png');
}

.swiper-controls.white .swiper-prev,
.swiper-controls.white .swiper-next {
  background: url('/local/templates/mrls/assets/images/arrow-white.png');
}

.swiper-controls.white .swiper-prev:hover,
.swiper-controls.white .swiper-next:hover {
  background: url('/local/templates/mrls/assets/images/arrow-white-hover.png');
}

.slide-counter {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
}

/* --- Обновленные стили для главного баннера --- */

:root {
  --yellow: #deb459; /* Желтый цвет из макета */
}

/* Высота баннера и базовое позиционирование */
.mainpage-first {
  color: white;
  position: relative;
}

/* Убираем старое синее затемнение, если оно было в старом коде */
.mainpage-first .swiper-slide::after {
  display: none;
}

/* Картинка на фоне */
.mainpage-first img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Позиционирование контента внутри слайда */
.mainpage-first .content {
  position: absolute;
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: left; /* Выравнивание по левому краю как на скрине */
}

/* Типографика баннера */
.det-subtitle {
  color: var(--yellow);
  /* font-size: 28px; */
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
}

.det-title {
  font-size: 80px;
  line-height: 90px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.det-desc {
  /* font-size: 20px; */
  /* line-height: 1.4; */
  margin-bottom: 40px;
  width: fit-content;
}

/* Кнопка на баннере */
.det-btn {
  font-size: 16px !important;
  border: 2px solid white !important; /* Тонкий бордер как на скрине */
  padding: 0 24px;
  height: 48px;
  letter-spacing: 0.5px;
}

.det-btn:hover {
  background: white;
  color: var(--primary);
}

/* --- Навигация и счетчик (внизу справа) --- */
.mainpage-first .swiper-navigation {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  justify-content: flex-end; /* Прижимаем вправо */
  align-items: center;
  gap: 40px;
}

.det-controls {
  display: flex;
  gap: 24px !important;
}

/* Квадратные кнопки со стрелками (SVG через background) */
.swiper-prev-sq,
.swiper-next-sq {
  width: 40px;
  height: 40px;
  border: 1px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;

  display: grid;
  place-items: center;
}

/* Ховер квадратных стрелок (заливка белым, стрелка черная) */
.swiper-prev-sq:hover,
.swiper-next-sq:hover {
  background-color: white;

  svg path {
    stroke: rgba(0, 46, 92, 1);
  }
}

/* --- Адаптив (постепенное уменьшение высоты и шрифтов) --- */

@media (max-width: 1440px) {
  .mainpage-first {
    /* height: 720px; */
  }
  .det-title {
    /* font-size: 64px; */
  }
  .det-subtitle {
    /* font-size: 24px; */
  }
}

@media (max-width: 1200px) {
  .mainpage-first {
    height: 700px;
  }
}

@media (max-width: 1024px) {
  .det-title {
    margin-bottom: 16px;
  }
}

header .logo .mobile-logo {
  display: none;
}

@media (max-width: 768px) {
  /* header .logo path {
    fill: red;
    stroke: red;
  } */

  header .logo .desktop-logo {
    display: none;
  }

  header .logo .mobile-logo {
    display: block;
  }

  header .mobile-menu-opener path {
    stroke: var(--primary);
  }

  header .header-content {
    border-bottom: 1px solid rgba(0, 46, 92, 1) !important;
  }

  .det-subtitle {
    font-size: 18px !important;
    line-height: 24px !important;
  }

  /* 1. Сбрасываем высоту и задаем белый фон для секции */
  .mainpage-first {
    height: fit-content;
    background-color: #ffffff; /* Белый фон для текста */
    padding-top: 112px; /* Отступ сверху (под шапкой) */
  }

  /* 2. Переворачиваем контент: текст наверх, картинка вниз */
  .mainpage-first .swiper-slide {
    display: flex;
    flex-direction: column-reverse; /* Меняем порядок элементов */
    height: auto !important;
  }

  /* 3. Настройки картинки */
  .mainpage-first img {
    position: relative;
    min-height: 200px;
    width: 100%;
    aspect-ratio: 520 / 220;
    width: 100%;
    object-fit: cover;
    margin-top: 40px; /* Тот самый отступ 40px между текстом и фоткой */
    z-index: 1;
  }

  /* 4. Настройки текстового блока */
  .mainpage-first .content {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none;
    width: 100%;
    padding: 0 16px; /* Боковые отступы (подстройте под ваш контейнер) */
    box-sizing: border-box;
  }

  /* 5. Перекрашиваем текст и кнопку в темно-синий */
  .det-title {
    color: #002e5c; /* Ваш фирменный синий цвет */
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 8px;
  }

  .det-desc {
    color: #002e5c;
    font-size: 16px;
    font-weight: 600; /* Делаем чуть жирнее, как на макете */
    margin-bottom: 24px;
    height: 48px;
  }

  .det-btn {
    color: #002e5c !important; /* Синий текст */
    border-color: #002e5c !important; /* Синяя рамка */
    width: 100%;
    margin: 0;
    background-color: transparent;
  }

  /* 6. Позиционируем навигацию ПОВЕРХ картинки в самом низу */
  .mainpage-first .swiper-navigation {
    transform: none !important;
    position: absolute;
    bottom: 24px; /* Отступ от нижнего края картинки */
    left: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
  }

  /* Счетчик делаем белым, чтобы читался на фото */
  .mainpage-first .slide-counter {
    color: #ffffff;
  }
}

/* */
footer {
  background: var(--primary);
  color: white;
  padding: 40px 0 !important;
}

.footer-content {
  display: flex;
  flex-wrap: wrap; /* Позволяет блокам переноситься на новую строку */
  gap: 40px; /* Отступ между первой и второй колонкой */
  padding-bottom: 64px;
}

footer {
  .nav-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-weight: 600;
  }

  .nav-col a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .nav-col a:hover {
    opacity: 0.8;
  }

  .socials-col {
    display: flex;
    gap: 16px;
    margin-left: auto; /* Именно это прижимает 3-ю колонку вправо (создает эффект space-between) */
  }

  .links a {
    display: flex;
    transition: opacity 0.2s ease;
  }

  .links a:hover {
    opacity: 0.8;
  }

  .social-icon img,
  .social-icon svg {
    width: 32px;
    height: 32px;
    display: block;
  }
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #19436c; /* Ваш текущий цвет разделителя */
}

.footer-copyright br {
  display: none;
}

/* --- Адаптив --- */

@media (max-width: 1200px) {
  .footer-content {
    gap: 40px;
    row-gap: 24px;
    padding-bottom: 40px;
  }

  .footer-copyright br {
    display: block;
  }

  footer {
    .socials-col {
      width: 100%; /* Заставляет блок занять всю ширину и упасть под первые две колонки */
      margin-left: 0; /* Сбрасываем прижатие вправо */
    }
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 16px;
  }

  .footer-copyright br {
    display: none;
  }

  footer .nav-col {
    gap: 16px;
  }

  footer {
    padding-bottom: 24px !important;

    .socials-col {
      width: auto;
      margin-top: 8px;
    }
  }

  .footer-copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* */
.form-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 120;
  max-width: 794px;
  height: 90vh;
  max-height: fit-content;
  width: calc(100% - 32px);
  padding-right: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.form-popup .close {
  position: absolute;
  top: 0;
  right: -40px;
}

.form-popup h3 {
  margin-bottom: 40px;
}

.form-popup .input-wrapper {
  margin-bottom: 16px;
}

.form-popup form,
.form-popup .content {
  overflow: auto;
  height: fit-content;
  max-height: 100%;
  padding-top: calc(60px - 24px);
  padding-bottom: calc(60px - 24px);
  padding-left: 60px;
  padding-right: calc(60px - 8px);
}

@media (max-width: 900px) {
  .form-popup form,
  .form-popup .content {
    padding-top: calc(40px - 24px);
    padding-bottom: calc(40px - 24px);
    padding-left: 24px;
    padding-right: calc(24px - 8px);
  }

  .form-popup .close {
    top: -40px;
    right: 0;
  }
}

.file-drop-area {
  margin-bottom: 16px;
}

.file-drop-area label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--primary);

  padding: 28px;
  text-align: center;
  cursor: pointer;

  position: relative;
}

.file-drop-area .input-title {
  position: absolute;
  top: 0;
  left: 8px;
  transform: translateY(-50%);
  padding: 0 4px;
  background-color: white;
  font-size: 14px;
  line-height: 24px;
  color: var(--primary);
  font-weight: 600;
}

.file-drop-area label span {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--gray-2);
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
}

.file-drop-area label:hover span {
  color: var(--primary);
}

.files-drop-list {
  display: flex;
  gap: 16px;

  margin: 8px 0;
  margin-top: -8px;

  line-height: 24px;
  color: var(--primary);

  button {
    display: flex;
  }
}

/* */
.documents-form-popup {
  .docs-lists {
    display: flex;
    gap: 40px;
  }

  ul li {
    margin-bottom: 6px;
    padding-left: 18px;
  }

  ul li::before {
    left: 6px;
  }
}

@media (max-width: 600px) {
  .documents-form-popup {
    .docs-lists {
      flex-direction: column;
      gap: 0;
    }
  }
}

.overlay.active {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;

  background: #002e5c80;
  backdrop-filter: blur(4px);
  z-index: 19;
}

body:has(.overlay.active) {
  overflow: hidden;
}

/* */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-input {
  width: 100%;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.form-input {
  position: relative;
  margin-bottom: 20px;

  input,
  textarea {
    width: 100%;
    border: 2px solid var(--primary);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
  }

  input::placeholder,
  textarea::placeholder {
    color: var(--gray-2);
  }

  .input-title {
    position: absolute;
    top: 0;
    left: 8px;
    transform: translateY(-50%);
    padding: 0 4px;
    background-color: white;
    font-size: 14px;
    line-height: 24px;
    color: var(--primary);
    font-weight: 600;
  }

  textarea {
    resize: none;
    height: 80px;
  }
}

input[type='checkbox'] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #002e5c;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s ease;
}

input[type='checkbox']:hover {
  border-color: #001a35;
}

input[type='checkbox']:checked {
  background: url('/local/templates/mrls/assets/checkbox-checked.png');
  border: none;
}

input[type='checkbox']:checked:hover {
  opacity: 0.8;
}

form label {
  margin-top: 24px;
}

form .btn-row {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  row-gap: 16px;
  flex-wrap: wrap;
}

.footnote {
  color: var(--gray-2);
}

label {
  cursor: pointer;
  display: flex;
  gap: 8px;
}

header {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  top: 0;
  color: white;
  width: 100%;

  .header-content {
    border-bottom: 1px solid white;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .logo {
    display: block;
    height: 40px;
    width: fit-content;
  }

  .logo img {
    height: 100%;
  }

  .rest {
    display: flex;
    gap: 48px;
    align-items: center;
  }

  nav {
    display: flex;
    gap: 40px;
    align-items: center;
  }

  nav a {
    color: white;
    font-weight: 700;
  }

  .links {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .mobile-menu-opener {
    display: none;
  }
}

body:has(.mainpage-first) {
  header {
    position: absolute;
  }
}

body:not(:has(.mainpage-first)) header {
  position: relative;
  color: var(--primary);

  .header-content {
    border-bottom: 1px solid rgba(0, 46, 92, 0.1);
  }

  nav a {
    color: var(--primary);
  }

  .desktop-logo {
    display: none;
  }

  .mobile-logo {
    display: block !important;
  }

  .mobile-menu-opener path {
    stroke: var(--primary);
  }
}

@media (max-width: 1224px) {
  header {
    nav,
    .links {
      display: none;
    }

    .mobile-menu-opener {
      display: flex;
    }

    .header-content {
      padding: 16px 0;
    }
  }
}

@media (max-width: 768px) {
  header {
    .logo {
      height: 34px;
    }
  }
}

/* 1) базовое состояние – меню уехало вправо за экран */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 240px;
  transform: translateX(100%);
  transition: transform 0.3s ease; /* анимация выезда */
  background: white;
  padding: 64px 24px;
  z-index: 20;

  .close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  a {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
  }

  .links {
    margin-top: 24px;
    display: flex;
    gap: 8px;
  }
}

/* 2) активное состояние – меню на месте */
.mobile-menu.active {
  transform: translateX(0);
}

.contacts-and-order-section {
  display: flex;
  gap: 16px;
  h2 {
    margin-bottom: 40px;
  }

  .contacts-part,
  .order-part {
    width: 100%;
  }

  .contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
  }

  .contacts a,
  .contacts div {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 24px;
  }

  .socials {
    display: flex;
    gap: 8px;
  }

  .socials a {
    display: flex;
  }
}

@media (max-width: 768px) {
  .contacts-and-order-section {
    flex-direction: column;
    gap: 52px;
  }
}

.breadcrumbs {
  margin-top: 40px;
  margin-bottom: 40px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gray-2);
}

/* Настройка сетки (перевели на Flexbox для разной ширины в рядах) */
.naznacenie-grid {
  display: flex;
  flex-wrap: wrap; /* Разрешаем перенос блоков на новые строки */
  gap: 16px;
}

/* Общие стили для всех плашек */
.grid-item-numbered,
.grid-item-bordered {
  background-color: #e8ecef;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  box-sizing: border-box; /* Обязательно для правильных расчетов ширины */
}

.grid-item-bordered {
  align-items: center;
}

.grid-item-numbered span,
.grid-item-bordered span {
  position: relative;
  z-index: 2;
}

.grid-item-numbered svg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
}

/* Рамка для последних двух блоков */
.grid-item-bordered {
  border-left: 4px solid #002e5c;
  padding-left: 12px;
}

/* === ДЕСКТОП (Распределение ширин: 389px, 491px, 288px) === */
@media (min-width: 1024px) {
  /* 
     Всего ширина ~1168px.
     389 от 1168 = ~33.3%
     491 от 1168 = ~42.0%
     288 от 1168 = ~24.7%
     В calc() мы отнимаем долю от суммы отступов gap (2 отступа по 16px = 32px)
  */
  .grid-item-numbered:nth-child(1) {
    width: calc(33.3% - 10.6px);
  }
  .grid-item-numbered:nth-child(2) {
    width: calc(42% - 13.5px);
  }
  .grid-item-numbered:nth-child(3) {
    width: calc(24.7% - 7.9px);
  }

  /* Нижние две пополам (минус 8px, так как между ними один gap 16px) */
  .grid-item-bordered {
    width: calc(50% - 8px);
  }
}

/* === АДАПТИВНОСТЬ (Mobile & Tablet) === */
@media (max-width: 1023px) {
  .grid-item-numbered,
  .grid-item-bordered {
    width: 100%;
  }
}

.grazhdanskiy__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Две колонки */
  gap: 16px;
  align-items: start;
}

.grazhdanskiy__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px; /* Отступы между строками слева */
}

.grazhdanskiy__item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.grazhdanskiy__icon {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.grazhdanskiy__icon svg,
.grazhdanskiy__icon img {
  max-width: 100%;
  height: auto;
}

.grazhdanskiy__list {
  margin: 0;
}

.grazhdanskiy__list li {
  margin-bottom: 0px;
}

.grazhdanskiy__image {
  height: 100%;
}

.grazhdanskiy__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Чтобы картинка заполняла высоту, если нужно */
  display: block;
}

@media (max-width: 1023px) {
  .grazhdanskiy__image {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* Мобильная версия */
@media (max-width: 768px) {
  .grazhdanskiy__grid {
    grid-template-columns: 1fr; /* В одну колонку на планшетах/телефонах */
    gap: 24px;
  }

  .grazhdanskiy__grid svg {
    width: 66px;
  }

  .grazhdanskiy__item {
    gap: 8px;
  }
}

.osobennosti__flex {
  display: flex;
  gap: 16px; /* Расстояние между картинкой и текстом */
  align-items: stretch; /* Растягиваем элементы на всю высоту */
}

.osobennosti__image {
  width: 389px;
  flex-shrink: 0; /* Запрещаем сжиматься */
}

.osobennosti__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Картинка заполняет всю высоту блока */
  display: block;
}

.osobennosti__content {
  flex-grow: 1; /* Занимает все оставшееся пространство */
  display: flex;
  flex-direction: column;
  gap: 16px; /* Отступы между текстовыми блоками */
}

.osobennosti__title {
  margin-bottom: 4px;
  font-weight: 700;
}

.osobennosti__desc {
  margin: 0;
}

/* Адаптив */
@media (max-width: 900px) {
  .osobennosti__flex {
    flex-direction: column;
    gap: 24px;
  }

  .osobennosti__image {
    width: fit-content;
    max-width: 100%;
    max-height: 320px;
    aspect-ratio: 288 / 320;
  }
}

.benefits-grid {
  display: grid;
  /* Сетка в 3 колонки с отступом 16px */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-card {
  padding: 24px;
  border: 2px solid #b0bac3; /* Цвет рамки как на макете */
  display: flex;
  flex-direction: column;
}

/* Первый блок без рамки и с выравниванием по левому краю */
.first-benefit {
  border: none;
  padding: 0;
}

/* Адаптивность: 2 колонки на планшетах */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Адаптивность: 1 колонка на мобильных устройствах */
@media (max-width: 600px) {
  .first-benefit {
    margin-bottom: 24px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Стили для SVG (чтобы они не ломали верстку) */
.benefit-icon {
  display: flex;
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 4px !important;
}

.blue-specs {
  background-color: var(--primary);
  color: white;
  padding: 60px 0;
}

.blue-grid {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 40px; /* Отступ между списком и картинкой */
  align-items: start;
}

.specs-main-title {
  color: #ffffff;
}

.specs-list {
  display: flex;
  flex-direction: column;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.spec-item:first-of-type {
  padding-top: 0;
}

.spec-item:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-item--multiline {
  align-items: flex-start;
}

.spec-label {
  padding-right: 20px;
}

.spec-value {
  text-align: right;
}

.specs-image {
  position: relative;
  height: 100%;
}

.specs-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right;
}

.blue-after-10 {
  position: relative;
}

.blue-after-10::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 46, 92, 0.1);
}

.blue-after-30 {
  position: relative;
}

.blue-after-30::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 46, 92, 0.3);
}

/* Адаптивность */
@media (max-width: 992px) {
  .blue-grid {
    grid-template-columns: 1fr; /* Переход в одну колонку */
    gap: 24px;
  }

  .specs-image {
    order: 2; /* Картинка под характеристиками */
    width: 100%;
    max-height: 400px;
    max-width: 640px;
    margin: 0 auto;
    aspect-ratio: 288 / 200;
  }

  .specs-image img {
    object-position: right top;
  }
}

@media (max-width: 600px) {
  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .spec-value {
    text-align: left;
  }

  .spec-label {
    opacity: 0.6;
    padding: 0;
  }
}

/* Сетка */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 равные колонки */
  gap: 16px; /* Отступ между колонками */
  align-items: start;
}
.types-image {
  max-height: 230px;
  display: flex;
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .types-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Настройки сетки */
.interface-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Заданные вами пропорции */
  gap: 16px; /* Отступ между колонками */
  align-items: center; /* Центрирование контента по вертикали */
}

/* Стили для текстовой колонки */
.interface-info {
  display: flex;
  flex-direction: column;
}

.info-text {
  margin: 0;
}

.interface-screenshot {
  height: 100%;
}

/* Стили для колонки со скриншотом */
.interface-screenshot img {
  width: 100%; /* Картинка занимает всю ширину колонки */
  /* height: auto; Сохранение пропорций */
  height: 100%;
  display: block; /* Устранение отступов снизу */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 950px) {
  .interface-grid {
    grid-template-columns: 1fr; /* Одна колонка на узких экранах */
    gap: 24px;
  }
}

.results-table-container {
  width: 100%;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #d2b27b; /* Общая рамка таблицы */
}

.results-table thead {
  background-color: #d2b27b;
}

.results-table th {
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 8px 16px;
  line-height: 1;
  border-right: 1px solid rgba(9, 21, 42, 0.5);
}

.results-table th:last-child {
  border-right: none;
}

.results-table td {
  padding: 8px 16px;
  border-bottom: 1px solid #b0bac3;
  border-right: 1px solid #b0bac3;
  color: #09152a;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table td:last-child {
  border-right: none;
}

@media (max-width: 700px) {
  .results-table-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  /* Ширина/высота скроллбара */
  .results-table-scroll::-webkit-scrollbar {
    height: 2px;
  }

  /* Фон (дорожка) скроллбара */
  .results-table-::-webkit-scrollbar-track {
    background: #d9dfe5; /* Светло-серая линия */
    border-radius: 4px;
  }

  /* Сам ползунок */
  .results-table-scroll::-webkit-scrollbar-thumb {
    background: #002e5c; /* Темно-синий цвет, как у текста или подвала */
    border-radius: 4px;
  }
}

/* Стили секции Интеграция */
.integration h2 {
  font-weight: 700;
  text-transform: uppercase;
}

.integration-grid {
  display: grid;
  grid-template-columns: 288px 1fr; /* Левая колонка строго 288px, правая занимает остаток */
  gap: 16px;
  align-items: stretch; /* Растягиваем колонки по высоте */
}

/* Стили для картинки */
.integration-image-wrapper {
  position: relative;
}

.integration-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Обрезает картинку по центру, сохраняя пропорции */
}

/* Стили для правой колонки с текстом */
.integration-content {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Расстояние между серыми плашками */
}

/* Стили для серых плашек */
.integration-card {
  background-color: #e8ecef; /* Светло-серый фон */
  border-left: 4px solid #002e5c; /* Синяя полоса слева */
  padding: 16px;
}

/* Адаптив для мобильных устройств (планшеты и телефоны) */
@media (max-width: 992px) {
  .integration-grid {
    grid-template-columns: 1fr; /* Колонки встают друг под друга */
    gap: 24px;
  }

  .integration-image-wrapper {
    max-width: 360px;
    width: 100%;
  }

  .integration-image {
    position: static;
    max-width: 360px;
    max-height: 350px;
    height: auto;
  }
}

.sh-tech {
}

/* 
      Стили для самого блока характеристик 
    */
.tech-subheading {
  color: #d2b27b; /* Заданный вами цвет */
}

/* Убираем верхний отступ у первого подзаголовка */
.tech-group:first-child .tech-subheading {
  margin-top: 0;
}

.tech-row {
  display: flex;
  justify-content: space-between; /* Раздвигает элементы по краям */
  align-items: flex-start;
  padding: 8px 0; /* Вертикальные отступы внутри строки */
  border-bottom: 1px solid #b0bac3; /* Светло-серая линия снизу */
}

.tech-row:first-of-type {
  padding-top: 0 !important;
}

.tech-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.tech-label {
  padding-right: 20px;
}

.tech-value {
  text-align: right; /* Выравнивание значения по правому краю */
}

/* Адаптив для мобильных устройств (телефоны) */
@media (max-width: 600px) {
  .tech-row {
    flex-direction: column; /* Выстраиваем друг под друга */
    gap: 4px; /* Расстояние между названием и значением */
  }

  .tech-value {
    text-align: left; /* Возвращаем выравнивание по левому краю */
  }

  .tech-label {
    opacity: 60%;
  }
}

/* Заголовок */
.tech-opu h2.color-primary {
  text-transform: uppercase;
}

/* === ВЕРХНИЙ БЛОК (Десктоп: Сетка) === */
.opu-top-grid {
  display: grid;
  grid-template-columns: 1fr 187px; /* Левая часть - весь доступный остаток, правая - строго 187px */
  gap: 16px; /* Отступ между текстом и картинкой */
  margin-bottom: 16px;
}

.opu-intro p {
  margin-top: 0;
  margin-bottom: 12px;
}

.opu-mobile-row p {
  margin-bottom: 0; /* Убираем отступ у последнего абзаца */
}

/* === КАРТИНКИ === */
.opu-image-desktop {
  width: 100%;
  height: auto;
  display: block;
}

/* Прячем мобильную картинку на десктопах */
.opu-image-mobile {
  display: none;
}

/* === НИЖНИЙ БЛОК (Таблица характеристик) === */
.opu-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две колонки на десктопе */
  column-gap: 40px; /* Расстояние между левой и правой колонкой */
}

.opu-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #b0bac3;
}

.opu-spec-row:first-of-type {
  padding-top: 0;
}

.opu-spec-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.opu-spec-label {
  padding-right: 20px;
}

.opu-spec-value {
  text-align: right;
}

/* === АДАПТИВ (Мобильные телефоны и планшеты) === */
@media (max-width: 992px) {
  /* Сбрасываем сетку верхнего блока, элементы идут друг за другом */
  .opu-top-grid {
    display: block;
  }

  /* Прячем десктопную картинку */
  .opu-image-desktop {
    display: none;
  }

  /* Показываем мобильную картинку */
  .opu-image-mobile {
    display: block;
    width: 156px;
    height: auto;
    flex-shrink: 0; /* Запрещаем картинке сжиматься */
  }

  /* Выстраиваем второй абзац и картинку в один ряд */
  .opu-mobile-row {
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю */
    justify-content: space-between;
    gap: 15px; /* Расстояние между текстом и фото */
  }

  /* Таблица перестраивается в одну колонку */
  .opu-specs-grid {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  /* Характеристики встают друг под друга */
  .opu-spec-row {
    flex-direction: column;
    gap: 4px;
  }

  .opu-first-column .opu-spec-row {
    border-bottom: 1px solid #b0bac3;
    padding-bottom: 8px !important;
  }

  .opu-spec-label {
    opacity: 0.6;
  }

  .opu-spec-value {
    text-align: left;
  }
}

/* */
.services-before-form h2 {
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .services-before-form h2 {
    margin-bottom: 24px;
  }

  .contacts-and-order-section.services-variant {
    gap: 40px;
  }
}

/*  */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  cursor: pointer;
  z-index: 10;

  display: none;
}

.back-to-top.active {
  display: block;
}

@media (max-width: 1224px) {
  .back-to-top {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    right: 8px;
  }
}

/* */
.photos-popups img {
  cursor: pointer;
}

.photos-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  overflow: hidden;

  .popup-content {
    position: relative;
    background: none;
  }

  .popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    cursor: pointer;
    z-index: 5;
  }

  .swiper-container {
    width: 1200px;
    max-width: 90vw;
    height: 90vh;
  }

  .swiper-wrapper {
    width: 1000px;
  }

  .swiper-slide img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* внутри вашего CSS-файла */
  .popup-content img {
    display: block;
    width: auto;
    height: auto;

    /* ограничение по реальным пикселям */
    max-width: 1000px;
    max-height: 848px;

    /* и одновременно 90% от ширины/высоты вьюпорта */
    max-width: min(1000px, 90vw, calc(100% - 100px));
    max-height: min(848px, 90vh, calc(100% - 100px));
    object-fit: contain;
  }

  .swiper-prev {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .swiper-next {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    z-index: 5;
  }
}

@media (max-width: 768px) {
  .photos-popup {
    .swiper-container {
      width: 100%;
      height: 80vh;
    }

    .popup-content img {
      max-width: 100%;
    }

    .swiper-prev,
    .swiper-next {
      top: 100%;
      transform: translateY(-100%);
    }

    .swiper-prev {
      right: calc(50% + 12px);
      left: unset;
    }

    .swiper-next {
      left: calc(50% + 12px);
      transform: translateY(-100%) rotate(180deg);
    }
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px; /* высота фиксированного хедера */
}

.d-none {
  display: none !important;
}

.cookie-popup {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 31;
  box-shadow: 0px 4px 20px 0px #1d212426;
  background: white;

  max-width: 860px;
  display: flex;
  align-items: center;
  padding: 24px;
  gap: 40px;
  box-shadow: 0px 4px 20px 0px #09152a26;
}

@media (max-width: 1200px) {
  .cookie-popup {
    right: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
  }
}

@media (max-width: 768px) {
  .cookie-popup {
    flex-direction: column;
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    align-items: start;
    gap: 16px;
  }
}

svg {
  flex-shrink: 0;
}

.mainpage-first .swiper {
  min-height: 100% !important;
}

.container-404 {
  text-align: center;

  margin-top: 160px;
  margin-bottom: 160px;

  .title {
    font-size: 128px;
    line-height: 128px;
    font-weight: 900;
    color: var(--primary);

    margin-bottom: 16px;
  }

  .btn {
    margin: 0 auto;
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
  .container-404 {
    margin-top: 80px;
    margin-bottom: 80px;
  }
}

/* End */
/* /local/templates/mrls/assets/css/style.css?177859067344027 */
