:root {
  color-scheme: light;
  --ink: #101418;
  --muted: #5f6974;
  --line: #dde3e6;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --green: #136f63;
  --green-dark: #0c4d45;
  --coral: #c8513b;
  --amber: #b7791f;
  --blue: #246b86;
  --shadow: 0 18px 45px rgba(16, 20, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 31, 27, 0.94);
  backdrop-filter: blur(14px);
  color: #fff;
}

.nav-shell {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 188px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 38px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: #caff23;
}

.nav-cta,
.nav-wiki-cta,
.button,
.text-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-cta,
.nav-wiki-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta,
.button-primary {
  background: #caff23;
  color: #001f1b;
  box-shadow: 0 10px 28px rgba(202, 255, 35, 0.22);
}

.nav-cta {
  min-width: 210px;
  margin-left: 8px;
}

.nav-wiki-cta {
  min-width: 142px;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.nav-cta:hover,
.nav-wiki-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

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

.text-button {
  padding: 8px 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0f1817;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(16, 20, 24, 0.16), rgba(16, 20, 24, 0.84)),
    linear-gradient(90deg, rgba(16, 20, 24, 0.78), rgba(16, 20, 24, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 72px;
  color: #fff;
}

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

.hero-content .eyebrow {
  color: #ffd3be;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-copy,
.catalog-hero p,
.split-section > div:first-child p:not(.eyebrow) {
  max-width: 680px;
  color: #dbe5e2;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
}

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

.section {
  padding: 64px 0;
}

.compact-section {
  padding-top: 28px;
}

.split-section {
  display: grid;
  gap: 28px;
}

.split-section > div:first-child p:not(.eyebrow) {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-card,
.sport-card,
.filter-panel,
.stat-panel,
.detail-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 20px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(16, 20, 24, 0.06);
}

.feature-card span {
  color: var(--amber);
  font-weight: 900;
}

.feature-card strong {
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.catalog-hero {
  position: relative;
  padding: 82px 0 34px;
  background:
    linear-gradient(90deg, rgba(0, 31, 27, 0.92), rgba(0, 31, 27, 0.72)),
    linear-gradient(180deg, rgba(0, 31, 27, 0.14), rgba(0, 31, 27, 0.88)),
    url("/assets/hero-sport.jpg") center / cover;
  color: #fff;
}

.catalog-hero-grid {
  display: grid;
  gap: 22px;
}

.catalog-hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 5.7rem);
}

.catalog-hero p {
  margin-bottom: 0;
}

.stat-panel {
  align-self: end;
  padding: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.stat-panel strong {
  display: block;
  color: var(--green);
  font-size: clamp(2.5rem, 12vw, 5rem);
  line-height: 0.95;
}

.stat-panel span,
.stat-panel small {
  display: block;
}

.stat-panel span {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

.stat-panel small {
  margin-top: 12px;
  color: var(--muted);
}

.compact-actions {
  margin-top: 28px;
}

.language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.language-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.language-row a[aria-current="true"] {
  border-color: #caff23;
  color: #001f1b;
  background: #caff23;
}

.filter-panel {
  padding: 16px;
  box-shadow: 0 14px 36px rgba(16, 20, 24, 0.08);
}

.search-field,
.filter-grid {
  display: grid;
  gap: 12px;
}

.filter-grid {
  margin-top: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(19, 111, 99, 0.14);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.result-bar p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.sports-grid {
  display: grid;
  gap: 14px;
}

.sport-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 20, 24, 0.1);
}

.sport-card-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e8ede9;
}

.sport-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sport-placeholder,
.detail-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, 0.18), rgba(200, 81, 59, 0.12)),
    #edf2ee;
  color: var(--green-dark);
  font-size: 2.4rem;
}

.sport-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.sport-card h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.15;
}

.sport-card p {
  margin: 0;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf3f1;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.chip-alt {
  background: #fff3e3;
  color: #7a4a09;
}

.chip-muted {
  background: #eef1f3;
  color: #49535e;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.detail-root {
  min-height: 60vh;
}

.detail-hero {
  background: #102421;
  color: #fff;
}

.detail-hero-grid {
  display: grid;
  gap: 24px;
  padding: 34px 0 42px;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #cfe8df;
  font-weight: 850;
  text-decoration: none;
}

.detail-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 10vw, 6rem);
}

.detail-hero p {
  max-width: 780px;
  color: #dbe5e2;
  font-size: 1.08rem;
}

.content-locale-note {
  display: inline-flex;
  max-width: 760px;
  margin: 14px 0 0;
  border: 1px solid rgba(202, 255, 35, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(202, 255, 35, 0.1);
  color: #ecffd1;
  font-size: 0.92rem;
  font-weight: 750;
}

.detail-media {
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8ede9;
  box-shadow: var(--shadow);
}

.detail-media img,
.detail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.detail-content {
  padding: 28px 0 64px;
}

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

.detail-panel {
  padding: 18px;
}

.detail-panel h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.fact-grid {
  display: grid;
  gap: 10px;
}

.fact-item {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: #f3f6f4;
}

.fact-item span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.fact-item strong {
  font-size: 0.98rem;
}

.clean-list,
.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li,
.source-list li {
  padding: 12px;
  border-radius: 8px;
  background: #f3f6f4;
}

.source-list a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

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

.related-grid {
  display: grid;
  gap: 10px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f6f4;
  text-decoration: none;
  font-weight: 850;
}

.related-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  margin: 42px auto;
  padding: 24px;
  text-align: center;
}

.city-hero .stat-panel strong {
  font-size: clamp(2.4rem, 8vw, 4.7rem);
}

.city-status-panel small {
  line-height: 1.45;
}

.city-section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.city-section-head h2 {
  max-width: 760px;
}

.city-section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.city-sport-grid,
.city-link-grid {
  display: grid;
  gap: 12px;
}

.city-sport-card {
  display: grid;
  grid-template-rows: auto minmax(48px, auto);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 20, 24, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.city-sport-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 20, 24, 0.1);
}

.city-sport-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8ede9;
}

.city-sport-card span {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-weight: 900;
}

.city-signup-section {
  background: #eef5f1;
}

.city-form {
  display: grid;
  gap: 14px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 16px 36px rgba(16, 20, 24, 0.08);
}

.city-form .button {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.form-status.is-error {
  color: var(--coral);
}

.form-status.is-success {
  color: var(--green);
}

.city-form.is-submitted > :not(.form-status) {
  display: none;
}

.city-form.is-submitted .form-status {
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 900;
}

.honeypot {
  display: none;
}

.city-link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 13px 14px;
  color: inherit;
  text-decoration: none;
}

.city-link-grid span {
  font-weight: 900;
}

.city-link-grid small {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner div {
  display: flex;
  gap: 14px;
}

@media (min-width: 640px) {
  .filter-grid,
  .sports-grid,
  .city-sport-grid,
  .city-link-grid,
  .fact-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .split-section,
  .catalog-hero-grid,
  .detail-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: end;
  }

  .sports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-sport-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .city-link-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .nav-shell {
    min-height: 74px;
    gap: 10px;
  }

  .brand img {
    width: 152px;
  }

  .brand {
    width: 152px;
    min-width: 152px;
  }

  .nav-cta,
  .nav-wiki-cta {
    min-width: auto;
    min-height: 42px;
    padding: 0 12px;
    margin-left: 0;
    font-size: 0.82rem;
  }

  .nav-cta {
    display: none;
  }

  .hero-content {
    padding-bottom: 54px;
  }

  .result-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand,
  .brand img {
    width: 128px;
    min-width: 128px;
  }

  .nav-wiki-cta {
    padding: 0 10px;
  }
}
