.page-products {
  --px-gap: clamp(18px, 3vw, 30px);
  --px-soft: rgba(246, 241, 232, 0.74);
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-products p {
  margin: 0;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0;
}

.page-products .section {
  padding-block: clamp(44px, 7vw, 88px);
}

.page-products .px-crumbs {
  padding-top: clamp(14px, 3vw, 26px);
}

.page-products .px-crumbs .breadcrumbs {
  font-size: 13px;
}

/* ---------- hero ---------- */
.page-products .px-hero {
  position: relative;
  padding-block: clamp(26px, 5vw, 56px) clamp(34px, 6vw, 72px);
  overflow: hidden;
}

.page-products .px-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -18%;
  width: 62%;
  height: 150%;
  background: linear-gradient(118deg, rgba(45, 226, 230, 0.16), rgba(7, 21, 33, 0) 68%);
  transform: skewX(-6deg);
  pointer-events: none;
}

.page-products .px-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: end;
}

.page-products .px-hero__lead h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-top: 16px;
}

.page-products .px-hero__lead .lede {
  margin-top: 20px;
  max-width: 36em;
  color: var(--px-soft);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
}

.page-products .px-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .px-hero__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-cyan);
}

.page-products .px-hero__rail li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-paper);
}

.page-products .px-hero__rail .mono {
  color: var(--cyan);
  font-size: clamp(19px, 2.6vw, 26px);
  letter-spacing: 0.01em;
}

.page-products .px-rail__key {
  color: var(--mist);
  font-size: 12.5px;
  text-align: right;
}

/* ---------- matrix ---------- */
.page-products .px-matrix__head {
  max-width: 46rem;
}

.page-products .px-matrix__head h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin-top: 12px;
}

.page-products .px-matrix__head .note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.page-products .px-matrix__wrap {
  margin-top: clamp(20px, 3.4vw, 34px);
}

.page-products .px-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-bottom: 6px;
}

.page-products .px-filter .filter-btn {
  border: 1px solid var(--line-paper);
  background: transparent;
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: 9px 17px;
  font-size: 13.5px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.page-products .px-filter .filter-btn:hover,
.page-products .px-filter .filter-btn:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan-soft);
  outline: none;
}

.page-products .px-filter .filter-btn[data-active],
.page-products .px-filter .filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04141d;
  font-weight: 600;
}

.page-products .px-filter .filter-status {
  margin-left: auto;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-products .px-matrix__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--px-gap);
  margin-top: clamp(18px, 3vw, 30px);
}

.page-products [data-filtered-out] {
  display: none !important;
}

.page-products .px-mod {
  position: relative;
  background: var(--ink-3);
  border: 1px solid rgba(246, 241, 232, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}

.page-products .px-mod:hover {
  border-color: rgba(45, 226, 230, 0.3);
}

.page-products .px-mod::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: linear-gradient(228deg, rgba(45, 226, 230, 0.2), rgba(45, 226, 230, 0) 62%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
}

.page-products .px-mod__bar {
  display: block;
  height: 6px;
  background: var(--cyan);
}

.page-products .px-mod--schedule .px-mod__bar {
  background: var(--orange);
}

.page-products .px-mod--login .px-mod__bar {
  background: var(--green);
}

.page-products .px-mod__body {
  padding: clamp(20px, 3vw, 32px);
}

.page-products .px-mod__index {
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-products .px-mod h3 {
  font-size: clamp(22px, 3vw, 31px);
  margin-top: 12px;
}

.page-products .px-mod__desc {
  margin-top: 14px;
  color: var(--px-soft);
  font-size: 15px;
  line-height: 1.78;
  max-width: 40em;
}

.page-products .px-mod__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-paper);
}

.page-products .px-mod__facts .mono {
  display: block;
  color: var(--cyan-soft);
  font-size: 17px;
}

.page-products .px-mod--schedule .px-mod__facts .mono {
  color: var(--orange-soft);
}

.page-products .px-mod--login .px-mod__facts .mono {
  color: var(--green);
}

.page-products .px-mod__factkey {
  display: block;
  margin-top: 6px;
  color: var(--mist);
  font-size: 12px;
}

.page-products .px-mod__media {
  margin: 22px 0 0;
}

.page-products .px-mod__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--ink-2);
}

.page-products .px-mod__media .media__caption {
  margin-top: 10px;
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.65;
}

.page-products .px-states {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

.page-products .px-chapters {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

.page-products .px-chapters li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--paper);
}

.page-products .px-chapters .mono {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.page-products .px-monitor {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.page-products .px-monitor li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--px-soft);
}

.page-products .px-det {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-mist);
}

.page-products .px-det > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: var(--cyan);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.page-products .px-det > summary::-webkit-details-marker {
  display: none;
}

.page-products .px-det > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
}

.page-products .px-det[open] > summary::after {
  content: "–";
}

.page-products .px-det__body {
  padding-top: 12px;
}

.page-products .px-det__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .px-det__body li {
  position: relative;
  padding-left: 18px;
  color: var(--px-soft);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .px-det__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  background: var(--cyan);
}

.page-products .px-det__body .note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- flow ---------- */
.page-products .px-flow {
  position: relative;
}

.page-products .px-flow::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 106, 42, 0));
  pointer-events: none;
}

.page-products .px-flow__head {
  max-width: 44rem;
}

.page-products .px-flow__head h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-top: 12px;
}

.page-products .px-flow__head .lede {
  margin-top: 16px;
  color: var(--px-soft);
  font-size: 15.5px;
  line-height: 1.78;
}

.page-products .px-flow__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-products .px-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .px-step {
  position: relative;
  padding: 18px 0 18px 58px;
  border-top: 1px solid var(--line-paper);
}

.page-products .px-step:last-child {
  border-bottom: 1px solid var(--line-paper);
}

.page-products .px-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 46px;
  bottom: -4px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-cyan), rgba(45, 226, 230, 0));
}

.page-products .px-step:last-child::before {
  display: none;
}

.page-products .px-step__num {
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.page-products .px-step h3 {
  font-size: clamp(17px, 2.4vw, 21px);
  margin-bottom: 8px;
}

.page-products .px-step p {
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.72;
  max-width: 38ch;
}

.page-products .px-flow__aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-products .px-flow__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--ink);
}

.page-products .px-coverage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.page-products .px-coverage li {
  background: var(--ink-3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.page-products .px-coverage .mono {
  display: block;
  color: var(--cyan);
  font-size: 16px;
}

.page-products .px-coverage span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- close ---------- */
.page-products .px-close__inner {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.page-products .px-close__main h2 {
  font-size: clamp(25px, 3.8vw, 38px);
  margin-top: 12px;
}

.page-products .px-close__text {
  margin-top: 16px;
  color: var(--px-soft);
  font-size: 15px;
  line-height: 1.8;
  max-width: 36em;
}

.page-products .px-close__links {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-products .px-close__links .note {
  font-size: 13.5px;
  line-height: 1.75;
}

.page-products .px-close__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-cyan);
  color: var(--cyan-soft);
  font-size: 14px;
  text-decoration: none;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.page-products .px-close__link:hover,
.page-products .px-close__link:focus-visible {
  background: rgba(45, 226, 230, 0.12);
  color: var(--paper);
  outline: none;
}

/* ---------- responsive ---------- */
@media (min-width: 760px) {
  .page-products .px-flow__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .page-products .px-close__inner {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

@media (min-width: 900px) {
  .page-products .px-hero__inner {
    grid-template-columns: 7fr 5fr;
    gap: clamp(30px, 5vw, 64px);
  }

  .page-products .px-hero__rail {
    align-self: end;
  }

  .page-products .px-matrix__grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }

  .page-products .px-mod--entry {
    grid-column: 1 / 8;
  }

  .page-products .px-mod--schedule {
    grid-column: 7 / 13;
    margin-top: 62px;
  }

  .page-products .px-mod--rules {
    grid-column: 1 / 7;
  }

  .page-products .px-mod--login {
    grid-column: 6 / 13;
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .px-mod,
  .page-products .px-filter .filter-btn,
  .page-products .px-close__link {
    transition: none;
  }
}
