@import "normalize.css";
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
}

.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);
}




/*************** 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: 12px 20px;
    background: #8BD74B;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    transition: background-color 0.2s ease-out;
}

.button:hover {
    background: #46B755;
}

.button[disabled] {
    background: #C7EFA5;
    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;
}


/*************** Task Box ***************/

.task-box {
    position: relative;
    padding: 80px 64px;
    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;
}


/*************** Construction card ***************/

.construction-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #EBF4FD;
    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;
}

.construction-card > div:last-child {
    margin-top: 16px;
}

.construction-card_m {
    padding-top: 16px;
    padding-bottom: 16px;
}

.construction-card_l {
    padding-top: 24px;
    padding-bottom: 24px;
}

.construction-card-title {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.construction-card-title:not(:last-child) {
    margin-bottom: 8px;
}

.construction-card-text {
    margin: 0;
}


/*************** Card ***************/

.card *,
.card *::before,
.card *::after {
    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-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 40px;
    background: #8BD74B url("assets/icons/search.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: #8BD74B;
}

.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: 220px;
}


/*************** Scheme ***************/

.grid {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(12, 1fr);
    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 {
    box-sizing: border-box;
}

.scheme {
    --schema-gap-row: 30px;
    --schema-gap-column: 24px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.scheme-block {
    position: relative;
    width: 100%;
    align-items: stretch;
}

.scheme-block-line {
    position: absolute;
    top: calc((var(--schema-gap-row) - 2px) * -1);
    left: 50%;
    height: calc(var(--schema-gap-row) - 6px);
    width: 14px;
    background: url("assets/icons/chevron-down.svg") center bottom no-repeat;
    transform: translateX(-50%);
}

.scheme-block-line::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1px;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #DAE6F2;
}

/*************** 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;
}


/*************** Droppable ***************/

.droppable {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 186px;
    min-height: 48px;
    padding: 12px;
    border-radius: 8px;
    background: #ECFCDE;
    color: #8BD74B;
    transition: border-color 0.2s ease-out, color 0.2s ease-out;
    border: 1px dashed #8BD74B;
}

.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: flex;
    align-items: center;
    min-height: 48px;
    padding: 16px 16px 16px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
    box-sizing: border-box;
    cursor: move;
    margin-top: 8px;
}

.draggable::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    bottom: -1px;
    width: 8px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #8BD74B;
    transition: background-color 0.2s ease-out;
}

.draggable-ico_drag {
    display: block;
    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;
    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: #46B755;
}

.draggable_dragged {
    box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
}

.draggable_dragged::before {
    background: #46B755;
    ;
}

.draggable_missing .draggable-button_dismiss,
.draggable_dragged .draggable-button_dismiss {
    opacity: 0;
}

.draggable_success,
.draggable_missing,
.draggable_disabled {
    cursor: auto;
    box-shadow: none;
}

.draggable_missing::before,
.draggable_disabled::before {
    background: #B0E881;
    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: #46B755;
}

.draggable_success::before {
    background: #46B755;
}

.draggable_failure {
    border-color: #FF564E;
}

.draggable_failure::before {
    background: #FF564E;
}


/*************** Drag and Drop Cards Box ***************/

.dnd-cards-box {
    display: grid;
    align-content: flex-start;
    gap: 16px;
    padding: 24px;
    padding-top: 16px;
    background: #F8FCFF;
    border-radius: 8px;
    margin-top: 40px;
}

.dnd-cards-box__cells {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-content: flex-start;
    gap: 4px 12px;
}


/*************** 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);
}


/*************** 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-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.footer-eom-check {
    margin-left: auto;
}

.sheme-rounded-line {
    width: calc(100% - 40px);
    height: 24px;
    border: 2px solid #DAE6F2;
    margin: -30px auto;
    border-top: none;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}


/************************************************/
/******************* ADAPTIVE *******************/
/************************************************/

@media (max-width: 1487px) {
    .eom-wrapper {
      padding: 16px;
    }
  
    .eom-body {
      padding: 16px;
    }
    
    .dnd-cards-box__cells {
        grid-template-columns: repeat(4, 1fr);
    }
  
    .card {
      padding: 48px 24px 40px;
      margin-bottom: 24px;
    }
  
  
  
    .footer-eom {
      padding: 16px;
      margin: 0 -16px -16px;
    }
  
    .task-box {
      padding: unset;
      box-shadow: none;
    }

  
    .grid_main {
        padding: 80px 64px;
        box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
        border-radius: 8px;
    }

    .g-col-6.task-box__item {
        grid-column: auto/span 12;
    }
    
    .dnd-cards-box {
      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;
    }
    
    .dnd-cards-box::-webkit-scrollbar {
      -webkit-appearance: none;
      width: 8px;
    }
  
    .dnd-cards-box::-webkit-scrollbar-thumb {
      border-radius: 4px;
      background-color: #dee3e8;
      border: 2px solid #f8fcff;
    }
    
    .dnd-cards-box::-webkit-scrollbar-thumb:hover {
      background-color: #caccce;
    }
  
    .footer-eom-body-padding {
      display: none;
    }

}

  
@media (max-width: 1024px) {
    /* EOM WRAPPER */
    .footer-eom {
      position: static;
    }
  
    .card_m .card-image-wrapper {
      width: 160px;
    }
    
    .dnd-cards-box__cells {
        grid-template-columns: repeat(3, 1fr);
    }

    .dnd-cards-box {
        bottom:  0;
    }

    .card {
        padding-right: 0;
    }

    .grid_main {
        padding: 80px 16px;
    }

    .construction-card {
        padding-left: 10px;
        padding-right: 10px;
    }
    .scheme {
        --schema-gap-column: 16px;
    }
}

  /* ЭТОТ КУСОК КОДА БЫЛ ДОБАВЛЕН АВТОМАТИЧЕСКИ ДЛЯ ПОДДЕРЖКИ СУРЦОК, НЕ УДАЛЯТЬ */

  .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;
  }
}
