/* ================================================
   PRODUKTY PAGE STYLES
   ================================================ */

/* Active nav link */
.nav-link--active {
  color: var(--accent);
}

/* ------------------------------------------------
   Page Hero
   ------------------------------------------------ */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-hero__heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero__desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ------------------------------------------------
   Products Navigation
   ------------------------------------------------ */
.products-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(18, 21, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.products-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.products-nav__list::-webkit-scrollbar { display: none; }

.products-nav__link {
  display: block;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.products-nav__link:hover,
.products-nav__link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------
   Product Section
   ------------------------------------------------ */
.product-section {
  padding-block: 100px;
}

.product-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 56px;
}

/* Default: image on left (content right) */
/* .product-section__grid — image first in DOM */

/* Image right variant: content first in DOM, image second */
.product-section__grid--image-right {
  /* content is first child, image is second — they appear in correct order */
}

.product-section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-section__heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.product-section__desc,
.product-section__content > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.product-section__desc:last-of-type,
.product-section__content > p:last-of-type {
  margin-bottom: 0;
}

/* Certs */
.product-section__certs {
  margin-top: 32px;
}

.product-section__certs-label,
.product-section__docs-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-section__certs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(252, 119, 8, 0.10);
  border: 1px solid rgba(252, 119, 8, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* Documents */
.product-section__docs {
  margin-top: 28px;
  margin-bottom: 32px;
}

.product-section__docs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.doc-btn:hover {
  background: rgba(252, 119, 8, 0.08);
  border-color: rgba(252, 119, 8, 0.30);
  color: var(--accent);
}

.doc-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Product Image */
.product-section__image-wrap {
  position: relative;
}

.product-section__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.50);
  position: relative;
  z-index: 1;
}

.product-section__image-glow {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Features bar */
.product-section__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: linear-gradient(180deg, rgba(26,29,34,0.80) 0%, rgba(42,45,50,0.80) 100%);
  border: 1px solid rgba(252, 119, 8, 0.18);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.product-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}

.product-feature__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Divider */
.product-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  margin-inline: 40px;
}

/* ------------------------------------------------
   Video Section
   ------------------------------------------------ */
.video-section {
  background: linear-gradient(180deg, #121518 0%, #1a1d22 100%);
}

.video-section__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.video-card {
  background: linear-gradient(180deg, #1a1d22 0%, #2a2d32 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  cursor: pointer;
}

.video-card:hover {
  border-color: rgba(252, 119, 8, 0.30);
  box-shadow: 0 0 40px rgba(252, 119, 8, 0.10);
}

.video-card--large .video-card__thumb {
  height: 380px;
}

.video-card__thumb {
  position: relative;
  height: 200px;
  background: #0e1115;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-card__thumb--sm {
  height: 140px;
}

.video-card__thumb-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(252,119,8,0.06) 0%, transparent 70%);
}

.video-card__play {
  position: relative;
  z-index: 1;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.video-card:hover .video-card__play {
  transform: scale(1.08);
}

.video-card__play--sm {
  /* smaller play icon for side cards */
}

.video-card__info {
  padding: 20px 24px;
}

.video-card--large .video-card__info {
  padding: 24px 28px;
}

.video-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
}

.video-card--large .video-card__title {
  font-size: 17px;
}

.video-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.video-section__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ------------------------------------------------
   Products CTA (reuses .contact styles)
   ------------------------------------------------ */
.products-cta {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.products-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1100px) {
  .product-section__grid {
    gap: 48px;
  }

  .product-section__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-section__grid {
    grid-template-columns: 1fr;
  }

  .video-section__aside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .product-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* On mobile, always show image below content for image-right sections */
  .product-section__grid--image-right .product-section__content {
    order: 1;
  }
  .product-section__grid--image-right .product-section__image-wrap {
    order: 2;
  }

  /* On mobile, show content before image for default sections too */
  .product-section__grid .product-section__image-wrap {
    order: -1;
  }
  .product-section__grid .product-section__content {
    order: 1;
  }

  .product-section__image {
    height: 280px;
  }

  .product-section__features {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .products-nav__link {
    padding: 14px 18px;
    font-size: 13px;
  }

  .video-section__aside {
    grid-template-columns: 1fr;
  }

  .products-cta__btns {
    flex-direction: column;
    align-items: center;
  }

  .product-divider {
    margin-inline: 16px;
  }
}

@media (max-width: 480px) {
  .product-section__docs-list {
    flex-direction: column;
  }

  .doc-btn {
    justify-content: center;
  }
}

/* ============ VIDEO PLAYER ============ */
.video-player {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.video-player__main {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.video-player__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.video-player__caption {
  padding: 18px 22px 22px;
}

.video-player__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}

.video-player__desc {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.video-player__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  font: inherit;
  color: inherit;
  text-align: left;
}

.video-thumb:hover {
  border-color: rgba(252, 119, 8, 0.5);
  transform: translateY(-2px);
}

.video-thumb.is-active {
  border-color: #FC7708;
  box-shadow: 0 0 0 1px #FC7708 inset;
}

.video-thumb__preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
  pointer-events: none;
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 12px));
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-thumb:hover .video-thumb__play {
  opacity: 1;
  transform: translate(-50%, calc(-50% - 12px)) scale(1.08);
}

.video-thumb__label {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 700px) {
  .video-player__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
