.page-home {
  --home-max: 1240px;
  --home-cut: 16px;
  position: relative;
  background: var(--bg);
  color: var(--text);
}

.page-home .page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(200, 214, 229, 0.4);
  z-index: 80;
  pointer-events: none;
}

.page-home .page-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--violet) 60%, var(--green) 100%);
}

.page-home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 48px 20px 0;
  gap: 36px;
}

.page-home .home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0 32px;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 93, 61, 0.08);
  border-left: 3px solid var(--accent);
  padding: 6px 12px;
  margin-bottom: 4px;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 7.4vw, 84px);
  line-height: 1.02;
  margin: 18px 0 20px;
  color: var(--text);
  max-width: 8em;
}

.page-home .home-hero__lead {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 32px;
}

.page-home .home-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

.page-home .home-hero__metric {
  margin: 0;
}

.page-home .home-hero__metric dt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}

.page-home .home-hero__metric dd {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .home-hero__visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--bg-dark);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.page-home .home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .home-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(27, 58, 92, 0.12) 0%, rgba(27, 58, 92, 0.78) 100%);
}

.page-home .scoreboard {
  width: 100%;
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(245, 241, 232, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--on-dark);
  backdrop-filter: blur(10px);
}

.page-home .scoreboard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-dark-muted);
}

.page-home .scoreboard__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.page-home .scoreboard__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: page-home-pulse 1.8s infinite;
}

@keyframes page-home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(198, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0); }
}

.page-home .scoreboard__body {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.page-home .scoreboard__cell {
  background: rgba(245, 241, 232, 0.08);
  border-radius: 6px;
  padding: 9px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  color: var(--on-dark-muted);
  border-bottom: 2px solid transparent;
}

.page-home .scoreboard__cell--hot {
  border-color: var(--accent);
  color: var(--on-dark);
}

.page-home .scoreboard__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
}

.page-home .home-section {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 64px 20px;
}

.page-home .home-section__head {
  max-width: 720px;
  margin-bottom: 36px;
}

.page-home .label-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.page-home .display-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.12;
  margin: 12px 0 16px;
}

.page-home .lede {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.page-home .sitemap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .sitemap-card {
  --cut: var(--home-cut);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: rgba(255, 253, 247, 0.84);
  border: 1px solid rgba(200, 214, 229, 0.7);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.page-home .sitemap-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 253, 247, 1);
  border-color: var(--violet);
}

.page-home .sitemap-card--dark {
  background: var(--bg-dark);
  color: var(--on-dark);
  border-color: var(--bg-dark-2);
}

.page-home .sitemap-card--dark:hover {
  background: var(--bg-dark-2);
  border-color: var(--green);
}

.page-home .sitemap-card--green {
  border-left: 4px solid var(--green);
}

.page-home .sitemap-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.page-home .sitemap-card--dark .sitemap-card__index {
  color: var(--green);
}

.page-home .sitemap-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
}

.page-home .sitemap-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.page-home .sitemap-card--dark .sitemap-card__text {
  color: var(--on-dark-muted);
}

.page-home .sitemap-card__route {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home .home-section__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.page-home .home-section__text {
  max-width: 560px;
}

.page-home .home-section__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.page-home .home-section__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 0;
}

.page-home .feature-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.page-home .feature-list li {
  position: relative;
  padding: 7px 0 7px 28px;
  color: var(--text);
  font-size: 15px;
}

.page-home .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 12px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%, 0 70%);
}

.page-home .home-section__visual {
  position: relative;
  overflow: hidden;
}

.page-home .home-section__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.page-home .clip-panel {
  position: relative;
  background: var(--bg-dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 34px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  box-shadow: var(--shadow-lg);
}

.page-home .clip-panel .tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.page-home .clip-panel__score {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 54px;
  line-height: 1;
  color: var(--green);
  margin: 0;
}

.page-home .clip-panel__meta {
  color: var(--on-dark-muted);
  font-size: 14px;
  margin: 0;
}

.page-home .clip-panel__line {
  display: block;
  height: 3px;
  margin-top: 10px;
  width: 100%;
  max-width: 220px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.page-home .clip-panel__line--short {
  max-width: 120px;
  background: linear-gradient(90deg, var(--violet), transparent);
}

.page-home .home-help {
  position: relative;
  background: var(--bg-dark);
  color: var(--on-dark);
  max-width: none;
  margin: 0;
  padding: 68px 20px 80px;
  clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  overflow: hidden;
}

.page-home .home-help__inner {
  position: relative;
  z-index: 2;
  max-width: var(--home-max);
  margin: 0 auto;
}

.page-home .home-help__text {
  max-width: 640px;
}

.page-home .home-help .label-index {
  color: var(--green);
}

.page-home .home-help .home-section__title {
  color: var(--on-dark);
}

.page-home .home-help .home-section__lead {
  color: var(--on-dark-muted);
  border-left-color: var(--green);
}

.page-home .home-help__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  max-width: 640px;
}

.page-home .help-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: rgba(245, 241, 232, 0.07);
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 8px;
  color: var(--on-dark);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.page-home .help-card:hover {
  background: rgba(245, 241, 232, 0.14);
  transform: translateY(-2px);
}

.page-home .help-card__icon {
  color: var(--green);
  margin-bottom: 4px;
}

.page-home .help-card strong {
  font-size: 15px;
}

.page-home .help-card span {
  font-size: 12px;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

.page-home .home-help__link {
  display: inline-flex;
  margin-top: 28px;
  gap: 8px;
  color: var(--green);
  text-underline-offset: 4px;
  font-size: 14px;
}

.page-home .home-help__bg {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  opacity: 0.22;
  border-radius: var(--radius);
  transform: rotate(-8deg);
}

.page-home .home-news {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-home .news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .news-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .news-item:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  box-shadow: var(--shadow-lg);
}

.page-home .news-item h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

.page-home .news-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 960px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    padding-top: 64px;
  }

  .page-home .home-hero__content {
    padding: 24px 0 48px;
  }

  .page-home .home-hero__visual {
    min-height: 520px;
  }

  .page-home .home-section {
    padding: 96px 40px;
  }

  .page-home .home-section__head {
    margin-bottom: 48px;
  }

  .page-home .sitemap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .page-home .home-section__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .page-home .home-section__split--reverse .home-section__visual {
    order: -1;
  }

  .page-home .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .page-home .home-help {
    padding: 88px 40px 96px;
  }

  .page-home .home-help__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: none;
  }

  .page-home .home-help__bg {
    width: 380px;
    height: 380px;
  }

  .page-home .clip-panel {
    min-height: 380px;
  }
}
