.quality-hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  background: #071225;
}

.quality-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 16, 42, 0.84) 0%, rgba(6, 16, 42, 0.62) 38%, rgba(6, 16, 42, 0.2) 68%, rgba(6, 16, 42, 0) 100%),
    linear-gradient(180deg, rgba(6, 16, 42, 0.12) 0%, rgba(6, 16, 42, 0.44) 100%);
}

.quality-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.16));
}

.quality-hero__image {
  position: absolute;
  inset: 0;
  background-image: url('../../images/1.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.quality-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 75vh;
  padding: 4rem 20px;
}

.quality-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: 0;
}

.quality-hero__accent {
  color: inherit;
  text-shadow: none;
}

.quality-hero p {
  width: min(100%, 58ch);
  max-width: 58ch;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.quality-section {
  padding: var(--site-section-gap) 0;
}

.quality-policy {
  margin-top: 0;
  margin-bottom: 0;
  padding: var(--site-section-gap) 0;
}

.quality-policy__row {
  margin-bottom: 0;
}

.quality-policy .main-title {
  width: auto;
  max-width: none;
  font-size: 2rem;
}

.quality-policy__copy p {
  margin: 1.1rem 0 0;
}

.quality-policy__copy p + p {
  margin-top: 0.85rem;
}

.quality-policy__media img {
  height: 460px;
}

.quality-section h2 {
  margin: 0;
  color: #121212;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.quality-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.quality-resource {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  padding: 1.45rem;
  border: 1px solid #dfe6f2;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 31, 67, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.quality-resources p {
  color: #4d5563;
  line-height: 1.7;
}

.quality-resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.quality-resource:hover {
  transform: translateY(-4px);
  border-color: var(--blue-1);
  box-shadow: 0 20px 44px rgba(10, 22, 48, 0.12);
}

.quality-resource h3,
.quality-resource p {
  transition: color 220ms ease;
}

.quality-resource:hover h3,
.quality-resource:hover p {
  color: var(--blue-1);
}

.quality-resource h3 {
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
  line-height: 1.08;
  color: var(--blue-1);
  font-weight: 700;
}

.quality-resource p {
  margin: 0;
  color: #4d5563;
  line-height: 1.7;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .quality-resources {
    grid-template-columns: 1fr;
    display: grid;
  }

  .quality-resource-grid {
    grid-template-columns: 1fr;
  }

  .quality-policy .main-title {
    max-width: none;
  }

  .quality-policy__media img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .quality-hero::before {
    background:
      linear-gradient(90deg, rgba(6, 16, 42, 0.88) 0%, rgba(6, 16, 42, 0.66) 64%, rgba(6, 16, 42, 0.24) 100%),
      linear-gradient(180deg, rgba(6, 16, 42, 0.08) 0%, rgba(6, 16, 42, 0.48) 100%);
  }

  .quality-hero__image {
    background-position: center;
  }

  .quality-hero p {
    max-width: 31ch;
  }

  .quality-section {
    padding: var(--site-section-gap) 0;
  }

  .quality-policy {
    padding: var(--site-section-gap) 0;
  }
}
