.page-products {
  --metal: #182125;
  --metal-shade: #10181B;
  --block-radius: 24px;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
}

.page-products .crumb {
  padding-top: 28px;
}

.page-products .section {
  position: relative;
  padding: 56px 0 72px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.page-products .section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 112px;
  height: 2px;
  background: var(--green);
  opacity: 0.65;
}

.page-products .section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 36px;
  align-items: start;
}

.page-products .section__index {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

.page-products .section__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.02em;
}

.page-products .section__subtitle {
  margin: 10px 0 0;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 640px;
}

.product-hero {
  padding: 72px 0 48px;
}

.product-hero .site-title {
  margin: 18px 0 0;
  max-width: 1000px;
}

.product-hero .hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--text-gray);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.product-hero .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.media-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
}

.filter-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  background: var(--capsule);
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.filter-chip:hover {
  color: var(--green);
  border-color: rgba(0, 255, 136, 0.4);
}

.filter-input:checked + .filter-chip {
  background: var(--green);
  color: #0A0E10;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

.filter-input:focus-visible + .filter-chip {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.app-visual {
  margin: 0 0 64px;
}

.feature-row {
  padding: 0 0 56px;
  scroll-margin-top: 32px;
}

.feature-row__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 26px;
}

.feature-row__num {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.feature-row__head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.feature-row__head p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-row__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.feature-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--block-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.feature-block:hover {
  border-color: rgba(0, 255, 136, 0.35);
  transform: translateY(-2px);
  background: var(--capsule);
}

.feature-block h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.feature-block p {
  flex: 1;
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.feature-block__scene {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.6;
}

#ff-matchday:checked ~ #group-check,
#ff-matchday:checked ~ #group-archive,
#ff-check:checked ~ #group-matchday,
#ff-check:checked ~ #group-archive,
#ff-archive:checked ~ #group-matchday,
#ff-archive:checked ~ #group-check {
  display: none;
}

.league-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.league-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.league-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.league-table th,
.league-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.league-table thead th {
  font-family: var(--font-data);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: var(--capsule);
}

.league-table tbody tr:last-child td {
  border-bottom: none;
}

.league-table tbody tr {
  transition: background var(--ease);
}

.league-table tbody tr:hover {
  background: var(--capsule);
}

.league-table tbody tr:hover .sync-badge {
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.35);
}

.league-table tbody tr:hover .sync-badge--hot {
  box-shadow: 0 0 14px rgba(255, 69, 0, 0.35);
}

.sync-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-data);
  font-size: 0.75rem;
  line-height: 1.5;
  transition: box-shadow var(--ease);
}

.sync-badge--hot {
  background: var(--orange-soft);
  color: var(--orange);
}

.calendar-side {
  max-width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.calendar-side img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.sync-note {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.sync-note h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--green);
}

.sync-note p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.install-visual {
  margin: 0 0 40px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.install-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-data);
  font-size: 1.25rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.install-steps li p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.install-steps li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}

.verify-panel {
  background: linear-gradient(180deg, var(--metal), var(--metal) 55%, var(--metal-shade));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -18px 36px rgba(0, 0, 0, 0.22);
}

.verify-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.375rem;
  color: var(--text);
}

.verify-panel p {
  margin: 0 0 12px;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.verify-panel p:last-child {
  margin-bottom: 0;
}

.verify-panel__meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
}

.verify-panel__meta span {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.copyable {
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}

.version-visual {
  margin-bottom: 48px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.version-list {
  position: relative;
  display: grid;
  gap: 18px;
}

.version-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--line);
}

.version-item {
  position: relative;
  padding-left: 42px;
  scroll-margin-top: 32px;
}

.version-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.12);
}

.version-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--ease), background var(--ease);
}

.version-item summary::-webkit-details-marker {
  display: none;
}

.version-item summary:hover {
  border-color: rgba(0, 255, 136, 0.35);
  background: var(--capsule);
}

.version-item[open] summary {
  border-color: rgba(0, 255, 136, 0.4);
  background: var(--capsule);
}

.version-item__ver {
  font-family: var(--font-data);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.version-item__name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.4;
}

.version-item__body {
  position: relative;
  margin: 6px 0 0 10px;
  padding: 18px 20px;
  border-left: 2px solid var(--green);
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.06), transparent 85%);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.version-item__body p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.archive-content {
  display: grid;
  gap: 28px;
}

.archive-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.archive-steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  color: var(--text-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.archive-steps li strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 14px;
  text-align: center;
  display: grid;
  gap: 8px;
  transition: border-color var(--ease);
}

.stat-card:hover {
  border-color: rgba(0, 255, 136, 0.35);
}

.stat-card__num {
  font-family: var(--font-data);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.archive-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 100%;
}

.archive-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top center;
}

.support-hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.support-hint a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.support-hint a:hover {
  border-bottom-color: var(--green);
}

.related-links {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: rgba(19, 26, 30, 0.4);
}

.related-links .btn {
  text-decoration: none;
}

@media (min-width: 700px) {
  .page-products .section__head {
    grid-template-columns: auto 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }

  .page-products .section__index {
    padding-top: 8px;
  }

  .product-hero {
    padding: 96px 0 64px;
  }

  .feature-row__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .feature-row {
    padding-bottom: 72px;
  }

  .feature-row--right .feature-row__grid {
    margin-left: 12%;
  }

  .feature-row--left .feature-row__grid {
    margin-right: 12%;
  }

  .feature-row--center .feature-row__grid {
    margin-left: 6%;
    margin-right: 6%;
  }

  .install-steps {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .archive-steps {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
  }

  .archive-steps li {
    display: flex;
    flex-direction: column;
  }

  .archive-stats {
    grid-template-columns: repeat(6, 1fr);
  }

  .stat-card {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .page-products .section {
    padding: 80px 0 104px;
  }

  .product-hero {
    padding: 112px 0 72px;
  }

  .filter-bar {
    margin-bottom: 44px;
  }

  .league-layout {
    grid-template-columns: 1fr 340px;
    gap: 32px;
  }

  .calendar-side img {
    height: 620px;
  }

  .sync-note {
    margin-top: 32px;
    padding: 28px 32px;
  }

  .install-grid {
    grid-template-columns: 1fr 400px;
    gap: 32px;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .verify-panel {
    padding: 34px;
  }

  .version-list {
    gap: 22px;
  }

  .version-item summary {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }

  .version-item__name {
    font-size: 1.25rem;
  }

  .archive-layout {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }

  .archive-visual img {
    height: 720px;
  }

  .related-links {
    margin-top: 56px;
    padding: 32px;
  }
}

@media (max-width: 699px) {
  .page-products .crumb {
    padding-top: 20px;
  }

  .product-hero .site-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .filter-chip {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  .feature-row__head h3 {
    font-size: 1.5rem;
  }

  .feature-block {
    padding: 24px 20px;
  }

  .version-item {
    padding-left: 36px;
  }

  .version-item__body {
    margin-left: 6px;
    padding: 16px 16px;
  }

  .archive-steps {
    grid-template-columns: 1fr;
  }

  .stat-card__num {
    font-size: 1.375rem;
  }
}
