/* Official CNC page hero V3: a self-contained, responsive service introduction. */
.hhx-cnc-page .hhx-cnc-hero-v3 {
  position: relative;
  min-height: 640px;
  padding: 64px 0 112px;
  overflow: clip;
  color: #101828;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 46%, #f5faff 73%, #e7f3ff 100%);
}

.hhx-cnc-page .hhx-cnc-hero-v3__container,
.hhx-cnc-page .hhx-cnc-hero-v3__stats {
  width: min(calc(100% - 112px), 1400px);
  margin-inline: auto;
}

.hhx-cnc-page .hhx-cnc-hero-v3__container {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(38px, 4vw, 60px);
  align-items: center;
}

.hhx-cnc-page .hhx-cnc-hero-v3__content,
.hhx-cnc-page .hhx-cnc-hero-v3__media {
  min-width: 0;
}

.hhx-cnc-page .hhx-cnc-hero-v3__label {
  margin: 0 0 16px;
  color: #1e5aa8;
  font: 800 13px/1.25 var(--hhx-heading);
  letter-spacing: .065em;
  text-transform: uppercase;
}

.hhx-cnc-page .hhx-cnc-hero-v3 h1 {
  max-width: 720px;
  margin: 0;
  color: #090f1a;
  font: 700 clamp(50px, 4.45vw, 68px)/1.04 var(--hhx-heading);
  letter-spacing: -.045em;
}

.hhx-cnc-page .hhx-cnc-hero-v3 h1 span { display: block; }

.hhx-cnc-page .hhx-cnc-hero-v3__benefits {
  display: grid;
  gap: 12px;
  max-width: 610px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.hhx-cnc-page .hhx-cnc-hero-v3__benefits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font: 500 clamp(15px, 1.08vw, 17px)/1.45 var(--hhx-font);
}

.hhx-cnc-page .hhx-cnc-hero-v3__benefits li::before {
  content: "✓";
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-top: 1px;
  color: #2167da;
  font-weight: 900;
}

.hhx-cnc-page .hhx-cnc-hero-v3__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hhx-cnc-page .hhx-cnc-hero-v3__button {
  display: inline-flex;
  min-height: 58px;
  min-width: 200px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 2px solid #2f79ee;
  border-radius: 7px;
  font: 700 16px/1.15 var(--hhx-font);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.hhx-cnc-page .hhx-cnc-hero-v3__button--primary {
  border-color: #2f79ee;
  background: #2f79ee;
  color: #fff;
  box-shadow: 0 9px 18px rgba(47, 121, 238, .18);
}

.hhx-cnc-page .hhx-cnc-hero-v3__button--primary:hover { background: #1e5fc6; border-color: #1e5fc6; }
.hhx-cnc-page .hhx-cnc-hero-v3__button--secondary { background: #fff; color: #2167da; }
.hhx-cnc-page .hhx-cnc-hero-v3__button--secondary:hover { background: #edf5ff; }

.hhx-cnc-page .hhx-cnc-hero-v3__media figure,
.hhx-cnc-page .hhx-cnc-hero-v3__media .hhx-media-slot { margin: 0; }

.hhx-cnc-page .hhx-cnc-hero-v3__media .hhx-media-image {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 14px 34px rgba(12, 35, 68, .13);
}

.hhx-cnc-page .hhx-cnc-hero-v3__media .hhx-media-credit {
  position: static;
  display: block;
  max-width: 100%;
  margin: 9px 0 0;
  overflow-wrap: anywhere;
  color: #7a8796;
  font-size: 12px;
  line-height: 1.45;
}

.hhx-cnc-page .hhx-cnc-hero-v3__media .hhx-media-credit a { color: inherit; text-decoration: underline; }

.hhx-cnc-page .hhx-cnc-hero-v3__stats {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  transform: translate(-50%, 50%);
}

.hhx-cnc-page .hhx-cnc-hero-v3__stat {
  display: grid;
  min-height: 146px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 2px solid #aeb8c4;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 20px rgba(12, 35, 68, .06);
}

.hhx-cnc-page .hhx-cnc-hero-v3__stat strong {
  color: #0a0f18;
  font: 700 clamp(25px, 2.25vw, 38px)/1 var(--hhx-heading);
  letter-spacing: -.04em;
}

.hhx-cnc-page .hhx-cnc-hero-v3__stat span {
  max-width: 170px;
  color: #172330;
  font: 600 14px/1.35 var(--hhx-font);
}

.hhx-cnc-page .hhx-cnc-hero-v3:has(.hhx-cnc-hero-v3__stats) + .hhx-cnc-section { padding-top: clamp(150px, 14vw, 218px); }

@media (max-width: 1180px) {
  .hhx-cnc-page .hhx-cnc-hero-v3 { padding-top: 52px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__container,
  .hhx-cnc-page .hhx-cnc-hero-v3__stats { width: min(calc(100% - 64px), 1500px); }
  .hhx-cnc-page .hhx-cnc-hero-v3__container { gap: 42px; }
  .hhx-cnc-page .hhx-cnc-hero-v3 h1 { font-size: clamp(48px, 5vw, 62px); }
  .hhx-cnc-page .hhx-cnc-hero-v3__stat { min-height: 145px; padding: 18px 12px; border-radius: 17px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__stat span { font-size: 13px; }
}

@media (max-width: 1024px) {
  .hhx-cnc-page .hhx-cnc-hero-v3 { min-height: auto; padding-bottom: 104px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__container { grid-template-columns: 1fr; }
  .hhx-cnc-page .hhx-cnc-hero-v3__content { max-width: 760px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__media { max-width: 840px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hhx-cnc-page .hhx-cnc-hero-v3__stat { grid-column: span 2; }
  .hhx-cnc-page .hhx-cnc-hero-v3__stat:nth-child(4) { grid-column: 2 / span 2; }
  .hhx-cnc-page .hhx-cnc-hero-v3__stat:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 640px) {
  .hhx-cnc-page .hhx-cnc-hero-v3 { padding: 43px 0 44px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__container,
  .hhx-cnc-page .hhx-cnc-hero-v3__stats { width: min(calc(100% - 36px), 1500px); }
  .hhx-cnc-page .hhx-cnc-hero-v3__container { gap: 32px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__label { margin-bottom: 13px; font-size: 11px; }
  .hhx-cnc-page .hhx-cnc-hero-v3 h1 { font-size: clamp(40px, 11.2vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
  .hhx-cnc-page .hhx-cnc-hero-v3__benefits { gap: 13px; margin: 26px 0 30px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__benefits li { grid-template-columns: 19px minmax(0, 1fr); gap: 9px; font-size: 15px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__benefits li::before { width: 18px; height: 18px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__button { width: 100%; min-width: 0; min-height: 58px; font-size: 16px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__media .hhx-media-image { border-radius: 7px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__stats { position: static; display: flex; gap: 12px; margin-top: 30px; padding: 0 0 4px; overflow-x: auto; transform: none; scroll-snap-type: x mandatory; }
  .hhx-cnc-page .hhx-cnc-hero-v3__stat { min-width: 260px; min-height: 132px; scroll-snap-align: start; border-radius: 14px; }
  .hhx-cnc-page .hhx-cnc-hero-v3__stat strong { font-size: 28px; }
  .hhx-cnc-page .hhx-cnc-hero-v3:has(.hhx-cnc-hero-v3__stats) + .hhx-cnc-section { padding-top: 58px; }
}
