.page-products {
  --ps-angle: 6deg;
  --ps-line: rgba(255, 255, 255, 0.1);
  --ps-grad-card: linear-gradient(145deg, rgba(18, 61, 122, 0.5) 0%, rgba(6, 19, 46, 0.88) 100%);
  background: linear-gradient(180deg, var(--c-night) 0%, var(--c-deep) 20%, var(--c-sea) 48%, var(--c-deep) 82%, var(--c-night) 100%);
  color: var(--c-cloud);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-products .ps-hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(255, 107, 53, 0.16), transparent 65%),
    linear-gradient(120deg, var(--c-night) 0%, var(--c-deep) 60%, var(--c-sea) 130%);
  border-bottom: 1px solid var(--ps-line);
  overflow: hidden;
}

.page-products .ps-hero::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: 44px;
  background: linear-gradient(100deg, var(--c-orange) 0%, transparent 55%);
  transform: skewY(-2deg);
  opacity: 0.35;
  pointer-events: none;
}

.page-products .ps-hero__grid {
  display: grid;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-products .ps-hero__text {
  position: relative;
}

.page-products .ps-hero h1 {
  margin: 14px 0 6px;
  font-family: var(--font-head);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-transform: uppercase;
}

.page-products .ps-hero__lead {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: clamp(18px, 2.6vw, 32px);
  color: var(--c-orange);
  letter-spacing: 0.04em;
}

.page-products .ps-hero__desc {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-cloud);
}

.page-products .ps-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.page-products .ps-stat {
  padding: 22px 18px;
  background: rgba(6, 19, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.page-products .ps-stat__num {
  font-family: var(--font-head);
  font-size: 32px;
  color: var(--c-orange);
  line-height: 1;
}

.page-products .ps-stat__label {
  font-size: 13px;
  color: var(--c-silver);
}

.page-products .ps-modules,
.page-products .ps-apple,
.page-products .ps-versions,
.page-products .ps-coverage,
.page-products .ps-help {
  padding: 68px 0;
}

.page-products .ps-section-head {
  margin-bottom: 32px;
}

.page-products .ps-section-head h2 {
  margin: 8px 0 12px;
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  color: var(--c-white);
  line-height: 1;
}

.page-products .ps-section-head__lead {
  max-width: 760px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-cloud);
}

.page-products .ps-modules__grid {
  display: grid;
  gap: 18px;
}

.page-products .ps-module-card {
  position: relative;
  padding: 22px;
  background: var(--ps-grad-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.page-products .ps-module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 53, 0.55);
}

.page-products .ps-module-card__figure {
  height: 170px;
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-night);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-products .ps-module-card__figure img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.page-products .ps-module-card:hover .ps-module-card__figure img {
  transform: scale(1.04);
}

.page-products .ps-module-card--icon .ps-module-card__figure {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 100%, rgba(255, 107, 53, 0.25), transparent 68%);
}

.page-products .ps-module-card--icon .ps-module-card__figure img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.page-products .ps-module-card--plain::before {
  content: '';
  display: block;
  height: 80px;
  margin-bottom: 18px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.14) 0%, transparent 60%),
    var(--c-night);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-products .ps-module-card__no {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--c-orange);
  letter-spacing: 0.08em;
  z-index: 1;
}

.page-products .ps-module-card h3 {
  margin: 2px 0 12px;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

.page-products .ps-module-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-cloud);
}

.page-products .ps-module-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-orange);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.page-products .ps-module-card__link::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}

.page-products .ps-module-card__link:hover::after {
  transform: translateX(4px);
}

.page-products .ps-apple__panel {
  position: relative;
  padding: 32px 20px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 10% 10%, rgba(255, 107, 53, 0.2), transparent 55%),
    linear-gradient(135deg, var(--c-sea) 0%, var(--c-deep) 60%, var(--c-night) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-products .ps-apple__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-products .ps-apple__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.page-products .ps-apple__screen {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 36px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(6, 19, 46, 0.5);
}

.page-products .ps-apple__screen img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.page-products .ps-apple__content h2 {
  margin: 8px 0 14px;
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 48px);
  color: var(--c-white);
}

.page-products .ps-apple__intro {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-cloud);
}

.page-products .ps-apple__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .ps-apple__list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-cloud);
}

.page-products .ps-apple__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.page-products .ps-versions__layout {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

.page-products .ps-versions__visual {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 107, 53, 0.5);
  box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.1);
}

.page-products .ps-versions__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-products .ps-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.page-products .ps-timeline__item {
  position: relative;
  padding-left: 34px;
}

.page-products .ps-timeline__item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: -36px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-orange), var(--c-sea));
}

.page-products .ps-timeline__item:last-child::before {
  display: none;
}

.page-products .ps-timeline__item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}

.page-products .ps-timeline__version {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.35);
  color: var(--c-orange);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.page-products .ps-timeline__item h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--c-white);
}

.page-products .ps-timeline__item p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-cloud);
}

.page-products .ps-timeline__details {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 107, 53, 0.3);
}

.page-products .ps-timeline__details summary {
  cursor: pointer;
  color: var(--c-orange);
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}

.page-products .ps-timeline__details summary::-webkit-details-marker {
  display: none;
}

.page-products .ps-timeline__details summary::before {
  content: '+';
  margin-right: 6px;
  font-family: var(--font-head);
}

.page-products .ps-timeline__details[open] summary {
  margin-bottom: 8px;
}

.page-products .ps-timeline__details[open] summary::before {
  content: '–';
}

.page-products .ps-timeline__details p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-cloud);
}

.page-products .ps-timeline__item--current {
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.12), transparent 70%);
  padding: 16px 18px 16px 34px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.page-products .ps-timeline__item--current::before {
  bottom: -6px;
}

.page-products .ps-coverage__layout {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}

.page-products .ps-coverage__leagues h3 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--c-white);
}

.page-products .ps-league-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.page-products .ps-league-list li {
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-cloud);
  background: rgba(18, 61, 122, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.page-products .ps-league-list li:hover {
  border-color: rgba(255, 107, 53, 0.5);
  color: var(--c-orange);
  transform: translateY(-3px);
}

.page-products .ps-coverage__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-products .ps-metric {
  padding: 18px;
  background: rgba(6, 19, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .ps-metric__label {
  font-size: 13px;
  color: var(--c-silver);
}

.page-products .ps-metric__value {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--c-orange);
  line-height: 1.1;
}

.page-products .ps-metric__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-cloud);
}

.page-products .ps-badges {
  list-style: none;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.page-products .ps-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--c-cloud);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 999px;
}

.page-products .ps-badges li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}

.page-products .ps-help__inner {
  position: relative;
  padding: 48px 24px;
  text-align: center;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-sea) 0%, var(--c-deep) 60%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-products .ps-help__inner::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.2);
  filter: blur(80px);
  pointer-events: none;
}

.page-products .ps-help h2 {
  margin: 8px 0 12px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--c-white);
  position: relative;
  z-index: 1;
}

.page-products .ps-help p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-cloud);
  position: relative;
  z-index: 1;
}

.page-products .ps-help .ps-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-products .ps-help .kicker {
  position: relative;
  z-index: 1;
}

@media (min-width: 480px) {
  .page-products .ps-league-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .page-products .ps-hero {
    padding: 64px 0 72px;
  }

  .page-products .ps-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .ps-modules,
  .page-products .ps-apple,
  .page-products .ps-versions,
  .page-products .ps-coverage,
  .page-products .ps-help {
    padding: 88px 0;
  }

  .page-products .ps-modules__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .ps-league-list {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-products .ps-metric__value {
    font-size: 32px;
  }

  .page-products .ps-badges {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .page-products .ps-hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
  }

  .page-products .ps-hero h1 {
    font-size: 88px;
  }

  .page-products .ps-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .ps-modules__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .ps-apple__layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: center;
  }

  .page-products .ps-apple__screen {
    margin: 0;
  }

  .page-products .ps-versions__layout {
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
  }

  .page-products .ps-versions__visual {
    margin: 0;
    width: 240px;
    height: 240px;
  }

  .page-products .ps-timeline {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 18px;
  }

  .page-products .ps-timeline__item {
    flex: 0 0 280px;
    padding: 0 24px 0 20px;
    margin-right: 32px;
  }

  .page-products .ps-timeline__item::before {
    left: 8px;
    top: 8px;
    bottom: auto;
    right: -32px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--c-orange), var(--c-sea));
  }

  .page-products .ps-timeline__item--current {
    padding: 16px 24px 16px 20px;
  }

  .page-products .ps-coverage__layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
  }

  .page-products .ps-league-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
