.page-home {
  --page-red: #E63946;
  --page-gold: #FFD700;
  --page-card: rgba(26, 58, 92, 0.55);
  --page-card-border: rgba(69, 123, 157, 0.55);
  --page-gap: clamp(2.5rem, 6vw, 5rem);
  --page-line: rgba(165, 216, 230, 0.14);
}
.page-home img {
  max-width: 100%;
  height: auto;
}
.page-home .container {
  padding-top: clamp(1.2rem, 4vw, 2.5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.page-home .home-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.page-home .home-crumb a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.page-home .home-crumb a:hover,
.page-home .home-crumb a:focus {
  color: var(--page-red);
  border-color: var(--page-red);
}
.page-home .home-crumb__sep {
  color: var(--border);
}
.page-home .home-hero {
  margin-bottom: var(--page-gap);
}
.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  align-items: center;
  margin-bottom: 2.4rem;
}
.page-home .section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--page-gold);
  margin-bottom: 1rem;
}
.page-home .section-index::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--page-red);
  flex: 0 0 auto;
}
.page-home .hero-section-index {
  margin-bottom: 1.4rem;
}
.page-home .hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--text-light);
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}
.page-home .hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 1.7rem;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.page-home .hero-figure {
  position: relative;
  margin: 0;
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  padding: 0.5rem;
  clip-path: polygon(0 0, calc(100% - 1.6rem) 0, 100% 1.6rem, 100% 100%, 0 100%);
}
.page-home .hero-figure::after {
  content: "";
  position: absolute;
  right: 2.2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--page-red), transparent 70%);
  opacity: 0.75;
  pointer-events: none;
}
.page-home .hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.page-home .hero-figure figcaption {
  padding: 0.7rem 0.3rem 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.page-home .hero-chapters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border-top: 1px solid var(--page-line);
  padding-top: 1.4rem;
}
.page-home .hero-chapter {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  border: 1px solid var(--page-card-border);
  background: rgba(26, 58, 92, 0.3);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.page-home .hero-chapter:hover,
.page-home .hero-chapter:focus {
  border-color: var(--page-red);
  background: rgba(230, 57, 70, 0.07);
  transform: translateY(-2px);
}
.page-home .hero-chapter__num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--page-gold);
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}
.page-home .hero-chapter__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}
.page-home .hero-chapter__arrow {
  margin-left: auto;
  color: var(--page-red);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.page-home .hero-chapter:hover .hero-chapter__arrow,
.page-home .hero-chapter:focus .hero-chapter__arrow {
  transform: translateX(4px);
}
.page-home .home-section {
  margin-top: var(--page-gap);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--page-line);
  position: relative;
}
.page-home .home-section .section-heading {
  max-width: 72ch;
  margin-bottom: 2rem;
}
.page-home .home-section .section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.15;
  color: var(--text-light);
  margin: 0.5rem 0 0.8rem;
}
.page-home .home-section .section-heading p:last-child {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 0;
}
.page-home .perks-section {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), transparent 35%);
}
.page-home .perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.page-home .perk-card {
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.page-home .perk-card:hover,
.page-home .perk-card:focus-within {
  border-color: var(--page-red);
  transform: translateY(-4px);
  background: rgba(26, 58, 92, 0.78);
}
.page-home .perk-card--main {
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
  border-top: 0;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(26, 58, 92, 0.72) 45%);
}
.page-home .perk-card--side {
  border-top: 3px solid var(--page-gold);
}
.page-home .perk-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(230, 57, 70, 0.18);
  border-left: 2px solid var(--page-red);
  margin-bottom: 1.2rem;
}
.page-home .perk-card--side .perk-card__tag {
  background: rgba(255, 215, 0, 0.12);
  border-left-color: var(--page-gold);
}
.page-home .perk-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-light);
  margin: 0 0 0.8rem;
}
.page-home .perk-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.page-home .perk-card__list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.page-home .perk-card__list li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.55rem 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.5;
}
.page-home .perk-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 2px;
  background: linear-gradient(90deg, var(--page-red), var(--page-gold));
}
.page-home .perk-card .btn {
  margin-top: 0.3rem;
}
.page-home .results-section {
  background-image:
    linear-gradient(120deg, rgba(230, 57, 70, 0.04), transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(255, 215, 0, 0.06), transparent 32%);
}
.page-home .results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.page-home .score-panel {
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  padding: 0.4rem 1.2rem;
}
.page-home .score-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--page-line);
}
.page-home .score-item:last-child {
  border-bottom: 0;
}
.page-home .score-item__project {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.98rem;
}
.page-home .score-item__status {
  justify-self: start;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--page-gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 0.18rem 0.6rem;
}
.page-home .score-item__link {
  justify-self: start;
  color: var(--page-red);
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 0.2rem;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.page-home .score-item__link:hover,
.page-home .score-item__link:focus {
  color: #FF6B78;
}
.page-home .results-figure {
  margin: 0;
  border: 1px solid var(--page-card-border);
  background: rgba(26, 58, 92, 0.4);
  padding: 0.5rem;
}
.page-home .results-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-home .results-figure figcaption {
  padding: 0.55rem 0.2rem 0.15rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.page-home .stats-panel {
  background: linear-gradient(135deg, rgba(27, 53, 87, 0.85), rgba(11, 29, 58, 0.92));
  border: 1px solid var(--page-card-border);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: grid;
  gap: 0.7rem;
  align-content: start;
  clip-path: polygon(0 0, calc(100% - 1.2rem) 0, 100% 1.2rem, 100% 100%, 0 100%);
}
.page-home .stats-panel__heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}
.page-home .stats-panel .stat-block {
  margin: 0;
  padding: 0.4rem 0 0.4rem 0.8rem;
  border-left: 3px solid var(--page-red);
}
.page-home .stats-panel .stat-block__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--page-gold);
}
.page-home .stats-panel .stat-block__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}
.page-home .stats-panel .btn {
  margin-top: 1rem;
}
.page-home .teams-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.page-home .teams-figure {
  margin: 0;
  border: 1px solid var(--page-card-border);
  background: var(--page-card);
  padding: 0.5rem;
  clip-path: polygon(0 0, calc(100% - 1.4rem) 0, 100% 1.4rem, 100% 100%, 0 100%);
}
.page-home .teams-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.page-home .teams-figure figcaption {
  padding: 0.55rem 0.2rem 0.15rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.page-home .team-categories {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.page-home .team-category {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  padding: 1rem 1.2rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.page-home .team-category:hover,
.page-home .team-category:focus-within {
  border-color: var(--page-gold);
  background: rgba(255, 215, 0, 0.06);
  transform: translateX(4px);
}
.page-home .team-category__count {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--page-gold);
  min-width: 4.4rem;
}
.page-home .team-category__label {
  margin-left: auto;
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
}
.page-home .team-categories__note {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0.4rem 0 0.2rem;
}
.page-home .rounds-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.page-home .rounds-figure {
  margin: 0;
  border: 1px solid var(--page-card-border);
  background: rgba(26, 58, 92, 0.4);
  padding: 0.5rem;
}
.page-home .rounds-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-home .rounds-figure figcaption {
  padding: 0.55rem 0.2rem 0.15rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.page-home .rounds-panel {
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.page-home .round-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.page-home .round-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--page-line);
}
.page-home .round-list__week {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--page-red);
  letter-spacing: 0.04em;
}
.page-home .round-list__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.page-home .rounds-panel__note {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0.2rem 0 1.2rem;
}
.page-home .guide-section {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.04), transparent 38%);
}
.page-home .guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.page-home .guide-step {
  position: relative;
  background: var(--page-card);
  border: 1px solid var(--page-card-border);
  padding: 1.6rem 1.4rem 1.3rem;
  min-height: 9rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.page-home .guide-step:hover,
.page-home .guide-step:focus-within {
  border-color: var(--page-red);
  transform: translateY(-3px);
  background: rgba(26, 58, 92, 0.78);
}
.page-home .guide-step__num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(230, 57, 70, 0.35);
  pointer-events: none;
}
.page-home .guide-step h3 {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
}
.page-home .guide-step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  max-width: 32ch;
}
.page-home .guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.page-home .btn {
  min-height: 2.75rem;
  padding-inline: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.page-home .btn:active {
  transform: scale(0.97);
}
.page-home .btn--gold {
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: var(--page-gold);
}
.page-home .btn--gold:hover,
.page-home .btn--gold:focus {
  background: rgba(255, 215, 0, 0.14);
  border-color: var(--page-gold);
}
@media (min-width: 640px) {
  .page-home .perks-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
  .page-home .teams-layout {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
  }
  .page-home .rounds-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
  .page-home .guide-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 720px) {
  .page-home .results-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .page-home .score-panel {
    grid-column: 1 / -1;
  }
  .page-home .score-item {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .page-home .score-item__link {
    justify-self: end;
  }
}
@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
  }
  .page-home .hero-chapters {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--page-line);
  }
  .page-home .hero-chapter {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border: 0;
    border-left: 1px solid var(--page-line);
    background: transparent;
    padding: 1rem 1.1rem 0.8rem;
  }
  .page-home .hero-chapter__num {
    font-size: 1.3rem;
  }
  .page-home .hero-chapter__label {
    font-size: 0.88rem;
    line-height: 1.4;
  }
  .page-home .hero-chapter__arrow {
    margin-left: 0;
    font-size: 1rem;
  }
  .page-home .hero-chapter:hover,
  .page-home .hero-chapter:focus {
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.1), transparent 75%);
    border-left-color: var(--page-red);
  }
  .page-home .results-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .page-home .score-panel {
    grid-column: auto;
    grid-row: span 1;
  }
  .page-home .score-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .page-home .score-item__link {
    justify-self: start;
  }
  .page-home .stats-panel {
    grid-row: span 2;
  }
  .page-home .results-figure {
    grid-column: 1;
    grid-row: 2;
  }
  .page-home .stats-panel {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .page-home .teams-layout {
    grid-template-columns: 0.88fr 1.12fr;
  }
  .page-home .team-category {
    padding: 1.2rem 1.4rem;
  }
  .page-home .team-category__count {
    font-size: 2.3rem;
  }
  .page-home .rounds-layout {
    grid-template-columns: 0.92fr 1.08fr;
  }
  .page-home .rounds-panel {
    padding: 2rem;
  }
  .page-home .guide-step {
    padding: 2rem 1.6rem 1.5rem;
    min-height: 10rem;
  }
}
