

/* Start:/bitrix/templates/aspro-lite/components/bitrix/news.list/kviztest/style.css?17773073818612*/
.kviz {
  z-index: 99;
}
.kviz {
  position: fixed;
  top: 0px;
  left: 0;

  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: hsl(0, 0%, 13%);
  font-family: "Inter", sans-serif;
  background-color: rgba(0, 0, 0, 0.5);
}
.kviz__inner {
  padding: 40px 50px 50px;
  width: 70%;
  height: 80%;
  background-color: hsl(0, 0%, 97%);
  border-radius: 12px;
}
.kviz__title {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  color: hsl(0, 0%, 13%);
  font-size: 42px;
  font-weight: 500;
  line-height: 52px;
}
.kviz__close {
  margin-left: auto;
  --size: 25px;
  width: var(--size);
  height: var(--size);
  position: relative;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
  border: none;
}
/* .kviz__close::before,
.kviz__close::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  opacity: 0.5;
  background-color: #222;
} */
.kviz__close:before {
  rotate: 45deg;
}
.kviz__close:after {
  rotate: -45deg;
}
.kviz__container {
  position: relative;
  width: 100%;
  height: 85%;
  /*background-color: #fff;*/
  border-radius: 12px;
}
.kviz__container:has(.kviz__content._active input:checked) .kviz__next {
  opacity: 1;
}
.kviz__container:has(.kviz__content[data-slide-id="1"]._active) .kviz__prev {
  display: none;
}
.kviz__container:has(.kviz__form._active) .kviz__next {
  display: none;
}
.kviz__container:has(.kviz__form._active) .kviz__submit {
  display: flex;
}
.kviz__next.active {
  opacity: 1;
}
.kviz__content {
  inset: 0;
  position: absolute;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  /* opacity: 0;
  visibility: hidden; */
}
.kviz__content._active {
  opacity: 1;
  visibility: visible;
}
.kviz__question {
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 500;
}
.kviz__question-block {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}
.kviz__variants {
  gap: 15px;
  display: flex;
  flex-direction: column;
  color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  font-weight: 500;
}
.kviz__variants-item {
  gap: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.kviz__variants-item::before {
  aspect-ratio: 1;
  content: "";
  width: 24px;
  min-width: 24px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid hsl(0, 0%, 70%);
}
.kviz__variants-item input {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}
.kviz__variants-item:hover {
  color: hsl(0, 0%, 13%);
}
.kviz__variants-item:hover::before {
  border-color: hsl(0, 0%, 13%);
}
.kviz__variants-item:has(input:checked) {
  color: hsl(0, 0%, 13%);
}
.kviz__variants-item:has(input:checked)::before {
  background-color: hsl(4, 87%, 63%);
  border: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
  background-image: url(/bitrix/templates/aspro-lite/components/bitrix/news.list/kviztest/../kviztest/media/icons/checkmark.webp);
}
.kviz__variants-item:has(input[type="radio"])::before {
  border-radius: 50px;
}
.kviz__buttons {
  gap: 10px;
  position: relative;
  bottom: 32px;
  left: 32px;
  width: fit-content;
  display: flex;
}
.kviz__next,
.kviz__prev,
.kviz__submit {
  padding: 14px 16px;
  width: 180px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  border: none;
}
.kviz__next {
  color: #fff;
  opacity: 0.5;
  background-color: hsl(4, 87%, 63%);
}
.kviz__prev {
  justify-content: center;
  color: #f35c50;
  background-color: hsl(4, 80%, 96%);
}
.kviz__submit {
  display: none;
  justify-content: center;
  color: #fff;
  background-color: hsl(4, 87%, 63%);
}
.kviz__image {
  object-fit: cover;
  object-position: center;
  inset: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}
.kviz__image[data-image-id] {
  opacity: 0;
  visibility: hidden;
}
.kviz__image[data-image-id]._active {
  opacity: 1;
  visibility: visible;
}
.kviz__image-block {
  position: relative;
  width: 354px;
}
.kviz__form-title {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 500;
}
.kviz__form-text {
  margin-bottom: 25px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.6;
}
.kviz__form-data {
  gap: 12px;
  display: flex;
  flex-direction: column;
  opacity: 0.6;
}
.kviz__form-input {
  gap: 6px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 400;
}
.kviz__form-input input {
  padding: 12px 10px 12px 12px;
  font-size: 15px;
  opacity: 1;
  border-radius: 8px;
  border-color: #b2b2b2;
  outline: none;
}
.kviz-thanks {
  display: none;
  overflow: hidden;
  border-radius: 8px;
}
.kviz:has(.kviz-thanks._active) .kviz-thanks {
  display: block;
}
.kviz:has(.kviz-thanks._active) .kviz__inner {
  display: none;
}
@media only screen and (max-width: 1000px) {
  .kviz__inner {
    padding: 15px;
    width: 85%;
  }
  .kviz__title {
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
  }
  .kviz__container {
    width: 100%;
    height: 90%;
  }
  .kviz__content {
    gap: 20px;
    padding: 16px;
    flex-direction: column;
    justify-content: start;
  }
  .kviz__question-block {
    max-width: 100%;
  }
  .kviz__image-block {
    width: 100%;
    max-width: 400px;
    height: 150px;
  }
  .kviz__buttons {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }
  .kviz__buttons button {
    width: 145px;
  }
}
/*# sourceMappingURL=styles.css.map*/
/* Стили для модального окна */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ff0000;
}

#close-btn {
  margin-top: 20px;
  padding: 10px 20px;

  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Мобильные стили для квиза (до 768px) */
@media (max-width: 768px) {
  .kviz {
    padding: 15px;
    align-items: flex-start;
    height: 100%;
    overflow-y: auto;
  }

  .kviz__inner {
    width: 100%;
    height: auto;
    max-height: 90vh;
    padding: 20px 15px;
    border-radius: 8px;
  }

  .kviz__title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .kviz__title span {
    font-size: 16px;
    margin-top: 5px;
  }

  .kviz__close {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .kviz__container {
    height: auto;
    min-height: 40vh;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
  }

  .kviz__content {
    flex-direction: column;
    padding: 15px;
    position: relative;
    height: auto;
  }

  .kviz__question-block {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .kviz__question {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .kviz__image-block {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    order: 0;
  }

  .kviz__variants {
    gap: 12px;
  }

  .kviz__variants-item {
    font-size: 14px;
  }

  .kviz__buttons {
    position: static;
    width: 100%;
    margin-top: 20px;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .kviz__next,
  .kviz__prev,
  .kviz__submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .kviz__form-title {
    font-size: 18px;
  }

  .kviz__form-text {
    font-size: 14px;
  }

  /* Форма в последнем слайде */
  .kviz__form .form {
    padding: 0;
  }

  .kviz__form-input input {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Особые стили для очень маленьких экранов */
@media (max-width: 480px) {
  .kviz__title {
    display: block;
  }
  .kviz__content {
    gap: 0;
  }
  .kviz__title {
    margin-bottom: 0;
  }
  .kviz__inner {
    padding: 15px 10px;
  }

  .kviz__title {
    font-size: 20px;
    padding-right: 30px;
  }

  .kviz__question {
    font-size: 16px;
  }

  .kviz__variants-item {
    font-size: 13px;
  }

  .kviz__image-block {
    height: 150px;
  }
  .kviz__buttons {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
  }

}

/* End */
/* /bitrix/templates/aspro-lite/components/bitrix/news.list/kviztest/style.css?17773073818612 */
