.club-family {
  --club-accent: #ff9200;
  --club-ink: #333;
  --club-soft: #f5f5f5;
  max-width: 100%;
}

.hero {
  background-position: left center;
}

.club-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: 1rem;
  background: #d8d8d8;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.club-fact {
  display: flex;
  min-height: 150px;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff;
  text-align: center;
}

.club-fact__value {
  color: var(--club-ink);
  font: 800 clamp(1.45rem, 3vw, 2.2rem)/1.15 Montserrat, Arial, sans-serif;
}

.club-fact__label {
  max-width: 100%;
  margin-top: .65rem;
  color: #6a6a6a;
  font-size: .9rem;
}

.club-fact__label a {
  display: inline-block;
}

.club-intro,
.club-meetings {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.club-intro__emblem {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: var(--club-soft);
  color: var(--club-ink);
  font-weight: 700;
  text-align: center;
}

.club-intro__emblem img:first-child {
  width: min(100%, 300px);
  margin-inline: auto;
}

.club-intro__emblem img:nth-child(2) {
  width: 100%;
}

.club-intro__emblem:hover {
  color: var(--club-accent);
}

.club-signature {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.club-signature img {
  width: 92px;
  border-radius: 50%;
}

.club-offer,
.club-badges,
.club-medals {
  scroll-margin-top: 110px;
}

.club-offer {
  padding: clamp(2rem, 5vw, 4rem);
  border-left: 5px solid var(--club-accent);
  background: var(--club-soft);
}

.club-action-card {
  width: min(100%, 780px);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-top: 5px solid var(--club-accent);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.club-action-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.club-action-button {
  display: inline-flex;
  min-height: 48px;
  padding: .8rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--club-accent);
  border-radius: .45rem;
  background: var(--club-accent);
  color: #222;
  font: 700 .9rem/1.25 Montserrat, Arial, sans-serif;
  text-align: center;
}

.club-action-button:hover {
  border-color: #222;
  background: #222;
  color: #fff;
}

.club-action-button:focus-visible,
.club-action-card a:focus-visible {
  outline: 3px solid #1d63b5;
  outline-offset: 3px;
}

.club-action-links__secondary {
  margin: 0;
}

.club-divider {
  height: 1px;
  margin: clamp(2rem, 5vw, 3rem) 0;
  border: 0;
  background: #d8d8d8;
}

.club-notice {
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--club-accent);
  background: var(--club-soft);
}

.club-notice > :first-child {
  margin-top: 0;
}

.club-notice > :last-child {
  margin-bottom: 0;
}

.club-instruction {
  max-width: 900px;
  margin-inline: auto;
}

.club-steps {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: club-step;
}

.club-step {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid #dedede;
  border-left: 5px solid var(--club-accent);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  counter-increment: club-step;
}

.club-step h3 {
  margin-top: 0;
}

.club-evidence-list,
.club-fees {
  display: grid;
  gap: .8rem;
}

.club-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.club-address {
  min-width: 0;
  padding: 1.25rem;
  border-radius: .65rem;
  background: var(--club-soft);
  color: var(--club-ink);
  font-style: normal;
  overflow-wrap: anywhere;
}

.club-download-groups {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.club-titled-grid > h2 {
  margin-bottom: 1.5rem;
}

.club-download-groups--verification {
  margin-bottom: 2rem;
}

.club-download-groups--verification .club-action-button {
  border-color: #d8d8d8;
  background: #ededed;
  color: #222;
}

.club-download-groups--verification .club-action-button:hover {
  border-color: var(--club-accent);
  background: var(--club-accent);
  color: #222;
}

.club-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.club-download-card {
  display: flex;
  min-width: 0;
  min-height: 190px;
  padding: 1.35rem;
  align-items: stretch;
  flex-direction: column;
  border: 1px solid #dedede;
  border-top: 4px solid var(--club-accent);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .06);
}

.club-download-card h3 {
  margin: 0 0 1.25rem;
}

.club-download-card .club-action-button {
  width: 100%;
  margin-top: auto;
}

.club-file-format {
  margin-left: .45rem;
  font-size: .72rem;
  opacity: .8;
}

.club-map-group {
  min-width: 0;
}

.club-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.club-map-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dedede;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

.club-map-card h3 {
  min-height: 4.25rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  align-content: center;
}

.club-map-card__embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--club-soft);
}

.club-map-card__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.club-map-card > a {
  display: inline-flex;
  min-height: 48px;
  padding: .8rem 1.25rem;
  align-items: center;
  font-weight: 700;
}

.club-family--maps .club-map-card > a {
  font-weight: 400;
}

.club-map-card > a:focus-visible,
.club-download-card a:focus-visible,
.club-address a:focus-visible {
  outline: 3px solid #1d63b5;
  outline-offset: -3px;
}

.club-member-tools {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(240px, 1fr) auto;
  gap: 1rem;
  margin: 2rem 0 1rem;
  padding: 1.25rem;
  align-items: end;
  border-radius: .75rem;
  background: var(--club-soft);
}

.club-member-filter {
  display: grid;
  min-width: 0;
  gap: .45rem;
}

.club-member-filter label {
  color: var(--club-ink);
  font-weight: 700;
}

.club-member-filter select,
.club-member-filter input {
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  border: 1px solid #aaa;
  border-radius: .35rem;
  background: #fff;
  color: var(--club-ink);
  font: inherit;
}

.club-member-filter select:focus-visible,
.club-member-filter input:focus-visible,
.club-member-group summary:focus-visible {
  outline: 3px solid #1d63b5;
  outline-offset: 3px;
}

.club-member-result {
  min-height: 1.5em;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.club-member-groups {
  display: grid;
  gap: .85rem;
}

.club-member-group {
  min-width: 0;
  overflow: clip;
  border: 1px solid #d1d1d1;
  border-radius: .65rem;
  background: #fff;
}

.club-member-group summary {
  padding: 1rem 1.25rem;
  background: var(--club-soft);
  color: var(--club-ink);
  cursor: pointer;
  font: 700 1rem/1.35 Montserrat, Arial, sans-serif;
}

.club-member-group[open] summary {
  border-bottom: 3px solid var(--club-accent);
}

.club-member-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.club-member-table th,
.club-member-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #e1e1e1;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.club-member-table thead th {
  background: #333;
  color: #fff;
  font-size: .85rem;
}

.club-member-table thead th:nth-child(1) {
  width: 11%;
}

.club-member-table thead th:nth-child(2) {
  width: 22%;
}

.club-member-table thead th:nth-child(3) {
  width: 33%;
}

.club-member-table thead th:nth-child(4) {
  width: 11%;
}

.club-member-table thead th:nth-child(5) {
  width: 23%;
}

.club-member-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.club-member-table tbody tr:last-child > * {
  border-bottom: 0;
}

.club-member-id {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: .25rem;
  background: #ffe1b8;
  color: #222;
  font-weight: 800;
  white-space: nowrap;
}

.club-member-country {
  white-space: nowrap;
}

.club-member-start-label {
  display: none;
}

html[lang="pl"] .club-member-i18n--sk,
html[lang="sk"] .club-member-i18n--pl,
.club-member-group[hidden],
.club-member-table tr[hidden] {
  display: none;
}

.club-data-accordions {
  display: grid;
  gap: .85rem;
  margin-top: 2rem;
}

.club-data-accordion {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d1d1d1;
  border-radius: .65rem;
  background: #fff;
}

.club-data-accordion summary {
  padding: 1rem 1.25rem;
  background: var(--club-soft);
  color: var(--club-ink);
  cursor: pointer;
  font: 700 1rem/1.4 Montserrat, Arial, sans-serif;
  overflow-wrap: anywhere;
}

.club-data-accordion summary:focus-visible {
  outline: 3px solid #1d63b5;
  outline-offset: -3px;
}

.club-data-accordion[open] summary {
  border-bottom: 3px solid var(--club-accent);
}

.club-data-accordion__content {
  min-width: 0;
  padding: 1rem 1.25rem 1.25rem;
}

.club-data-program-link {
  margin: 0 0 1rem;
  font-weight: 400;
}

.club-data-pending {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--club-accent);
  background: var(--club-soft);
  color: var(--club-ink);
}

.club-data-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(255, 146, 0, .65) transparent;
  scrollbar-width: thin;
}

.club-data-table-wrap table {
  width: 100%;
  min-width: 1050px;
  margin: 0;
  border-collapse: collapse;
  color: var(--club-ink);
}

.club-data-table-wrap th,
.club-data-table-wrap td {
  border: 1px solid #ddd;
}

.club-data-table-wrap a {
  overflow-wrap: anywhere;
}

.club-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: .25rem;
}

.club-badge-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-rows: minmax(180px, 1fr) minmax(4.75rem, auto);
  border: 1px solid #dedede;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .07);
  color: var(--club-ink);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.club-badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .12);
  color: var(--club-accent);
}

.club-badge-card img {
  width: 100%;
  height: 210px;
  padding: 1rem;
  object-fit: contain;
}

.club-badge-card span {
  display: flex;
  min-height: 4.75rem;
  padding: .85rem 1rem;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e6e6e6;
  font: 700 .9rem/1.35 Montserrat, Arial, sans-serif;
}

.club-medals__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.club-season-checklist {
  display: grid;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.club-season-checklist li {
  position: relative;
  padding-left: 1.65rem;
}

.club-season-checklist li::before {
  position: absolute;
  top: .28em;
  left: 0;
  width: .9rem;
  height: .9rem;
  border-radius: 2px;
  background: #8a8a8a;
  content: "";
}

.club-season-checklist li::after {
  position: absolute;
  top: .43em;
  left: .32rem;
  width: .22rem;
  height: .43rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}

.club-season-checklist__item--spring::before { background: #419b57; }
.club-season-checklist__item--summer::before { background: #e58926; }
.club-season-checklist__item--autumn::before { background: #9b663c; }

.club-medal-card {
  display: grid;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  border: 1px solid #dedede;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.club-medal-card > img {
  width: 100%;
  height: clamp(260px, 35vw, 390px);
  background: var(--club-soft);
  object-fit: contain;
}

.club-medal-card__content {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.club-medal-card__content h3 {
  margin-top: 0;
}

.club-meetings {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr);
}

.club-meetings > img {
  width: 100%;
  min-height: 360px;
  border-radius: 1rem;
  object-fit: cover;
}

.club-legal {
  overflow-wrap: anywhere;
}

.club-legal__intro,
.club-legal__document {
  width: min(100%, 940px);
  margin-inline: auto;
}

.club-legal__meta {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--club-accent);
  background: var(--club-soft);
}

.club-legal__toc {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #dedede;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .06);
}

.club-legal__toc h3 {
  margin-top: 0;
}

.club-legal__toc ol {
  columns: 2 260px;
  gap: 2rem;
  margin-bottom: 0;
  padding-left: 1.4rem;
}

.club-legal__toc li {
  margin-bottom: .65rem;
  break-inside: avoid;
}

.club-legal__toc a:focus-visible,
.club-legal__document a:focus-visible {
  outline: 3px solid #1d63b5;
  outline-offset: 3px;
}

.club-legal__section {
  scroll-margin-top: 110px;
}

.club-legal__section + .club-legal__section {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid #dedede;
}

.club-legal__section > :last-child {
  margin-bottom: 0;
}

.club-legal__notice {
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--club-accent);
  background: var(--club-soft);
}

.club-legal__table {
  max-width: 100%;
  overflow-x: auto;
}

.club-legal__table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.club-legal__table th,
.club-legal__table td {
  padding: .75rem;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}

.club-legal__table th {
  background: var(--club-soft);
}

@media (max-width: 900px) {
  .club-facts {
    grid-template-columns: 1fr;
  }

  .club-fact {
    min-height: 115px;
  }

  .club-intro,
  .club-meetings {
    grid-template-columns: 1fr;
  }

  .club-intro__emblem {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .club-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .club-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .club-member-tools {
    grid-template-columns: 1fr 1fr;
  }

  .club-member-tools .club-action-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .hero {
    background-position: left center;
  }

  .club-legal {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .club-legal__intro,
  .club-legal__document,
  .club-legal__section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .club-legal__toc ol {
    columns: 1;
  }

  .club-legal__section p,
  .club-legal__section li {
    max-width: 100%;
  }

  .club-offer,
  .club-badges,
  .club-medals,
  .club-legal__section {
    scroll-margin-top: 135px;
  }

  .club-signature {
    align-items: flex-start;
  }

  .club-action-card {
    padding: 1.4rem;
  }

  .club-action-links {
    align-items: stretch;
    flex-direction: column;
  }

  .club-action-button {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .club-address-grid,
  .club-download-grid,
  .club-map-grid {
    grid-template-columns: 1fr;
  }

  .club-download-card {
    min-height: 0;
  }

  .club-map-card h3 {
    min-height: 0;
  }

  .club-member-tools {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .club-member-tools .club-action-button {
    grid-column: auto;
  }

  .club-member-group summary {
    padding: .9rem 1rem;
  }

  .club-member-table,
  .club-member-table tbody {
    display: block;
  }

  .club-member-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .club-member-table tbody {
    display: grid;
    gap: .65rem;
    padding: .75rem;
  }

  .club-member-table tbody tr {
    display: grid;
    min-width: 0;
    padding: .85rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .4rem .65rem;
    border: 1px solid #dedede;
    border-radius: .5rem;
    background: #fff;
  }

  .club-member-table th,
  .club-member-table td {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .club-member-table tbody th {
    grid-column: 1;
    grid-row: 1;
  }

  .club-member-name {
    align-self: center;
    grid-column: 2 / -1;
    grid-row: 1;
    font-weight: 700;
  }

  .club-member-city {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .club-member-country {
    grid-column: 3;
    grid-row: 2;
  }

  .club-member-country::before {
    margin-right: .45rem;
    content: "·";
  }

  .club-member-start {
    grid-column: 1 / -1;
    grid-row: 3;
    color: #555;
    font-size: .9rem;
  }

  .club-member-start:empty {
    display: none;
  }

  .club-member-start-label {
    display: inline;
    font-weight: 700;
  }

  .club-data-accordion summary {
    padding: .9rem 1rem;
  }

  .club-data-accordion__content {
    padding: .85rem;
  }

  .club-badge-grid {
    width: calc(100vw - 20px);
    margin-left: 0;
    padding: .3rem 10vw .8rem 0;
    grid-auto-columns: 86%;
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: rgba(255, 146, 0, .45) transparent;
    scrollbar-width: thin;
    touch-action: pan-x;
  }

  .club-badge-grid::-webkit-scrollbar {
    height: 5px;
  }

  .club-badge-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 146, 0, .45);
  }

  .club-badge-card {
    grid-template-rows: minmax(220px, 1fr) minmax(4.75rem, auto);
    scroll-snap-align: start;
  }

  .club-badge-card img {
    height: 250px;
  }

  .club-medals__grid {
    grid-template-columns: 1fr;
  }

  .club-meetings > img {
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .club-badge-grid {
    scroll-behavior: auto;
  }

  .club-badge-card {
    transition: none;
  }
}
