/* Независимые исправления статической версии; исходное оформление сохранено. */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

/* Компенсируем отрицательные отступы вложенной строки Bootstrap. */
.container--header {
  box-sizing: border-box;
  padding-inline: 18px;
}

/* В архиве потеряны скрипты позиционирования плавающей кнопки. */
.question--block {
  top: auto;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 1000;
}

.question--block .question--indicator-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.question--block .question--indicator {
  top: -65px;
  right: 0;
  left: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #931008 !important;
  outline-offset: 3px;
}

.restored-slider {
  position: relative;
}

.restored-slider > .swiper-wrapper {
  display: block !important;
  transform: none !important;
}

.restored-slider > .swiper-wrapper > .swiper-slide {
  display: none !important;
  width: 100% !important;
  transform: none !important;
}

.restored-slider > .swiper-wrapper > .swiper-slide.restored-slide-active {
  display: block !important;
}

.restored-slider .swiper-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.restored-slider .restored-slider-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.restored-slider .restored-slider-dot[aria-current="true"] {
  background: currentColor;
}

.service-item--section {
  cursor: pointer;
}

.restored-testimonials {
  display: block !important;
  position: relative;
}

.restored-testimonials > .item[hidden] {
  display: none !important;
}

.restored-testimonial-controls,
.restored-testimonial-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.restored-testimonial-controls {
  margin: 20px 0 28px;
}

.restored-testimonial-arrow {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #931008;
  border-radius: 50%;
  color: #931008;
  background: #fff;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color .2s ease-out, background-color .2s ease-out;
}

.restored-testimonial-arrow:hover,
.restored-testimonial-arrow:active {
  color: #fff;
  background: #931008;
}

.restored-testimonial-dots .restored-slider-dot {
  box-sizing: border-box;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.restored-testimonial-dots .restored-slider-dot::before {
  display: block;
  width: 12px;
  height: 12px;
  margin: auto;
  border: 1px solid #931008;
  border-radius: 50%;
  content: "";
}

.restored-testimonial-dots .restored-slider-dot[aria-current="true"]::before {
  background: #931008;
}

.restored-video-link {
  cursor: pointer;
}

.restored-dialog.restored-video-dialog {
  width: min(960px, calc(100% - 32px));
  padding: 48px 16px 16px;
  background: #17191c;
}

.restored-video-frame {
  aspect-ratio: 16 / 9;
}

.restored-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.restored-video-external {
  display: inline-block;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 0;
  color: #fff;
}

.restored-video-dialog .restored-dialog__close {
  color: #fff;
}

.restored-video-dialog .restored-dialog__close:hover {
  background: #34383e;
}

.restored-missing-media {
  background-color: #eceeef !important;
  background-image: url("/assets/restored/missing.svg") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* На тёмном блоке консультации поля и кнопка должны сохранять контраст. */
.content_form .form--consultation {
  color: #25292e !important;
  background-color: #fff !important;
  caret-color: #25292e;
  -webkit-text-fill-color: #25292e;
}

.content_form .form--consultation::placeholder {
  color: #68707a !important;
  opacity: 1;
  -webkit-text-fill-color: #68707a;
}

.content_form input[type="submit"] {
  color: #fff !important;
  border-color: #4526ff !important;
  background: #4526ff !important;
  cursor: pointer;
  -webkit-text-fill-color: #fff;
}

.content_form input[type="submit"]:hover {
  border-color: #301ac4 !important;
  background: #301ac4 !important;
}

.restored-form-status {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #25292e;
  background: #eef2f5;
  font: 15px/1.45 Arial, sans-serif;
}

.restored-form-status:empty {
  display: none;
}

.restored-form-status[data-state="success"] {
  color: #17451f;
  background: #e5f4e8;
}

.restored-form-status[data-state="error"] {
  color: #721b1b;
  background: #fbe9e9;
}

.restored-form-status[data-state="info"] {
  color: #263e55;
  background: #e8f0f7;
}

.js-request-form [data-restored-submit][disabled] {
  cursor: wait;
  opacity: .65;
}

.restored-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #292d32;
  background: #fff;
  box-shadow: 0 20px 70px rgba(20, 27, 34, .28);
}

.restored-dialog::backdrop {
  background: rgba(20, 25, 31, .72);
}

.restored-dialog__content {
  position: relative;
  padding: 32px;
}

.restored-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #30343a;
  background: transparent;
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.restored-dialog__close:hover {
  background: #eef0f2;
}

.restored-dialog h2 {
  margin: 0 36px 20px 0;
  font-size: 25px;
  line-height: 1.2;
}

.restored-dialog label {
  display: block;
  margin: 14px 0 6px;
  font-size: 15px;
}

.restored-dialog input[type="text"],
.restored-dialog input[type="tel"],
.restored-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #a8adb3;
  border-radius: 4px;
  background: #fff;
  font: 16px/1.4 Arial, sans-serif;
}

.restored-dialog__policy {
  display: flex !important;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px !important;
  line-height: 1.4;
}

.restored-dialog__policy input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.restored-dialog__submit {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #931008;
  font: 600 16px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.restored-dialog__submit:hover {
  background: #78100a;
}

.restored-lightbox {
  width: auto;
  max-width: calc(100% - 32px);
  background: transparent;
}

.restored-lightbox img {
  display: block;
  max-width: min(1100px, calc(100vw - 64px));
  max-height: calc(100dvh - 64px);
  object-fit: contain;
}

.restored-lightbox .restored-dialog__close {
  color: #fff;
  background: rgba(30, 34, 39, .7);
}

.restored-menu-overlay {
  display: none;
}

.restored-error-page {
  box-sizing: border-box;
  min-height: 100dvh;
  margin: 0;
  padding: 48px 20px;
  color: #292d32;
  background: #f4f6f7;
  font: 17px/1.6 Arial, sans-serif;
}

.restored-error-page main {
  max-width: 720px;
  margin: 10vh auto 0;
  padding: 36px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(20, 27, 34, .08);
}

.restored-error-page h1 {
  margin-top: 0;
  font-size: 36px;
  line-height: 1.15;
}

.restored-error-page nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}

.restored-error-page a {
  color: #931008;
}

@media (max-width: 1365px) {
  body.restored-menu-open {
    overflow: hidden;
  }

  body.restored-menu-open [data-navigation] {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1100 !important;
    display: block !important;
    box-sizing: border-box;
    width: min(320px, 86vw) !important;
    height: 100dvh !important;
    padding: 24px 0 !important;
    overflow-y: auto;
    background: #fff !important;
    box-shadow: 12px 0 35px rgba(25, 30, 36, .18);
  }

  body.restored-menu-open .restored-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(22, 27, 33, .55);
  }
}

@media (max-width: 575px) {
  .question--indicator {
    display: none;
  }

  .restored-dialog__content {
    padding: 28px 20px 22px;
  }

  .restored-dialog h2 {
    font-size: 22px;
  }

  .restored-error-page main {
    margin-top: 4vh;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
