.page-home {
  --home-gutter: clamp(20px, 4vw, 64px);
  --home-cut: 18px;
  --home-radius: 6px;
  overflow: clip;
  background-color: var(--color-deep);
  color: var(--color-white);
  font-family: var(--font-body);
}

.page-home .container {
  width: min(100% - 2 * var(--home-gutter), var(--container-max));
  margin-inline: auto;
}

.page-home .section-label {
  margin-bottom: 14px;
}

.page-home .section-label__index {
  color: var(--color-gold);
  font-family: var(--font-mono);
}

.page-home .section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.page-home .section-subtitle {
  color: var(--color-silver);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

.page-home .section-head {
  margin-bottom: 36px;
}

.page-home .btn--ghost {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.page-home .btn--ghost:hover {
  background: rgba(212, 160, 23, 0.12);
}

.page-home .over-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: auto;
}

.page-home .tag {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.page-home__hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--color-deep) 0%, var(--color-night) 70%, var(--color-deep) 100%);
  overflow: hidden;
}

.page-home__hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: saturate(0.8) contrast(1.05);
}

.page-home__hero-wrap {
  position: relative;
  z-index: 1;
  padding-block: 80px 72px;
}

.page-home__hero-copy {
  max-width: 920px;
  padding: 0 0 24px;
}

.page-home .section-label--hero {
  margin-bottom: 16px;
}

.page-home__hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.page-home__hero-copy h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 9px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold) 55%, var(--color-green) 100%);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.page-home__hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.8;
  color: var(--color-silver);
  max-width: 620px;
  margin: 0 0 32px;
}

.page-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home__hero-edge {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 54%;
  height: 140px;
  background: var(--color-gold);
  z-index: 1;
  transform: skewX(-18deg);
  opacity: 0.88;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  pointer-events: none;
}

.page-home__ticker {
  background: var(--color-night);
  border-block: 1px solid rgba(212, 160, 23, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.page-home__ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--home-gutter);
  border-bottom: 1px solid rgba(176, 184, 200, 0.2);
}

.page-home__ticker-label {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  color: var(--color-gold);
  white-space: nowrap;
  letter-spacing: 0.08em;
}

.page-home__ticker-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-silver);
  white-space: nowrap;
}

.page-home__ticker-viewport {
  overflow: hidden;
}

.page-home__ticker-track {
  display: flex;
  width: max-content;
  animation: pageHomeTicker 36s linear infinite;
}

.page-home__ticker-track:hover {
  animation-play-state: paused;
}

@keyframes pageHomeTicker {
  to {
    transform: translateX(-50%);
  }
}

.page-home__ticker-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.page-home__score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  color: var(--color-white);
  white-space: nowrap;
  border-right: 1px solid rgba(176, 184, 200, 0.12);
}

.page-home__score b {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-silver);
}

.page-home__score i {
  font-style: normal;
  color: var(--color-gold);
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(212, 160, 23, 0.12);
  border-radius: 4px;
}

.page-home__steps {
  padding: 80px 0 60px;
  background:
    linear-gradient(rgba(10, 30, 63, 0.96), rgba(10, 30, 63, 0.96)),
    repeating-linear-gradient(135deg, rgba(212, 160, 23, 0.2) 0 1px, transparent 1px 12px);
  position: relative;
}

.page-home__steps-grid {
  row-gap: 22px;
  column-gap: 22px;
}

.page-home__step {
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-night);
  border-radius: 0 0 0 var(--home-cut);
}

.page-home__step h3 {
  font-family: var(--font-heading);
  font-size: 1.34rem;
  margin: 0;
  color: var(--color-white);
}

.page-home__step p {
  color: var(--color-silver);
  line-height: 1.7;
  font-size: 0.96rem;
  margin: 0;
}

.page-home__steps-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

.page-home__scores {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-deep) 0%, var(--color-night) 100%);
  position: relative;
}

.page-home__scores-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-home__scores-tablewrap {
  overflow-x: auto;
}

.page-home__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.page-home__table th {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-align: left;
  color: var(--color-silver);
  padding: 12px 14px;
  border-bottom: 2px solid var(--color-gold);
  white-space: nowrap;
}

.page-home__table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(176, 184, 200, 0.12);
  font-family: var(--font-mono);
  color: var(--color-white);
  white-space: nowrap;
}

.page-home__table td:first-child {
  font-family: var(--font-heading);
  color: var(--color-gold);
}

.page-home__bar {
  display: inline-block;
  height: 8px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--color-green), rgba(46, 204, 113, 0.6));
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.page-home__bar--low {
  background: linear-gradient(90deg, var(--color-silver), rgba(176, 184, 200, 0.4));
}

.page-home__table-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-silver);
  margin-top: 12px;
}

.page-home__scores-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-home__chart {
  width: 100%;
  height: auto;
  max-height: 260px;
  background: rgba(10, 30, 63, 0.6);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 0 0 0 18px;
  padding: 8px;
  box-sizing: border-box;
}

.page-home__scores-figure {
  margin: 0;
  position: relative;
}

.page-home__scores-figure img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 0 0 0 14px;
  border: 1px solid rgba(212, 160, 23, 0.24);
}

.page-home__scores-figure figcaption {
  font-size: 0.76rem;
  color: var(--color-silver);
  margin-top: 10px;
  font-family: var(--font-mono);
}

.page-home__tags {
  padding: 80px 0;
  background: var(--color-deep);
}

.page-home__tags-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-home__tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(46, 204, 113, 0.05));
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 0 0 0 18px;
  padding: 28px 22px;
}

.page-home__tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-night);
  border: 1px solid transparent;
  border-left: 4px solid var(--color-gold);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.page-home__tag-chip:hover {
  transform: translateY(-3px);
  background: rgba(212, 160, 23, 0.16);
  border-color: var(--color-gold);
  border-left-color: var(--color-green);
}

.page-home__tag-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-green);
  background: rgba(46, 204, 113, 0.12);
  padding: 4px 8px;
  border-radius: 2px;
}

.page-home__tag-chip:hover .page-home__tag-num {
  background: var(--color-gold);
  color: var(--color-deep);
}

.page-home__tags-figure {
  margin: 0;
}

.page-home__tags-figure img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 0 0 0 14px;
  border: 1px solid rgba(212, 160, 23, 0.22);
}

.page-home__tags-figure figcaption {
  font-size: 0.76rem;
  color: var(--color-silver);
  margin-top: 10px;
  font-family: var(--font-mono);
}

.page-home__tags-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding: 28px;
  background: var(--color-night);
  border-radius: 0 0 0 18px;
  margin-top: 32px;
}

.page-home__tags-panel-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.page-home__tags-panel-text p {
  color: var(--color-silver);
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

.page-home__news {
  padding: 80px 0;
  background: var(--color-night);
}

.page-home__news-grid {
  row-gap: 22px;
  column-gap: 22px;
}

.page-home__news-item {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-deep);
  border-radius: 0 0 0 14px;
  min-height: 230px;
}

.page-home__news-item h3 {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0;
  color: var(--color-white);
}

.page-home__news-item p {
  color: var(--color-silver);
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}

.page-home__news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.page-home__news-link:hover {
  color: var(--color-green);
  gap: 14px;
}

.page-home__news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  justify-content: flex-end;
}

.page-home__texture {
  padding: 0;
  margin: 0;
  background: var(--color-deep);
}

.page-home__texture img {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin-inline: auto;
  border-top: 1px solid rgba(212, 160, 23, 0.28);
}

@media (min-width: 768px) {
  .page-home__hero {
    min-height: 92vh;
    align-items: center;
  }

  .page-home__hero-wrap {
    padding-bottom: 96px;
  }

  .page-home__hero-copy {
    max-width: 820px;
    padding-left: calc(var(--home-gutter) / 2);
    border-left: 6px solid var(--color-gold);
    padding-bottom: 0;
  }

  .page-home__ticker-head {
    padding-inline: calc(var(--home-gutter) + 8px);
  }

  .page-home__step {
    min-height: 240px;
  }

  .page-home__scores-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .page-home__scores-tablewrap {
    flex: 1.2;
  }

  .page-home__scores-side {
    flex: 0.8;
    min-width: 0;
  }

  .page-home__tags-layout {
    flex-direction: row;
    align-items: center;
    gap: 44px;
  }

  .page-home__tagcloud {
    flex: 1.1;
    padding: 36px 30px;
  }

  .page-home__tags-figure {
    flex: 0.9;
  }

  .page-home__tags-panel {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .page-home__tags-panel-text {
    text-align: left;
    flex: 1;
  }

  .page-home__tags-panel .btn {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .page-home__hero-copy h1 {
    font-size: 5rem;
  }

  .page-home__scores-layout {
    gap: 56px;
  }

  .page-home__scores-tablewrap {
    flex: 1.05;
  }

  .page-home__scores-side {
    flex: 0.95;
  }
}
