@font-face {
  font-display: block;
  font-family: 'ClashDisplay';
  font-style: normal;
  font-weight: 600;
  src: url('/dist/assets/fonts/ClashDisplay-Semibold.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'ClashDisplay';
  font-style: normal;
  font-weight: 500;
  src: url('/dist/assets/fonts/ClashDisplay-Medium.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  src: url('/dist/assets/fonts/Archivo-Regular.woff2') format('woff2');
}

.cert-page {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f8f8;
  padding: clamp(88px, 10vw, 128px) 16px 64px;
  box-sizing: border-box;
  min-height: min(100vh, 100dvh);
}

.cert-page__inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cert-page__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Archivo', sans-serif;
}

.cert-page__breadcrumb a {
  color: #717182;
  text-decoration: none;
  transition: color 0.2s;
}

.cert-page__breadcrumb a:hover {
  color: #0a0a0a;
}

.cert-page__breadcrumb-sep {
  color: #717182;
  display: flex;
  align-items: center;
}

.cert-page__breadcrumb-current {
  color: #0a0a0a;
}

.cert-page__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.cert-page__title {
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.13;
  letter-spacing: -0.015em;
  color: #0a0a0a;
  margin: 0;
}

.cert-page__lead {
  margin: 0;
  max-width: 602px;
  font-size: 18px;
  line-height: 1.33;
  color: #525252;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1100px) {
  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .cert-grid .cert-card:nth-child(4) {
    grid-column: 1 / -1;
    max-width: 400px;
    width: 100%;
    justify-self: center;
  }
}

.cert-card {
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  box-sizing: border-box;
}

.cert-card__media {
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card__media--tall {
  min-height: 180px;
}

.cert-card__media img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.cert-card__name {
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  text-align: center;
  color: #0a0a0a;
  margin: 0;
  width: 100%;
}

.cert-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: #525252;
  width: 100%;
}

.cert-about {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 32px;
  padding: clamp(48px, 10vw, 128px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 27px;
  box-sizing: border-box;
}

.cert-about__decor {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url('/dist/assets/img/about/about-bg.svg');
  background-size: 120% auto;
  background-position: 80% 40%;
  background-repeat: no-repeat;
}

.cert-about__eyebrow {
  position: relative;
  z-index: 1;
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0;
}

.cert-about__title {
  position: relative;
  z-index: 1;
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0;
  max-width: 900px;
}

.cert-about__text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 895px;
  font-size: 18px;
  line-height: 1.7;
  color: #1a1a1a;
}

.cert-about__logos {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 27px;
  margin-top: 8px;
}

.cert-about__logos img {
  max-height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.cert-showcase {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: 32px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 64px);
  box-sizing: border-box;
}

.cert-showcase__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.cert-showcase__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #9a9a9a;
}

.cert-showcase__slash {
  color: #ef4444;
  font-weight: 700;
}

.cert-showcase__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cert-showcase__nav-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1c1c1c;
}

.cert-showcase__title {
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 16px;
  max-width: 760px;
}

.cert-showcase__lead {
  margin: 0 0 36px;
  max-width: 700px;
  font-size: 16px;
  line-height: 1.65;
  color: #9a9a9a;
}

.cert-showcase__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .cert-showcase__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cert-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .cert-showcase__grid {
    grid-template-columns: 1fr;
  }
}

.cert-showcase__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-showcase__media {
  display: block;
  width: 100%;
  border: none;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-showcase__media:hover,
.cert-showcase__media:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.cert-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cert-showcase__name {
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.cert-showcase__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #9a9a9a;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.cert-lightbox.is-open {
  display: flex;
}

.cert-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.86);
  cursor: pointer;
}

.cert-lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(640px, 90vw);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  background: #fff;
}

.cert-lightbox__caption {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-family: 'ClashDisplay', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
}

.cert-lightbox__close {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cert-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.cert-lightbox__nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cert-lightbox__nav:hover {
  background: #dc2626;
}

.cert-lightbox__nav--prev {
  left: 20px;
}

.cert-lightbox__nav--next {
  right: 20px;
}

@media (max-width: 640px) {
  .cert-lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .cert-lightbox__nav--prev {
    left: 8px;
  }

  .cert-lightbox__nav--next {
    right: 8px;
  }

  .cert-lightbox__close {
    top: 12px;
    right: 12px;
  }

  .cert-lightbox__caption {
    font-size: 15px;
    bottom: 12px;
    padding: 0 60px;
  }
}
