﻿/* ==========================================================================
   Quality Policy page (quality.html)
   Page-specific layout. Scoped under .qp so it cannot leak into other pages.
   ========================================================================== */

.qp {
  --qp-navy: #062a4d;
  --qp-navy-2: #0a3f70;
  --qp-blue: #0c549e;
  --qp-cyan: #00a8e8;
  --qp-steel: #f4f7fb;
  --qp-line: #dde5ef;
  /* Content text colour matches the site sheet (.row1/.row3 in style.css). */
  --qp-ink: #3c3a3a;
  --qp-mute: #5c6b7c;

  display: block;
  color: var(--qp-ink);
  font-size: 15px;
  line-height: 1.75;
  overflow: hidden;
}

.qp *,
.qp *::before,
.qp *::after {
  box-sizing: border-box;
}

/* The global sheet points headings at CaviarDreamsBold, which is not loaded on
   this site, so they silently fall back to Arial. Pin an explicit stack. */
.qp h1,
.qp h2,
.qp-cardx__num {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.qp p {
  margin: 0 0 1.1em;
}

/* Content text: 15px. Colour is inherited from .qp{color:var(--qp-ink)} rather
   than set here, so the navy bands keep their light text. Display type (hero,
   .qp-cardx__num, badges, chips) keeps its own sizes - layout, not prose. */
.qp p,
.qp li,
.qp dd {
  font-size: 15px;
}

.qp h3,
.qp h4,
.qp h5,
.qp h6 {
  font-size: 15px;
  font-weight: 600;
}

/* Only headings with no class of their own take the site blue - the ones the
   design colours deliberately keep what they have. */
.qp h3:not([class]),
.qp h4:not([class]),
.qp h5:not([class]),
.qp h6:not([class]) {
  color: var(--qp-blue);
}

.qp p:last-child {
  margin-bottom: 0;
}

.qp-shell {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.qp,
.qp-band,
.qp-closing {
  background: #fff;
}

.qp-band {
  padding: 62px 0;
  border-top: 1px solid var(--qp-line);
}

/* The banner sits directly above; no rule needed at the very top. */
.qp > .qp-band:first-child {
  border-top: 0;
}

/* Kept as a hook; the page is white throughout, so this only adds separation. */
.qp-band--steel {
  background: #fff;
}

.qp-band--tight {
  padding: 46px 0;
}

/* --- Section heading -------------------------------------------------- */

.qp h2.qp-title {
  margin: 0;
  padding: 0;
  color: var(--qp-navy);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  background: none;
  border: 0;
}

.qp-title__rule {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 16px;
  background: var(--qp-cyan);
}

/* The page title on the banner now uses the shared .pg-hero component -
   see css/page-hero.css, same as testing-facilities.html. */


/* Intro paragraph that stands in for a heading */
.qp-lead {
  max-width: 940px;
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--qp-cyan);
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}

.qp-lead strong {
  color: var(--qp-navy);
}

/* --- Policy commitment cards ------------------------------------------ */

/* The four commitments, side by side on one row. */
.qp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.qp-cardx {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid var(--qp-line);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Accent rule that sweeps across the top edge on hover */
.qp-cardx__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--qp-blue), var(--qp-cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.qp-cardx__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.qp-cardx__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(12, 84, 158, 0.08);
  color: var(--qp-blue);
  font-size: 19px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.qp-cardx__num {
  position: relative;
  padding-right: 34px;
  color: var(--qp-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  transition: color 0.35s ease;
}

/* Short rule trailing the step number, which extends on hover */
.qp-cardx__num::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 1px;
  background: var(--qp-line);
  transition: width 0.35s ease, background 0.35s ease;
}

.qp-cardx p {
  margin: 0;
  /* Left-aligned, not justified: the columns are too narrow for justification
     without opening rivers of white space. */
  text-align: left;
}

/* Hover / focus response */
.qp-cardx:hover {
  transform: translateY(-6px);
  border-color: rgba(12, 84, 158, 0.28);
  box-shadow: 0 18px 38px rgba(6, 42, 77, 0.13);
}

.qp-cardx:hover .qp-cardx__bar {
  transform: scaleX(1);
}

.qp-cardx:hover .qp-cardx__icon {
  background: var(--qp-blue);
  color: #fff;
  transform: translateY(-2px);
}

.qp-cardx:hover .qp-cardx__num {
  color: var(--qp-blue);
}

.qp-cardx:hover .qp-cardx__num::after {
  width: 30px;
  background: var(--qp-cyan);
}

/* Staggered reveal as the grid scrolls into view */
.qp-cards--reveal .qp-cardx {
  opacity: 0;
  transform: translateY(26px);
}

.qp-cards--reveal .qp-cardx.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.qp-cards--reveal .qp-cardx:nth-child(2).is-visible {
  transition-delay: 0.08s;
}

.qp-cards--reveal .qp-cardx:nth-child(3).is-visible {
  transition-delay: 0.16s;
}

.qp-cards--reveal .qp-cardx:nth-child(4).is-visible {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {

  .qp-cardx,
  .qp-cardx__bar,
  .qp-cardx__icon,
  .qp-cardx__num,
  .qp-cardx__num::after {
    transition: none !important;
  }

  .qp-cardx:hover {
    transform: none;
  }

  .qp-cards--reveal .qp-cardx {
    opacity: 1;
    transform: none;
  }
}


/* --- Split (text + figure), used by Quality Assurance / Quality Control - */

.qp-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 54px;
  align-items: center;
}

.qp-split--flip {
  grid-template-columns: 340px 1fr;
}

.qp-split p {
  margin-bottom: 0;
  text-align: justify;
}

.qp-split p + p {
  margin-top: 1.1em;
}

.qp .qp-split h2.qp-title {
  margin-bottom: 22px;
}

.qp-figure {
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--qp-line);
}

.qp-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.qp-figure figcaption {
  margin-top: 12px;
  color: var(--qp-mute);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* --- Infographic timeline (QEHS commitments) -------------------------- */

.qp-info {
  position: relative;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

/* The spine the markers sit on */
.qp-info::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg,
      var(--qp-blue) 0%,
      var(--qp-cyan) 50%,
      var(--qp-blue) 100%);
  opacity: 0.35;
}

.qp-info__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  margin: 0 0 18px;
}

.qp-info__step:last-child {
  margin-bottom: 0;
}

/* Odd steps sit left of the spine, even steps right */
.qp-info__card {
  position: relative;
  grid-column: 1;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--qp-line);
  border-right: 3px solid var(--qp-blue);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.32s ease, border-color 0.32s ease;
}

.qp-info__step:nth-child(even) .qp-info__card {
  grid-column: 3;
  border-right: 1px solid var(--qp-line);
  border-left: 3px solid var(--qp-cyan);
}

/* Notch pointing at the spine */
.qp-info__card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: #fff;
  border-top: 1px solid var(--qp-line);
  border-right: 1px solid var(--qp-line);
  transform: rotate(45deg);
}

.qp-info__step:nth-child(even) .qp-info__card::after {
  right: auto;
  left: -7px;
  border: 0;
  border-bottom: 1px solid var(--qp-line);
  border-left: 1px solid var(--qp-line);
}

.qp-info__num {
  display: block;
  margin-bottom: 4px;
  color: var(--qp-cyan);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.qp-info__card p {
  margin: 0;
  line-height: 1.6;
}

.qp-info__marker {
  grid-column: 2;
  justify-self: center;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #fff;
  border: 2px solid var(--qp-blue);
  border-radius: 50%;
  color: var(--qp-blue);
  font-size: 19px;
  transition: background 0.32s ease, color 0.32s ease, transform 0.32s ease,
    box-shadow 0.32s ease;
}

/* Reactive */
.qp-info__step:hover .qp-info__card {
  transform: translateX(-6px);
  box-shadow: 0 12px 28px rgba(6, 42, 77, 0.11);
}

.qp-info__step:nth-child(even):hover .qp-info__card {
  transform: translateX(6px);
}

.qp-info__step:hover .qp-info__marker {
  background: var(--qp-blue);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(12, 84, 158, 0.1);
}

@media screen and (max-width: 767px) {
  .qp-info::before {
    left: 26px;
  }

  .qp-info__step,
  .qp-info__step:nth-child(even) {
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: start;
  }

  .qp-info__marker {
    grid-column: 1;
    width: 52px;
    height: 52px;
  }

  .qp-info__card,
  .qp-info__step:nth-child(even) .qp-info__card {
    grid-column: 2;
    padding: 16px 18px;
    border: 1px solid var(--qp-line);
    border-left: 3px solid var(--qp-blue);
  }

  .qp-info__card::after,
  .qp-info__step:nth-child(even) .qp-info__card::after {
    display: none;
  }

  .qp-info__step:hover .qp-info__card,
  .qp-info__step:nth-child(even):hover .qp-info__card {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .qp-info__card,
  .qp-info__marker {
    transition: none !important;
  }

  .qp-info__step:hover .qp-info__card,
  .qp-info__step:nth-child(even):hover .qp-info__card,
  .qp-info__step:hover .qp-info__marker {
    transform: none;
  }
}

/* --- Cut-plate steps (customer commitments) ---------------------------
   A different visual language again: no nodes, no rails. Each commitment is
   a steel plate with a machined-off corner and a stamped index tag. */

.qp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.qp-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px 30px 30px;
  /* A 225deg stop is measured along the diagonal, so the 38px corner cut lands
     at 38/sqrt(2) = ~27px. Stopping at 39px leaves a ~12px accent band running
     along the machined edge. */
  background:
    linear-gradient(225deg,
      var(--qp-cyan) 0,
      var(--qp-cyan) 39px,
      var(--qp-steel) 39px);
  border-left: 4px solid var(--qp-blue);
  -webkit-clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.3, 1),
    background 0.38s ease,
    border-left-color 0.38s ease,
    border-left-width 0.38s ease;
}

/* Stamped index tag */
.qp-steps__no {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--qp-navy) 0%, var(--qp-blue) 100%);
  color: #fff;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  transform: skewX(-12deg);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.3, 1),
    background 0.38s ease;
}

/* Counter-skew so the digits stay upright inside the slanted tag */
.qp-steps__no > span {
  display: block;
  transform: skewX(12deg);
}

.qp-steps__item p {
  margin: 0;
  line-height: 1.68;
  text-align: left;
  transition: color 0.38s ease;
}

/* Reactive */
.qp-steps__item:hover {
  transform: translateY(-7px);
  background:
    linear-gradient(225deg,
      var(--qp-blue) 0,
      var(--qp-blue) 39px,
      #fff 39px);
  border-left-color: var(--qp-cyan);
}

.qp-steps__item:hover .qp-steps__no {
  background: linear-gradient(135deg, var(--qp-blue) 0%, var(--qp-cyan) 100%);
  transform: skewX(-12deg) translateX(5px);
}

.qp-steps__item:hover p {
  color: var(--qp-navy);
}

@media screen and (max-width: 1024px) {
  .qp-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 767px) {
  .qp-steps {
    grid-template-columns: 1fr;
  }

  .qp-steps__item {
    padding: 24px 22px 26px;
    -webkit-clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    background:
      linear-gradient(225deg,
        var(--qp-cyan) 0,
        var(--qp-cyan) 30px,
        var(--qp-steel) 30px);
  }

  .qp-steps__no {
    margin-bottom: 16px;
    padding: 6px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .qp-steps__item,
  .qp-steps__no,
  .qp-steps__item p {
    transition: none !important;
  }

  .qp-steps__item:hover {
    transform: none;
  }

  .qp-steps__item:hover .qp-steps__no {
    transform: skewX(-12deg);
  }
}


/* --- Pull quote ------------------------------------------------------- */

.qp-quote {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: 8px 0 0 74px;
}

.qp-quote::before {
  content: "\201C";
  position: absolute;
  top: -34px;
  left: 0;
  color: rgba(12, 84, 158, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 130px;
  line-height: 1;
}

.qp-quote p {
  margin: 0;
  color: var(--qp-navy);
  font-size: 20px;
  line-height: 1.7;
  font-weight: 400;
}

/* --- Testing panels --------------------------------------------------- */

.qp-tests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.qp-panel {
  padding: 34px 34px 30px;
  background: #fff;
  border: 1px solid var(--qp-line);
  border-top: 3px solid var(--qp-blue);
}

/* Second panel is told apart by its accent colour, not a dark fill. */
.qp-panel--dark {
  border-top-color: var(--qp-cyan);
}

.qp-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--qp-line);
}

.qp-panel__head i {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: rgba(12, 84, 158, 0.08);
  color: var(--qp-blue);
  font-size: 17px;
  line-height: 42px;
  text-align: center;
}

.qp-panel--dark .qp-panel__head i {
  background: rgba(0, 168, 232, 0.12);
  color: var(--qp-cyan);
}

.qp .qp-panel__head h2 {
  margin: 0;
  padding: 0;
  color: var(--qp-navy);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
  background: none;
  border: 0;
}

.qp-testlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qp-testlist li {
  position: relative;
  margin: 0;
  padding: 11px 0 11px 26px;
  border-bottom: 1px dashed var(--qp-line);
  font-weight: 600;
}

.qp-panel--dark .qp-testlist li::before {
  background: var(--qp-blue);
}

.qp-testlist li:last-child {
  border-bottom: 0;
}

.qp-testlist li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--qp-cyan);
}

/* --- Lab strip -------------------------------------------------------- */

/* --- Lab cards -------------------------------------------------------- */

.qp-labs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

/* Photo beside the label rather than above it: the source images are only
   223x123, so a 150px column shows them at (or below) native size instead of
   stretching them across a full-width card. */
.qp-lab {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  margin: 0;
  background: #fff;
  border: 1px solid var(--qp-line);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
}

.qp-lab img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 104px;
  margin: 0;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.qp-lab figcaption {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-left: 3px solid var(--qp-blue);
  color: var(--qp-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  transition: border-left-color 0.35s ease, background 0.35s ease;
}

.qp-lab:hover {
  transform: translateY(-5px);
  border-color: rgba(12, 84, 158, 0.28);
  box-shadow: 0 16px 34px rgba(6, 42, 77, 0.13);
}

.qp-lab:hover img {
  filter: saturate(1.15);
  transform: scale(1.06);
}

.qp-lab:hover figcaption {
  background: var(--qp-steel);
  border-left-color: var(--qp-cyan);
}

@media screen and (max-width: 1024px) {
  .qp-labs {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media screen and (max-width: 560px) {
  .qp-labs {
    grid-template-columns: 1fr;
  }

  .qp-lab {
    grid-template-columns: 120px 1fr;
  }

  .qp-lab figcaption {
    padding: 14px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .qp-lab,
  .qp-lab img,
  .qp-lab figcaption {
    transition: none !important;
  }

  .qp-lab:hover {
    transform: none;
  }

  .qp-lab:hover img {
    transform: none;
  }
}


/* --- Manufacturing process slider ------------------------------------- */

.qp-slider {
  position: relative;
  background: var(--qp-navy);
  border: 1px solid var(--qp-line);
  overflow: hidden;
}

.qp-slider__track {
  position: relative;
  /* 3:2, matching the source photos */
  padding-top: 52%;
}

.qp-slider__slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.qp-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.qp-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

/* Arrows */
.qp-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 62px;
  margin-top: -31px;
  padding: 0;
  border: 0;
  background: rgba(6, 42, 77, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 62px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.qp-slider__nav:hover,
.qp-slider__nav:focus {
  background: var(--qp-blue);
}

.qp-slider__nav--prev {
  left: 0;
}

.qp-slider__nav--next {
  right: 0;
}

/* Dots */
.qp-slider__dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.qp-slider__dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.qp-slider__dot.is-active {
  width: 40px;
  background: var(--qp-cyan);
}

@media screen and (max-width: 767px) {
  .qp-slider__track {
    padding-top: 62%;
  }

  .qp-slider__nav {
    width: 36px;
    height: 50px;
    margin-top: -25px;
    font-size: 16px;
    line-height: 50px;
  }

  .qp-slider__dots {
    bottom: 10px;
  }

  .qp-slider__dot {
    width: 18px;
  }

  .qp-slider__dot.is-active {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .qp-slider__slide,
  .qp-slider__nav,
  .qp-slider__dot {
    transition: none !important;
  }
}

/* --- Closing statement ------------------------------------------------
   The one coloured block on an otherwise white page: a full-width navy band
   that gives the page a definite end. */

.qp-closing {
  position: relative;
  padding: 76px 0 82px;
  background: linear-gradient(135deg,
      var(--qp-navy) 0%,
      var(--qp-navy-2) 58%,
      var(--qp-blue) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Brushed-steel ribbing, echoing the flutes of a drawn tube */
.qp-closing::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.045) 0px,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 10px);
  pointer-events: none;
}

.qp-closing__frame {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
}

/* Short cyan rule above the statement */
.qp-closing__frame::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 0 auto 28px;
  background: var(--qp-cyan);
}

.qp-closing p {
  margin: 0;
}

.qp-closing strong {
  color: #fff;
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.qp-closing__hl {
  color: var(--qp-cyan);
  font-weight: 800;
}

/* --- Responsive ------------------------------------------------------- */

@media screen and (max-width: 1024px) {
  .qp-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .qp-split,
  .qp-split--flip {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .qp-figure {
    max-width: 460px;
  }

  .qp-split--flip .qp-figure {
    max-width: 340px;
  }

  .qp-closing strong {
    font-size: 25px;
  }
}

@media screen and (max-width: 767px) {
  .qp-band {
    padding: 44px 0;
  }

  .qp h2.qp-title {
    font-size: 24px;
  }

  .qp-tests {
    grid-template-columns: 1fr;
  }

  .qp-cards {
    grid-template-columns: 1fr;
  }

  .qp-cardx {
    padding: 24px 22px;
  }

  .qp-cardx__icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .qp-quote {
    padding-left: 0;
    padding-top: 46px;
  }

  .qp-quote::before {
    top: -18px;
    font-size: 96px;
  }

  .qp-quote p {
    font-size: 17px;
  }

  .qp-closing {
    padding: 50px 0 54px;
  }

  .qp-closing__frame::before {
    width: 46px;
    margin-bottom: 20px;
  }

  .qp-closing strong {
    font-size: 20px;
    line-height: 1.5;
  }

  .qp-panel {
    padding: 26px 22px 22px;
  }

  .qp-figure,
  .qp-split--flip .qp-figure {
    max-width: none;
  }
}
