/* Club catalog: real club marks, steady spacing and clear search controls. */
.clubs .best-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin: 28px 0 0;
}
.clubs .best-stats div { min-width: 0; }
.clubs .best-stats dd { white-space: normal; font-size: clamp(27px,3vw,42px); }
.clubs .best-stats dt { max-width: 22ch; line-height: 1.4; }
.clubs .best-cta { align-items: center; gap: 10px; margin-top: 20px; }
.clubs .finder { margin-top: 28px; gap: 13px; }
.clubs .finder input {
  width: min(100%,560px);
  max-width: none;
  min-height: 52px;
  border-radius: 8px;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}
.clubs .finder input::placeholder { color: var(--mute); opacity: 1; }
.clubs .finder input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.clubs .chips { gap: 8px; }
.clubs .chip {
  min-height: 39px;
  padding: 9px 13px;
  border-radius: 6px;
  border-color: var(--line);
  background: transparent;
  color: var(--text-2);
  line-height: 1.2;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.clubs .chip b { color: var(--gold-lo); }
.clubs .chip:hover { border-color: var(--gold); color: var(--text); }
.clubs .chip:active { transform: translateY(1px); }
.clubs .chip:focus-visible,
.clubs .best-cta a:focus-visible,
.clubs .club-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.clubs .chip.is-on { border-color: #0b1021; background: #0b1021; color: #f5f1e8; }
.clubs .chip.is-on b { color: #e9c875; }

:root[data-theme="dark"] .clubs .chip { color: var(--text-2); }
:root[data-theme="dark"] .clubs .chip b { color: var(--gold-hi); }
:root[data-theme="dark"] .clubs .chip.is-on { border-color: #e9c875; background: #e9c875; color: #0b1021; }
:root[data-theme="dark"] .clubs .chip.is-on b { color: #0b1021; }

.clubs .club-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  overflow: visible;
}
.clubs .club {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px -22px rgba(11,16,33,.48);
  --depth-x: 0deg; --depth-y: 0deg; --light-x: 50%; --light-y: 40%;
}
/* redesign.css гасит transform у .reveal через !important — наклон и быстрый отклик перебивают его выше по специфичности;
   без задержки --d (она нужна только появлению) наведение не «запаздывает» */
html.js .clubs .club.reveal.in {
  transform: perspective(1200px) rotateX(clamp(-3deg,var(--depth-x),3deg)) rotateY(clamp(-3deg,var(--depth-y),3deg)) !important;
  transition: opacity .36s ease var(--d,0ms), border-color .28s ease, box-shadow .28s ease, transform .22s cubic-bezier(.2,.7,.2,1) !important;
}
/* наведение: тень, рамка, лёгкий наклон за курсором (club-hover.js) и блик под курсором */
@media (hover: hover) and (pointer: fine) {
  .clubs .club:hover,
  .clubs .club:focus-within {
    border-color: var(--line-strong);
    box-shadow: 0 16px 30px -26px rgba(11,16,33,.62);
    background-image: radial-gradient(ellipse at var(--light-x) var(--light-y), rgba(233,200,117,.08), transparent 58%);
    will-change: transform;
  }
}
/* фоновый логотип: в покое заметнее прежнего, при наведении чуть выпрямляется и темнеет */
.clubs .club-mark { opacity: .06; transition: opacity .5s, transform .8s cubic-bezier(.2,.7,.2,1); }
.clubs .club:hover .club-mark { opacity: .09; transform: rotate(-3deg) scale(1.04); }
:root[data-theme="dark"] .clubs .club:hover .club-mark { opacity: .2; transform: rotate(-3deg) scale(1.04); }
.clubs .club-cover {
  flex: none;
  width: calc(100% + 32px);
  aspect-ratio: 2.2 / 1;
  margin: -16px -16px 15px;
  border-bottom: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
  background: var(--bg2);
  overflow: hidden;
}
.clubs .club-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.clubs .club:hover .club-cover img { transform: scale(1.04); }
.clubs .club-body {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  min-width: 0;
}
.clubs .club-info { min-width: 0; }
.clubs .club-city {
  margin: 0 0 5px;
  color: var(--gold-lo);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .12em;
}
:root[data-theme="dark"] .clubs .club-city { color: var(--gold-hi); }
.clubs .club h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(15px,1.2vw,18px);
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.clubs .club-blurb {
  grid-column: 1 / -1;
  display: -webkit-box;
  min-width: 0;
  margin: 13px 0 10px;
  overflow: hidden;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.clubs .club-meta {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 12px;
  line-height: 1.4;
  list-style: none;
}
.clubs .club-meta li { min-width: 0; overflow-wrap: anywhere; }
.clubs .club-meta a { color: var(--text-2); text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.clubs .club-meta a:hover { color: var(--gold-lo); }
:root[data-theme="dark"] .clubs .club-meta a:hover { color: var(--gold-hi); }
.clubs .club-more {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 38px;
  margin-top: 7px;
  padding: 8px 0 2px;
  color: var(--gold-lo);
  font-size: 13px;
}
:root[data-theme="dark"] .clubs .club-more { color: var(--gold-hi); }
.clubs .empty { margin-top: 24px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 8px; }

@media (max-width: 1020px) {
  .clubs .club-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .clubs .best-stats div { padding-inline: 15px; }
}

@media (max-width: 760px) {
  .clubs .best-stats { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 12px; }
  .clubs .best-stats div { padding: 14px 10px; }
  .clubs .best-stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .clubs .best-stats div:nth-child(n+3) { border-top: 1px solid rgba(233,200,117,.2); }
  .clubs .best-stats dd { font-size: clamp(25px,7vw,34px); }
  .clubs .best-stats dt { font-size: 11px; }
  .clubs .best-cta { flex-wrap: wrap; }
  .clubs .finder { margin-top: 22px; }
  .clubs .chips { flex-wrap: nowrap; margin: 0 -20px; padding: 2px 20px 7px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .clubs .chips::-webkit-scrollbar { display: none; }
  .clubs .chip { flex: none; }
  .clubs .club-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    margin-inline: 0;
  }
  .clubs .club { padding: 14px; border-radius: 9px; }
  .clubs .club-cover { width: calc(100% + 28px); margin: -14px -14px 13px; }
  .clubs .club-blurb { margin-top: 10px; font-size: 12.5px; -webkit-line-clamp: 2; }
  .clubs .club-meta { margin-top: 9px; padding-top: 8px; font-size: 11.5px; }
  .clubs .club-more { min-height: 34px; margin-top: 4px; }
}

@media (max-width: 390px) {
  .clubs .best-cta .btn { min-height: 44px; padding-inline: 14px; font-size: 13px; }
  .clubs .club { padding: 13px; }
  .clubs .club-cover { width: calc(100% + 26px); margin: -13px -13px 12px; }
  .clubs .club h3 { font-size: 15px; }
}

@media (max-width: 760px) {
  html.js .clubs .club.reveal.in { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .clubs .club.reveal.in { transform: none !important; transition: none !important; }
  .clubs .chip { transition: none; }
}
