.domain-card {
  position: relative;
  min-height: 650px;
  background: linear-gradient(155deg, #123a55 0%, #082236 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 22px 45px rgba(1, 19, 33, 0.2);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.domain-card.quality,
.domain-card.safety,
.domain-card.environment {
  background: linear-gradient(155deg, #123a55 0%, #082236 100%);
}

.domain-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #00a6a6, #dfc168);
}

.domain-card:hover {
  transform: translateY(-7px);
  border-color: rgba(223, 193, 104, 0.55);
  box-shadow: 0 30px 62px rgba(1, 19, 33, 0.34);
}

.domain-top {
  min-height: 22px;
  align-items: center;
  font-size: 0.82rem;
  line-height: 1.35;
}

.domain-card h3 {
  min-height: 112px;
  margin: 34px 0 22px;
  font-size: clamp(2.65rem, 4vw, 3.95rem);
}

.domain-image {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 18px;
  background: #dce8e6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.domain-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(2, 28, 45, 0.28));
  pointer-events: none;
}

.domain-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.domain-card:hover .domain-image img {
  transform: scale(1.035);
}

.domain-card > p {
  min-height: 64px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.domain-card > a {
  margin-top: auto;
  font-size: 1.05rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .domain-card {
    min-height: 0;
  }

  .domain-card h3 {
    min-height: auto;
    font-size: clamp(2.5rem, 11vw, 3.45rem);
  }

  .domain-image {
    aspect-ratio: 16 / 10;
  }

  .domain-card > p {
    min-height: 0;
    font-size: 1.05rem;
  }

  .domain-card > a {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain-card,
  .domain-image img {
    transition: none;
  }
}
