/* Блок «Бесплатный тест-драйв» — views/monitoring/blocks/_test-drive.php */

.test-drive {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  background: #0d153a;
  font-family: "Montserrat", system-ui, sans-serif;
}
.test-drive .test-drive-bg,
.test-drive .test-drive-gradient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.test-drive .test-drive-bg {
  background: url("/images/test-drive.png") center/cover no-repeat;
}
.test-drive .test-drive-gradient {
  background: linear-gradient(
    90deg,
    rgba(13, 21, 58, 0.94) 0%,
    rgba(13, 21, 58, 0.65) 42%,
    rgba(13, 21, 58, 0.13) 72%,
    rgba(13, 21, 58, 0) 100%
  );
}
.test-drive > .container,
.test-drive > .test-drive-inner {
  position: relative;
  z-index: 1;
}
.test-drive .test-drive-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  max-width: 590px;
  min-height: 416px;
}
.test-drive .test-drive-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.test-drive .test-drive-title {
  margin: 0;
  max-width: 476px;
  font-size: 30px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: 0.05em;
  color: #fff;
}
.test-drive .test-drive-text {
  margin: 0;
  font-size: 17px;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.85);
}
.test-drive .test-drive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 365px;
  height: 54px;
  margin: 6px 0 0;
  border-radius: 4px;
  background: #b52d1f;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.test-drive .test-drive-btn:hover,
.test-drive .test-drive-btn:focus {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.9;
}
/* main.scss задаёт .order-btn { font-weight: 500 !important }, поэтому вес ставим на вложенный span */
.test-drive .test-drive-btn span {
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}

@media (max-width: 1023px) {
  .test-drive {
    padding: 56px 0;
  }
  .test-drive .test-drive-gradient {
    background: linear-gradient(
      90deg,
      rgba(13, 21, 58, 0.94) 0%,
      rgba(13, 21, 58, 0.79) 48%,
      rgba(13, 21, 58, 0.25) 100%
    );
  }
  .test-drive .test-drive-content {
    gap: 16px;
    max-width: 460px;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .test-drive {
    padding: 32px 0 260px;
  }
  .test-drive .test-drive-bg,
  .test-drive .test-drive-gradient {
    top: auto;
    height: 260px;
  }
  .test-drive .test-drive-bg {
    background-position: 62% center;
  }
  .test-drive .test-drive-gradient {
    background: linear-gradient(
      180deg,
      #0d153a 0%,
      rgba(13, 21, 58, 0.79) 28%,
      rgba(13, 21, 58, 0) 65%
    );
  }
  .test-drive .test-drive-content {
    max-width: none;
  }
  .test-drive .test-drive-title {
    font-size: 26px;
    letter-spacing: 0.03em;
  }
  .test-drive .test-drive-text {
    font-size: 15px;
  }
  .test-drive .test-drive-btn {
    width: 100%;
    max-width: 365px;
  }
}
