:root {
  --accent: #c69b4f;
}

body {
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(198, 155, 79, 0.16), transparent 60%),
    radial-gradient(700px 420px at 80% 25%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #080808, #0b0b0b);
}

.page,
.topbar,
.lightbox {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-back {
  justify-self: start;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.topbar-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.topbar-brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.highlight-detail-page .topbar-logo {
  width: 64px;
  height: 64px;
}

.topbar-name {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 26px;
}

.topbar-menu {
  justify-self: end;
}

.topbar-menu .menu-toggle {
  position: static;
  right: auto;
  width: 40px;
  height: 40px;
}

.page {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 22px 0 40px;
}

.hero-nuart {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0 18px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  font-family: var(--font-category);
  font-weight: 900;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(198, 155, 79, 0.22);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
}

.title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 14px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 62ch;
}

.meta {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meta-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.meta-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 6px;
}

.meta-value {
  display: block;
  font-weight: 600;
}

.featured {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.featured img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-height: 380px;
}

.subcats {
  padding: 20px 0 10px;
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

.subcats-head {
  margin-bottom: 16px;
}

.subcats-head h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 6px;
}

.subcats-head p {
  color: rgba(255, 255, 255, 0.72);
}

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

.subcat-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.subcat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78));
}

.subcat-card::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2;
}

.subcat-card:hover,
.subcat-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.subcat-card:hover::after,
.subcat-card:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.subcat-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.subcat-content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.subcat-content h3 {
  font-family: var(--font-category);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 1rem;
}

.subcat-content p {
  margin-top: 6px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.88);
}

.category-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(198, 155, 79, 0.14), transparent 28%),
    rgba(0, 0, 0, 0.92);
  z-index: 12000;
}

.category-lightbox.open {
  display: flex;
}

.category-lightbox-dialog {
  position: relative;
  width: min(1120px, 100%);
  padding: 0 72px 16px;
}

.category-lightbox-nav {
  position: absolute;
  top: clamp(220px, 38vw, 320px);
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.22s ease, transform 0.22s ease;
}

.category-lightbox-nav:hover {
  background: rgba(198, 155, 79, 0.42);
}

.category-lightbox-nav.prev {
  left: max(-8px, calc(50% - min(560px, 50vw) - 64px));
}

.category-lightbox-nav.next {
  right: max(-8px, calc(50% - min(560px, 50vw) - 64px));
}

.category-lightbox-nav[hidden] {
  display: none;
}

.category-lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.category-lightbox-video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.category-lightbox-img[hidden],
.category-lightbox-video[hidden] {
  display: none;
}

.category-lightbox-close {
  position: absolute;
  top: 16px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 3;
}

.category-lightbox-meta {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.category-lightbox-thumbs {
  margin-top: 14px;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 72px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

.category-lightbox-thumb {
  flex: 0 0 116px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.74;
}

.category-lightbox-thumb:hover,
.category-lightbox-thumb.active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(198, 155, 79, 0.72);
}

.category-lightbox-thumb img {
  width: 100%;
  height: 78px;
  display: block;
  object-fit: cover;
}

.category-lightbox-video-thumb {
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 155, 79, 0.18);
  color: #fff;
  font-family: var(--font-category);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-lightbox-thumb.active img {
  filter: saturate(1.05);
}

.video-section,
.gallery,
.details,
.cta-nuart,
.download-block {
  padding: 28px 0 10px;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.video-head h2,
.gallery-head h2,
.details-card h3,
.cta-box h2,
.download-block h2 {
  font-family: var(--font-title);
}

.video-head p,
.gallery-head p,
.cta-box p,
.download-block p {
  color: rgba(255, 255, 255, 0.74);
}

.video-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  position: relative;
}

.video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-frame iframe,
.video-placeholder-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.masonry {
  column-count: 3;
  column-gap: 14px;
}

.shot {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.shot img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.details-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.details-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.cta-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 26px 18px;
  text-align: center;
}

.download-block {
  text-align: center;
}

@media (max-width: 980px) {
  .hero-nuart {
    grid-template-columns: 1fr;
  }

  .meta {
    grid-template-columns: 1fr;
  }

  .subcats-grid {
    grid-template-columns: 1fr;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 620px) {
  .topbar-logo {
    width: 48px;
    height: 48px;
  }

  .topbar-name {
    font-size: 22px;
  }

  .masonry {
    column-count: 1;
  }

  .subcat-card {
    min-height: 260px;
  }

  .category-lightbox {
    padding: 14px;
  }

  .category-lightbox-dialog {
    padding: 0 16px 12px;
  }

  .category-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    top: 42%;
  }

  .category-lightbox-nav.prev {
    left: 0;
  }

  .category-lightbox-nav.next {
    right: 0;
  }

  .category-lightbox-img,
  .category-lightbox-video {
    max-height: 56vh;
  }

  .category-lightbox-thumbs {
    gap: 8px;
    overflow-x: auto;
    justify-content: start;
    padding: 0 0 2px;
    padding-bottom: 2px;
  }

  .category-lightbox-thumb {
    flex-basis: 88px;
  }

  .category-lightbox-thumb img,
  .category-lightbox-video-thumb {
    height: 64px;
  }
}
