.section-full-width-banner-services .section-full-width-banner {
  min-height: 35vh;
}

.aof-services {
  padding: 60px 32px;
  background: #fff;
}

.aof-services__group {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.aof-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 326px);
  gap: 20px;
  align-items: start;
}

.aof-services__label-card {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  background: transparent;
}

.aof-services__label-text {
  font-size: 76px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: #111;
  font-weight: normal;
}

.aof-services__flip {
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  cursor: pointer;
}

.aof-services__flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.aof-services__flip:hover .aof-services__flip-inner,
.aof-services__flip.is-flipped .aof-services__flip-inner {
  transform: rotateY(180deg);
}

.aof-services__face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.aof-services__front {
  background: #222;
}

.aof-services__front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aof-services__front-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 22px;
  gap: 14px;
}

.aof-services__front-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  align-self: center;
}

.aof-services__back {
  transform: rotateY(180deg);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  box-shadow: #0000001a -4px 9px 25px -6px;
}

.aof-services__back-title {
  color: #000;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.aof-services__back-desc {
  color: rgba(0, 0, 0, 0.8);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.aof-svc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(21, 21, 21, 0.7);
}

.aof-svc-modal.is-open {
  display: flex;
}

.aof-svc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.aof-svc-modal__box {
  position: relative;
  z-index: 1;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: aof-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes aof-modal-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.aof-svc-modal__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
}

.aof-svc-modal__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aof-svc-modal__body {
  padding: 28px 24px 32px;
  overflow-y: auto;
  text-align: center;
  background-color: #fff;
  color: #1d1d1d;
}

.aof-svc-modal__title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.aof-svc-modal__desc {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 749px) {
  .aof-services__label-card h3 {
    font-size: 44px;
  }

  .aof-services {
    padding: 40px 16px;
  }

  .aof-services__grid {
    grid-template-columns: repeat(2, 165px);
    gap: 12px;
  }

  .aof-services__label-text {
    font-size: 40px;
  }

  .aof-services__front-title {
    font-size: 14px;
  }

  .aof-services__back-title {
    font-size: 14px;
  }

  .aof-services__back-desc {
    font-size: 13px;
  }
  .section-full-width-banner__buttons {
    width: 100%;
  }
}
