.page-products {
  --p-red: rgba(122, 21, 24, 0.72);
  --p-red-solid: #7a1518;
  --p-gold-line: rgba(217, 195, 122, 0.26);
  --p-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-x: hidden;
}

.page-products .p-hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 56px;
  background: linear-gradient(120deg, rgba(59, 45, 18, 0.6) 0%, transparent 46%), var(--c-ink);
  color: var(--c-ivory);
  overflow: hidden;
}

.page-products .p-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -14%;
  width: 62%;
  height: 100%;
  background: linear-gradient(to top left, var(--p-red) 0%, transparent 58%);
  clip-path: polygon(100% 0, 100% 100%, 28% 100%);
  z-index: 0;
}

.page-products .p-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .p-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}

.page-products .p-hero__intro {
  padding-left: 18px;
  border-left: 3px solid var(--c-gold);
}

.page-products .p-hero__intro .overline {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--c-gold-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.page-products .p-hero__intro h1 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--c-ivory);
}

.page-products .p-hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.82);
  max-width: 560px;
  margin: 0 0 28px;
}

.page-products .p-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-products .p-hero__stat {
  padding: 10px 6px 10px 0;
  border-top: 1px solid var(--p-gold-line);
}

.page-products .p-hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--c-gold-bright);
  font-weight: 700;
}

.page-products .p-hero__stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(245, 240, 230, 0.6);
}

.page-products .p-hero__panel {
  background: rgba(26, 26, 26, 0.58);
  border: 1px solid rgba(217, 195, 122, 0.18);
  border-radius: var(--radius);
  padding: 22px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.page-products .p-hero__panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.page-products .p-hero__panel-head .chapter__number {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--c-gold);
  font-weight: 700;
}

.page-products .p-hero__panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ivory);
}

.page-products .p-hero__panel-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.58);
}

.page-products .p-hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.page-products .p-version-nav__list li {
  flex: 1 1 calc(50% - 8px);
  min-width: 120px;
}

.page-products .p-version-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--p-gold-line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--c-ivory);
  font-family: var(--p-mono);
  font-size: 13px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.page-products .p-version-nav__list a:hover,
.page-products .p-version-nav__list a:focus {
  border-color: var(--c-gold);
  background: rgba(217, 195, 122, 0.12);
  transform: translateY(-2px);
}

.page-products .p-version-nav__list .is-current a {
  border-color: var(--c-gold);
  background: rgba(217, 195, 122, 0.14);
}

.page-products .p-version-nav__tag {
  font-family: var(--font-body);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(245, 240, 230, 0.08);
  color: rgba(245, 240, 230, 0.62);
  white-space: nowrap;
}

.page-products .p-version-nav__list .is-current .p-version-nav__tag {
  background: var(--p-red-solid);
  color: #f5f0e6;
}

.page-products .p-detail {
  position: relative;
  border-top: 3px solid var(--c-gold);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.page-products .p-detail__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--p-gold-line);
  background: var(--c-charcoal);
}

.page-products .p-detail__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .p-detail__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--p-red-solid);
  color: #f5f0e6;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.page-products .p-detail__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--c-ivory);
  font-weight: 700;
}

.page-products .p-detail__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 240, 230, 0.74);
  margin: 0 0 16px;
  max-width: 48ch;
}

.page-products .p-detail__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .p-detail__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 240, 230, 0.86);
}

.page-products .p-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--c-gold-bright);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-products .p-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  font-family: var(--p-mono);
  font-size: 12px;
  color: rgba(245, 240, 230, 0.56);
}

.page-products .p-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.page-products .p-history {
  background: var(--c-charcoal);
}

.page-products .p-history .chapter {
  margin-bottom: 32px;
}

.page-products .p-history__cards {
  display: grid;
  gap: 14px;
}

.page-products .p-history__card {
  background: rgba(10, 10, 10, 0.35);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-products .p-history__card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.3s ease;
}

.page-products .p-history__card summary::-webkit-details-marker {
  display: none;
}

.page-products .p-history__card summary:hover,
.page-products .p-history__card[open] summary {
  background: rgba(217, 195, 122, 0.09);
}

.page-products .p-history__ver {
  font-family: var(--p-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-gold-bright);
  min-width: 74px;
}

.page-products .p-history__meta {
  flex: 1;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.6);
}

.page-products .p-history__arrow {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-products .p-history__card[open] .p-history__arrow {
  transform: rotate(45deg);
}

.page-products .p-history__body {
  padding: 0 20px 20px 106px;
  border-top: 1px solid rgba(217, 195, 122, 0.12);
}

@media (max-width: 600px) {
  .page-products .p-history__body {
    padding-left: 20px;
  }
}

.page-products .p-history__body p {
  margin: 14px 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.76);
}

.page-products .p-history__body ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.page-products .p-history__body li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.84);
}

.page-products .p-history__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}

.page-products .p-history__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-products .p-history__links a {
  color: var(--c-gold-bright);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: rgba(217, 195, 122, 0.45);
}

.page-products .p-history__links a:hover,
.page-products .p-history__links a:focus {
  color: var(--c-gold);
}

.page-products .p-guide .chapter {
  margin-bottom: 32px;
}

.page-products .p-guide__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-products .p-guide__steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-products .p-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .p-guide__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.page-products .p-guide__step-num {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold-deep);
  background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold));
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(217, 195, 122, 0.28);
}

.page-products .p-guide__step-copy h3 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}

.page-products .p-guide__step-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.72);
}

.page-products .p-guide__notes {
  padding: 20px;
  background: rgba(217, 195, 122, 0.14);
}

.page-products .p-guide__notes h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
}

.page-products .p-guide__notes ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-products .p-guide__notes li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.7);
}

.page-products .p-guide__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--c-gold-mid);
  transform: rotate(45deg);
}

.page-products .p-guide__legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--p-red-solid);
  font-weight: 600;
}

.page-products .p-guide__figure,
.page-products .p-log__figure,
.page-products .p-compat__figure,
.page-products .p-security__figure {
  margin: 0;
}

.page-products .p-guide__figure img,
.page-products .p-log__figure img,
.page-products .p-compat__figure img,
.page-products .p-security__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-products .p-log .chapter {
  margin-bottom: 32px;
}

.page-products .p-log__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  margin-bottom: 28px;
}

.page-products .p-log__item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(217, 195, 122, 0.24);
}

.page-products .p-log__item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--c-gold);
  border-radius: 50%;
}

.page-products .p-log__quarter {
  font-family: var(--p-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-gold-bright);
  margin-bottom: 8px;
}

.page-products .p-log__card {
  padding: 18px;
  background: rgba(10, 10, 10, 0.4);
}

.page-products .p-log__card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-ivory);
  font-weight: 700;
}

.page-products .p-log__card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.72);
}

.page-products .p-log__link {
  display: inline-block;
  color: var(--c-gold-bright);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: rgba(217, 195, 122, 0.45);
}

.page-products .p-log__link:hover,
.page-products .p-log__link:focus {
  color: var(--c-gold);
}

.page-products .p-log__figure {
  margin-top: 12px;
}

.page-products .p-compat {
  background: linear-gradient(180deg, var(--c-ivory) 0%, #efe9dc 100%);
  color: var(--c-ink);
}

.page-products .p-compat .chapter {
  margin-bottom: 32px;
}

.page-products .p-compat__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-products .p-compat__table-wrap {
  padding: 8px 8px 16px;
  background: rgba(245, 240, 230, 0.88);
  border: 1px solid rgba(59, 45, 18, 0.14);
  overflow-x: auto;
}

.page-products .p-compat__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 540px;
}

.page-products .p-compat__table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--c-gold-deep);
  border-bottom: 2px solid var(--c-gold-mid);
  font-family: var(--font-display);
  font-size: 14px;
}

.page-products .p-compat__table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(59, 45, 18, 0.1);
  color: rgba(10, 10, 10, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.page-products .p-compat__table tbody tr:hover td {
  background: rgba(217, 195, 122, 0.12);
}

.page-products .p-compat__note {
  margin: 14px 10px 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.62);
  border-left: 3px solid var(--p-red-solid);
  padding-left: 12px;
}

.page-products .p-security {
  background: var(--c-ink);
}

.page-products .p-security .chapter {
  margin-bottom: 32px;
}

.page-products .p-security__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-products .p-security__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}

.page-products .p-security__badge {
  padding: 18px;
  background: rgba(26, 26, 26, 0.62);
}

.page-products .p-security__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold-bright);
  margin-bottom: 6px;
}

.page-products .p-security__badge span {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.66);
}

.page-products .p-security__statement {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding: 16px;
  border: 1px solid var(--p-gold-line);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 10, 0.7);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.8);
}

@media (min-width: 768px) {
  .page-products .p-hero__grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 32px;
    align-items: start;
  }

  .page-products .p-hero__intro {
    padding-top: 20px;
  }

  .page-products .p-hero__intro h1 {
    font-size: 56px;
  }

  .page-products .p-hero__panel {
    padding: 28px;
  }

  .page-products .p-history__cards {
    gap: 16px;
  }

  .page-products .p-guide__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
  }

  .page-products .p-compat__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
  }

  .page-products .p-security__grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-products .p-hero__split {
    grid-template-columns: 280px 1fr;
    gap: 22px;
  }

  .page-products .p-version-nav__list {
    display: grid;
    gap: 8px;
  }

  .page-products .p-version-nav__list li {
    flex: none;
    min-width: 0;
  }

  .page-products .p-version-nav__list a {
    justify-content: space-between;
  }

  .page-products .p-log__timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-left: none;
  }

  .page-products .p-log__item {
    padding-left: 18px;
    border-left: none;
    border-top: 2px solid rgba(217, 195, 122, 0.24);
    padding-top: 20px;
  }

  .page-products .p-log__item::before {
    left: 0;
    top: -6px;
  }
}
