.page-products {
  position: relative;
  overflow-x: hidden;
  background: var(--color-bg);
}

.page-products .breadcrumbs {
  padding-top: calc(var(--header-height) - 0.5rem);
}

.page-products .page-header {
  padding: 1rem 0 3rem;
}

.page-products .page-header__index {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.page-products .page-header__spade {
  color: var(--color-primary);
  flex-shrink: 0;
}

.page-products .page-header__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 6rem);
  letter-spacing: 0.05em;
  line-height: 1.08;
  background: linear-gradient(135deg, var(--color-text) 20%, var(--color-primary) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-products .page-header__description {
  max-width: 46rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.page-products .section {
  margin-bottom: 5rem;
}

.page-products .section__heading {
  margin-bottom: 2.5rem;
}

.page-products .section-index {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--color-primary);
}

.page-products .section-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.page-products .overview-layout {
  display: grid;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.page-products .overview-copy p {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--color-muted);
}

.page-products .overview-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.page-products .overview-media__img,
.page-products .timeline-visual img,
.page-products .matrix-aside img,
.page-products .download-panel__qr img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .devices-row {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.page-products .device-card {
  position: relative;
  padding: 1.75rem 1rem;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-products .device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255, 46, 108, 0.35), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.page-products .device-card__visual {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.page-products .device-card__visual--tv {
  flex-direction: column;
  align-items: center;
}

.page-products .device-card__frame {
  position: relative;
  padding: 0.5rem;
  border-radius: 28px;
  border: 2px solid #333;
  background: #121212;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.page-products .device-card--phone .device-card__frame {
  width: 170px;
  border-radius: 30px;
}

.page-products .device-card--phone .device-card__screen {
  aspect-ratio: 9 / 19;
}

.page-products .device-card--tablet .device-card__frame {
  width: 320px;
  border-radius: 20px;
}

.page-products .device-card--tablet .device-card__screen {
  aspect-ratio: 4 / 3;
}

.page-products .device-card--tv .device-card__frame {
  width: 360px;
  max-width: 100%;
  border-radius: 14px;
  border-width: 3px;
}

.page-products .device-card--tv .device-card__screen {
  aspect-ratio: 16 / 9;
}

.page-products .device-card__screen {
  overflow: hidden;
  border-radius: inherit;
  background: var(--color-panel);
}

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

.page-products .device-card__notch {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 46px;
  height: 6px;
  border-radius: 8px;
  background: #0a0a0a;
}

.page-products .device-card__stand {
  width: 140px;
  height: 16px;
  margin-top: -3px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #3a3a3a, #222);
}

.page-products .device-card__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.page-products .device-card__desc {
  max-width: 24rem;
  margin: 0 auto 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.page-products .device-card .btn {
  min-width: 10.5rem;
}

.page-products .download-panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 46, 108, 0.1), rgba(155, 77, 202, 0.08)), var(--glass-bg);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-products .download-panel__qr {
  justify-self: center;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-products .download-panel__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .download-panel__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
}

.page-products .download-panel__text p {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--color-muted);
}

.page-products .download-panel__list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text);
}

.page-products .download-panel__contact {
  font-size: 0.875rem;
}

.page-products .download-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-products .section--matrix {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.7), rgba(10, 10, 10, 0.3));
}

.page-products .section--matrix::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
}

.page-products .section--matrix .section__heading {
  margin-bottom: 1.5rem;
}

.page-products .matrix-wrap {
  display: grid;
  gap: 2rem;
}

.page-products .matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
}

.page-products .matrix {
  min-width: 560px;
}

.page-products .matrix__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-products .matrix__row:last-child {
  border-bottom: none;
}

.page-products .matrix__row--header {
  background: rgba(255, 255, 255, 0.04);
}

.page-products .matrix__row--header .matrix__feature {
  color: var(--color-muted);
}

.page-products .matrix__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

.page-products .matrix__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.page-products .matrix__device {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.page-products .matrix__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.page-products .matrix__cell::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.page-products .matrix__cell.is-on {
  color: var(--color-accent);
}

.page-products .matrix__cell.is-dim {
  color: var(--color-muted);
}

.page-products .matrix-aside {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.page-products .matrix-aside img {
  width: 100%;
  height: auto;
  display: block;
}

.page-products .matrix-aside p {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.page-products .timeline-visual {
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.page-products .timeline-visual img {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-products .version-item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 2.75rem;
}

.page-products .version-item:last-child {
  padding-bottom: 1rem;
}

.page-products .version-item::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 18px rgba(255, 46, 108, 0.8);
}

.page-products .version-item::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 0.5rem;
  left: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), rgba(155, 77, 202, 0.4), transparent);
}

.page-products .version-item:last-child::after {
  display: none;
}

.page-products .version-item__marker {
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-products .version-item__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
}

.page-products .version-item__body p {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--color-muted);
}

.page-products .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-products .cta-row__label {
  margin-right: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
}

.page-products a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .page-products .download-panel {
    grid-template-columns: 160px 1fr;
    align-items: center;
  }

  .page-products .download-panel__qr {
    justify-self: start;
  }

  .page-products .devices-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .page-products .device-card--tv {
    grid-column: 1 / -1;
  }

  .page-products .matrix-wrap {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .page-products .section {
    margin-bottom: 7rem;
  }

  .page-products .overview-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
  }

  .page-products .devices-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .page-products .device-card--tv {
    grid-column: auto;
  }

  .page-products .device-card--tablet .device-card__frame {
    width: 340px;
  }

  .page-products .device-card--tv .device-card__frame {
    width: 380px;
  }

  .page-products .matrix-wrap {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }

  .page-products .matrix-aside {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }

  .page-products .version-list {
    max-width: 48rem;
  }
}
