.quality-page main {
  background:
    radial-gradient(circle at 0 18%, rgba(16, 117, 214, .08), transparent 26%),
    radial-gradient(circle at 100% 46%, rgba(85, 173, 255, .08), transparent 30%),
    linear-gradient(#fff, #fbfdff 45%, #fff);
}

.quality-hero {
  position: relative;
  min-height: 750px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 57, 128, .98) 0%, rgba(0, 90, 178, .78) 42%, rgba(0, 120, 220, .2) 100%),
    url("./assets/hero-dark.png") center / cover no-repeat;
}
.quality-hero::after {
  display: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 560px;
  align-items: center;
  min-height: 750px;
  gap: 48px;
}
.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}
.hero-copy h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}
.hero-copy p {
  width: 620px;
  max-width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  line-height: 1.95;
}
.quality-hero img {
  justify-self: end;
  width: 520px;
  height: 280px;
  object-fit: contain;
  opacity: 0;
}

.stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: -75px;
  padding-bottom: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0 74px, #fff 75px 100%);
}
.stats-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 122px;
  padding: 18px 16px;
  border: 1px solid #d6e9fb;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px rgba(7, 86, 170, .14);
}
.stats-panel article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-content: center;
  padding: 0 24px;
  border-right: 1px solid #e2eef9;
}
.stats-panel article:last-child { border-right: 0; }
.stats-panel svg {
  grid-row: span 3;
  width: 38px;
  height: 38px;
  color: var(--blue);
}
.stats-panel strong {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}
.stats-panel b {
  margin-top: 7px;
  color: #243653;
  font-size: 15px;
}
.stats-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.intro-block { padding-top: 0; }
.quality-page .section { padding: 30px 0 24px; }
.split-card {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  min-height: 350px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff 0%, #f6fbff 100%);
}
.split-card.reverse {
  grid-template-columns: 56% 44%;
  background: linear-gradient(90deg, #fff 0%, #f7fbff 100%);
}
.split-card > img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.split-card.reverse > img { height: 350px; }
.split-copy {
  padding: 40px 54px;
}
.split-copy h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}
.split-copy h3 {
  margin: 0 0 18px;
  color: #1c2d48;
  font-size: 22px;
}
.split-copy p {
  margin: 0 0 18px;
  color: #42536e;
  line-height: 1.9;
}
.split-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.split-copy li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #31435e;
}
.split-copy li svg {
  color: var(--blue);
}
.mini-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.mini-features span {
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
}
.mini-features svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: #eef6ff;
}

.test-section,
.cert-section,
.timeline-section { background: linear-gradient(180deg, #f7fbff, #fff); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.test-grid article {
  padding: 20px 20px 18px;
}
.test-grid article > svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}
.test-grid h3 {
  margin: 10px 0 6px;
  color: var(--blue);
  font-size: 18px;
}
.test-grid p {
  min-height: 44px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.test-grid img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 5px;
}

.cert-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  padding: 26px 36px;
}
.cert-cards,
.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cert-cards article,
.honor-grid article {
  text-align: center;
}
.cert-cards img,
.honor-grid img {
  display: none;
}
.cert-cards article::before,
.honor-grid article::before {
  content: "";
  display: block;
  width: 100%;
  height: 142px;
  border: 1px solid #d9e5f2;
  border-radius: 4px;
  background:
    radial-gradient(circle at 76% 24%, rgba(203, 53, 46, .22) 0 12px, transparent 13px),
    linear-gradient(90deg, rgba(11, 103, 201, .12) 0 2px, transparent 2px),
    linear-gradient(#fff, #f8fbff);
  box-shadow: inset 0 0 0 9px #fff, inset 0 0 0 10px #dce8f5;
}
.cert-cards article::after,
.honor-grid article::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  top: 45px;
  height: 48px;
  background:
    linear-gradient(#d3dde8, #d3dde8) 0 0 / 100% 5px no-repeat,
    linear-gradient(#e3eaf2, #e3eaf2) 0 17px / 100% 4px no-repeat,
    linear-gradient(#e3eaf2, #e3eaf2) 0 32px / 78% 4px no-repeat;
}
.cert-cards article,
.honor-grid article {
  position: relative;
}
.cert-cards span,
.honor-grid p {
  display: block;
  margin: 10px 0 0;
  color: #40516a;
  font-weight: 700;
}
.cert-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 22px 42px;
  padding: 6px 10px;
}
.cert-logos b {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 72px;
  justify-self: center;
  color: #075fca;
  font-size: 34px;
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  background: transparent;
}
.cert-logos b::before {
  content: "";
  position: absolute;
  inset: 8px 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  opacity: .9;
}
.cert-logos b:nth-child(2)::before,
.cert-logos b:nth-child(6)::before {
  border-radius: 10px;
  transform: rotate(45deg);
}
.cert-logos b:nth-child(3)::before,
.cert-logos b:nth-child(4)::before,
.cert-logos b:nth-child(7)::before {
  border-radius: 50% 50% 46% 46%;
  border-top-width: 4px;
}
.cert-logos b:nth-child(5) {
  font-size: 42px;
}
.cert-logos b:nth-child(5)::before {
  display: none;
}
.honor-grid {
  grid-template-columns: repeat(6, 1fr);
  padding: 24px;
}
.honor-grid article::before { height: 126px; }
.honor-grid article::after { top: 39px; }
.honor-grid p {
  min-height: 38px;
  font-size: 13px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 46px;
  padding: 18px 40px 8px;
  background: linear-gradient(90deg, #ff7f2b, #f05e82, #b689a0, #8abcc5) 80px 248px / calc(100% - 204px) 3px no-repeat;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 80px;
  right: 126px;
  top: 74px;
  height: 3px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f36c86, #6ec8d3, #ab87a6, #ff7f2b);
}
.timeline::after {
  content: "";
  position: absolute;
  right: 75px;
  top: 74px;
  width: 72px;
  height: 174px;
  border: 3px solid #9aa4af;
  border-left: 0;
  border-radius: 0 120px 120px 0;
}
.timeline article {
  position: relative;
  min-height: 136px;
  padding-top: 90px;
}
.timeline span {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef6c88, #8dd1d6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
  z-index: 1;
}
.timeline article:nth-child(4n + 1) span { background: linear-gradient(135deg, #f05e82, #f9a2a8); }
.timeline article:nth-child(4n + 2) span { background: linear-gradient(135deg, #8d739a, #c4a0c2); }
.timeline article:nth-child(4n + 3) span { background: linear-gradient(135deg, #5fc6d0, #9edfe4); }
.timeline article:nth-child(4n) span { background: linear-gradient(135deg, #f26b22, #ff9b3e); }
.timeline h3 {
  margin: 0 0 8px;
  color: #243653;
  font-size: 17px;
}
.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.cta-section {
  padding: 32px 0 28px;
}
.cta-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 170px;
  overflow: hidden;
  padding: 30px 70px 30px 520px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(0, 96, 205, .55), rgba(19, 133, 230, .82)),
    url("./assets/hero-dark.png") center / cover no-repeat;
}
.cta-panel img {
  display: none;
}
.cta-panel h2 {
  margin: 0 0 10px;
  font-size: 32px;
}
.cta-panel p {
  margin: 0 0 22px;
  opacity: .92;
}
.cta-panel .btn-outline {
  min-width: 130px;
  margin-right: 14px;
  color: #0967c9;
  background: #fff;
}

.service-strip {
  padding: 0 0 24px;
}
.service-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #dbe9f6;
  border-bottom: 1px solid #dbe9f6;
}
.service-strip article {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  padding: 22px 34px;
  border-right: 1px solid #dbe9f6;
}
.service-strip article:last-child { border-right: 0; }
.service-strip svg {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  color: var(--blue);
}
.service-strip b {
  color: var(--blue);
  font-size: 18px;
}
.service-strip span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr 420px; }
  .quality-hero img { width: 410px; }
  .stats-panel,
  .test-grid,
  .service-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stats-panel article:nth-child(2n) { border-right: 0; }
  .stats-panel article { border-bottom: 1px solid #e2eef9; }
  .split-card,
  .split-card.reverse,
  .cert-panel { grid-template-columns: 1fr; }
  .honor-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .quality-hero,
  .hero-inner { min-height: 560px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy h2 { font-size: 22px; }
  .quality-hero img {
    position: absolute;
    right: -80px;
    bottom: 20px;
    width: 260px;
    opacity: .38;
  }
  .stats-panel,
  .test-grid,
  .cert-cards,
  .cert-logos,
  .honor-grid,
  .service-strip .container,
  .cta-panel { grid-template-columns: 1fr; }
  .stats-panel article {
    border-right: 0;
    border-bottom: 1px solid #e2eef9;
  }
  .split-copy { padding: 34px 24px; }
  .split-card > img,
  .split-card.reverse > img { height: 260px; }
  .mini-features { grid-template-columns: repeat(2, 1fr); }
  .timeline {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
  .timeline::before { display: none; }
  .cta-panel { padding: 30px 24px; }
  .cta-panel h2 { font-size: 24px; }
  .service-strip article { border-right: 0; border-bottom: 1px solid #dbe9f6; }
}
