div.card-modal {
  max-width: 1440px;
  margin: 0 auto;
  gap: 50px;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding: 50px 1.5rem 80px;
}
@media (min-width: 992px) {
  div.card-modal {
    gap: 3%;
  }
}
div.card-modal > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
@media (min-width: 992px) {
  div.card-modal > div {
    gap: 64px;
  }
}

.card-modal__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 50px auto 50px;
}

.card-modal__show-more {
  border: 0;
  cursor: pointer;
}

.card-modal__show-more::after {
  transform: rotate(90deg);
}

.card-modal__item--hidden {
  display: none !important;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 60px 0;
}
@media (min-width: 992px) {
  .cards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7.5rem;
  }
}

.card-modal-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #e5e9ef;
  border-radius: 10px;
  min-height: 150px;
  max-width: 609px;
  padding: 14px 18px 14px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .card-modal-wrapper {
    padding: 36px 1.5rem 20px;
    min-height: 280px;
    margin: 0 auto;
  }
}

.card-logo {
  display: flex;
  background: #fff;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1019607843);
  border-radius: 12px;
  margin-top: -48px;
  margin-left: -33px;
  width: 125px;
  height: 120px;
}
@media (min-width: 992px) {
  .card-logo {
    margin-top: -43px;
    margin-left: -55px;
    width: 234px;
    height: 216px;
  }
}
.card-logo img {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  object-fit: contain;
  width: 100%;
  padding: 22px;
}

.card-body {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  min-height: 150px;
}
@media (min-width: 992px) {
  .card-body {
    min-height: 224px;
  }
}

.card-text {
  font: normal normal 400 16px/25px "Outfit", sans-serif;
  color: #1a1a1a;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 992px) {
  .card-text {
    font-size: 10px;
    line-height: 12px;
  }
}

.btn-open-modal,
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-open-modal:hover,
.btn-visit:hover {
  opacity: 0.9;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 0.75rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 1160px;
  max-height: 40rem;
  padding: 5rem 3.2rem 3rem;
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: 1.6rem;
  right: 2.1rem;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #2AABE3;
  line-height: 1;
  font-weight: 800;
}

.modal-logo {
  display: flex;
  flex-shrink: 0;
  flex: 1;
  height: 28.5rem;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1019607843);
  padding: 20px;
}

.modal-logo img {
  width: 100%;
  height: auto;
  max-width: 470px;
  object-fit: contain;
}

.modal-content {
  flex: 1;
}

#modal-link {
  min-width: 209px;
  justify-content: space-between;
}

.modal-body-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 1.5rem;
  overflow-y: auto;
  height: 420px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-body-text::-webkit-scrollbar {
  display: none;
}

@media (max-width: 540px) {
  .modal-box {
    flex-direction: column;
  }
}
@media (max-width: 750px) {
  div.card-modal {
    padding: 42px 0 50px;
  }
  .modal-box {
    width: 100%;
    max-height: 100vh;
    height: 100%;
    padding: 62px 40px;
    box-sizing: border-box;
    flex-direction: column;
  }
  .modal-logo {
    flex: 0 0 auto;
    min-height: 255px;
    height: auto;
    width: 276px;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
  }
  .modal-body-text {
    height: 400px;
  }
  .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .card-modal__actions {
    margin: 0 auto 70px;
  }
  .card-modal-wrapper {
    max-width: 324px;
    height: 150px;
    padding: 8px 9px;
    gap: 0.9rem;
    margin-left: 18px;
  }
  .card-body {
    min-height: 120px;
    justify-content: space-between;
  }
  .card-logo {
    display: flex;
    margin-top: -21px;
    margin-left: -18px;
    align-items: center;
    justify-content: center;
  }
  .card-logo img {
    padding: 14px 9px;
  }
  .card-modal .cta__basic,
  button.card-modal__show-more.cta__basic,
  .modal-box a.cta__basic,
  a#modal-link {
    gap: 17px;
    width: 140px;
    min-width: 0;
    height: 33px;
    font: normal normal 600 12px/31.08px "Outfit", sans-serif;
    letter-spacing: 0;
    vertical-align: middle;
    justify-content: flex-start;
  }
  .card-modal .cta__basic::after,
  button.card-modal__show-more.cta__basic::after,
  .modal-box a.cta__basic::after,
  a#modal-link::after {
    content: "";
    background: #fff url("data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.9327%209.32662L0%209.32662V7.20162L12.9327%207.20162L7.2335%201.50238L8.73588%200L17%208.26412L8.73588%2016.5282L7.2335%2015.0259L12.9327%209.32662Z'%20fill='%23244283'/%3e%3c/svg%3e") 50%/12px 12px no-repeat;
    border-radius: 50px;
    width: 24px;
    height: 24px;
    display: block;
  }
  a#modal-link {
    width: 159px;
  }
}
