/*
 * Hebei Guoning homepage.
 * This is the sole owning stylesheet for the redesigned homepage.
 */

.gnzg-home {
  --gnzg-red: #c9202f;
  --gnzg-red-dark: #9f1723;
  --gnzg-ink: #171c21;
  --gnzg-steel: #4f5963;
  --gnzg-line: #dfe3e6;
  --gnzg-mist: #f2f4f5;
  --gnzg-white: #ffffff;
  --gnzg-yellow: #d9a126;
  color: var(--gnzg-ink);
  background: var(--gnzg-white);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

.gnzg-home *,
.gnzg-home *::before,
.gnzg-home *::after {
  box-sizing: border-box;
}

.gnzg-home h1,
.gnzg-home h2,
.gnzg-home h3,
.gnzg-home p,
.gnzg-home dl,
.gnzg-home dd,
.gnzg-home figure {
  margin-top: 0;
}

.gnzg-home a {
  color: inherit;
  text-decoration: none;
}

.gnzg-home img {
  display: block;
  max-width: 100%;
}

.gnzg-home a:focus-visible,
.gnzg-home button:focus-visible {
  outline: 3px solid var(--gnzg-yellow);
  outline-offset: 3px;
}

.gnzg-section {
  padding: 88px 0;
}

.gnzg-home .gnzg-eyebrow {
  margin-bottom: 14px;
  color: var(--gnzg-red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gnzg-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 38px;
}

.gnzg-section-heading--compact {
  display: block;
}

.gnzg-section-heading h2,
.gnzg-about h2 {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--gnzg-ink);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.gnzg-section-heading__intro {
  max-width: 500px;
  margin-bottom: 2px;
  color: var(--gnzg-steel);
  font-size: 16px;
  line-height: 1.65;
}

.gnzg-home .gnzg-actions {
  margin-top: 30px;
}

.gnzg-home .gnzg-button {
  min-height: 50px;
  padding: 13px 22px;
  font-size: 15px;
}

.gnzg-home a.gnzg-button--primary {
  color: var(--gnzg-white);
  background: var(--gnzg-red);
  border-color: var(--gnzg-red);
}

.gnzg-home a.gnzg-button--primary:hover {
  color: var(--gnzg-white);
  background: var(--gnzg-red-dark);
  border-color: var(--gnzg-red-dark);
}

.gnzg-home a.gnzg-button--secondary {
  color: var(--gnzg-white);
  background: rgba(23, 28, 33, 0.36);
  border-color: rgba(255, 255, 255, 0.7);
}

.gnzg-home a.gnzg-button--secondary:hover {
  color: var(--gnzg-ink);
  background: var(--gnzg-white);
  border-color: var(--gnzg-white);
}

.gnzg-home a.gnzg-button--dark {
  margin-top: 30px;
  color: var(--gnzg-white);
  background: var(--gnzg-ink);
  border-color: var(--gnzg-ink);
}

.gnzg-home a.gnzg-button--dark:hover {
  color: var(--gnzg-white);
  background: var(--gnzg-red);
  border-color: var(--gnzg-red);
}

.gnzg-home a.gnzg-button--light {
  min-width: 190px;
  color: var(--gnzg-red-dark);
  background: var(--gnzg-white);
  border-color: var(--gnzg-white);
}

.gnzg-home a.gnzg-button--light:hover {
  color: var(--gnzg-white);
  background: var(--gnzg-ink);
  border-color: var(--gnzg-ink);
}

.gnzg-home a.gnzg-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gnzg-red);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.gnzg-home a.gnzg-text-link::after {
  content: "\2192";
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.gnzg-home a.gnzg-text-link:hover {
  color: var(--gnzg-red-dark);
}

.gnzg-home a.gnzg-text-link:hover::after {
  transform: translateX(4px);
}

/* Hero */
.gnzg-hero {
  position: relative;
  aspect-ratio: 64 / 25;
  height: auto;
  overflow: hidden;
  background: #171c21;
}

.gnzg-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gnzg-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 700ms, opacity 700ms ease;
}

.gnzg-hero__slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.gnzg-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.gnzg-hero__slide--2 img,
.gnzg-hero__slide--3 img {
  object-position: 56% center;
}

.gnzg-hero__controls {
  position: absolute;
  right: auto;
  bottom: 30px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.gnzg-hero__control {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  color: #ffffff;
  background: rgba(15, 19, 23, 0.46);
  font-size: 20px;
  line-height: 1;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.gnzg-hero__control:hover,
.gnzg-hero__control:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(177, 24, 34, 0.92);
}

.gnzg-hero__indicators {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
}

.gnzg-hero__indicators button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.gnzg-hero__indicators button:hover,
.gnzg-hero__indicators button:focus-visible {
  background: #ffffff;
}

.gnzg-hero__indicators button.is-active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
}

/* Strengths */
.gnzg-section--strengths {
  padding-top: 76px;
  padding-bottom: 42px;
  background-color: #fafafa;
  background-image:
    linear-gradient(rgba(23, 28, 33, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 28, 33, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.gnzg-section--strengths .gnzg-section-heading {
  display: flex;
  margin-bottom: 34px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.gnzg-section--strengths .gnzg-section-heading h2 {
  order: 0;
  margin-right: auto;
  margin-left: auto;
  color: var(--gnzg-red);
}

.gnzg-section--strengths .gnzg-section-heading .gnzg-eyebrow {
  order: 1;
  margin: 14px 0 0;
  color: var(--gnzg-ink);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
}

.gnzg-strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gnzg-strength {
  position: relative;
  min-height: 228px;
  padding: 68px 24px 24px;
  border: 1px solid #eceeef;
  border-radius: 4px;
  background: var(--gnzg-white);
  box-shadow: 0 14px 34px rgba(23, 28, 33, 0.075);
  outline: 0;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gnzg-strength:nth-child(even) {
  background: var(--gnzg-white);
}

.gnzg-strength:hover,
.gnzg-strength:focus-visible,
.gnzg-strength:active {
  z-index: 1;
  background: #fff8f6;
  border-color: rgba(201, 32, 47, 0.42);
  box-shadow: 0 14px 30px rgba(23, 28, 33, 0.1);
  transform: none;
}

.gnzg-strength__index {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  width: 32px;
  height: 28px;
  place-items: center;
  color: var(--gnzg-red);
  border: 1px solid rgba(201, 32, 47, 0.62);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.gnzg-strength__index::after {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 26px;
  height: 22px;
  border-right: 1px solid rgba(201, 32, 47, 0.28);
  border-bottom: 1px solid rgba(201, 32, 47, 0.28);
  border-radius: 0 0 3px;
  content: "";
}

.gnzg-strength__number {
  margin-bottom: 8px;
  color: var(--gnzg-red);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.gnzg-strength h3 {
  margin-bottom: 9px;
  color: var(--gnzg-red);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.gnzg-strength > p:last-child {
  margin-bottom: 0;
  color: var(--gnzg-steel);
  font-size: 13px;
  line-height: 1.5;
}

/* Products */
.gnzg-section--products {
  background: var(--gnzg-white);
}

.gnzg-section--products .gnzg-section-heading {
  display: block;
  text-align: center;
}

.gnzg-section--products .gnzg-section-heading h2 {
  margin-right: auto;
  margin-left: auto;
}

.gnzg-section--products .gnzg-section-heading .gnzg-text-link {
  margin: 18px auto 0;
}

.gnzg-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gnzg-product-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid #eceeef;
  border-radius: 4px;
  overflow: hidden;
  background: var(--gnzg-white);
  box-shadow: 0 12px 30px rgba(23, 28, 33, 0.075);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.gnzg-product-card:hover,
.gnzg-product-card:focus-within {
  border-color: #bdc3c8;
  box-shadow: 0 14px 28px rgba(23, 28, 33, 0.09);
  transform: none;
}

.gnzg-product-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 8px;
  border-radius: 3px;
  background: #fafafa;
}

.gnzg-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 250ms ease;
}

.gnzg-product-card:hover .gnzg-product-card__image img,
.gnzg-product-card:focus-within .gnzg-product-card__image img {
  transform: scale(1.025);
}

.gnzg-product-card__body {
  position: relative;
  display: flex;
  min-height: 110px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 52px 5px 4px;
}

.gnzg-product-card__index {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--gnzg-red);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(159, 23, 35, 0.2);
  font-size: 11px;
  font-weight: 850;
}

.gnzg-product-card h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 11px;
  overflow: hidden;
  color: var(--gnzg-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.gnzg-product-card h3 a:hover {
  color: var(--gnzg-red);
}

.gnzg-home .gnzg-product-card a.gnzg-text-link {
  margin-top: auto;
  min-height: 30px;
  padding: 5px 13px;
  color: #ffffff;
  background: var(--gnzg-red);
  border-radius: 3px;
  font-size: 12px;
}

.gnzg-product-card__mark {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 22px;
  height: 12px;
  border: 1px solid var(--gnzg-red);
  border-radius: 2px;
  box-shadow:
    4px 4px 0 -1px #ffffff,
    4px 4px 0 0 var(--gnzg-red),
    8px 8px 0 -1px #ffffff,
    8px 8px 0 0 var(--gnzg-red);
  transform: rotate(30deg) skewX(-30deg);
}

.gnzg-home .gnzg-product-card a.gnzg-text-link::after {
  font-size: 14px;
}

.gnzg-product-card a.gnzg-text-link:hover,
.gnzg-product-card a.gnzg-text-link:focus-visible {
  color: #ffffff;
  background: var(--gnzg-red-dark);
}

/* About */
.gnzg-section--about {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #f2f4f5;
}

.gnzg-section--about::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 28%;
  height: 8px;
  background: var(--gnzg-red);
  content: "";
}

.gnzg-home .gnzg-about {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.gnzg-about__media {
  min-height: clamp(520px, 43vw, 650px);
  overflow: hidden;
  border-radius: 0;
  background: var(--gnzg-mist);
}

.gnzg-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 220ms ease, transform 320ms ease;
}

.gnzg-about__media:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.012);
}

.gnzg-about__content {
  display: flex;
  padding: 54px clamp(48px, 6vw, 96px);
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  background: var(--gnzg-white);
}

.gnzg-about__text {
  margin-top: 24px;
  color: var(--gnzg-steel);
  font-size: 16px;
  line-height: 1.78;
}

.gnzg-about__text p:last-child {
  margin-bottom: 0;
}

.gnzg-fact-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1e4e7;
  border-radius: 0;
  background: #f3f4f5;
  box-shadow: 0 16px 36px rgba(24, 30, 35, 0.07);
}

.gnzg-fact-list::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 92px;
  height: 4px;
  background: var(--gnzg-red);
  content: "";
}

.gnzg-fact-list > div {
  display: flex;
  min-width: 0;
  min-height: 154px;
  padding: 30px 22px 26px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dfe2e5;
  text-align: center;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.gnzg-fact-list > div:hover {
  background: #ffffff;
  box-shadow: inset 0 3px 0 rgba(201, 32, 47, 0.75);
}

.gnzg-fact-list > div:last-child {
  border-right: 0;
}

.gnzg-about__facts {
  grid-column: 1 / -1;
  margin-top: 0;
}

.gnzg-fact-list dt {
  order: 0;
  margin: 0;
  color: var(--gnzg-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.gnzg-fact-list dd {
  order: 1;
  margin-bottom: 0;
  color: var(--gnzg-steel);
  font-size: 13px;
  line-height: 1.55;
}

.gnzg-fact-list .gnzg-fact-list__value {
  order: -1;
  margin-bottom: 12px;
  color: var(--gnzg-red);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Cases */
.gnzg-section--cases {
  color: var(--gnzg-ink);
  background: #f2f4f5;
}

.gnzg-section--cases .gnzg-eyebrow {
  color: var(--gnzg-red);
}

.gnzg-section--cases .gnzg-section-heading h2 {
  color: var(--gnzg-ink);
}

.gnzg-section--cases .gnzg-section-heading__intro {
  color: var(--gnzg-steel);
}

.gnzg-section--cases .gnzg-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--gnzg-red);
  border: 1px solid var(--gnzg-red);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.gnzg-home .gnzg-section--cases a.gnzg-text-link:hover,
.gnzg-home .gnzg-section--cases a.gnzg-text-link:focus-visible {
  color: #ffffff;
  background: var(--gnzg-red);
  border-color: var(--gnzg-red);
  box-shadow: 0 8px 18px rgba(183, 47, 35, 0.2);
}

.gnzg-section--cases .gnzg-text-link::after {
  color: currentColor;
}

.gnzg-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gnzg-case-card {
  display: block;
  min-width: 0;
  padding: 12px 12px 20px;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--gnzg-line);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(23, 28, 33, 0.07);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.gnzg-case-card:hover,
.gnzg-case-card:focus-visible {
  border-color: #c5cbd0;
  box-shadow: 0 18px 36px rgba(23, 28, 33, 0.12);
  transform: none;
}

.gnzg-case-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: #ffffff;
}

.gnzg-case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.gnzg-case-card:hover .gnzg-case-card__image img,
.gnzg-case-card:focus-visible .gnzg-case-card__image img {
  transform: scale(1.025);
}

.gnzg-case-card h3 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 18px 8px 0;
  overflow: hidden;
  color: var(--gnzg-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Latest news */
.gnzg-section--news {
  padding-bottom: 44px;
  background: #f7f8f9;
}

.gnzg-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
  gap: 42px;
  padding-top: 52px;
  border-top: 3px solid var(--gnzg-ink);
}

.gnzg-news-feature {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.gnzg-news-feature__heading {
  display: flex;
  margin-bottom: 28px;
  flex-direction: column;
  gap: 0;
}

.gnzg-news-feature__heading h2 {
  order: 0;
  max-width: 340px;
  margin-bottom: 0;
  color: var(--gnzg-ink);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.gnzg-news-feature__heading .gnzg-eyebrow {
  order: 1;
  margin: 18px 0 0;
  color: var(--gnzg-steel);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.gnzg-news-feature__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--gnzg-mist);
}

.gnzg-news-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gnzg-news-feature__media:hover img,
.gnzg-news-feature__media:focus-visible img {
  transform: scale(1.025);
}

.gnzg-news-feature__media.is-wide {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 54px);
  background: var(--gnzg-mist);
}

.gnzg-news-feature__media.is-wide img {
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.gnzg-news-feature__link {
  margin-top: 16px;
}

.gnzg-news-list {
  display: grid;
  min-width: 0;
  align-content: stretch;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gnzg-section--news .gnzg-news-card {
  min-width: 0;
  min-height: 0;
  padding: 22px 26px 19px;
  overflow: visible;
  border: 1px solid #e1e4e7;
  border-left: 3px solid var(--gnzg-red);
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(23, 28, 33, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.gnzg-section--news .gnzg-news-card:hover,
.gnzg-section--news .gnzg-news-card:focus-within {
  border-color: #d9dde0;
  border-left-color: var(--gnzg-red);
  box-shadow: 0 13px 28px rgba(23, 28, 33, 0.1);
  transform: none;
}

.gnzg-section--news .gnzg-news-card__body {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.gnzg-section--news .gnzg-news-card__meta {
  display: none;
}

.gnzg-home .gnzg-news-card__body h3 {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 1.45em;
  margin: 0 0 13px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gnzg-section--news .gnzg-news-card__body > p {
  display: -webkit-box;
  min-height: 3.05em;
  margin-bottom: 16px;
  overflow: hidden;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.gnzg-news-card__footer {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gnzg-news-card__footer time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7a848d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.gnzg-news-card__footer time::before {
  width: 15px;
  height: 14px;
  border: 2px solid var(--gnzg-red);
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gnzg-red) 0 3px, transparent 3px 100%);
  content: "";
}

.gnzg-home .gnzg-news-card__body h3 a:hover,
.gnzg-home .gnzg-news-card__body h3 a:focus-visible {
  color: var(--gnzg-red);
}

/* Certificates */
.gnzg-section--certificates {
  padding-top: 34px;
  padding-bottom: 78px;
  background-color: #fafafa;
  background-image:
    linear-gradient(rgba(23, 28, 33, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 28, 33, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.gnzg-home .gnzg-certificate-layout {
  width: calc(100% - 40px);
  max-width: 1400px;
}

.gnzg-certificate-layout {
  display: grid;
  grid-template-areas:
    "heading"
    "track";
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
  padding-top: 34px;
  border-top: 1px solid var(--gnzg-line);
}

.gnzg-certificate-heading {
  display: flex;
  grid-area: heading;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
  padding-left: 0;
  border-left: 0;
}

.gnzg-certificate-heading__copy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gnzg-certificate-heading h2 {
  max-width: 390px;
  color: var(--gnzg-red);
  font-size: 34px;
}

.gnzg-certificate-controls {
  display: flex;
  margin-top: 0;
  gap: 8px;
}

.gnzg-certificate-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--gnzg-ink);
  background: #ffffff;
  border: 1px solid var(--gnzg-line);
  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
}

.gnzg-certificate-controls button:hover,
.gnzg-certificate-controls button:focus-visible {
  color: #ffffff;
  background: var(--gnzg-red);
  border-color: var(--gnzg-red);
}

.gnzg-certificate-track {
  display: grid;
  grid-area: track;
  grid-auto-columns: calc((100% - 72px) / 5);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.gnzg-certificate-track::-webkit-scrollbar {
  display: none;
}

.gnzg-certificate-card {
  display: grid;
  min-width: 0;
  padding: 0;
  color: var(--gnzg-ink);
  background: #ffffff;
  border: 0;
  border-radius: 4px;
  cursor: zoom-in;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.gnzg-certificate-card:hover,
.gnzg-certificate-card:focus-visible {
  box-shadow: none;
  transform: none;
}

.gnzg-certificate-card__media {
  display: grid;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--gnzg-red);
  box-shadow: 0 10px 22px rgba(23, 28, 33, 0.08), inset 0 0 0 6px #ffffff;
  transition: border-color 180ms ease, box-shadow 220ms ease;
}

.gnzg-certificate-card:hover .gnzg-certificate-card__media,
.gnzg-certificate-card:focus-visible .gnzg-certificate-card__media {
  border-color: var(--gnzg-red-dark);
  box-shadow: 0 15px 30px rgba(23, 28, 33, 0.14), inset 0 0 0 6px #ffffff;
}

.gnzg-certificate-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gnzg-certificate-card__caption {
  display: -webkit-box;
  min-height: 2.8em;
  margin-top: 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 180ms ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.gnzg-certificate-card:hover .gnzg-certificate-card__caption,
.gnzg-certificate-card:focus-visible .gnzg-certificate-card__caption {
  color: var(--gnzg-red-dark);
}

.gnzg-certificate-lightbox[hidden] {
  display: none;
}

.gnzg-certificate-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gnzg-certificate-lightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(12, 15, 18, 0.86);
  border: 0;
}

.gnzg-certificate-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(820px, 94vw);
  max-height: 90vh;
  margin: 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 4px;
}

.gnzg-certificate-lightbox__dialog img {
  max-width: 100%;
  max-height: calc(90vh - 86px);
  margin: auto;
  object-fit: contain;
}

.gnzg-certificate-lightbox__dialog figcaption {
  margin-top: 12px;
  color: var(--gnzg-steel);
  font-size: 13px;
  text-align: center;
}

.gnzg-certificate-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #ffffff;
  background: var(--gnzg-red);
  border: 0;
  border-radius: 4px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.is-certificate-open {
  overflow: hidden;
}

/* Partners */
.gnzg-section--partners {
  padding-top: 44px;
  padding-bottom: 72px;
  background: #f7f8f9;
}

.gnzg-partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--gnzg-line);
  border-left: 1px solid var(--gnzg-line);
}

.gnzg-partner {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--gnzg-line);
  border-bottom: 1px solid var(--gnzg-line);
  background: #ffffff;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.gnzg-partner img {
  width: auto;
  max-width: 100%;
  height: 68px;
  object-fit: contain;
  opacity: 1;
  transition: transform 180ms ease;
}

.gnzg-partner--monochrome-logo img {
  filter: brightness(0);
}

.gnzg-partner:hover,
.gnzg-partner:focus-within {
  z-index: 1;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 28, 33, 0.08);
}

.gnzg-partner:hover img,
.gnzg-partner:focus-within img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .gnzg-strength,
  .gnzg-product-card,
  .gnzg-product-card__image img,
  .gnzg-case-card,
  .gnzg-case-card__image img,
  .gnzg-about__media img,
  .gnzg-fact-list > div,
  .gnzg-news-feature__media img,
  .gnzg-section--news .gnzg-news-card,
  .gnzg-certificate-card,
  .gnzg-certificate-card__media,
  .gnzg-certificate-card__caption,
  .gnzg-partner,
  .gnzg-partner img,
  .gnzg-home a.gnzg-text-link::after {
    transition: none;
  }

  .gnzg-strength:hover,
  .gnzg-strength:focus-visible,
  .gnzg-strength:active,
  .gnzg-product-card:hover,
  .gnzg-product-card:focus-within,
  .gnzg-product-card:hover .gnzg-product-card__image img,
  .gnzg-product-card:focus-within .gnzg-product-card__image img,
  .gnzg-case-card:hover,
  .gnzg-case-card:focus-visible,
  .gnzg-case-card:hover .gnzg-case-card__image img,
  .gnzg-case-card:focus-visible .gnzg-case-card__image img,
  .gnzg-about__media:hover img,
  .gnzg-news-feature__media:hover img,
  .gnzg-news-feature__media:focus-visible img,
  .gnzg-section--news .gnzg-news-card:hover,
  .gnzg-section--news .gnzg-news-card:focus-within,
  .gnzg-certificate-card:hover,
  .gnzg-certificate-card:focus-visible,
  .gnzg-partner:hover img,
  .gnzg-partner:focus-within img,
  .gnzg-home a.gnzg-text-link:hover::after {
    transform: none;
  }
}

@media (max-width: 1200px) {
  .gnzg-home .gnzg-certificate-layout {
    width: calc(100% - 48px);
  }

  .gnzg-strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gnzg-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gnzg-about {
    grid-template-columns: 1fr 1fr;
  }

  .gnzg-about__media {
    min-height: 460px;
  }

  .gnzg-about__content {
    padding: 40px 34px;
  }

  .gnzg-news-layout {
    gap: 30px;
  }

  .gnzg-certificate-layout {
    grid-template-areas:
      "heading"
      "track";
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gnzg-certificate-heading {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding-left: 0;
    border-left: 0;
  }

  .gnzg-certificate-heading h2 {
    max-width: 620px;
  }

  .gnzg-certificate-controls {
    margin-top: 0;
  }

  .gnzg-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gnzg-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gnzg-certificate-track {
    grid-auto-columns: calc((100% - 48px) / 3);
  }
}

@media (max-width: 768px) {
  .gnzg-home .gnzg-shell {
    width: calc(100% - 36px);
  }

  .gnzg-section {
    padding: 64px 0;
  }

  .gnzg-section--news {
    padding-bottom: 36px;
  }

  .gnzg-section--partners {
    padding-top: 40px;
  }

  .gnzg-section--about {
    padding: 0;
  }

  .gnzg-section--certificates {
    padding-top: 30px;
    padding-bottom: 64px;
  }

  .gnzg-section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .gnzg-section-heading h2,
  .gnzg-about h2 {
    font-size: 32px;
  }

  .gnzg-section-heading .gnzg-text-link,
  .gnzg-section-heading__intro {
    margin-top: 18px;
  }

  .gnzg-hero__controls {
    bottom: 14px;
  }

  .gnzg-home .gnzg-about {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .gnzg-about__content {
    padding: 36px 30px 40px;
  }

  .gnzg-fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gnzg-fact-list > div {
    min-height: 138px;
    border-bottom: 1px solid #dfe2e5;
  }

  .gnzg-fact-list > div:nth-child(2n) {
    border-right: 0;
  }

  .gnzg-fact-list > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .gnzg-fact-list > div:nth-last-child(-n + 2):not(:nth-child(even)),
  .gnzg-fact-list > div:last-child {
    border-bottom: 0;
  }

  .gnzg-fact-list .gnzg-fact-list__value {
    font-size: 34px;
  }

  .gnzg-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gnzg-about__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 4px 4px 0 0;
  }

  .gnzg-news-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .gnzg-home .gnzg-news-card__body h3 {
    display: -webkit-box;
    min-height: 2.9em;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .gnzg-news-feature__heading h2 {
    font-size: 32px;
  }

  .gnzg-news-feature__media {
    aspect-ratio: 16 / 10;
  }

  .gnzg-certificate-track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }

  .gnzg-certificate-controls {
    margin-top: 0;
  }

}

@media (max-width: 576px) {
  .gnzg-home .gnzg-shell {
    width: calc(100% - 28px);
  }

  .gnzg-home .gnzg-about {
    width: 100%;
  }

  .gnzg-section {
    padding: 54px 0;
  }

  .gnzg-section--news {
    padding-bottom: 32px;
  }

  .gnzg-section--partners {
    padding-top: 36px;
  }

  .gnzg-section--about {
    padding: 0;
  }

  .gnzg-section--certificates {
    padding-top: 28px;
    padding-bottom: 54px;
  }

  .gnzg-home .gnzg-eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .gnzg-section-heading h2,
  .gnzg-about h2 {
    font-size: 28px;
    line-height: 1.22;
  }

  .gnzg-hero__controls {
    bottom: 8px;
    gap: 0;
  }

  .gnzg-hero__control {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .gnzg-hero__control:not(.gnzg-hero__toggle) {
    display: none;
  }

  .gnzg-home .gnzg-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .gnzg-home .gnzg-button {
    width: 100%;
  }

  .gnzg-section--strengths {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .gnzg-strength-grid {
    grid-template-columns: 1fr;
  }

  .gnzg-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gnzg-case-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .gnzg-strength {
    min-height: 0;
    padding: 64px 22px 24px;
  }

  .gnzg-strength__index {
    top: 22px;
    left: 22px;
  }

  .gnzg-product-card__body {
    min-height: 102px;
  }

  .gnzg-about__content {
    padding: 30px 22px 34px;
  }

  .gnzg-news-feature__heading h2 {
    font-size: 28px;
    line-height: 1.22;
  }

  .gnzg-news-feature__media {
    aspect-ratio: 4 / 3;
  }

  .gnzg-section--news .gnzg-news-card {
    padding: 19px 18px 17px;
  }

  .gnzg-news-card__footer {
    gap: 12px;
  }

  .gnzg-fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gnzg-fact-list > div {
    min-height: 126px;
    padding: 24px 12px 20px;
  }

  .gnzg-fact-list > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .gnzg-fact-list dt {
    font-size: 12px;
  }

  .gnzg-fact-list .gnzg-fact-list__value {
    margin-bottom: 9px;
    font-size: 29px;
  }

  .gnzg-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gnzg-partner {
    min-height: 100px;
    padding: 16px;
  }

  .gnzg-certificate-controls {
    margin-top: 0;
  }

  .gnzg-certificate-track {
    grid-auto-columns: minmax(210px, 84%);
    gap: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .gnzg-home *,
  .gnzg-home *::before,
  .gnzg-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
