.page-products {
  --pl-range-grad: linear-gradient(135deg, var(--c-nebula) 0%, var(--c-space) 60%);
  --pl-accent-glow: 0 0 32px rgba(0, 255, 136, 0.08);
  background: var(--c-space);
  color: var(--c-white);
  overflow-x: hidden;
}

.pg-hero {
  position: relative;
  padding: 132px 24px 40px;
  background:
    linear-gradient(135deg, rgba(16, 30, 58, 0.75) 0%, rgba(10, 17, 40, 0.2) 55%, rgba(30, 58, 95, 0.15) 100%),
    var(--c-space);
  border-bottom: 2px solid var(--c-border);
}

.pg-hero__frame {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--c-border);
  background: rgba(16, 30, 58, 0.35);
  padding: 22px;
}

.pg-hero__frame::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 64px;
  border-top: 3px solid var(--c-green);
  border-left: 3px solid var(--c-green);
  pointer-events: none;
}

.pg-hero__frame::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -2px;
  width: 44px;
  height: 2px;
  background: var(--c-purple);
  opacity: 0.7;
}

.pg-hero__grid {
  display: grid;
  gap: 30px;
}

.pg-hero__main h1 {
  font-family: var(--f-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 16px;
  letter-spacing: -0.01em;
}

.pg-hero__lead {
  color: var(--c-mist);
  font-size: 15px;
  line-height: 1.75;
  max-width: 46em;
  margin: 0;
}

.pg-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pg-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-purple-soft);
  margin: 0 0 10px;
}

.pg-kicker__bar {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--c-green);
  flex-shrink: 0;
}

.tag--ghost {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-mist);
}

.pg-version {
  position: relative;
  background: var(--c-nebula);
  border: 2px solid var(--c-border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 340px;
}

.pg-version::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-right: 3px solid var(--c-purple);
  border-bottom: 3px solid var(--c-purple);
}

.pg-version__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-mist);
}

.pg-version__code {
  font-family: var(--f-heading);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--c-green);
  text-shadow: var(--pl-accent-glow);
}

.pg-version__meta {
  font-size: 13px;
  color: var(--c-mist);
}

.pg-version__divider {
  height: 1px;
  background: var(--c-border);
  margin: 8px 0 2px;
}

.pg-version__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-purple-soft);
}

.pg-hero__frame .breadcrumb {
  margin-bottom: 18px;
}

.pg-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 24px 64px;
}

.pg-toc {
  background: transparent;
  border: none;
  padding: 0;
}

.pg-toc__label {
  font-family: var(--f-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-purple);
  margin: 0 0 10px;
  white-space: nowrap;
}

.pg-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}

.pg-toc__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--c-mist);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.pg-toc__list a:hover,
.pg-toc__list a:focus-visible {
  color: var(--c-white);
  border-color: var(--c-purple);
  background: rgba(139, 92, 246, 0.08);
}

.pg-toc__list a:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
}

.pg-toc__list span {
  font-family: var(--f-heading);
  font-size: 12px;
  color: var(--c-border);
}

.pg-toc__note {
  display: none;
}

.pg-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}

.pg-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pg-section__label {
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 4px 8px;
  white-space: nowrap;
}

.pg-section h2 {
  font-family: var(--f-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.pg-section__lead {
  color: var(--c-mist);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 10px;
  max-width: 60em;
}

.pg-section__copy {
  color: var(--c-mist);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 20px;
  max-width: 60em;
}

.pg-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 22px 0 10px;
}

.pg-feature-card {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.pg-feature-card__num {
  font-family: var(--f-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-purple);
  display: block;
  margin-bottom: 8px;
}

.pg-feature-card h3 {
  font-family: var(--f-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-white);
}

.pg-feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-mist);
  margin: 0;
}

.pg-feature-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent var(--c-border) transparent transparent;
  transition: border-color var(--ease);
}

.pg-feature-card:hover {
  border-color: var(--c-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pg-feature-card:hover::before {
  border-color: transparent var(--c-purple) transparent transparent;
}

.pg-media {
  margin: 24px 0;
}

.pg-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--c-border);
  background: var(--c-nebula);
}

.pg-media--wide img {
  max-height: 520px;
  object-fit: cover;
}

.pg-media--narrow img {
  max-height: 340px;
  object-fit: cover;
}

.pg-media figcaption {
  font-size: 12px;
  color: var(--c-mist);
  padding: 8px 2px 12px;
  border-bottom: 1px solid var(--c-border);
  margin-top: 8px;
}

.pg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 10px;
}

.pg-stats__item {
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  padding: 18px 10px 16px;
  text-align: center;
  position: relative;
}

.pg-stats__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-purple);
  opacity: 0.65;
}

.pg-stats__num {
  font-family: var(--f-heading);
  font-size: 30px;
  font-weight: 900;
  color: var(--c-green);
  display: block;
  line-height: 1.25;
}

.pg-stats__label {
  font-size: 12px;
  color: var(--c-mist);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pg-adapt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
}

.pg-adapt-card {
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  transition: border-color var(--ease), background var(--ease);
}

.pg-adapt-card[open] {
  border-color: var(--c-purple);
  background: rgba(139, 92, 246, 0.04);
}

.pg-adapt-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
  transition: background var(--ease);
}

.pg-adapt-card summary::-webkit-details-marker {
  display: none;
}

.pg-adapt-card summary:hover {
  background: rgba(139, 92, 246, 0.08);
}

.pg-adapt-card summary:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: -2px;
}

.pg-adapt-card__icon {
  color: var(--c-purple-soft);
  display: inline-flex;
  flex-shrink: 0;
}

.pg-adapt-card__name {
  font-family: var(--f-heading);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  color: var(--c-white);
}

.pg-adapt-card__count {
  font-size: 13px;
  color: var(--c-mist);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  padding: 2px 8px;
  white-space: nowrap;
}

.pg-adapt-card__toggle {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.pg-adapt-card__toggle::before,
.pg-adapt-card__toggle::after {
  content: "";
  position: absolute;
  background: var(--c-purple-soft);
  transition: transform 200ms ease;
}

.pg-adapt-card__toggle::before {
  top: 7px;
  left: 2px;
  width: 12px;
  height: 2px;
}

.pg-adapt-card__toggle::after {
  top: 3px;
  left: 7px;
  width: 2px;
  height: 12px;
}

.pg-adapt-card[open] .pg-adapt-card__toggle::before {
  transform: rotate(180deg);
}

.pg-adapt-card[open] .pg-adapt-card__toggle::after {
  transform: scaleY(0);
}

.pg-adapt-card__body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(30, 58, 95, 0.6);
  margin: 0 14px 0 48px;
}

.pg-adapt-card__body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-mist);
  margin: 12px 0 0;
}

.pg-adapt-card__body p:last-child {
  margin-bottom: 0;
}

.pg-vendor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.pg-vendor-card {
  display: flex;
  flex-direction: column;
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  padding: 20px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.pg-vendor-card h3 {
  font-family: var(--f-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-white);
}

.pg-vendor-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-mist);
  margin: 0 0 12px;
  flex: 1;
}

.pg-vendor-card__meta {
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-green);
  border-top: 1px solid var(--c-border);
  padding-top: 10px;
}

.pg-vendor-card:hover {
  border-color: var(--c-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pg-version-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 18px 0 0;
}

.pg-version-block__main {
  background: var(--c-nebula);
  border: 2px solid var(--c-border);
  padding: 24px 20px;
  position: relative;
}

.pg-version-block__main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green), transparent);
}

.pg-version-block__kicker {
  font-size: 13px;
  color: var(--c-mist);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pg-version-block__code {
  display: block;
  font-family: var(--f-heading);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-green);
  margin: 8px 0 14px;
  text-shadow: var(--pl-accent-glow);
}

.pg-version-block__main p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-mist);
  margin: 0 0 8px;
}

.pg-version-block__main .btn {
  margin-top: 14px;
}

.pg-version-block__highlight {
  color: var(--c-white);
  font-weight: 600;
}

.pg-requirement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.pg-req-card {
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  padding: 18px 20px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.pg-req-card h3 {
  font-family: var(--f-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--c-white);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.pg-req-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pg-req-card li {
  font-size: 14px;
  color: var(--c-mist);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.pg-req-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--c-purple);
}

.pg-req-card:hover {
  border-color: var(--c-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pg-access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.pg-access-step {
  background: var(--c-nebula);
  border: 1px solid var(--c-border);
  padding: 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), transform var(--ease);
}

.pg-access-step__num {
  font-family: var(--f-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: 10px;
  transition: color var(--ease);
}

.pg-access-step h3 {
  font-family: var(--f-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-white);
}

.pg-access-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-mist);
  margin: 0;
}

.pg-access-step:hover {
  border-color: var(--c-purple);
  transform: translateY(-2px);
}

.pg-access-step:hover .pg-access-step__num {
  color: var(--c-green);
}

.pg-contact-strip {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(16, 30, 58, 0.4));
  border: 1px solid var(--c-purple);
  padding: 22px;
  margin-top: 26px;
}

.pg-contact-strip p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-white);
  margin: 0 0 10px;
}

.pg-contact-strip p:last-of-type {
  color: var(--c-mist);
  font-size: 14px;
  margin-bottom: 0;
}

.pg-contact-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .pg-hero__frame {
    padding: 28px;
  }

  .pg-hero__main h1 {
    font-size: 40px;
  }

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

  .pg-vendor-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pg-requirement-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .pg-adapt-card__body {
    padding: 0 16px 16px 56px;
    margin: 0;
  }

  .pg-adapt-card__body p {
    margin-top: 14px;
  }

  .pg-version-block__main {
    padding: 28px 24px;
  }
}

@media (min-width: 1024px) {
  .pg-layout {
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding-top: 48px;
  }

  .pg-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    background: var(--c-nebula);
    border: 1px solid var(--c-border);
    padding: 20px;
  }

  .pg-toc__list {
    flex-direction: column;
    gap: 4px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .pg-toc__list a {
    border-bottom: none;
    border-left: 2px solid transparent;
    padding: 8px 10px;
    white-space: normal;
  }

  .pg-toc__note {
    display: block;
    font-size: 12px;
    color: var(--c-mist);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
  }

  .pg-hero__grid {
    grid-template-columns: 1fr 320px;
    align-items: center;
  }

  .pg-hero {
    padding-top: 156px;
    padding-bottom: 56px;
  }

  .pg-hero__main h1 {
    font-size: 50px;
  }

  .pg-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pg-version-block {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .pg-version-block__code {
    font-size: 56px;
  }

  .pg-media--narrow {
    max-width: 520px;
  }

  .pg-section h2 {
    font-size: 32px;
  }
}

@media (max-width: 420px) {
  .pg-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pg-stats__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .pg-stats__item::after {
    width: 3px;
    height: 100%;
  }

  .pg-stats__num {
    font-size: 26px;
  }

  .pg-hero__frame {
    padding: 16px;
  }

  .pg-version-block__code {
    font-size: 38px;
  }
}
