/* /about hero — классы вне purge Tailwind */
.about-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
}

.about-hero__frame {
  position: relative;
  min-height: 22rem;
  aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
  .about-hero__frame {
    min-height: 28rem;
  }
}

.about-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.about-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.about-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.about-hero__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  padding: 1rem;
}

@media (min-width: 640px) {
  .about-hero__content {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .about-hero__content {
    padding: 2rem;
  }
}

.about-hero__cta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(54, 90, 41, 0.9);
  padding: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .about-hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
}

.about-hero__cta-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #365a29;
  transition: background-color 0.15s ease;
}

.about-hero__cta-btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.about-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
}

.about-hero__nav:hover {
  background: #fff;
}

.about-hero__nav--prev {
  left: 0.75rem;
}

.about-hero__nav--next {
  right: 0.75rem;
}

@media (min-width: 768px) {
  .about-hero__nav--prev {
    left: 1rem;
  }

  .about-hero__nav--next {
    right: 1rem;
  }
}

.about-hero__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.about-hero__dot.is-active {
  background: #fff;
}

/* Карточки: единая высота фото (object-cover) */
.about-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
}

.about-card-media--square {
  aspect-ratio: 4 / 3;
}

.about-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
