.treatmentsBlock {
  width: 100%;
}

.treatmentsBlock__container {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 0 auto;
  max-width: 1280px;
  width: 90%;
}

.treatmentsBlock__header {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
  text-align: center;
}

.treatmentsBlock__top-row {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.treatmentsBlock__top-text {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.treatmentsBlock__top-icon {
  display: block;
  height: auto;
  width: 54px;
}

.treatmentsBlock__title {
  color: #ffffff;
  font-family: "Gilda Display", serif;
  font-size: 60px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 1.2;
  margin: 0;
}

.treatmentsBlock__text {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.treatmentsBlock__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.treatmentsBlock__card {
  border-radius: 20px;
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.treatmentsBlock__card-link {
  color: inherit;
  display: flex;
  height: 100%;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.treatmentsBlock__card-image {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.treatmentsBlock__card-overlay {
  inset: 0;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  transition: opacity 420ms ease;
  z-index: 2;
}

.treatmentsBlock__card-gradient {
  background: linear-gradient(
    180deg,
    rgba(2, 14, 17, 0.02) 24%,
    rgba(5, 38, 46, 0.22) 64%,
    rgba(5, 38, 46, 0.66) 100%
  );
  inset: 0;
  position: absolute;
  transition: background 420ms ease;
}

.treatmentsBlock__blob {
  height: auto;
  max-width: none;
  opacity: 1;
  position: absolute;
  transform-origin: center;
  transition:
    transform 520ms ease,
    opacity 420ms ease;
}

.treatmentsBlock__blob--primary {
  left: -42.76px;
  top: 300px;
  transform: rotate(-120deg) scale(1);
  width: 677.18px;
}

.treatmentsBlock__blob--secondary {
  left: -78px;
  opacity: 0;
  top: 162px;
  transform: rotate(-150deg) scale(0.9);
  width: 594px;
}

.treatmentsBlock__card-title {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-family: "Gilda Display", serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  inset: 393px 20px auto;
  left: 50%;
  justify-content: center;
  letter-spacing: 0.36px;
  line-height: 1.2;
  margin: 0;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition:
    color 320ms ease,
    font-size 420ms ease,
    top 420ms ease,
    transform 420ms ease;
  width: calc(100% - 40px);
  z-index: 3;
  text-wrap: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .treatmentsBlock__card-link:hover .treatmentsBlock__blob--primary,
  .treatmentsBlock__card-link:focus-visible .treatmentsBlock__blob--primary {
    opacity: 1;
    transform: rotate(-120deg) scale(1.2) translateY(-40px);
  }

  .treatmentsBlock__card-link:hover .treatmentsBlock__blob--secondary,
  .treatmentsBlock__card-link:focus-visible .treatmentsBlock__blob--secondary {
    opacity: 0.78;
    transform: rotate(-150deg) scale(1.08) translateY(-120px);
  }

  .treatmentsBlock__card-link:hover .treatmentsBlock__card-gradient,
  .treatmentsBlock__card-link:focus-visible .treatmentsBlock__card-gradient {
    background: linear-gradient(
      180deg,
      rgba(3, 28, 34, 0.94) 0%,
      rgba(5, 32, 39, 0.9) 54%,
      rgba(2, 14, 17, 0.96) 100%
    );
  }

  .treatmentsBlock__card-link:hover .treatmentsBlock__card-title,
  .treatmentsBlock__card-link:focus-visible .treatmentsBlock__card-title {
    color: #ffffff;
    font-size: 40px;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .treatmentsBlock__card-overlay,
  .treatmentsBlock__blob,
  .treatmentsBlock__card-title {
    transition: none;
  }
}

@media (max-width: 1200px) {
  .treatmentsBlock__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .treatmentsBlock {
    padding-bottom: 90px;
    padding-top: 90px;
  }

  .treatmentsBlock__title {
    font-size: 48px;
  }

  .treatmentsBlock__text {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .treatmentsBlock {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .treatmentsBlock__container {
    gap: 42px;
  }

  .treatmentsBlock__header {
    gap: 18px;
  }

  .treatmentsBlock__title {
    font-size: 38px;
  }

  .treatmentsBlock__text {
    font-size: 16px;
  }

  .treatmentsBlock__grid {
    grid-template-columns: 1fr;
  }

  .treatmentsBlock__card {
    min-height: 380px;
  }

  .treatmentsBlock__card-title {
    inset: auto 20px 22px;
    left: auto;
    transform: none;
    width: auto;
  }
}
