.container-preview {
  height: 770px;
  width: 100vw;
  position: relative;
  overflow: hidden;
  padding: 190px auto 240px;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -90px;
  z-index: 0;
  margin-bottom: -90px;
}
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 28, 36, 0.5);
  z-index: 1;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Чтобы изображение заполнило контейнер */
}

.content-block-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 40px;
  z-index: 3;
}

.title {
  color: var(--white);
  text-align: center;
  font-family: var(--montserrat);
  font-size: 50px;
  font-style: normal;
  font-weight: 700;
  line-height: 60px;
}

.buttons-main-container {
  width: 818px;
  padding: 20px 70px 20px 70px;
  box-sizing: border-box;
  display: flex;
  gap: 80px;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.button {
  width: 280px;
  height: 60px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #00b765, #05be6b) border-box;
  border-radius: 10px;
  padding: 1em;
  color: var(--black);
  font-family: var(--nunito);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 20px; /* 142.857% */
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sub-title {
  color: var(--white);
  text-align: center;
  font-family: var(--nunito);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  width: 314px;
}
.button-container > a {
  text-decoration: none;
  width: 100%;
}
/* Общие стили для Overlay и PopupWindow */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Скрыто по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.popup-window {
  background: var(--white);
  border-radius: 30px;
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.1))
    drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.09))
    drop-shadow(0px 23px 14px rgba(0, 0, 0, 0.05))
    drop-shadow(0px 41px 16px rgba(0, 0, 0, 0.01))
    drop-shadow(0px 64px 18px rgba(0, 0, 0, 0));
  width: 571px;
  height: auto; /* Авто по высоте для адаптивности */
  padding: 80px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 99999;
}

.popup-title {
  color: var(--black);
  text-align: center;
  font-family: var(--montserrat);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

input[type="text"],
input[type="tel"] {
  width: 100%; /* Заполнение ширины контейнера */
  height: 60px;
  border-radius: 10px;
  background-color: transparent;
  border: 1px solid var(--black);
  color: var(--black);
  font-family: var(--nunito);
  font-size: 16px;
  padding: 20px;
  box-sizing: border-box;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 3px solid var(--black);
  background-color: transparent;
  cursor: pointer;
}

.checkbox-text {
  color: var(--black);
  font-family: var(--nunito);
  font-size: 16px;
}

.button {
  width: 100%; /* Заполнение ширины контейнера */
  height: 60px;
  border-radius: 10px;
  background-color: transparent;
  color: var(--black);
  text-align: center;
  font-family: var(--nunito);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #00b765, #05be6b) border-box;
}

.button:hover {
  background: var(--green);
  color: var(--white);
}

@media (max-width: 1400px) and (min-width: 1024px) {
  .container-preview {
    height: 730px;
    padding: 170px auto 220px;
  }

  .content-block-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 40px;
    z-index: 3;
  }

  .title {
    font-size: 46px;
  }

  .buttons-main-container {
    width: 818px;
    padding: 20px 70px 20px 70px;
    box-sizing: border-box;
    display: flex;
    gap: 80px;
  }

  .button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .button {
    width: 260px;
    height: 50px;

    font-size: 12px;
  }

  .sub-title {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 290px;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .container-preview {
    height: 550px;
    padding: 100px auto 180px;
  }

  .content-block-preview {
    gap: 30px;
    z-index: 3;
  }

  .title {
    font-size: 40px;
  }

  .buttons-main-container {
    width: 760px;
    padding: 20px 70px 20px 70px;
    box-sizing: border-box;
    display: flex;
    gap: 40px;
  }

  .button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .button {
    width: 240px;
    height: 40px;

    font-size: 12px;
  }

  .sub-title {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 290px;
  }
}

@media (max-width: 768px) {
  .container-preview {
    height: 715px;
    padding: 20px auto 20px;
  }

  .content-block-preview {
    gap: 20px;
    z-index: 3;
  }

  .title {
    line-height: normal;
    font-size: 30px;
    max-width: 345px;
  }

  .buttons-main-container {
    width: 345px;
    padding: 20px 20px 20px 20px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
    flex-direction: column;
  }

  .button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .button {
    width: 300px;
    height: 40px;
    line-height: normal;
    font-size: 10px;
  }

  .sub-title {
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 150px;
    display: none;
  }
  .popup-window {
    background: var(--white);
    border-radius: 30px;
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.1))
      drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.09))
      drop-shadow(0px 23px 14px rgba(0, 0, 0, 0.05))
      drop-shadow(0px 41px 16px rgba(0, 0, 0, 0.01))
      drop-shadow(0px 64px 18px rgba(0, 0, 0, 0));
    width: 345px;
    height: auto; /* Авто по высоте для адаптивности */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
  }
  .popup-title {
    color: var(--black);
    text-align: center;
    font-family: var(--montserrat);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  input[type="text"],
  input[type="tel"] {
    width: 100%; /* Заполнение ширины контейнера */
    height: 60px;
    border-radius: 10px;
    background-color: transparent;
    border: 1px solid var(--black);
    color: var(--black);
    font-family: var(--nunito);
    font-size: 12px;
    padding: 20px;
    box-sizing: border-box;
  }

  input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 3px solid var(--black);
    background-color: transparent;
    cursor: pointer;
  }

  .checkbox-text {
    color: var(--black);
    font-family: var(--nunito);
    font-size: 10px;
  }

  .button {
    width: 100%; /* Заполнение ширины контейнера */
    height: 60px;
    border-radius: 10px;
    background-color: transparent;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
      linear-gradient(45deg, #00b765, #05be6b) border-box;
    color: var(--black);
    text-align: center;
    font-family: var(--nunito);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
