:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --surface-2: #edf2e9;
  --ink: #101815;
  --muted: #5d6c64;
  --line: #d7dfd2;
  --green: #0f7d3d;
  --green-dark: #064627;
  --lime: #c8f05a;
  --blue: #1f5eff;
  --red: #e34b38;
  --shadow: 0 22px 60px rgba(14, 28, 21, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(245, 247, 242, 0.88);
  border-bottom: 1px solid rgba(16, 24, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--lime);
  font-weight: 900;
  font-size: 26px;
}

.brand strong,
.site-footer strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.main-nav a,
.header-action {
  padding: 11px 13px;
  border-radius: 8px;
  color: #26352e;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  background: var(--surface-2);
}

.header-action {
  background: var(--ink);
  color: white;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 680px;
  padding: clamp(36px, 6vw, 68px) clamp(18px, 4vw, 54px) 42px;
  background:
    linear-gradient(110deg, rgba(245, 247, 242, 1) 0%, rgba(245, 247, 242, 0.92) 42%, rgba(198, 229, 206, 0.8) 100%),
    radial-gradient(circle at 72% 18%, rgba(200, 240, 90, 0.36), transparent 34%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(38px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 21px;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.button.primary {
  background: var(--green-dark);
  color: white;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 720px);
  min-height: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(6, 70, 39, 0.22));
}

.score-card {
  position: absolute;
  right: 20px;
  bottom: 34px;
  width: min(310px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.score-card span,
.score-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.score-card strong {
  display: block;
  margin: 5px 0;
  font-size: 22px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  transform: translateY(-18px);
}

.quick-stats article {
  min-height: 116px;
  padding: 22px;
  background: var(--surface);
}

.quick-stats span {
  display: block;
  color: var(--green);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.quick-stats p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 54px);
}

.section-head {
  display: block;
  margin-bottom: 30px;
}

.dark-band {
  background: var(--green-dark);
  color: white;
}

.dark-band .eyebrow,
.dark-band .tab-button.active {
  color: var(--lime);
}

.dark-band .tab-button,
.dark-band .match-card,
.dark-band .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.dark-band .match-card small,
.dark-band .stat-card p {
  color: rgba(255, 255, 255, 0.68);
}

.dark-band .table-wrap {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.22);
}

.dark-band table {
  background: var(--surface);
  color: var(--ink);
}

.dark-band th {
  color: var(--muted);
}

.dark-band tbody tr:nth-child(even) {
  background: #f6f8f4;
}

.muted-band {
  background: var(--surface-2);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.tab-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.team-card,
.referee-card,
.stat-card,
.match-card,
.review-card,
.forum-card,
.social-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(14, 28, 21, 0.06);
}

.info-card,
.team-card,
.referee-card,
.stat-card,
.match-card,
.review-card {
  padding: 18px;
}

.info-card p,
.team-card p,
.referee-card p,
.review-card p,
.forum-card p {
  color: var(--muted);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.document-list,
.timeline,
.match-list,
.directory-list,
.review-list {
  display: grid;
  gap: 10px;
}

.document-item,
.timeline-item,
.directory-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-item {
  grid-template-columns: 110px 1fr;
}

.document-item span,
.timeline-item span,
.directory-item span {
  color: var(--green);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

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

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.source-note {
  margin: 12px 2px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.source-note a {
  color: var(--lime);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.match-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 16px;
}

.match-card strong {
  font-size: 18px;
}

.match-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.match-status {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1;
}

.cup-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 16px;
}

.cup-layout .stats-grid {
  grid-column: 1 / -1;
}

.team-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--lime);
  font-weight: 900;
}

.directory-item {
  grid-template-columns: 1.2fr 0.8fr 0.5fr auto;
}

.media-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.55fr;
  gap: 16px;
  align-items: start;
}

.forum-card,
.social-card {
  padding: 22px;
}

.social-card {
  display: grid;
  gap: 10px;
}

.social-card a {
  padding: 13px;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 850;
}

.cta {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 54px) clamp(58px, 8vw, 104px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

.cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.join-form {
  display: grid;
  gap: 12px;
}

.join-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.join-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
}

.join-form input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 54px);
  background: #0c1210;
  color: white;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 680px);
  }

  .card-grid.four,
  .card-grid.three,
  .stats-grid,
  .cup-layout,
  .media-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
  }

  .header-action {
    margin-left: auto;
  }

  .hero-visual {
    min-height: 0;
  }

  .quick-stats,
  .card-grid.four,
  .card-grid.three,
  .stats-grid,
  .cup-layout,
  .media-layout {
    grid-template-columns: 1fr;
  }

  .document-item,
  .directory-item,
  .match-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .score-card {
    position: static;
    width: 100%;
    margin-top: -10px;
  }

  .section-head,
  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }
}
