.page-home {
  overflow-x: hidden;
  background-color: var(--tqb-bg-primary);
  background-image:
    linear-gradient(var(--tqb-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tqb-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-home .tqb-breadcrumb {
  max-width: var(--tqb-container-w);
  margin-inline: auto;
  padding: 24px 16px 0;
}

.page-home .tqb-section {
  padding: 56px 16px;
}

.page-home .tqb-section--alt {
  background: rgba(17, 34, 64, 0.35);
  border-top: 1px solid var(--tqb-border-line);
  border-bottom: 1px solid var(--tqb-border-line);
}

.page-home .tqb-container {
  max-width: var(--tqb-container-w);
  margin-inline: auto;
  padding-inline: 0;
}

.page-home .tqb-section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.page-home .tqb-section-heading .tqb-coord {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--tqb-accent-primary);
  margin-bottom: 8px;
}

.page-home .tqb-section-title {
  font-family: var(--tqb-font-headline);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--tqb-text-primary);
  margin: 0 0 12px;
}

.page-home .tqb-section-desc {
  font-size: var(--tqb-fs-body);
  line-height: 1.8;
  color: var(--tqb-text-secondary);
  margin: 0;
}

.page-home .tqb-card {
  border: 1px solid var(--tqb-border-line);
  background: rgba(17, 34, 64, 0.6);
  border-radius: var(--tqb-radius);
  transition:
    border-color var(--tqb-duration) var(--tqb-ease),
    transform var(--tqb-duration) var(--tqb-ease),
    background-color var(--tqb-duration) var(--tqb-ease);
}

.page-home .tqb-card:hover {
  border-color: var(--tqb-accent-primary);
  transform: translateY(-2px);
  background: rgba(17, 34, 64, 0.85);
}

.page-home a:focus-visible {
  outline: 2px solid var(--tqb-accent-primary);
  outline-offset: 2px;
}

.page-home .home-tick {
  display: inline-block;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -2px;
  flex: none;
}

.page-home .home-tick--yellow {
  background: var(--tqb-data-accent);
}

.page-home .home-tick--red {
  background: var(--tqb-accent-secondary);
}

/* ===== Hero ===== */
.page-home .home-hero {
  padding: 40px 16px 64px;
  max-width: var(--tqb-container-w);
  margin-inline: auto;
}

.page-home .home-hero__frame {
  position: relative;
  border: 1px solid var(--tqb-border-line);
  outline: 1px solid rgba(100, 255, 218, 0.35);
  outline-offset: 5px;
  padding: 36px 20px 44px;
  background: rgba(17, 34, 64, 0.55);
  backdrop-filter: blur(4px);
}

.page-home .home-hero__corner {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--tqb-text-secondary);
}

.page-home .home-hero__corner--tl {
  top: 8px;
  left: 10px;
}

.page-home .home-hero__corner--br {
  bottom: 8px;
  right: 10px;
}

.page-home .home-hero__ticks {
  position: absolute;
  pointer-events: none;
}

.page-home .home-hero__ticks--top,
.page-home .home-hero__ticks--bottom {
  left: 12px;
  right: 12px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--tqb-border-line) 0 2px,
    transparent 2px 14px
  );
}

.page-home .home-hero__ticks--top {
  top: -4px;
}

.page-home .home-hero__ticks--bottom {
  bottom: -4px;
}

.page-home .home-hero__ticks--left,
.page-home .home-hero__ticks--right {
  top: 12px;
  bottom: 12px;
  width: 8px;
  background: repeating-linear-gradient(
    0deg,
    var(--tqb-border-line) 0 2px,
    transparent 2px 14px
  );
}

.page-home .home-hero__ticks--left {
  left: -4px;
}

.page-home .home-hero__ticks--right {
  right: -4px;
}

.page-home .home-hero__inner {
  display: grid;
  gap: 32px;
}

.page-home .home-hero__kicker {
  font-family: var(--tqb-font-data);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--tqb-accent-primary);
  margin-bottom: 12px;
}

.page-home .home-hero__title {
  font-family: var(--tqb-font-headline);
  font-size: clamp(32px, 6.4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--tqb-text-primary);
  margin: 0 0 16px;
}

.page-home .home-hero__title-sub {
  display: block;
  color: var(--tqb-accent-primary);
}

.page-home .home-hero__desc {
  font-size: var(--tqb-fs-body);
  line-height: 1.85;
  color: var(--tqb-text-secondary);
  margin: 0 0 24px;
}

.page-home .home-hero__kw {
  color: var(--tqb-data-accent);
  font-weight: 600;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--tqb-border-line);
}

.page-home .home-hero__scoreboard {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 25, 47, 0.82);
  border: 1px solid var(--tqb-border-line);
  padding: 12px 14px;
  backdrop-filter: blur(6px);
}

.page-home .home-hero__scoreboard-label {
  display: block;
  font-family: var(--tqb-font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--tqb-accent-primary);
  margin-bottom: 6px;
}

.page-home .home-hero__scoreboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--tqb-text-primary);
  font-size: 14px;
  font-weight: 600;
}

.page-home .home-hero__scoreboard-score {
  color: var(--tqb-accent-primary);
  font-family: var(--tqb-font-data);
  font-size: 18px;
}

.page-home .home-hero__scoreboard-events {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--tqb-text-secondary);
}

/* ===== Timeline ===== */
.page-home .home-timeline {
  position: relative;
  padding-left: 36px;
  display: grid;
  gap: 24px;
}

.page-home .home-timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--tqb-border-line) 0 6px,
    transparent 6px 14px
  );
}

.page-home .home-match {
  position: relative;
  padding: 20px;
}

.page-home .home-timeline__node {
  position: absolute;
  left: -26px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tqb-accent-primary);
  box-shadow: 0 0 0 3px var(--tqb-bg-primary);
}

.page-home .home-match__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.page-home .home-match__league {
  font-size: 12px;
}

.page-home .home-match__status {
  font-size: 12px;
  color: var(--tqb-text-secondary);
}

.page-home .home-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.page-home .home-match__team {
  font-size: 16px;
  font-weight: 700;
  color: var(--tqb-text-primary);
  text-align: center;
}

.page-home .home-match__score {
  font-family: var(--tqb-font-data);
  font-size: 20px;
  color: var(--tqb-accent-primary);
  white-space: nowrap;
  padding: 2px 10px;
  border: 1px solid var(--tqb-border-line);
  border-radius: var(--tqb-radius);
}

.page-home .home-match__events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.page-home .home-match__event {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--tqb-text-secondary);
  padding: 2px 8px;
  background: var(--tqb-overlay-glass);
  border-radius: var(--tqb-radius);
}

.page-home .home-match__event .tqb-data {
  font-size: 13px;
}

.page-home .home-match__details {
  border-top: 1px dashed var(--tqb-border-line);
  padding-top: 10px;
}

.page-home .home-match__details summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--tqb-accent-primary);
  list-style: none;
  user-select: none;
}

.page-home .home-match__details summary::-webkit-details-marker {
  display: none;
}

.page-home .home-match__details summary::before {
  content: "▸ ";
}

.page-home .home-match__details[open] summary::before {
  content: "▾ ";
}

.page-home .home-match__list {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.page-home .home-match__list li {
  font-size: 14px;
  color: var(--tqb-text-secondary);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.page-home .home-match__minute {
  font-family: var(--tqb-font-data);
  color: var(--tqb-data-accent);
  min-width: 48px;
}

.page-home .home-schedule__more {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--tqb-text-secondary);
}

.page-home .home-schedule__more a {
  color: var(--tqb-accent-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--tqb-accent-primary);
}

/* ===== Data panel ===== */
.page-home .home-data__layout {
  display: grid;
  gap: 32px;
}

.page-home .home-data__chart-block {
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid var(--tqb-border-line);
  padding: 20px;
}

.page-home .home-data__chart-title {
  font-family: var(--tqb-font-headline);
  font-size: 18px;
  font-weight: 700;
  color: var(--tqb-text-primary);
  margin: 0 0 18px;
}

.page-home .home-data__chart {
  display: grid;
  gap: 10px;
}

.page-home .home-data__row {
  display: grid;
  grid-template-columns: 52px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.page-home .home-data__league {
  font-size: 14px;
  font-weight: 600;
  color: var(--tqb-text-primary);
}

.page-home .home-data__bar {
  height: 14px;
  background: var(--tqb-overlay-glass);
  border-radius: 2px;
  overflow: hidden;
}

.page-home .home-data__fill {
  display: block;
  height: 100%;
  background: var(--tqb-accent-primary);
  opacity: 0.72;
  transition:
    opacity var(--tqb-duration) var(--tqb-ease),
    transform var(--tqb-duration) var(--tqb-ease);
}

.page-home .home-data__row:hover .home-data__fill {
  opacity: 1;
  transform: scaleX(1.01);
}

.page-home .home-data__value {
  font-family: var(--tqb-font-data);
  font-size: 14px;
  color: var(--tqb-accent-primary);
  text-align: right;
}

.page-home .home-data__spark {
  width: 100%;
  height: 72px;
  margin-top: 18px;
  display: block;
}

.page-home .home-data__spark polyline {
  stroke: var(--tqb-accent-primary);
  fill: none;
}

.page-home .home-data__spark circle {
  fill: var(--tqb-data-accent);
}

.page-home .home-data__note {
  font-family: var(--tqb-font-data);
  font-size: 12px;
  color: var(--tqb-text-secondary);
  margin: 6px 0 0;
}

.page-home .home-data__right {
  display: grid;
  gap: 16px;
}

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

.page-home .home-data__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--tqb-border-line);
}

.page-home .home-data__caption {
  display: block;
  font-size: 12px;
  color: var(--tqb-text-secondary);
  margin-top: 6px;
}

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

.page-home .home-data__stat {
  padding: 16px 12px;
  background: var(--tqb-overlay-glass);
  border: 1px solid var(--tqb-border-line);
  text-align: center;
}

.page-home .home-data__stat-value {
  display: block;
  font-family: var(--tqb-font-data);
  font-size: 28px;
  line-height: 1.2;
  color: var(--tqb-accent-primary);
}

.page-home .home-data__stat-label {
  display: block;
  font-size: 13px;
  color: var(--tqb-text-secondary);
  margin-top: 4px;
}

/* ===== Quick entry ===== */
.page-home .home-quick__grid {
  display: grid;
  gap: 16px;
}

.page-home .home-quick__card {
  position: relative;
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.page-home .home-quick__card--feature .home-quick__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--tqb-border-line);
  margin-bottom: 14px;
}

.page-home .home-quick__num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--tqb-font-data);
  font-size: 13px;
  color: var(--tqb-accent-primary);
}

.page-home .home-quick__card h3 {
  font-family: var(--tqb-font-headline);
  font-size: 18px;
  font-weight: 700;
  color: var(--tqb-text-primary);
  margin: 0 0 8px;
}

.page-home .home-quick__card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tqb-text-secondary);
  margin: 0;
}

/* ===== News ===== */
.page-home .home-news__layout {
  display: grid;
  gap: 28px;
}

.page-home .home-news__list {
  display: grid;
  gap: 16px;
}

.page-home .home-news__item {
  padding: 18px 20px;
}

.page-home .home-news__tag {
  display: inline-block;
  margin-bottom: 8px;
}

.page-home .home-news__title {
  font-family: var(--tqb-font-headline);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 6px;
}

.page-home .home-news__title a {
  color: var(--tqb-text-primary);
  text-decoration: none;
  transition: color var(--tqb-duration) var(--tqb-ease);
}

.page-home .home-news__title a:hover {
  color: var(--tqb-accent-primary);
}

.page-home .home-news__excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: var(--tqb-text-secondary);
  margin: 0;
}

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

.page-home .home-news__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--tqb-border-line);
}

.page-home .home-news__caption {
  display: block;
  font-family: var(--tqb-font-data);
  font-size: 12px;
  color: var(--tqb-text-secondary);
  margin-top: 6px;
}

/* ===== Trust ===== */
.page-home .home-trust {
  padding: 32px 16px 56px;
  max-width: var(--tqb-container-w);
  margin-inline: auto;
}

.page-home .home-trust__text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tqb-text-secondary);
  border-left: 2px solid var(--tqb-accent-primary);
  padding-left: 16px;
  margin: 0;
}

.page-home .home-trust__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tqb-accent-primary);
  flex: none;
}

/* ===== Tablet ===== */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 48px 16px 80px;
  }

  .page-home .home-hero__frame {
    padding: 40px 28px 48px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .page-home .home-data__layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .page-home .home-quick__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-quick__card--feature {
    grid-column: span 2;
  }

  .page-home .home-news__layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

/* ===== Desktop ===== */
@media (min-width: 1024px) {
  .page-home .tqb-section {
    padding: 72px 24px;
  }

  .page-home .home-timeline {
    padding-left: 0;
    padding-top: 20px;
    display: block;
  }

  .page-home .home-timeline::before {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
  }

  .page-home .home-match {
    width: calc(50% - 44px);
  }

  .page-home .home-match:nth-child(odd) {
    margin-right: auto;
  }

  .page-home .home-match:nth-child(even) {
    margin-left: calc(50% + 44px);
  }

  .page-home .home-timeline__node {
    left: auto;
    right: -50px;
    top: 24px;
  }

  .page-home .home-match:nth-child(even) .home-timeline__node {
    right: auto;
    left: -50px;
  }

  .page-home .home-quick__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .home-quick__card--feature {
    grid-column: span 2;
  }

  .page-home .home-quick__card:nth-child(n+2) {
    grid-column: span 1;
  }
}
