/* ============================================================================
   PADEL WORLD CUP by Casanova — public theme
   Palette: navy #0b1f3a · teal #16c79a · gold #f5b301 · silver #c0c7d0
   Plain CSS only, mobile-responsive.
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --navy-3: #1c3a63;
  --teal: #16c79a;
  --teal-dark: #0fa37e;
  --gold: #f5b301;
  --gold-soft: rgba(245, 179, 1, 0.16);
  --silver: #c0c7d0;
  --silver-soft: rgba(192, 199, 208, 0.18);
  --ink: #0b1f3a;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #e2e8f1;
  --muted: #6b7a90;
  --text: #1f2d44;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 22px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 31, 58, 0.18);
  --maxw: 1120px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 48px;
  height: 48px;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.30);
}
.brand__text { font-weight: 800; letter-spacing: -0.3px; color: #fff; line-height: 1; }
.brand__by { font-weight: 500; opacity: 0.7; }
.brand:hover { text-decoration: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #dfe7f1;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.10); color: #fff; text-decoration: none; }
.main-nav a.nav-gold { color: var(--gold); }
.main-nav a.nav-silver { color: var(--silver); }
.main-nav a.nav-gold:hover { background: var(--gold-soft); }
.main-nav a.nav-silver:hover { background: var(--silver-soft); }

/* ------------------------------------------------------------------ Layout */
main { min-height: 60vh; padding: 30px 0 56px; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }

/* breadcrumbs / back links */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* tabs / link bar */
.tablinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.tablinks a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.tablinks a:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }
.tablinks a.is-gold { border-color: var(--gold); }
.tablinks a.is-silver { border-color: var(--silver); }

/* ------------------------------------------------------------------ Badges */
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-3);
  color: #fff;
}
.badge-gold { background: var(--gold); color: #3a2a00; }
.badge-silver { background: var(--silver); color: #2a3340; }
.badge-teal { background: var(--teal); color: #043328; }
.badge-soft { background: #eef2f8; color: var(--muted); }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--teal);
  color: #04261d;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { background: var(--teal-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(22, 199, 154, 0.25), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 54px 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 6px solid rgba(245, 179, 1, 0.30);
  opacity: 0.5;
}
/* split hero: text + CTA on the left, poster framed on the right */
.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero__content { position: relative; z-index: 1; }
.hero-logo {
  display: block;
  width: 84px;
  height: 84px;
  padding: 10px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
}
.hero__poster {
  margin: 0;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.hero__poster img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 540px;
  border-radius: 16px;
  border: 5px solid #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.hero .eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal);
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.1rem; color: #d6e0ee; max-width: 640px; margin: 0 0 24px; }
.hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* INFO IMPORTANTI block */
.info-block {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.info-block h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.info-list .ico { font-size: 1.4rem; line-height: 1; flex: none; }
.info-list .txt strong { display: block; color: var(--navy); }
.info-list .txt span { color: var(--muted); font-size: 0.92rem; }
.info-list li.prize {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.info-list li.prize .txt strong { color: #7a5a00; }

/* Big tournament cards on the home page */
.tcards { margin-top: 30px; }
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 248px;
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tcard:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(11, 31, 58, 0.30);
}
.tcard-gold {
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(255, 255, 255, 0.50), transparent 46%),
    linear-gradient(135deg, #7d5200 0%, #e0930a 46%, #ffce4a 100%);
  color: #3a2700;
}
.tcard-silver {
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(255, 255, 255, 0.58), transparent 46%),
    linear-gradient(135deg, #59616d 0%, #99a2af 46%, #e2e7ec 100%);
  color: #232b36;
}

/* diagonal shine sweep on hover */
.tcard__shine {
  position: absolute;
  top: -60%;
  left: -45%;
  z-index: 1;
  width: 55%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.40), transparent);
  transform: rotate(18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.tcard:hover .tcard__shine { left: 135%; }

.tcard__body, .tcard__cta { position: relative; z-index: 2; }
.tcard__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.40);
}
.tcard__title { margin: 14px 0 5px; font-size: 2.15rem; font-weight: 800; letter-spacing: -0.5px; }
.tcard__meta { margin: 0; font-weight: 600; opacity: 0.9; }
.tcard__cta {
  margin-top: 22px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: inherit;
  font-weight: 700;
  transition: background 0.15s ease, gap 0.15s ease;
}
.tcard:hover .tcard__cta { background: rgba(0, 0, 0, 0.22); gap: 12px; }
.tcard__cta .arrow { transition: transform 0.15s ease; }
.tcard:hover .tcard__cta .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table.standings, table.matches {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}
table.matches { min-width: 640px; }

.standings thead th, .matches thead th {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 11px 8px;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.standings thead th.team-col, .matches thead th.left { text-align: left; padding-left: 14px; }

.standings tbody td, .matches tbody td {
  text-align: center;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.standings tbody td.team-col {
  text-align: left;
  padding-left: 14px;
  white-space: normal;
  font-weight: 600;
  color: var(--navy);
}
.standings tbody tr:nth-child(even) td { background: #fafcff; }

.standings .pos { font-weight: 800; color: var(--navy); width: 44px; }
.standings .pts { font-weight: 800; color: var(--navy); }
.standings .flag { font-size: 1.15rem; margin-right: 7px; }
.standings .neg { color: #c0392b; }
.standings .pos-neg { color: #c0392b; }

/* qualification highlight rows */
.standings tr.q-gold td { background: var(--gold-soft) !important; }
.standings tr.q-silver td { background: var(--silver-soft) !important; }
.standings tr.q-gold td.pos { box-shadow: inset 4px 0 0 var(--gold); }
.standings tr.q-silver td.pos { box-shadow: inset 4px 0 0 var(--silver); }

.standings .empty-row td {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 18px;
}

/* Mobile standings: drop the horizontal scroll and reorder so the points
   column (Pt) sits right after the team name — the first number you see. */
@media (max-width: 600px) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table.standings { min-width: 0; width: 100%; display: block; font-size: 0.88rem; }
  .standings thead, .standings tbody { display: block; }
  .standings thead tr, .standings tbody tr {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 32px repeat(6, 28px);
    align-items: center;
  }
  .standings tbody td.team-col { overflow-wrap: anywhere; line-height: 1.15; }
  /* visual order: POS · SQUADRA · Pt · G · V · S · GF · GS · DR */
  .standings tr > *:nth-child(1) { order: 1; }  /* POS */
  .standings tr > *:nth-child(2) { order: 2; }  /* SQUADRA */
  .standings tr > *:nth-child(9) { order: 3; }  /* Pt */
  .standings tr > *:nth-child(3) { order: 4; }  /* G */
  .standings tr > *:nth-child(4) { order: 5; }  /* V */
  .standings tr > *:nth-child(5) { order: 6; }  /* S */
  .standings tr > *:nth-child(6) { order: 7; }  /* GF */
  .standings tr > *:nth-child(7) { order: 8; }  /* GS */
  .standings tr > *:nth-child(8) { order: 9; }  /* DR */
  .standings thead th, .standings tbody td { padding: 9px 2px; }
  .standings tbody td.team-col { padding-left: 7px; }
  .standings .pos { width: auto; }
  /* make the points pop */
  .standings .pts { background: var(--gold-soft); border-radius: 6px; }
  .standings thead th:nth-child(9) { color: var(--gold); }
  /* keep the empty-row message spanning the full width */
  .standings .empty-row td { grid-column: 1 / -1; }
}

/* qualification legend */
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.legend .key { display: inline-flex; align-items: center; gap: 7px; }
.legend .swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.legend .swatch.gold { background: var(--gold); }
.legend .swatch.silver { background: var(--silver); }

/* group section headings */
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 12px;
  font-size: 1.2rem;
  color: var(--navy);
}
.group-title .letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--teal);
  color: #04261d;
  font-weight: 800;
}

.groups-grid { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); }
.groups-grid .group-block { min-width: 0; }

/* national flag images (local SVG, robust on all browsers incl. Windows) */
.flag-img {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, 0.12);
  vertical-align: -2px;
  margin-right: 7px;
}
.flag-img--ph {
  background: repeating-linear-gradient(45deg, #e6e9f0, #e6e9f0 4px, #f1f4f9 4px, #f1f4f9 8px);
}
.bmatch .nm .flag-img, .rr-team .flag-img { margin-right: 0; }

/* expandable per-group results */
.group-results {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.group-results > summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 14px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  user-select: none;
}
.group-results > summary::-webkit-details-marker { display: none; }
.group-results > summary::marker { content: ""; }
.group-results > summary:hover { background: #f7f9fc; }
.group-results .gr-caret { color: var(--teal-dark); transition: transform 0.15s ease; }
.group-results[open] .gr-caret { transform: rotate(90deg); }
.group-results .gr-count {
  margin-left: auto;
  background: #eef2f8;
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.78rem;
  font-weight: 700;
}
.result-list {
  list-style: none;
  margin: 0;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.result-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.result-row:nth-child(odd) { background: #fafcff; }
.rr-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-home { justify-content: flex-start; }
.rr-away { justify-content: flex-end; text-align: right; }
.rr-win .rr-name { font-weight: 800; color: var(--navy); }
.rr-score { font-weight: 800; color: var(--navy); text-align: center; min-width: 56px; white-space: nowrap; }
.rr-dash { color: var(--muted); margin: 0 2px; }
.rr-vs { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.rr-tb { color: #b67c00; font-size: 0.6rem; margin-left: 2px; }
.rr-meta { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 0.76rem; }

/* ------------------------------------------------- Schedule (matches list) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.filters .field { display: flex; flex-direction: column; gap: 5px; }
.filters label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.filters select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--navy);
  min-width: 200px;
}
.filters .actions { display: flex; gap: 8px; }

.matches tbody tr:nth-child(even) td { background: #fafcff; }
.matches .when { text-align: left; padding-left: 14px; color: var(--navy); font-weight: 600; }
.matches .when small { display: block; color: var(--muted); font-weight: 500; }
.matches .vs-home, .matches .vs-away { text-align: left; }
.matches .vs-away { text-align: right; padding-right: 14px; }
.matches .flag { font-size: 1.1rem; }
.matches .score { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.matches .score .tb { font-size: 0.7rem; color: var(--gold); vertical-align: super; }
.matches .win { color: var(--teal-dark); font-weight: 800; }
.matches .pending { color: var(--muted); font-style: italic; }
.matches .phase-tag { font-size: 0.78rem; }
.matches .court { color: var(--muted); }

/* ------------------------------------------------------------------ Bracket */
.bracket-scroll {
  overflow-x: auto;
  padding: 10px 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.bracket {
  display: flex;
  gap: 40px;
  min-width: max-content;
  align-items: stretch;
}
.bracket-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 210px;
  gap: 16px;
}
.bracket-col .round-name {
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.bmatch {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: auto 0;
}
.bmatch .side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
}
.bmatch .side + .side { border-top: 1px solid var(--line); }
.bmatch .side .nm {
  display: flex; align-items: center; gap: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bmatch .side .nm .flag { font-size: 1.05rem; flex: none; }
.bmatch .side .nm .label { overflow: hidden; text-overflow: ellipsis; }
.bmatch .side .g {
  font-weight: 800;
  color: var(--navy);
  min-width: 20px;
  text-align: center;
}
.bmatch .side.tbd .nm { color: var(--muted); font-style: italic; }
.bmatch .side.winner { background: rgba(22, 199, 154, 0.12); }
.bmatch .side.winner .nm { font-weight: 800; color: var(--navy); }
.bmatch .side.winner .g { color: var(--teal-dark); }
.bmatch .side.loser { opacity: 0.62; }
.bmatch .meta {
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  background: #fafcff;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px;
}

/* connector lines between bracket columns */
.bracket-col:not(:last-child) .bmatch::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 2px;
  background: var(--line);
}
.bracket.is-gold .bmatch { border-top: 3px solid var(--gold); }
.bracket.is-silver .bmatch { border-top: 3px solid var(--silver); }

.bracket-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------------ Misc */
.notice {
  background: #eef6ff;
  border: 1px solid #cfe3fb;
  color: #1c456f;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 46px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
  background: var(--navy);
  color: #aab8cc;
  padding: 30px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer a { color: #cfe7df; }
.site-footer .foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.foot-logo {
  width: 40px;
  height: 40px;
  padding: 5px;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
}

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .groups-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 22px; }
  .hero--split { grid-template-columns: 1fr; gap: 28px; }
  .hero__poster { order: -1; }
  .hero__poster img { max-height: 60vh; }
}

@media (max-width: 560px) {
  .site-header .container { min-height: 56px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__text { display: none; }
  .main-nav a { padding: 7px 11px; font-size: 0.92rem; }
  main { padding: 22px 0 40px; }
  .filters select { min-width: 100%; }
  .filters .field { width: 100%; }
}
