.vx-certification {
  --vx-primary: #0b2545;
  --vx-accent: #176b68;
  --vx-text: #536273;
  --vx-overlay: rgba(247, 249, 251, .9);
  --vx-overlay-opacity: 0;
  --vx-bg-size: cover;
  --vx-brand-speed: 32s;
  --vx-gap: 22px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 4.5vw, 72px) 0 0;
  color: var(--vx-primary);
  background: linear-gradient(135deg, #fff 0%, #f3f6f8 48%, #e8edf0 100%);
}

.vx-certification::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--vx-bg-image);
  background-position: var(--vx-bg-position);
  background-size: var(--vx-bg-size);
  background-repeat: no-repeat;
  pointer-events: none;
}

.vx-certification::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--vx-overlay);
  opacity: var(--vx-overlay-opacity);
  pointer-events: none;
}

.vx-certification.vx-bg-soft::after {
  background:
    radial-gradient(circle at 22% 25%, rgba(255,255,255,.96) 0, rgba(255,255,255,.48) 30%, transparent 58%),
    var(--vx-overlay);
  opacity: 1;
}

.vx-certification__inner {
  width: min(1760px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(620px, 1.55fr);
  align-items: center;
  gap: clamp(36px, 4vw, 68px);
  min-height: 500px;
}

.vx-certification__intro { position: relative; padding-bottom: 168px; }

.vx-certification__title {
  margin: 0;
  max-width: 620px;
  color: var(--vx-primary);
  font-size: clamp(40px, 3.7vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 760;
}

.vx-certification__subtitle {
  margin: 20px 0 0;
  color: var(--vx-accent);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.38;
  font-weight: 650;
}

.vx-certification__rule {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 18px;
  border-radius: 99px;
  background: var(--vx-accent);
}

.vx-certification__description {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--vx-text);
  font-size: 17px;
  line-height: 1.58;
}

.vx-medal {
  position: absolute;
  left: 18px;
  bottom: -4px;
  width: 172px;
  aspect-ratio: 1;
  filter: drop-shadow(0 20px 22px rgba(11, 37, 69, .18));
}

.vx-medal::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 142%;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(11, 37, 69, .13);
  filter: blur(12px);
  z-index: -1;
}

.vx-medal__rim {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 13px;
  border: 3px solid #c8d2d5;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #f9fbfb 0deg 5deg, #bdc9cc 5deg 9deg, #eef3f4 9deg 14deg),
    #d6dfe1;
  box-shadow: inset 0 0 0 5px #f7fafa, inset 0 0 0 8px #aebcc0;
}

.vx-medal__face {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  border: 5px double rgba(255,255,255,.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), transparent 38%),
    linear-gradient(145deg, #286f70, #0d464b 72%);
  box-shadow: inset 0 0 26px rgba(0,0,0,.34);
}

.vx-medal__face strong {
  display: block;
  flex: 0 0 auto;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.04em;
}

.vx-medal__face span {
  display: block;
  width: 82%;
  max-width: 100%;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,.55);
  font-size: 11.5px;
  line-height: 1.18;
  font-weight: 600;
}

.vx-cert-carousel {
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  width: calc(100% - 24px);
  min-width: 0;
  margin-left: 24px;
  padding-right: 64px;
}
.vx-cert-viewport { position: relative; z-index: 1; overflow: hidden; padding: 22px 9px 28px; margin: -22px -9px -28px; }
.vx-cert-track { position: relative; z-index: 1; display: flex; gap: var(--vx-gap); transition: transform .62s cubic-bezier(.22,.75,.2,1); will-change: transform; }
.vx-cert-slide { flex: 0 0 calc((100% - (var(--vx-gap) * 2)) / 3); min-width: 0; }

.vx-cert-card {
  overflow: hidden;
  border: 1px solid rgba(17, 58, 82, .19);
  border-radius: 4px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 13px 30px rgba(23, 52, 70, .13);
  transform: translateY(0);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.vx-cert-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(23,107,104,.48);
  box-shadow: 0 24px 48px rgba(23, 52, 70, .22);
}

.vx-cert-card > img,
.vx-cert-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: .72;
  object-fit: contain;
  background: #fff;
}

.vx-cert-placeholder {
  box-sizing: border-box;
  position: relative;
  padding: 18% 12%;
  text-align: center;
  color: #1b2c3d;
  background:
    linear-gradient(90deg, var(--vx-accent) 0 8px, transparent 8px),
    linear-gradient(150deg, #fff, #f4f7f8);
}

.vx-cert-placeholder::before,
.vx-cert-placeholder::after {
  content: "";
  position: absolute;
  inset: 5.5%;
  border: 1px solid rgba(23,107,104,.36);
  pointer-events: none;
}
.vx-cert-placeholder::after { inset: 7.5%; border-color: rgba(11,37,69,.16); }
.vx-cert-placeholder__crest { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: var(--vx-accent); font-weight: 800; }
.vx-cert-placeholder small { display: block; font-size: 8px; letter-spacing: .14em; }
.vx-cert-placeholder strong { display: block; margin: 22% 0 14%; font-size: clamp(15px,1.2vw,20px); letter-spacing: .08em; }
.vx-cert-placeholder i { display: block; width: 78%; height: 3px; margin: 7px auto; background: #d9e0e3; }
.vx-cert-placeholder i:nth-of-type(2), .vx-cert-placeholder i:nth-of-type(4) { width: 62%; }
.vx-cert-placeholder em { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid #d6b266; border-radius: 50%; color: #9a7432; font-size: 12px; font-style: normal; font-weight: 800; }

.vx-cert-arrow {
  position: absolute;
  top: 50%;
  z-index: 100;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(23,107,104,.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--vx-accent);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(11,37,69,.12);
  cursor: pointer;
  pointer-events: auto !important;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(-50%);
  transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.vx-cert-arrow span { display: block; margin-top: -4px; font: 400 40px/1 Arial, sans-serif; pointer-events: none; }
.vx-cert-arrow:focus { color: var(--vx-accent); background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(11,37,69,.12); transform: translateY(-50%); outline: none; }
.vx-cert-arrow:focus-visible { outline: 2px solid var(--vx-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .vx-cert-arrow:hover { color: #fff; background: var(--vx-accent); box-shadow: 0 12px 30px rgba(23,107,104,.28); transform: translateY(-50%) scale(1.08); outline: none; }
}
.vx-cert-arrow--prev { left: -76px; }
.vx-cert-arrow--next { right: 0; }

.vx-brand-marquee {
  margin-top: clamp(30px, 3vw, 48px);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(11,37,69,.1);
  background: rgba(255,255,255,.68);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  pointer-events: none;
}

.vx-brand-track { display: flex; width: max-content; animation: vx-brand-scroll var(--vx-brand-speed) linear infinite; will-change: transform; }
.vx-brand-set { display: flex; align-items: center; gap: 20px; padding-right: 20px; }
.vx-brand-card {
  width: 210px;
  height: 72px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 12px 22px;
  border: 1px solid rgba(11,37,69,.1);
  border-radius: 9px;
  color: var(--vx-primary);
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 24px rgba(11,37,69,.06);
  overflow: hidden;
}
.vx-brand-card span { font-size: 25px; line-height: 1; font-weight: 750; letter-spacing: -.025em; }
.vx-brand-card img {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: contain;
  transform: scale(var(--vx-logo-scale, 1));
  transform-origin: center;
  filter: saturate(.88);
}

@keyframes vx-brand-scroll { to { transform: translateX(-50%); } }

@media (max-width: 1280px) {
  .vx-certification__inner { grid-template-columns: minmax(300px,.78fr) minmax(570px,1.45fr); gap: 45px; }
  .vx-cert-carousel { width: 100%; margin-left: 0; padding-right: 0; }
  .vx-cert-arrow--prev { left: -28px; }
  .vx-cert-arrow--next { right: -28px; }
}

@media (max-width: 980px) {
  .vx-certification { padding-top: 44px; }
  .vx-certification__inner { width: min(760px, calc(100% - 40px)); grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .vx-certification__intro { padding: 0 0 10px 185px; min-height: 170px; }
  .vx-medal { left: 0; bottom: 4px; width: 150px; }
  .vx-certification__title { font-size: clamp(36px, 6.5vw, 54px); }
}

@media (max-width: 767px) {
  .vx-certification { --vx-gap: 16px; padding-top: 36px; }
  .vx-certification__inner { width: min(100% - 30px, 560px); gap: 20px; }
  .vx-certification__intro { padding: 0; text-align: left; }
  .vx-certification__title { font-size: 34px; }
  .vx-certification__subtitle { margin-top: 14px; font-size: 15px; }
  .vx-certification__rule { margin-top: 14px; }
  .vx-certification__description { margin-top: 14px; font-size: 14px; line-height: 1.52; }
  .vx-medal { position: relative; left: auto; bottom: auto; width: 152px; margin: 20px auto 0; }
  .vx-medal__face { padding: 9px 7px; }
  .vx-medal__face strong { font-size: 38px; }
  .vx-medal__face span { width: 84%; margin-top: 6px; padding-top: 6px; font-size: 10.5px; line-height: 1.15; }
  .vx-cert-slide { flex-basis: 100%; }
  .vx-cert-viewport { padding-top: 16px; margin-top: -16px; }
  .vx-cert-arrow { top: 50%; width: 44px; height: 44px; }
  .vx-cert-arrow--prev { left: -10px; }
  .vx-cert-arrow--next { right: -10px; }
  .vx-cert-card { margin: 0 28px; }
  .vx-brand-marquee { margin-top: 34px; padding: 14px 0; }
  .vx-brand-card { width: 160px; height: 62px; padding: 10px 16px; }
  .vx-brand-card span { font-size: 19px; }
  .vx-brand-card img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vx-brand-track { animation-play-state: paused; }
  .vx-cert-track, .vx-cert-card, .vx-cert-arrow { transition-duration: .01ms !important; }
}
