.quality-container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.quality-hero {
  position: relative;
  isolation: isolate;
  min-height: 580px;
  overflow: hidden;
  background: #101e31;
  color: #fff;
}

.quality-hero-photo {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -2;
  background: url("assets/gallery-cmm.webp") center 54% / cover no-repeat;
}

.quality-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101e31 0%, #101e31 32%, rgba(16,30,49,.90) 48%, rgba(16,30,49,.15) 100%),
    linear-gradient(0deg, rgba(16,30,49,.65), transparent 50%);
}

.quality-hero-inner { padding-top: 135px; padding-bottom: 120px; }
.quality-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.quality-hero h1 span { color: #2b95f6; }
.quality-hero p {
  max-width: 540px;
  margin-top: 24px;
  color: #d3deea;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.6;
}
.quality-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 4px;
  background: #2b95f6;
  color: white;
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.quality-primary-link:hover { background: #1876d3; transform: translateY(-2px); }
.quality-hero .quality-primary-link { margin-top: 34px; }

.quality-intro { background: white; padding: 95px 0; }
.quality-intro-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.quality-intro-label {
  padding-top: 9px;
  color: #2589df;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.quality-intro h2 {
  max-width: 730px;
  margin-bottom: 27px;
  color: #182b41;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.3rem, 4.3vw, 4.4rem);
  font-weight: 500;
  line-height: 1.12;
  text-transform: uppercase;
}
.quality-intro-grid > div > p {
  max-width: 730px;
  color: #50647a;
  font-size: 1rem;
  line-height: 1.85;
}
.quality-intro-grid > div > p + p { margin-top: 16px; }

.quality-section { padding: 105px 0 115px; scroll-margin-top: 80px; }
.quality-deliverables { background: #f5f8fc; }
.quality-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 20px 70px; margin-bottom: 45px; }
.quality-heading > span {
  padding-top: 16px;
  color: #2488de;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
}
.quality-heading h2 {
  color: #182b41;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.2rem, 5.4vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-transform: uppercase;
}
.quality-heading h2 span { color: #2b95f6; }
.quality-heading > p {
  grid-column: 2;
  max-width: 650px;
  color: #5c7086;
  font-size: 1rem;
  line-height: 1.8;
}

.quality-document-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.quality-document-grid article {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 205px;
  padding: 27px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: white;
}
.quality-document-grid article:nth-child(n+4) { grid-column: span 3; min-height: 180px; }
.quality-document-grid article > span,
.quality-process-grid article > span {
  color: #2b95f6;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
}
.quality-document-grid h3,
.quality-process-grid h3 {
  color: #1b2d43;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.23;
  text-transform: uppercase;
}

.quality-qualification { background: #15283e; }
.quality-qualification .quality-heading h2 { color: white; }
.quality-qualification .quality-heading > p { color: #c0cedd; }
.quality-phase-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quality-phase-group > div {
  padding: 33px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.quality-phase-label {
  color: #a4c9ea;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.quality-validation { background: #fff; }
.quality-process-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.quality-process-grid article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
  padding: 27px;
  border: 1px solid #dae5f0;
  border-radius: 8px;
  background: #f6f9fc;
}

.quality-contact { padding: 70px 0; background: #eaf4fe; }
.quality-contact-inner { display: flex; align-items: center; justify-content: flex-start; gap: 30px; }
.quality-contact p { color: #227ed2; font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.quality-contact h2 {
  margin-top: 10px;
  color: #182b41;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  text-transform: uppercase;
}
.quality-primary-link:focus-visible { outline: 2px solid #79c4ff; outline-offset: 4px; }

@media (max-width: 900px) {
  .quality-intro-grid, .quality-heading { grid-template-columns: 1fr 2fr; gap: 20px 35px; }
  .quality-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .quality-container { width: min(100% - 36px, 1200px); }
  .quality-hero { min-height: 570px; }
  .quality-hero-photo { inset: 0; opacity: .4; background-position: 45% center; }
  .quality-hero::after { background: linear-gradient(90deg, rgba(16,30,49,.95), rgba(16,30,49,.55)), linear-gradient(0deg,#101e31,transparent 55%); }
  .quality-hero-inner { padding-top: 112px; padding-bottom: 100px; }
  .quality-hero h1 { font-size: clamp(4rem, 16vw, 6rem); }
  .quality-intro, .quality-section { padding: 72px 0 82px; }
  .quality-intro-grid, .quality-heading { display: block; }
  .quality-intro-label { margin-bottom: 20px; }
  .quality-heading { margin-bottom: 30px; }
  .quality-heading h2 { margin-top: 14px; }
  .quality-heading > p { margin-top: 18px; }
  .quality-document-grid { grid-template-columns: 1fr; }
  .quality-document-grid article,
  .quality-document-grid article:nth-child(n+4) { grid-column: auto; min-height: 150px; }
  .quality-phase-group, .quality-process-grid { grid-template-columns: 1fr; }
  .quality-phase-group > div { padding: 25px; }
  .quality-process-grid article { min-height: 145px; }
  .quality-contact-inner { display: block; }
  .quality-contact .quality-primary-link { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .quality-primary-link { transition: none; }
}
.quality-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); max-width: 950px; line-height: 1.08; }
.quality-section-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 24px; background: white; border-bottom: 1px solid #e2e8f0; }
.quality-section-nav a { color: #2589df; font-weight: 600; padding: 8px 0; }
.quality-section-nav a:hover { text-decoration: underline; }

/* Explanations and deliverables remain readable within the existing visual system. */
.quality-document-grid h3, .quality-process-grid h3 { margin: 20px 0 16px; }
.quality-document-grid p, .quality-process-grid p, .quality-process-grid li {
  color: #50647a;
  font-size: .95rem;
  line-height: 1.8;
}
.quality-process-grid ul { margin: 20px 0 24px; padding-left: 20px; list-style: disc; }
.quality-process-grid li + li { margin-top: 10px; }
.quality-process-grid li::marker { color: #2b95f6; }
.quality-process-grid .quality-card-result { margin-top: auto; padding-top: 20px; border-top: 1px solid #dae5f0; }
.quality-card-result strong { display: block; margin-bottom: 8px; color: #1b2d43; }
.quality-phase-details { margin-top: 26px; }
.quality-phase-details > div + div { margin-top: 26px; padding-top: 26px; border-top: 1px solid #ffffff26; }
.quality-phase-details dt { color: white; font-weight: 600; line-height: 1.5; }
.quality-phase-details dd { margin: 12px 0 0; color: #c0cedd; font-size: .95rem; line-height: 1.8; }
.quality-scope-note { max-width: 900px; margin-top: 28px; color: #c0cedd; line-height: 1.8; }
.quality-method { margin-top: 48px; padding: 32px; border-left: 3px solid #2b95f6; background: #f5f8fc; }
.quality-method h3 { font: 500 1.8rem/1.3 'Oswald', sans-serif; color: #182b41; }
.quality-method ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 40px; margin: 28px 0; padding-left: 24px; list-style: decimal; }
.quality-method li::marker { color: #2488de; font-weight: 700; }
.quality-method strong { color: #182b41; }
.quality-method p { margin-top: 8px; color: #50647a; line-height: 1.8; font-size: .95rem; }
.quality-method .quality-method-note { padding-top: 24px; border-top: 1px solid #dae5f0; }
.formation-use-cases article p { margin-top: 18px; color: #c0cedd; font-size: .95rem; line-height: 1.8; }
@media (max-width: 700px) {
  .quality-method { padding: 24px; }
  .quality-method ol { grid-template-columns: 1fr; }
}
@media print {
  .quality-document-grid article, .quality-process-grid article, .quality-phase-details > div { break-inside: avoid; }
}
