.page-products {
  --pp-gap: clamp(42px, 6vw, 78px);
  --pp-soft: #0A1512;
  background: var(--m6-ink);
  color: var(--m6-paper);
  position: relative;
  overflow-x: clip;
}

.page-products .m6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--m6-radius);
  border: 1px solid transparent;
  transition: transform 180ms var(--m6-ease), background-color 180ms var(--m6-ease);
}

.page-products .m6-btn--solid {
  background: var(--m6-orange);
  color: #12100E;
}

.page-products .m6-btn--ghost {
  border-color: var(--m6-line-strong);
  color: var(--m6-paper);
}

.page-products .m6-btn:hover {
  transform: translateY(-1px);
}

.pp-crumbs-wrap {
  padding-top: 14px;
}

/* ---------- Hero ---------- */
.pp-hero {
  position: relative;
  border-bottom: 1px solid var(--m6-line);
  isolation: isolate;
}

.pp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 7, .62) 0%, rgba(5, 8, 7, .86) 62%, var(--m6-ink) 100%);
  z-index: 0;
}

.pp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(.75) contrast(1.05);
  z-index: -1;
  pointer-events: none;
}

.pp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding-block: clamp(26px, 4.4vw, 48px) clamp(30px, 5vw, 58px);
}

.pp-hero__title {
  font-family: var(--m6-sans);
  font-weight: 900;
  font-size: clamp(34px, 7.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 14px 0 18px;
  text-wrap: balance;
}

.pp-hero__title em {
  font-style: normal;
  color: var(--m6-cyan);
}

.pp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pp-hero__stats {
  border: 1px solid var(--m6-line-strong);
  background: linear-gradient(158deg, rgba(13, 58, 44, .92), rgba(5, 8, 7, .68));
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.pp-stat__num {
  font-family: var(--m6-mono);
  font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1;
  color: var(--m6-cyan);
}

.pp-stat__label {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--m6-mist);
}

.pp-hero__statsnote {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--m6-mist);
  border-top: 1px solid var(--m6-line);
  padding-top: 12px;
}

/* ---------- Sections ---------- */
.pp-section {
  padding: var(--pp-gap) 0;
  position: relative;
}

.pp-section--dark {
  background: var(--m6-ink-2);
  border-top: 1px solid var(--m6-line);
  border-bottom: 1px solid var(--m6-line);
}

.pp-lede--tight {
  max-width: 62ch;
  margin: 0 0 24px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.8;
  color: rgba(244, 239, 228, .84);
}

.page-products .m6-section-head {
  margin-bottom: 16px;
}

.page-products .m6-section-head__index {
  color: var(--m6-orange);
  font-family: var(--m6-mono);
}

/* ---------- Figure ---------- */
.pp-figure {
  position: relative;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--m6-line-strong);
  background: var(--m6-ink-3);
}

.pp-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pp-figure__cap {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: .04em;
  background: rgba(5, 8, 7, .84);
  color: var(--m6-cyan);
  border-top: 1px solid var(--m6-line);
  border-left: 1px solid var(--m6-line);
}

.pp-figure--half {
  max-width: 640px;
  margin-top: 28px;
  margin-bottom: 0;
}

.pp-figure--flush {
  margin: 0;
}

.pp-figure--paper {
  margin: 0;
  border-color: rgba(11, 26, 22, .28);
  background: #E7E0D1;
}

.pp-figure--paper .pp-figure__cap {
  background: rgba(11, 26, 22, .88);
  color: var(--m6-paper);
  border-color: rgba(11, 26, 22, .28);
}

/* ---------- Workbench ---------- */
.pp-workbench {
  display: grid;
  gap: 16px;
}

.pp-index {
  background: var(--m6-ink-2);
  border: 1px solid var(--m6-line);
  padding: 16px;
}

.pp-index__title {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--m6-orange);
  margin-bottom: 10px;
}

.pp-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-index__item {
  border-bottom: 1px dashed var(--m6-line);
}

.pp-index__item:last-child {
  border-bottom: 0;
}

.pp-index__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  min-height: 44px;
  color: var(--m6-paper);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 160ms var(--m6-ease);
}

.pp-index__link:hover,
.pp-index__link:focus-visible {
  color: var(--m6-cyan);
}

.pp-index__name {
  font-weight: 600;
}

.pp-index__meta {
  font-size: 11.5px;
  color: var(--m6-mist);
}

.pp-index__hint {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--m6-line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--m6-mist);
}

.pp-board {
  background: var(--m6-ink-3);
  border: 1px solid var(--m6-line);
}

.pp-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) .6fr 1.15fr .5fr;
  gap: 8px;
  padding: 11px 14px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--m6-mist);
  background: rgba(5, 8, 7, .5);
  border-bottom: 1px solid var(--m6-line-strong);
}

.pp-group__label {
  padding: 12px 14px 6px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--m6-cyan);
  background: rgba(5, 8, 7, .3);
}

.pp-row {
  border-bottom: 1px solid var(--m6-line);
}

.pp-row:last-child {
  border-bottom: 0;
}

.pp-row__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) .6fr 1.15fr .5fr;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.pp-row__summary::-webkit-details-marker {
  display: none;
}

.pp-row__summary:hover {
  background: rgba(71, 243, 208, .06);
}

.pp-row__summary:focus-visible {
  outline: 2px solid var(--m6-cyan);
  outline-offset: -2px;
}

.pp-row__team {
  font-weight: 700;
  color: var(--m6-paper);
}

.pp-row__league {
  display: none;
  font-size: 12.5px;
  color: var(--m6-mist);
}

.pp-row__num {
  font-family: var(--m6-mono);
  font-size: 15px;
  color: var(--m6-paper);
}

.pp-row__state {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pp-row__src {
  font-size: 11.5px;
  color: var(--m6-cyan);
  text-align: right;
}

.pp-row__body {
  padding: 6px 14px 16px;
  background: rgba(5, 8, 7, .55);
  border-top: 1px dashed var(--m6-line);
}

.pp-src {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pp-src__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
  line-height: 1.6;
  background: rgba(13, 58, 44, .58);
  border-left: 2px solid var(--m6-cyan);
}

.pp-src__src {
  width: 68px;
  flex: 0 0 auto;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--m6-mist);
}

.pp-src__text {
  flex: 1 1 170px;
  color: var(--m6-paper);
}

.pp-row__foot {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--m6-mist);
}

/* ---------- Focus ---------- */
.pp-focus {
  background: var(--m6-ink);
  border-top: 1px solid var(--m6-line);
}

.pp-focus__grid {
  display: grid;
  gap: 22px;
}

.pp-facets {
  display: grid;
  gap: 18px;
  align-content: start;
}

.pp-facet__title {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--m6-mist);
  font-weight: 700;
  margin-bottom: 9px;
}

.pp-facet__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  font-size: 13px;
  color: rgba(244, 239, 228, .86);
  background: rgba(13, 58, 44, .5);
  border: 1px solid var(--m6-line-strong);
  border-radius: var(--m6-radius);
}

.pp-chip--on {
  border-color: var(--m6-cyan);
  color: var(--m6-cyan);
  background: var(--m6-cyan-soft);
}

.pp-facets__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--m6-mist);
  border-top: 1px dashed var(--m6-line);
  padding-top: 12px;
}

.pp-cardstream {
  display: grid;
  gap: 14px;
}

.pp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: rgba(13, 58, 44, .78);
  border: 1px solid var(--m6-line);
  border-left: 2px solid rgba(71, 243, 208, .5);
}

.pp-card--lead {
  background: var(--m6-orange);
  border-color: transparent;
  color: #1B0D05;
}

.pp-card__label {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--m6-cyan);
}

.pp-card__title {
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.28;
  font-weight: 800;
  color: var(--m6-paper);
}

.pp-card__meta {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--m6-mist);
}

.pp-card__text {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(244, 239, 228, .88);
}

.pp-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  font-size: 13px;
  color: var(--m6-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(71, 243, 208, .42);
}

.pp-card--lead .pp-card__label {
  color: #4A1A00;
}

.pp-card--lead .pp-card__title {
  color: #1B0D05;
}

.pp-card--lead .pp-card__meta {
  color: rgba(27, 13, 5, .74);
}

.pp-card--lead .pp-card__text {
  color: #241005;
}

.pp-card--lead .pp-card__link {
  color: #12100E;
  border-bottom-color: rgba(18, 16, 14, .45);
}

.pp-tray {
  display: none;
}

/* ---------- Archive ---------- */
.pp-archive {
  background: var(--m6-paper);
  color: #0B1A16;
  padding: var(--pp-gap) 0;
  border-top: 10px solid var(--m6-ink-2);
  border-bottom: 10px solid var(--m6-ink-2);
}

.page-products .pp-archive .m6-section-head__index {
  color: #B4431A;
}

.page-products .pp-archive .m6-section-head__title {
  color: #0B1A16;
}

.page-products .pp-archive .m6-section-head__note {
  color: #4A6259;
}

.pp-archive__grid {
  display: grid;
  gap: 26px;
  align-items: start;
}

.pp-archive__lede {
  font-size: clamp(15px, 1.8vw, 17.5px);
  line-height: 1.8;
  color: #25423A;
  max-width: 46ch;
  margin: 0 0 22px;
}

.pp-years {
  list-style: none;
  margin: 0 0 22px;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(11, 26, 22, .18);
}

.pp-year {
  position: relative;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(11, 26, 22, .12);
}

.pp-year:last-child {
  border-bottom: 0;
}

.pp-year::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--m6-orange);
}

.pp-year__label {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: #B4431A;
}

.pp-year__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: #25423A;
}

.pp-archive__link {
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  color: #0B5F4C;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Modules ---------- */
.pp-modules {
  background: var(--m6-ink-2);
  border-top: 1px solid var(--m6-line);
}

.pp-modules__grid {
  display: grid;
  gap: 26px;
}

.pp-flow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-flow__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--m6-line);
}

.pp-flow__item:last-child {
  border-bottom: 1px solid var(--m6-line);
}

.pp-flow__num {
  grid-row: span 2;
  font-family: var(--m6-mono);
  font-size: 22px;
  line-height: 1.1;
  color: var(--m6-orange);
}

.pp-flow__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--m6-paper);
}

.pp-flow__text {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--m6-mist);
}

/* ---------- Scenes ---------- */
.pp-scenes {
  background: var(--m6-ink);
  border-top: 1px solid var(--m6-line);
}

.pp-scenes__inner {
  display: grid;
  gap: 26px;
}

.pp-scenes__title {
  margin-top: 12px;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.14;
  font-weight: 900;
  color: var(--m6-paper);
}

.pp-scenes__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-scene {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--m6-line);
}

.pp-scene:last-child {
  border-bottom: 1px solid var(--m6-line);
}

.pp-scene h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--m6-cyan);
}

.pp-scene p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 239, 228, .86);
}

/* ---------- Steps ---------- */
.pp-steps {
  background: var(--m6-ink-2);
  border-top: 1px solid var(--m6-line);
  border-bottom: 1px solid var(--m6-line);
}

.pp-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.pp-step {
  padding: 16px 0;
  border-top: 1px solid var(--m6-line);
}

.pp-step:last-child {
  border-bottom: 1px solid var(--m6-line);
}

.pp-step__num {
  display: block;
  font-family: var(--m6-mono);
  font-size: 30px;
  line-height: 1;
  color: var(--m6-cyan);
  margin-bottom: 8px;
}

.pp-step h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--m6-paper);
  margin-bottom: 6px;
}

.pp-step p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--m6-mist);
}

.pp-steps__foot {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(244, 239, 228, .82);
}

.pp-steps__foot a {
  color: var(--m6-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(71, 243, 208, .42);
}

/* ---------- CTA ---------- */
.pp-cta {
  background: var(--m6-orange);
  color: #12100E;
  padding: clamp(30px, 5vw, 54px) 0;
}

.pp-cta__inner {
  display: grid;
  gap: 22px;
}

.pp-cta__title {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

.pp-cta__text {
  margin-top: 10px;
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(22, 12, 5, .84);
}

.pp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pp-cta__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--m6-radius);
  background: #0B1A16;
  color: var(--m6-paper);
}

.pp-cta__btn--ghost {
  background: transparent;
  border: 1px solid rgba(11, 26, 22, .55);
  color: #12100E;
}

.pp-cta__link {
  font-size: 13.5px;
  color: #12100E;
  text-decoration: underline;
}

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 720px) {
  .pp-board__head,
  .pp-row__summary {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) .55fr 1.15fr .5fr;
  }

  .pp-row__league,
  .pp-board__head .pp-col-league {
    display: block;
  }

  .pp-cardstream {
    grid-template-columns: 1fr 1fr;
  }

  .pp-card--lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .pp-hero__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .78fr);
    align-items: end;
    gap: 40px;
  }

  .pp-hero__stats {
    padding: 22px;
  }

  .pp-workbench {
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }

  .pp-index {
    position: sticky;
    top: calc(var(--m6-header-h) + 18px);
  }

  .pp-focus__grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 34px;
  }

  .pp-archive__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
  }

  .pp-modules__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 38px;
    align-items: start;
  }

  .pp-scenes__inner {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 44px;
  }

  .pp-cta__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: center;
    gap: 32px;
  }

  .pp-tray {
    display: none !important;
  }
}

@media (min-width: 760px) {
  .pp-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-step {
    border-top: 0;
    padding: 0 22px;
    border-left: 1px solid var(--m6-line);
  }

  .pp-step:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .pp-step:last-child {
    border-bottom: 0;
  }
}

/* ---------- Mobile tray ---------- */
@media (max-width: 899px) {
  .pp-tray {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-top: 26px;
    padding: 10px 12px;
    background: rgba(7, 37, 28, .96);
    border: 1px solid var(--m6-line-strong);
    border-top: 2px solid var(--m6-cyan);
    box-shadow: var(--m6-shadow);
  }

  .pp-tray__label {
    font-size: 10.5px;
    letter-spacing: .12em;
    color: var(--m6-mist);
  }

  .pp-tray__chip {
    padding: 4px 8px;
    font-size: 11.5px;
    color: var(--m6-cyan);
    border: 1px solid rgba(71, 243, 208, .4);
  }

  .pp-tray__go {
    margin-left: auto;
    padding: 9px 13px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--m6-ink);
    background: var(--m6-cyan);
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .m6-btn,
  .pp-index__link {
    transition: none;
  }
}
