@import "normalize.css";

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #183B59;
}

.eom-wrapper {
  padding: 24px;
  background: #F8FCFF;
}

.eom-body {
  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;
  border-top: 2px solid #3F8CFF;
  border-radius: 0 0 24px 24px;
  background: #F2F2F2;
  color: #183B59;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  margin-bottom: 40px;
}

.card-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 40px;
  background: #3F8CFF url("assets/icons/picture.svg") 12px center no-repeat;
  border-bottom-right-radius: 16px;
}

.card-content {
  display: flex;
  justify-content: space-between;
}

.card-about {
  max-width: 800px;
}

.card-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
}

.card-description p:not(:last-child),
.card-description ul:not(:last-child) {
  margin-bottom: 12px;
}

.card-description strong {
  font-weight: 600;
  font-size: 18px;
}

.card-description ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-description ul li {
  position: relative;
  padding-left: 12px;
}

.card-description ul li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #3F8CFF;
}

.card-description ul li:not(:last-child) {
  margin-bottom: 8px;
}

.card-image-wrapper {
  flex-shrink: 0;
  margin-left: 40px;
  width: 260px;
  padding: 30px 30px 0;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.card_xl .card-image-wrapper {
  width: 300px;
}

.card_m .card-image-wrapper {
  width: 170px;
}

/*************** content ***************/

.content {
  align-items: center;
}

.content__image {
  display: block;
  width: 1072px;
  max-width: 100%;
  height: auto;
}

.content__text {
  /* max-width: 636px; */
  color: #183B59;
  margin-bottom: 32px;
}

.content__text h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
}

.content__text h3:not(:last-child) {
  margin-bottom: 16px;
}

/*************** Pages ***************/

.page {
  display: none;
}

.page_active {
  display: block;
}

.page-inner-hidden {
  display: none;
}

.page-outer {
  display: none;
}

.page-outer_active {
  display: block;
}

button.page-outer_active {
  display: flex;
}

/*************** 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_orange {
  background: #FF9432;
}

.button_orange:hover {
  background: #FF790B;
}

.button_orange[disabled] {
  background: #FFDEAD;
}

.button_secondary {
  border-color: currentColor;
  color: #8BD74B;
  background: transparent !important;
}

.button_secondary:hover {
  color: #1F5126;
}

.button_secondary[disabled] {
  color: #C7EFA5;
}

.button_secondary.button_blue {
  color: #3F8CFF;
}

.button_secondary.button_blue:hover {
  color: #07417E;
}

.button_secondary.button_blue[disabled] {
  color: #CBE2FE;
}

.button_secondary.button_orange {
  color: #FF9432;
}

.button_secondary.button_orange:hover {
  color: #FF790B;
}

.button_secondary.button_orange[disabled] {
  color: #FFDEAD;
}

/*************** Eom wrapper ***************/

.eom-wrapper {
  padding: 24px;
  background: #F8FCFF;
}

.eom-body {
  padding: 32px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
}

.eom-container {
  max-width: 1376px;
}

/*************** Footer eom ***************/

.footer-eom-body-padding {
  height: 120px;
}

.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;
  justify-content: space-between;
}

.footer-eom-right {
  margin-left: auto;
}

/*************** Badge ***************/

.badge {
  display: inline-block;
  padding: 8px 16px 8px 12px;
  border-bottom-right-radius: 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  background: #8BD74B;
  color: #FFFFFF;
}

.badge_blue {
  background: #3F8CFF;
  ;
}

.badge_orange {
  background: #FF9432;
}

/*************** Task Box ***************/

.task-box {
  position: relative;
  padding: 32px 32px 80px;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
  border-radius: 8px;
}

.task-box .badge {
  position: absolute;
  top: 0;
  left: 0;
}


/*************** 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;
}

.pagination-dot_active {
  background: #8BD74B;
}

.footer-eom_blue .pagination-dot_active {
  background: #3F8CFF;
}

.footer-eom_orange .pagination-dot_active {
  background: #FF9432;
}

/*************** Footer eom ***************/

.footer-eom-body-padding {
  height: 120px;
}

.footer-eom {
  position: sticky;
  bottom: 0;
  margin: 0 -32px -32px;
  padding: 16px 32px;
  border-top: 1px solid #EBF4FD;
  background: #FFFFFF;
}

.footer-eom-content {
  display: flex;
  gap: 32px;
}

.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;
}

/*************** Toast ***************/

.toast {
  display: inline-flex;
  position: fixed;
  right: 48px;
  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% + 50px));
  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);
}


/*************** Select ***************/

.select {
  position: relative;
  border-radius: 8px;
}

span.select {
  display: inline-flex;
  border: 1px solid #BDC6CD;
  width: 220px;
  height: 48px;
  margin-bottom: 10px;
}

div.select {
  display: flex;
  border: 1px solid #BDC6CD;
  width: 220px;
  height: 48px;
}

.select:hover, .select:focus {
  border: 1px solid #3F8CFF;
}

.select.select_show {
  border: 1px solid #0C6ED6;
}

.select.success .select__toggle{
  color: #46B755;
}

.select.success .select__toggle::after {
  background-image: url('assets/icons/chevron-down_success.svg');
}

.select.fail .select__toggle{
  color: #FF564E;
}

.select.fail .select__toggle::after {
  background-image: url('assets/icons/chevron-down_fail.svg');
}

div.select.disabled {
  border: 1px solid #DEE3E8;
}

.select.disabled .select__toggle {
  cursor: default;
}

.select.disabled:not(.success, .fail) .select__toggle {
  color: #DEE3E8;
}

.select.disabled:not(.success, .fail) .select__toggle::after {
  background-image: url('assets/icons/chevron-down_disabled.svg');
}

.select__toggle {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  width: 100%;
  padding: 2px 12px 2px 16px;
  user-select: none;
  font-size: 16px;
  justify-content: space-between;
}

.select__toggle[value=""] {
  color: #BDC6CD;
}

.select__toggle::after {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 1rem;
  background-size: cover;
  background-image: url('assets/icons/chevron-down.svg');
}

.select__toggle:focus {
  outline: none;
}

.select_show .select__toggle::after {
  transform: rotate(180deg);
}

.select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0px 8px 32px rgba(121, 140, 157, 0.12);
  border-radius: 8px;
  padding: 8px;
  z-index: 2;
  background-color: #fff;
  pointer-events: none;
}

.select_show .select__dropdown {
  display: block;
}

.select_show .select__backdrop {
  display: block;
}

.select__options {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.select__option {
  padding: 12px 8px 12px 16px;
  border-radius: 4px;
  box-sizing: border-box;
  pointer-events: fill;
}

.select .select__option_selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select .select__option:hover {
  cursor: pointer;
  transition: 0.2s background-color ease-in-out;
}

.select .select__option:focus {
  cursor: pointer;
  border: 2px solid #99D1FF;
  transition: 0.2s background-color ease-in-out;
}

.select.green .select__option_selected {
  background-color: #B0E881;
}

.select.green .select__option:not(.select__option_selected):hover {
  background-color: #ECFCDE;
}

.select.green .select__option:focus {
  background-color: #ECFCDE;
}

.select.blue .select__option_selected {
  background-color: #86BCFC;
}

.select.blue .select__option:not(.select__option_selected):hover {
  background-color: #EBF3FF;
}

.select.blue .select__option:focus {
  background-color: #EBF3FF;
}

.select.orange .select__option_selected {
  background-color: #FFB546;
}

.select.orange .select__option:not(.select__option_selected):hover {
  background-color: #FFEED6;
}

.select.orange .select__option:focus {
  background-color: #FFEED6;
}

.download-box{
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.download{
  max-width: max-content;
}

/************************************************/
/******************* ADAPTIVE *******************/
/************************************************/

@media (max-width: 1487px) {
  .eom-wrapper {
    padding: 16px;
  }

  .eom-body {
    padding: 16px;
  }

  .card {
    padding-left: 24px;
    padding-right: 30px;
    margin-bottom: 24px;
  }

  .card-about {
    padding-top: 8px;
  }

  .card-image-wrapper {
    display: block;

    flex-shrink: 1;
    flex-basis: 20%;

    width: unset !important;
    min-width: 100px;
    max-width: 120px;

    padding: unset;
    margin-top: 30px;
    margin-left: 46px;
  }

  .card-image {
    width: 100%;
    height: auto;
  }
  .task-box {
    padding: 32px 32px;
  }

  .footer-eom-body-padding {
    height: 40px;
  }

  .footer-eom {
    padding: 16px;
    margin: 0 -16px -16px;
  }

  .toast {
    right: 32px;
  }

  .content__image {
    width: 896px;
  }
}

@media (max-width: 1024px) {
  .footer-eom {
    position: static;
  }

  .content__image {
    width: 716px;
  }
}

  /* ЭТОТ КУСОК КОДА БЫЛ ДОБАВЛЕН АВТОМАТИЧЕСКИ ДЛЯ ПОДДЕРЖКИ СУРЦОК, НЕ УДАЛЯТЬ */

  .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;
  }
}
