.elementor-widget-montoport_cards {
  width: 100%;
}

.montoport-cards {
  box-sizing: border-box;
  width: 100%;
}

.montoport-cards__inner {
  width: 1066px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

.montoport-cards__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 62px;
}

.montoport-cards__title {
  margin: 0;
  color: #00617f;
  text-align: center;
  font-family: "Gotham", Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 350;
  line-height: normal;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.montoport-cards__headline {
  margin: 14px 0 0;
  color: #54585a;
  text-align: center;
  font-family: "Berlingske Serif", "Times New Roman", Times, serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: 0.3px;
}

.montoport-cards__intro {
  margin: 22px 0 0;
  color: #54585a;
  text-align: center;
  font-family: "Gotham", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 325;
  line-height: 16px;
  max-width: 900px;
}

.montoport-cards__intro p {
  margin: 0 0 0.75em;
}

.montoport-cards__intro p:last-child {
  margin-bottom: 0;
}

.montoport-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 314px);
  gap: 62px;
  justify-content: start;
}

.montoport-cards__track.swiper-wrapper {
  display: contents;
}

@media (min-width: 768px) {
  .montoport-cards__grid.swiper {
    overflow: visible;
  }

  .montoport-cards__card.swiper-slide {
    width: auto;
  }
}

.montoport-cards__card {
  position: relative;
  width: 314px;
  height: 314px;
  min-width: 314px;
  perspective: 1200px;
}

.montoport-cards__flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.montoport-cards__card:hover .montoport-cards__flip {
  transform: rotateY(180deg);
}

.montoport-cards__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.montoport-cards__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.montoport-cards__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.montoport-cards__face--front {
  background: #eeefef;
  color: #54585a;
  display: flex;
  flex-direction: column;
}

.montoport-cards__face--front.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 239, 239, 0.62);
  z-index: 1;
}

.montoport-cards__face--back {
  background: #0a6889;
  transform: rotateY(180deg);
  color: #fff;
}

.montoport-cards__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.montoport-cards__ornament {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 26px;
  z-index: 3;
  pointer-events: none;
}

.montoport-cards__ornament svg {
  display: block;
  width: 100%;
  height: auto;
}

.montoport-cards__front-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: 60%;
  z-index: 4;
}

.montoport-cards__back-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  width: auto;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.montoport-cards__card-title {
  margin: 0 0 10px;
  color: #54585a;
  text-align: center;
  font-family: "Ghotam", "Gotham", Arial, sans-serif !important;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.06px;
}

.montoport-cards__card-body {
  margin: 0;
  color: #686b6d;
  text-align: center;
  font-family: "Gotham", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 325;
  line-height: 16px;
}

.montoport-cards__card-body p {
  margin: 0 0 0.75em;
  text-align: center;
}

.montoport-cards__card-body p:last-child {
  margin-bottom: 0;
}

.montoport-cards__hover-title {
  margin: 0;
  color: #fff;
  font-family: "Ghotam", "Gotham", Arial, sans-serif !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 34px;
}

.montoport-cards__hover-arrow {
  display: inline-flex;
  align-items: center;
}

.montoport-cards__hover-arrow svg {
  width: 21px;
  height: 13px;
}

@media (max-width: 992px) {
  .montoport-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 314px));
    gap: 32px;
    justify-content: center;
  }

  .montoport-cards__card {
    width: 100%;
    min-width: 0;
    max-width: 314px;
    height: 314px;
  }
}

@media (max-width: 767px) {
  .montoport-cards__inner {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .montoport-cards__header {
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
  }

  .montoport-cards__grid {
    display: block;
    margin-top: 0;
    padding: 0 20px;
    overflow: hidden;
  }

  .montoport-cards__grid.swiper-initialized {
    padding: 0 0 0 20px;
  }

  .montoport-cards__track.swiper-wrapper {
    display: flex;
    align-items: stretch;
  }

  .montoport-cards__card.swiper-slide {
    width: calc(100vw - 44px);
    flex-shrink: 0;
    box-sizing: border-box;
    max-width: none;
    min-width: 0;
  }

  .montoport-cards__card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: none;
  }
}
