@import "normalize.css";

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

figure {
  padding: 0;
  margin: 0;
}

figcaption {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #183B59;
}

/*************** Eom wrapper ***************/

.eom-wrapper {
  padding: 24px;
  background: #F8FCFF;
}

.eom-body {
  position: relative;
  padding: 32px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
}

.eom-container {
  max-width: 1376px;
}

/*************** Card ***************/
.card *,
.card *::before,
.card *::after {
  box-sizing: border-box;
}

.card {
  position: relative;
  padding: 40px 64px;
  margin-bottom: 40px;
  border-top: 2px solid;
  border-radius: 0 0 24px 24px;
  background: #F2F2F2;
  color: #183B59;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.card_blue {
  border-color: #3F8CFF;
}

.card-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 40px;
  border-bottom-right-radius: 16px;
}
.card_info .card-label {
  background: url(assets/icons/badge-search.svg) 16px 8px no-repeat;
}

.card_question .card-label {
  background: url(assets/icons/badge-question.svg) 22px 8px no-repeat;
}

.card_blue .card-label {
  background-color: #3F8CFF;
}

.card-about {
    max-width: 790px;
}

.card-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
}

/*************** Task Box ***************/

.task-box {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 80px 32px 56px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
  border-radius: 8px;
}

.task-box_disabled {
  pointer-events: none;
}

.task-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 8px 16px 8px 12px;
  border-bottom-right-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #FFFFFF;
}

.task_blue .task-badge {
  background-color: #3F8CFF;
}

.task-info {
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(auto, 730px) minmax(320px, 400px);
  grid-template-rows: minmax(auto, 448px);
  justify-content: space-between;
  gap: 40px;
}

.task-content {
  grid-column: 1/2;
}

.task-image-wrapper {
  grid-column: 2/3;
}

.task-image {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-question {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.task-question .task-image-wrapper {
  max-width: 680px;
  margin-bottom: 40px;
}

.task-title {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
}

.task-text {
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.task-point {
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}

.task-content a {
  color: #3F8CFF;
}

.task-answers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 44px;
  padding: 26px;
  border: 1px solid #EBF4FD;
  box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
  border-radius: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.task-gallery {
  display: flex;
  gap: 40px;
  max-width: 980px;
  margin-bottom: 40px;
}

.task-gallery-wrap {
  max-height: calc(300px + 24px);
}

.task-gallery-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
}

.task-gallery-wrap figcaption {
  margin-top: 8px;
  text-align: center;
}

/*************** Radio Button ***************/
.radio-button *, .radio-button *::before, .radio-button *::after {
  box-sizing: border-box;
}

.radio-button {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  box-sizing: border-box;
}

.radio-button-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: -1;
  opacity: 0;
}

.radio-button-check {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #BDC6CD;
  margin-right: 8px;
}

.radio-button-check::after {
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: -3px;
  margin-left: -3px;
  background: #fff;
}

.radio-button_blue .radio-button-input:checked + .radio-button-check {
  border-color: #3F8CFF;
  background: #3F8CFF;
}

.radio-button-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

/*************** Checkbox ***************/
.checkbox *, .checkbox *::before, .checkbox *::after {
  box-sizing: border-box;
}

.checkbox {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  box-sizing: border-box;
}

.checkbox-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: -1;
  opacity: 0;
}

.checkbox-check {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #BDC6CD;
  margin-right: 8px;
}

.checkbox-input[type="checkbox"]+.checkbox-check {
  border-radius: 4px;
}

.checkbox-check::after {
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
}

.checkbox-input[type="checkbox"]+.checkbox-check::after {
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  background-image: url(assets/icons/check_white.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.checkbox-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

.checkbox_blue .checkbox-input:checked+.checkbox-check {
  border-color: #3F8CFF;
  background: #3F8CFF;
}


/*************** Button ***************/

button {
  align-items: flex-start;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
  letter-spacing: inherit;
  word-spacing: inherit;
  text-transform: none;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  text-shadow: none;
  font: inherit;
  line-height: inherit;
}

.button {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  background: #8BD74B;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  transition: 0.2s ease-out;
  transition-property: background-color, color, border-color;
}
.button:hover {
  background: #46B755;
}
.button[disabled] {
  background: #C7EFA5;
  cursor: default;
}

.button-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-position: center center;
  background-repeat: no-repeat;
}
.button-ico_left {
  margin-right: 4px;
}
.button-ico_right {
  margin-left: 4px;
}

.button_blue {
  background: #3F8CFF;
}
.button_blue:hover {
  background: #0C6ED6;
}
.button_blue[disabled] {
  background: #CBE2FE;
}

.button_secondary {
  border-color:currentColor;
  color: #8BD74B;
  background: transparent !important;
}
.button_secondary.button_blue {
  color: #3F8CFF;
}
.button_secondary.button_blue:hover {
  color: #07417E;
}
.button_secondary.button_blue[disabled] {
  color: #CBE2FE;
}

/*************** Footer eom ***************/

.footer-eom-body-padding {
  height: 80px;
}
.footer-eom {
  position: sticky;
  bottom: 0;
  margin: 0 -32px -32px;
  padding: 16px 32px;
  border-top: 1px solid #EBF4FD;
  background: #FFFFFF;
  border-radius: 0 0 8px 8px;
}
.footer-eom-content {
  display: flex;
  gap: 32px;
}

.footer-eom-content.disabled {
  display: none;
}

.footer-buttons {
  display: flex;
  align-items: center;
}
.footer-buttons:first-child,
.footer-pagination {
  flex-basis: 0;
  flex-grow: 1;
}
.footer-buttons:first-child:last-child {
  flex-grow: 0;
  margin-left: auto;
}

.footer-buttons .button:not(:first-child) {
  margin-left: 16px;
}

/*************** Pagination ***************/

.pagination {
  display: flex;
  align-items: center;
}

.pagination-dots {
  display: flex;
  align-items: center;
}
.pagination-dot {
  margin: 0 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #DEE3E8;
  transition: background 0.15s ease-out;
}

.footer-eom_blue .pagination-dot_active {
  background: #3F8CFF;
}

/*************** Pages ***************/
.pages {
  max-width: 100%;
}

.page {
  display: none;
}

.page_active {
  display: block;
}

.page-inner-hidden {
  display: none;
}

.page-outer {
  display: none;
}

.page-outer_active {
  display: block;
}

/*************** Toast ***************/

.toast {
  display: inline-flex;
  position: fixed;
  right: 56px;
  bottom: 96px;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
  color: #183B59;
  background: #FFFFFF;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  transform: translateX(calc(100% + 58px));
  z-index: 10;
}

.toast_transition {
  transition: transform 0.2s ease-out;
}

.toast_show {
  transform: translateX(0);
}

.toast-ico {
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  width: 48px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background-position: center center;
  background-repeat: no-repeat;
}

.toast-message {
  margin: 0;
  padding: 12px 16px 12px 64px;
}

.toast_success {
  border-color: #46B755;
}

.toast_success .toast-ico {
  background-color: #46B755;
  background-image: url(assets/icons/push-check.svg);
}

.toast_error {
  border-color: #FF564E;
}

.toast_error .toast-ico {
  background-color: #FF564E;
  background-image: url(assets/icons/push-error.svg);
}

.toast_warning {
  border-color: #FCAC00;
}

.toast_warning .toast-ico {
  background-color: #FCAC00;
  background-image: url(assets/icons/push-warning.svg);
}

/*************** Response ***************/

@media all and (max-width: 1487px) {
  .eom-wrapper,
  .eom-body {
    padding: 16px;
  }
  .card {
    padding: 48px 24px 40px 24px;
    margin-bottom: 24px;
  }
  .task-box {
    padding: 64px 20px 32px;
  }
  .task-question .task-image-wrapper {
    max-height: 448px;
    margin-bottom: 24px;
  }
  .task-gallery {
    gap: 24px;
  }
  .task-gallery-wrap {
    max-width: calc(280px + 24px);
  }
  .footer-eom-body-padding {
    height: 56px;
  }

  .footer-eom {
    padding: 16px;
    margin: 0 -16px -16px;
  }

  .toast {
    right: 32px;
  }
}

@media all and (max-width: 1024px) {
  .task-info {
    grid-template-rows: 340px;
    grid-template-columns: minmax(auto, 730px) minmax(300px, 400px);
    grid-gap: 24px;
  }
  .task-question .task-image-wrapper {
    max-height: 340px;
  }
  .task-gallery-wrap {
    max-width: calc(220px + 24px);
  }

  .footer-buttons:first-child, .footer-pagination {
    flex-basis: auto;
  }

  .footer-eom {
    position: relative;
  }

  .footer-eom-content {
    gap: 16px;
  }

  .task-answers {
    padding-right: 16px;
    padding-left: 16px;
    gap: 24px;
  }
}

  /* ЭТОТ КУСОК КОДА БЫЛ ДОБАВЛЕН АВТОМАТИЧЕСКИ ДЛЯ ПОДДЕРЖКИ СУРЦОК, НЕ УДАЛЯТЬ */

  .eom-body {
    max-width: 1320px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  @media (max-width: 1400px) {
    .eom-body {
      max-width: 1140px;
    }
  }

  @media (max-width: 1200px) {
    .eom-body {
      max-width: 992px;
    }
  }

  @media (max-width: 1024px) {
    .eom-body {
      max-width: 720px;
    }
  }

  /* КУСОК КОДА СВЕРХУ БЫЛ ДОБАВЛЕН АВТОМАТИЧЕСКИ ДЛЯ ПОДДЕРЖКИ СУРЦОК, НЕ УДАЛЯТЬ */


/** Adaptive Overlay **/

.adaptive-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: #ffffff;
}

.adaptive-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 408px;
  height: 270px;
}

.adaptive-overlay-content p {
  text-align: center;
  font-family: 'Inter';
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #183b59;
  margin-top: 24px;
}

@media (min-width: 844px) {
  .adaptive-overlay {
    display: none;
  }
}

@media (max-width: 843px) {
  body {
    overflow: hidden;
  }
}
