.nw-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 6vw, 5rem);
}

.nw-checks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1.9rem 0 0;
  padding: 0;
}

.nw-checks li {
  position: relative;
  padding-left: 1.85rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nw-ink, #252c37);
  line-height: 1.4;
}

.nw-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--nw-soft-border, rgba(193, 203, 184, 0.4));
}

.nw-checks li::after {
  content: '';
  position: absolute;
  left: 0.44rem;
  top: 0.3rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--nw-accent, #2933ba);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nw-partner {
  padding: clamp(2rem, 3vw, 2.75rem);
  border: 1px solid var(--nw-line, rgba(37, 44, 55, 0.08));
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 60px -30px rgba(37, 44, 55, 0.35);
  text-align: center;
}

.nw-partner__logo {
  display: block;
  width: min(210px, 70%);
  height: auto;
  margin: 0 auto 1.4rem;
}

.nw-partner__status {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--nw-soft, rgba(193, 203, 184, 0.2));
  border: 1px solid var(--nw-soft-border, rgba(193, 203, 184, 0.4));
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nw-ink, #252c37);
}

.nw-partner__text {
  max-width: 22rem;
  margin: 1rem auto 1.6rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--nw-muted, rgba(37, 44, 55, 0.6));
  line-height: 1.65;
}

.nw-partner__btn svg {
  width: 15px;
  height: 15px;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.nw-certs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
  margin: 0;
  padding: 0;
}

.nw-cert {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.nw-cert__paper {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.414;
  margin-bottom: 0.85rem;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 44, 55, 0.08), 0 14px 30px -16px rgba(37, 44, 55, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.nw-cert__paper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-cert__paper::after {
  content: '';
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #252c37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / 1rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .nw-cert:hover .nw-cert__paper {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(37, 44, 55, 0.08), 0 22px 40px -18px rgba(37, 44, 55, 0.5);
  }
  .nw-cert:hover .nw-cert__paper::after {
    opacity: 1;
    transform: none;
  }
}

.nw-cert:focus-visible {
  outline: none;
}

.nw-cert:focus-visible .nw-cert__paper {
  outline: 2px solid var(--nw-accent, #2933ba);
  outline-offset: 3px;
}

.nw-cert__title {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nw-ink, #252c37);
  line-height: 1.3;
}

.nw-cert__meta {
  margin-top: 0.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--nw-muted, rgba(37, 44, 55, 0.6));
}


.nw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 5.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nw-lightbox[hidden] {
  display: none;
}

.nw-lightbox.is-open {
  opacity: 1;
}

.nw-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 33, 0.88);
}

.nw-lightbox__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.nw-lightbox.is-open .nw-lightbox__dialog {
  transform: none;
}

.nw-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.9rem 0.9rem 1.5rem;
  border-bottom: 1px solid var(--nw-line, rgba(37, 44, 55, 0.08));
}

.nw-lightbox__title {
  margin: 0;
  font-family: 'Geared Slab', 'Roboto Slab', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nw-ink, #252c37);
  line-height: 1.2;
}

.nw-lightbox__meta {
  margin: 0.2rem 0 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--nw-muted, rgba(37, 44, 55, 0.6));
}

.nw-lightbox__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--nw-muted, rgba(37, 44, 55, 0.6));
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nw-lightbox__close svg {
  width: 22px;
  height: 22px;
}

@media (hover: hover) {
  .nw-lightbox__close:hover {
    background: var(--nw-line, rgba(37, 44, 55, 0.08));
    color: var(--nw-ink, #252c37);
  }
}

.nw-lightbox__pages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--nw-paper-bg, #f8f6f3);
}

.nw-lightbox__pages img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(37, 44, 55, 0.1);
}

.nw-lightbox__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.nw-lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.nw-lightbox__nav--prev {
  left: 1.25rem;
}

.nw-lightbox__nav--next {
  right: 1.25rem;
}

@media (hover: hover) {
  .nw-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.24);
  }
}

.nw-lightbox__close:focus-visible,
.nw-lightbox__nav:focus-visible {
  outline: 2px solid var(--nw-highlight, #c1cbb8);
  outline-offset: 2px;
}


@media (max-width: 1200px) {
  .nw-certs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .nw-top {
    grid-template-columns: 1fr;
  }
  .nw-partner {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .nw-checks {
    grid-template-columns: 1fr;
  }

  .nw-certs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-padding, 1.25rem);
    margin-inline: calc(var(--container-padding, 1.25rem) * -1);
    padding: 0.25rem var(--container-padding, 1.25rem) 1rem;
    scrollbar-width: none;
  }
  .nw-certs::-webkit-scrollbar {
    display: none;
  }
  .nw-certs > li {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }

  .nw-lightbox {
    padding: 0.75rem 0.75rem 5rem;
  }
  .nw-lightbox__dialog {
    max-height: calc(100vh - 5.75rem);
    max-height: calc(100dvh - 5.75rem);
  }
  .nw-lightbox__pages {
    padding: 0.75rem;
  }
  .nw-lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
  .nw-lightbox__nav--prev {
    left: calc(50% - 64px);
  }
  .nw-lightbox__nav--next {
    right: calc(50% - 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-cert__paper,
  .nw-cert__paper::after,
  .nw-lightbox,
  .nw-lightbox__dialog {
    transition: none;
  }
}
