:root {
  --modal-background: rgba(0,0,0,.47);
  --modal-overlay-background: rgb(255,255,255);

  --btn-hover-opacity: .75;
}


.scrollable-cards-modal {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: var(--modal-background, var(--modal-overlay-background));
  position: fixed;
  z-index: 110;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
  opacity: 0;
  overflow: auto;
  transition: opacity .3s;
  overflow: scroll;
  overflow-x: hidden;
}

.scrollable-cards-modal .modal__overlay {
  background: var(--modal-overlay-background);
  width: 88.71%;
  max-width: 1110px;
  margin: 40px auto;
  border-radius: 18px;
  display: flex;
  flex-direction: column;

}

.scrollable-cards-modal .modal__content {
  padding: 0 76px 70px;
  display: none;
}

.scrollable-cards-modal .modal__content>h2 {
  line-height: 1.4;
}

.scrollable-cards-modal .modal__content>p{
  font-size: 18px;
  line-height: 1.5;
}


.scrollable-cards-modal .modal__content.active {
  display: block;
}

.scrollable-cards-modal .modal__content_sections {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.scrollable-cards-modal .modal__content .section {
  padding: 40px 70px;
  border-radius: 18px;
  display: flex;
  gap: 35px;
}

.scrollable-cards-modal .modal__content .section>div {
  display: flex;
  align-items: center;
  max-width: 700px;
}

.scrollable-cards-modal .modal__content .section>div>span {
  display: flex;
  align-items: center;
}

.scrollable-cards-modal .modal__content .section>div>p {
  font-size: 18px;
  line-height: 1.6;
}

.scrollable-cards-modal .modal__content .section>div>p:last-of-type {
  margin-bottom: 0;
}

.scrollable-cards-modal .modal__content .section>div>p>span {
  font-weight: 500;
}

.scrollable-cards-modal .modal__ctas {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 50px;
  padding-top: 50px;
}

.scrollable-cards-modal .modal__ctas a:first-of-type {
  color: #262626;
  display: flex;
  gap: 15px;
}

.scrollable-cards-modal .modal__ctas a:first-of-type:hover {
  opacity: var(--btn-hover-opacity);
  transition: opacity .2s ease-in-out;
}

.scrollable-cards-modal .modal__ctas a.btn {
  margin: 0 !important;
  padding: 10px 25px !important;
}

.scrollable-cards-modal .modal__close {
  position: sticky;
  top: 15px;
  display: flex;
  align-self: flex-end;
  margin: 25px 15px 15px;
  border: none;
  background: none;
  outline: none;
  z-index: 200;
}

@media (max-width: 768px) {
  .scrollable-cards-modal .modal__content {
    padding: 0 20px 50px;
  }
  
  .scrollable-cards-modal .modal__content>h2{
    text-align: left !important;
  }
  
  .scrollable-cards-modal .modal__content>p{
    text-align: left !important;
    font-size: 16px;
  }

  
  .scrollable-cards-modal .modal__content .section {
    padding: 20px 20px 40px;
    gap: 15px;
    flex-direction: column;
    justify-content: center;
  }
  
  .scrollable-cards-modal .modal__content .section>div>p {
    font-size: 16px;
  }
  
  .scrollable-cards-modal .modal__content .section>span {
    font-size: 60px;
  }
  
  .scrollable-cards-modal .modal__close {
    margin: 15px 5px;
  }
}

@media (max-width: 540px) {
  .scrollable-cards-modal .modal__overlay {
    width: 96%;
  }
  
  .scrollable-cards-modal .modal__ctas {
    flex-direction: column;
    gap: 30px;
  }

  .scrollable-cards-modal .modal__ctas a:first-of-type {
    order: 2;
  }
}