@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;
    -webkit-box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
    box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
}

.eom-container {
    max-width: 1376px;
}

/*************** Button ***************/

button {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-sizing: border-box;
    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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 20px;
    background: #3f8cff;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    -webkit-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}

.button:hover {
    background: #0562ee;
}

.button[disabled] {
    background: #cbe2fe;
    cursor: default;
}

.button-ico {
    display: block;
    width: 16px;
    height: 16px;
    background-position: center center;
    background-repeat: no-repeat;
}

.button-ico_left {
    margin-right: 4px;
}


/*************** 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;
}


/*************** Task Box ***************/

.task-box {
    position: relative;
    padding: 80px 64px 100px;
    background: #ffffff;
    -webkit-box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
    box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
    border-radius: 8px;
}

.task-box .badge {
    position: absolute;
    top: 0;
    left: 0;
}


/*************** Construction card ***************/

.construction-card {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ebf4fd;
    -webkit-box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
    box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    background: #ffffff;
}

.constructor-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
}

.constructor-item>div:first-child {
    width: 75%;
}


/* .constructor-item>div:last-child {
    width: 25%;
} */

.constructor-item>div:last-child .draggable {
    min-height: calc(100% - 16px);
    margin-top: 16px;
}

.construction-card_m {
    margin-top: 16px;
}

.construction-card_l {
    padding-top: 24px;
    padding-bottom: 24px;
}

.construction-card-title {
    text-align: left;
}


/* .construction-card-title:not(:last-child) {
    margin-top: 8px;
} */

.construction-card-text {
    margin: 0;
}


/*************** Card ***************/

.card *,
.card *::before,
.card *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.card {
    position: relative;
    padding: 40px 64px;
    border-top: 2px solid #8bd74b;
    border-radius: 0 0 24px 24px;
    background: #f2f2f2;
    color: #183b59;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    margin-bottom: 40px;
}

.card_blue {
    border-color: #3f8cff;
}

.card-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 40px;
    background: #3f8cff url("assets/icons/question.svg") 21px center no-repeat;
    border-bottom-right-radius: 16px;
}

.card_blue .card-label,
.card_blue .text-wrapper ul li::before {
    background-color: #3f8cff;
}

.card-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    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: #8bd74b;
}

.card-description ul li:not(:last-child) {
    margin-bottom: 8px;
}

.card-image-wrapper {
    -ms-flex-negative: 0;
    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: 220px;
}


/*************** Scheme ***************/

.grid {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(12, 1fr);
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    gap: var(--schema-gap-row) var(--schema-gap-column);
}

.grid .g-col-1 {
    grid-column: auto/span 1;
}

.grid .g-col-2 {
    grid-column: auto/span 2;
}

.grid .g-col-3 {
    grid-column: auto/span 3;
}

.grid .g-col-4 {
    grid-column: auto/span 4;
}

.grid .g-col-5 {
    grid-column: auto/span 5;
}

.grid .g-col-6 {
    grid-column: auto/span 6;
}

.grid .g-col-7 {
    grid-column: auto/span 7;
}

.grid .g-col-8 {
    grid-column: auto/span 8;
}

.grid .g-col-9 {
    grid-column: auto/span 9;
}

.grid .g-col-10 {
    grid-column: auto/span 10;
}

.grid .g-col-11 {
    grid-column: auto/span 11;
}

.grid .g-col-12 {
    grid-column: auto/span 12;
}

.grid .g-start-1 {
    grid-column-start: 1;
}

.grid .g-start-2 {
    grid-column-start: 2;
}

.grid .g-start-3 {
    grid-column-start: 3;
}

.grid .g-start-4 {
    grid-column-start: 4;
}

.grid .g-start-5 {
    grid-column-start: 5;
}

.grid .g-start-6 {
    grid-column-start: 6;
}

.grid .g-start-7 {
    grid-column-start: 7;
}

.grid .g-start-8 {
    grid-column-start: 8;
}

.grid .g-start-9 {
    grid-column-start: 9;
}

.grid .g-start-10 {
    grid-column-start: 10;
}

.grid .g-start-11 {
    grid-column-start: 11;
}

.scheme *,
.scheme *::before,
.scheme *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.scheme {
    --schema-gap-row: 30px;
    --schema-gap-column: 24px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
}

.scheme-block {
    position: relative;
    width: 100%;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.scheme-block-line {
    position: absolute;
    /* top: calc((var(--schema-gap-row) - 2px) * -1); */
    right: -19px;
    height: calc(var(--schema-gap-row) - 6px);
    width: 14px;
    background: url(assets/icons/chevron-down.svg) center bottom no-repeat;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.scheme-block-line::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 1px;
    right: 6px;
    width: 2px;
    margin-left: -1px;
    background: #dae6f2;
}


/* .scheme-droppable {
    margin-top: 8px;
} */


/*************** Button ***************/

button {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-sizing: border-box;
    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;
}


/*************** Droppable ***************/

.droppable {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 186px;
    padding: 12px;
    border-radius: 8px;
    background: #ecfcde;
    color: #8bd74b;
    -webkit-transition: border-color 0.2s ease-out, color 0.2s ease-out;
    -o-transition: border-color 0.2s ease-out, color 0.2s ease-out;
    transition: border-color 0.2s ease-out, color 0.2s ease-out;
    border: 1px dashed #8bd74b;
    height: 56px;
}

.droppable.ui-droppable-hover {
    border-color: #46b755;
    color: #46b755;
}

.droppable-placeholder {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}


/*************** Draggable ***************/

.draggable {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 50px;
    padding: 12px 16px 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #ffffff;
    -webkit-box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
    box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: move;
}

.draggable::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    bottom: -1px;
    width: 8px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #3f8cff;
    -webkit-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}

.draggable-ico_drag {
    display: block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 24px;
    height: 20px;
    margin-right: 8px;
    background: url("assets/icons/drag-dots.svg") center center;
}

.draggable-ico_success,
.draggable-button_dismiss {
    margin-left: 12px;
}

.draggable-ico_dismiss,
.draggable-ico_success {
    display: block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.draggable-ico_success {
    background: url("assets/icons/check.svg");
}

.draggable-ico_dismiss {
    background: url("assets/icons/dismiss.svg");
}

.draggable-text {
    margin: 0 auto 0 0;
    text-align: left;
    color: #183b59;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.draggable:not(.draggable_dragged):not(.draggable_missing):not(.draggable_disabled):not(.draggable_failure):hover::before {
    background: #0c6ed6;
}

.draggable_dragged {
    -webkit-box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
    box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
}

.draggable_dragged::before {
    background: #0c6ed6;
}

.draggable_missing .draggable-button_dismiss,
.draggable_dragged .draggable-button_dismiss {
    opacity: 0;
}

.draggable_success,
.draggable_missing,
.draggable_disabled {
    cursor: auto;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.draggable_missing::before,
.draggable_disabled::before {
    background: #86bcfc;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

.draggable_success .draggable-ico_drag,
.draggable_missing .draggable-ico_drag,
.draggable_disabled .draggable-ico_drag {
    display: none;
}

.draggable_disabled:not(.draggable_success):not(.draggable_failure),
.draggable_missing {
    padding-right: 48px;
}

.draggable_missing .draggable-text,
.draggable_disabled .draggable-text {
    color: #798c9d;
}

.draggable_success {
    border-color: #3f8cff;
}

.draggable_failure {
    border-color: #ff564e;
}

.draggable_failure::before {
    background: #ff564e;
}


/*************** Drag and Drop Cards Box ***************/

.dnd-cards-box {
    display: grid;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    gap: 24px;
    padding: 24px;
    background: #f8fcff;
    border-radius: 8px;
}

.dnd-cards-box__cells {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    -ms-flex-line-pack: start;
    align-content: flex-start;
    gap: 12px;
}


/*************** Toast ***************/

.toast {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    position: fixed;
    right: 48px;
    bottom: 96px;
    border: 1px solid transparent;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
    box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
    color: #183b59;
    background: #ffffff;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    -webkit-transform: translateX(calc(100% + 50px));
    -ms-transform: translateX(calc(100% + 50px));
    transform: translateX(calc(100% + 50px));
    z-index: 10;
}

.toast_transition {
    -webkit-transition: -webkit-transform 0.2s ease-out;
    transition: -webkit-transform 0.2s ease-out;
    -o-transition: transform 0.2s ease-out;
    transition: transform 0.2s ease-out;
    transition: transform 0.2s ease-out, -webkit-transform 0.2s ease-out;
}

.toast_show {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    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);
}


/*************** Footer eom ***************/

.footer-eom-body-padding {
    height: 120px;
}

.footer-eom {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    margin: 0 -32px -32px;
    padding: 16px 32px;
    border-top: 1px solid #ebf4fd;
    background: #ffffff;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.footer-eom-check {
    margin-left: auto;
}

.grid-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}

.scheme.scheme--blue .construction-card {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #3f8cff;
}

.scheme.scheme--blue .droppable {
    background: #ebf3ff;
    border-color: #3f8cff;
}

table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    border-style: hidden;
    box-shadow: 0 0 0 1px #DAE6F2;
    border-radius: 8px;
    width: 100%;
}

table td,
table th {
    border: 1px solid #DAE6F2;
    padding: 8px;
    width: 50%;
}

h3.card-header {
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #183B59;
    margin-bottom: 32px;
}

/************************************************/
/******************* ADAPTIVE *******************/
/************************************************/

@media (max-width: 1487px) {
  .eom-wrapper {
    padding: 16px;
  }

  .eom-body {
    padding: 16px;
  }

  .eom-container {
    max-width: 100%;
  }

  .card {
    padding: 40px 0 40px 24px;
    margin-bottom: 24px;
  }

  .card-image-wrapper {
    width: 180px;
    margin-left: 16px;
  }

  .card-about {
    padding-top: 8px;
  }

  .footer-eom {
    padding: 16px;
    margin: 0 -16px -16px;
    border-radius: 0 0 8px 8px;
  }

  .task-box {
    padding: unset;
    box-shadow: none;
  }
  
  .dnd {
    position: sticky;
    bottom: 81px;
    margin-top: 56px;
    margin-left: -16px;
    margin-right: -16px;
    border-top: 1px solid #DAE6F2;
    border-radius: unset;
    overflow-y: auto;
    max-height: 224px;
    box-sizing: border-box;
    background: #f8fcff;
  }

  .dnd-cards-box__cells{
    grid-template-columns: repeat(3, 1fr);
  }
  
  .dnd::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
  }

  .dnd::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #dee3e8;
    border: 2px solid #f8fcff;
  }
  
  .dnd::-webkit-scrollbar-thumb:hover {
    background-color: #caccce;
  }

  .footer-eom-body-padding {
    display: none;
  }

  .toast{
    right: 32px;
  }

  .grid{
    gap: 0 var(--schema-gap-column);
  }

  .scheme{
    margin-bottom: 0;
  }

  .grid .constructor-inner{
    grid-column: auto/span 12;
  }

  .grid .dnd{
    grid-column: auto/span 12;
  }

  .constructor-inner{
    padding: 80px 24px 40px;
    -webkit-box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
    box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
    border-radius: 8px;
  }

  .constructor-inner table,.card-header{
    max-width: 757px;
    margin: 0 auto;
  }

}

@media (max-width: 1024px) {
  /* EOM WRAPPER */
  .footer-eom {
    position: static;
  }

  .card-image-wrapper {
    width: 160px;
  }

  .dnd {
    max-height: 156px;
    bottom: 0;
  }
}

  /* ЭТОТ КУСОК КОДА БЫЛ ДОБАВЛЕН АВТОМАТИЧЕСКИ ДЛЯ ПОДДЕРЖКИ СУРЦОК, НЕ УДАЛЯТЬ */

  .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;
  }
}
