/* Вариант B. Префикс courts-alt-, на /court/ и /poisk-kortov/ не действует. */
.courts-alt-page {
  --bg: #F4F5F6;
  --card: #FFFFFF;
  --surface: #F0F0F0;
  --text: #1F1F1F;
  --sec: #6F6F6F;
  --muted: #A0A0A0;
  --border: rgba(31, 31, 31, .08);
  --border-mid: rgba(31, 31, 31, .14);
  --adark: #6B8E00;
  --alight: #E8F5A3;
  --cta: #DCEF7A;
  --cta-hover: #A8CC00;
  --warn-bg: #FFF8EE;
  --warn-border: #F0D58C;
  --warn-text: #B7791F;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.courts-alt-page button,
.courts-alt-page input,
.courts-alt-page select {
  font-family: inherit;
  color: var(--text);
}
/* Safari/iOS красит button/a в системный синий — держим палитру страницы. */
.courts-alt-page a {
  color: var(--sec);
}
.courts-alt-page a:hover {
  color: var(--text);
}

/* Шапка fixed 60px; общий --inner даёт ещё 76px + внутренние 24px — пустота под топбаром. */
body.v2-page .courts-alt-page.mainV2__page--inner {
  padding-top: 4px;
}
@media (min-width: 991px) {
  body.v2-page .courts-alt-page.mainV2__page--inner {
    padding-top: var(--mv2-topbar-h, 60px);
  }
}

.courts-alt-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 24px 24px;
}

.courts-alt-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}
.courts-alt-title-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.courts-alt-city-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sec);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.courts-alt-city-switch .ti {
  font-size: 11px;
  opacity: .75;
}
.courts-alt-city-switch:active { opacity: .7; }

.courts-alt-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Поиск в шапке рядом с «Корты». */
.courts-alt-page .courts-alt-nameq {
  position: relative;
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 280px;
  margin: 0 0 2px;
}
body.v2-page .courts-alt-page .courts-alt-nameq input.ratingSearch__input,
body.v2-page .courts-alt-page .courts-alt-nameq input.mainV2__search-input {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
  padding: 8px 36px 8px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}
.courts-alt-page .courts-alt-nameq input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.courts-alt-q-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sec);
  font-size: 16px;
  transform: translateY(-50%);
  cursor: pointer;
}
.courts-alt-q-clear[hidden] { display: none !important; }
.courts-alt-q-clear:active { background: var(--surface); }
.courts-alt-surf-tf {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: #FFF3D6;
  color: #8A5A00;
  font-weight: 700;
}
.courts-alt-phone-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sec);
}
.courts-alt-list-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 8px 0 12px;
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--border-mid);
}
.courts-alt-list-search .courts-alt-q-clear {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  flex: none;
}
.courts-alt-list-search .ti {
  color: var(--sec);
  font-size: 18px;
  flex: none;
}
.courts-alt-list-search .courts-alt-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 15px;
}

.courts-alt-games {
  display: block;
  font-size: 12px;
  color: var(--sec);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.courts-alt-games a {
  display: inline !important;
}
.courts-alt-games-n,
.courts-alt-games-addr {
  display: inline;
}

.courts-alt-trust { color: var(--sec) !important; font-size: 13px; font-weight: 600; text-decoration: none; }

.courts-alt-beta {
  display: inline-block;
  margin-left: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
  color: #6B8E00;
  background: #E8F5A3;
  border-radius: 999px;
  padding: 1px 4px;
  vertical-align: 3px;
}

#courts-alt-root > .courts-alt-search { position: relative; z-index: 30 !important; overflow: visible; }
/* Попап фильтров поверх сайдбара — иначе «Во сколько» обрезается по краю колонки. */
body.courts-alt-has-pop #courts-alt-root > .courts-alt-search {
  z-index: 600 !important;
}

.courts-alt-panel {
  display: flex;
  position: relative;
  overflow: visible;
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: 18px;
  margin-bottom: 16px;
}

.courts-alt-field-slot {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--border);
  z-index: 1;
}
.courts-alt-field-slot:last-child { border-right: 0; }
.courts-alt-field-slot:first-child { border-radius: 18px 0 0 18px; }
.courts-alt-field-slot:last-child { border-radius: 0 18px 18px 0; }
.courts-alt-field-slot.is-pop { z-index: 50; }
.courts-alt-field-slot:hover { background: #FAFAFA; }

.courts-alt-field {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 20px;
  padding-right: 12px;
  cursor: pointer;
  z-index: 1;
}
.courts-alt-field-slot.is-set .courts-alt-field {
  padding-right: 4px;
}
.courts-alt-field:has(.courts-alt-pop),
.courts-alt-field.is-pop {
  z-index: 50;
}
@media (min-width: 901px) {
  /* Попап якорим к панели фильтров — не уезжает под сайдбар и не обрезается. */
  .courts-alt-panel { position: relative; overflow: visible; }
  .courts-alt-field.is-pop,
  .courts-alt-field:has(.courts-alt-pop) {
    position: static;
    z-index: auto;
  }
  .courts-alt-field .courts-alt-pop {
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 8px);
    width: min(360px, 100%);
    max-width: 100%;
  }
  .courts-alt-pop--cal {
    width: min(392px, 100%) !important;
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
  }
}

.courts-alt-field-label {
  font-size: 12px;
  color: var(--sec);
  font-weight: 500;
  margin-bottom: 2px;
}

.courts-alt-field-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.courts-alt-field-value i {
  color: var(--muted);
  font-size: 16px;
}

.courts-alt-pop-bg { display: none; }

.courts-alt-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  max-width: min(340px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 28px rgba(31, 31, 31, .12);
  overflow: hidden;
  box-sizing: border-box;
}
.courts-alt-pop--cal {
  width: min(392px, calc(100vw - 24px));
  max-width: min(392px, calc(100vw - 24px));
}

.courts-alt-pop-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.courts-alt-pop-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.courts-alt-pop-done {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* Специфичнее .courts-alt-page button — иначе цвет текста = фон и «Готово» не видно. */
.courts-alt-page .courts-alt-pop-done-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--cta);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(31, 31, 31, .28);
}
.courts-alt-page .courts-alt-pop-done-btn:hover {
  background: var(--cta-hover);
}
.courts-alt-page .courts-alt-pop-clear-btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-mid);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.courts-alt-page .courts-alt-pop-clear-btn:hover {
  background: #FAFAFA;
}
.courts-alt-field-clear {
  flex-shrink: 0;
  align-self: center;
  width: 32px;
  height: 32px;
  margin: 0 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 31, 31, .08);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  position: relative;
}
.courts-alt-field-clear .ti { font-size: 15px; line-height: 1; pointer-events: none; }
.courts-alt-field-clear:hover { background: rgba(31, 31, 31, .14); }

.courts-alt-pop h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.courts-alt-city-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.courts-alt-city-total {
  color: var(--sec);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.courts-alt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.courts-alt-pop-scroll > .courts-alt-input,
.courts-alt-pop-block > .courts-alt-input,
.courts-alt-pop-scroll > .courts-alt-hint {
  margin-top: 0;
}

.courts-alt-pill,
.courts-alt-chip,
.courts-alt-time,
.courts-alt-side button,
.courts-alt-fold,
.courts-alt-row-btn,
.courts-alt-sort {
  border: 0;
  cursor: pointer;
}

.courts-alt-pill {
  min-height: 44px;
  height: auto;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.courts-alt-pill.is-on,
.courts-alt-chip.is-on,
.courts-alt-time.is-on,
.courts-alt-dt.is-on,
.courts-alt-court.is-on {
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.courts-alt-pill.is-off {
  background: var(--surface);
  color: var(--muted);
  cursor: default;
}

.courts-alt-hint {
  color: var(--sec);
  font-size: 12px;
  font-weight: 400;
  margin-top: 10px;
}
.courts-alt-date-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Когда: сетка как в макете + «Другая дата» → календарь. */
.courts-alt-when-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.courts-alt-when-any {
  width: 100%;
  border-radius: 14px;
  min-height: 48px;
  background: var(--card);
  border: 1px solid var(--border-mid);
}
.courts-alt-when-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.courts-alt-when-grid .courts-alt-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  min-height: 48px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border-mid);
  padding: 8px 2px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
}
.courts-alt-when-dow,
.courts-alt-when-dm { display: block; }
.courts-alt-when-dow { font-weight: 700; }
/* Выбранная дата — белая с жирной чёрной рамкой; салатовый только у «Готово». */
.courts-alt-pop--when .courts-alt-when-any.is-on,
.courts-alt-pop--when .courts-alt-when-day.is-on {
  background: var(--card);
  border-color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text);
  font-weight: 700;
}
.courts-alt-other-date {
  position: relative;
  margin-top: 2px;
}
.courts-alt-other-date-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--sec);
  margin-bottom: 6px;
}
.courts-alt-other-date-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-mid);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.courts-alt-other-date-btn span {
  color: var(--text);
  font-weight: 600;
}
.courts-alt-other-date-btn span.is-ph {
  color: var(--muted);
  font-weight: 500;
}
.courts-alt-other-date-btn .ti {
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}
.courts-alt-other-date-btn.is-on {
  box-shadow: inset 0 0 0 1.5px var(--text);
}
/* Календарь над вариантами (Любая / сетка выходных). */
.courts-alt-other-date-cal {
  order: -1;
  position: relative;
  z-index: 8;
  margin: 0 0 4px;
}
.courts-alt-other-date-cal .courts-alt-cal {
  margin-top: 0;
  background: var(--card);
  box-shadow: 0 10px 32px rgba(31, 31, 31, .14);
}

/* Встроенный календарь: период как в Google Calendar. */
.courts-alt-cal {
  margin-top: 4px;
  padding: 10px 8px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.courts-alt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 4px;
}
.courts-alt-cal-nav b {
  font-size: 15px;
  font-weight: 700;
}
.courts-alt-cal-navbtn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.courts-alt-cal-navbtn:hover { background: #E8E8E8; }
.courts-alt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px 0;
}
.courts-alt-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0 6px;
}
.courts-alt-cal-cell {
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
}
button.courts-alt-cal-cell:hover { background: rgba(31, 31, 31, .04); }
.courts-alt-cal-cell.is-empty { visibility: hidden; pointer-events: none; }
.courts-alt-cal-cell.is-off {
  color: var(--muted);
  cursor: default;
  opacity: .55;
}
.courts-alt-cal-cell.is-today:not(.is-on):not(.is-mid)::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border-mid);
  pointer-events: none;
}
/* Полоса периода */
.courts-alt-cal-cell.is-mid {
  background: #E8F5A3;
  color: var(--text);
}
.courts-alt-cal-cell.is-start:not(.is-end) {
  background: linear-gradient(90deg, transparent 0 12%, #E8F5A3 12% 100%);
}
.courts-alt-cal-cell.is-end:not(.is-start) {
  background: linear-gradient(90deg, #E8F5A3 0 88%, transparent 88% 100%);
}
.courts-alt-cal-cell.is-edge {
  color: var(--text);
  font-weight: 700;
  z-index: 1;
}
.courts-alt-cal-cell.is-edge::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--cta);
  box-shadow: inset 0 0 0 1.5px rgba(31, 31, 31, .35);
  z-index: -1;
}
.courts-alt-cal-cell.is-start.is-end {
  background: transparent;
}
.courts-alt-cal .courts-alt-hint { margin-top: 10px; margin-bottom: 0; padding: 0 4px; }
.courts-alt-city-line {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  text-align: left;
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.courts-alt-city-line b { font-weight: 700; }
.courts-alt-where-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.courts-alt-where-head .courts-alt-city-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  white-space: nowrap;
}
.courts-alt-where-head .courts-alt-city-line b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.courts-alt-city-change {
  flex: 0 0 auto;
  color: var(--sec);
  font-weight: 500;
}
.courts-alt-city-search {
  width: 100%;
  align-self: stretch;
}
.courts-alt-pop .courts-alt-city-search .courts-alt-input {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}
.courts-alt-win {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.courts-alt-pills--win {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.courts-alt-pills--win .courts-alt-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 8px;
  text-align: center;
  font-size: 13px;
}
.courts-alt-pop--win .courts-alt-pop-scroll {
  padding: 12px 14px 8px;
  gap: 8px;
}
.courts-alt-rp-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
  min-width: 0;
  max-width: 100%;
}
.courts-alt-rp-time label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: var(--sec);
  font-weight: 600;
}
.courts-alt-rp-time .courts-alt-input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
}

.courts-alt-sub,
.courts-alt-fresh,
.courts-alt-meta {
  color: var(--sec);
  font-size: 13px;
  font-weight: 400;
}

.courts-alt-hint {
  margin-top: 10px;
}

.courts-alt-page .courts-alt-input {
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-mid) !important;
  background: var(--surface) !important;
  padding: 0 10px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.courts-alt-page .courts-alt-rp-time .courts-alt-input {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0 !important;
}

.courts-alt-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.courts-alt-feed {
  min-width: 0;
  max-width: 100%;
}

.courts-alt-side {
  position: sticky;
  top: 12px;
  align-self: start;
  z-index: 0;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 8px 8px 12px;
}

.courts-alt-side h3 {
  margin: 8px 8px 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sec);
}

.courts-alt-side button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-radius: 10px;
  padding: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}

.courts-alt-count {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.courts-alt-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-mid);
  flex: none;
}

.courts-alt-side button.is-on {
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.courts-alt-side button.is-on .courts-alt-box {
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.courts-alt-side button.is-on .courts-alt-box::after {
  content: '';
  display: block;
  width: 8px;
  height: 4px;
  margin: 3px 0 0 3px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}

.courts-alt-radio { border-radius: 50%; }

.courts-alt-side button.is-on .courts-alt-radio::after {
  width: 8px;
  height: 8px;
  margin: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  transform: none;
}

.courts-alt-city-label { font-size: 12px; font-weight: 600; color: var(--sec); align-self: center; }

.courts-alt-strip {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 25;
  overflow: visible;
}
.courts-alt-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.courts-alt-strip-row--extra {
  flex-wrap: wrap;
}
.courts-alt-chip-more {
  min-width: 36px;
  width: 36px;
  padding: 0;
  letter-spacing: 0.12em;
}
@media (min-width: 901px) {
  .courts-alt-strip-row > .courts-alt-map-btn {
    margin-left: auto;
  }
}
@media (min-width: 1100px) {
  .courts-alt-strip { display: flex; }
}
.courts-alt-pop-host .courts-alt-strip-menu {
  position: fixed;
  z-index: 640;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(31, 31, 31, 0.16);
}
.courts-alt-pop-host .courts-alt-strip-menu .courts-alt-chip {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.courts-alt-seg {
  display: inline-flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex: none;
}

.courts-alt-seg button {
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--sec);
}

.courts-alt-seg button.is-on {
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.courts-alt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: auto;
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-weight: 600;
  flex: none;
  line-height: 1.2;
}

.courts-alt-headrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.courts-alt-summary {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.courts-alt-head-actions {
  grid-column: 2;
  grid-row: 1;
}

.courts-alt-page select.courts-alt-sort {
  width: auto;
  min-width: 0;
  height: 44px;
  line-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F6F6F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat !important;
  padding: 0 32px 0 12px;
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}

.courts-alt-disclaimer {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  border: 1px solid #E8D0D0;
  background: #FFF8F8;
  color: #A65B5B;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.courts-alt-disclaimer .ti {
  flex-shrink: 0;
  margin: 0;
  font-size: 15px;
  color: #C97A7A;
}
@media (min-width: 901px) {
  .courts-alt-headrow {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .courts-alt-summary,
  .courts-alt-disclaimer {
    width: auto;
    flex: none;
  }
  .courts-alt-head-actions:empty { display: none; }
}
.courts-alt-hint-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: none;
  -webkit-tap-highlight-color: transparent;
}
.courts-alt-hint-i .ti {
  margin: 0;
  font-size: 16px;
  color: #C97A7A;
}
.courts-alt-hint-bg {
  position: fixed;
  inset: 0;
  z-index: 640;
  background: transparent;
}
.courts-alt-data-tip {
  position: fixed;
  z-index: 650;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-mid);
  box-shadow: 0 10px 28px rgba(31, 31, 31, 0.16);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.courts-alt-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.courts-alt-section {
  margin: 14px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.courts-alt-card {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
}
.courts-alt-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 1px 0 rgba(31, 31, 31, .04);
}
/* Вся карточка — ссылка. Клики сквозь контент на ссылку; hit-зоны ловят слоты/связь. */
.courts-alt-card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: transparent;
}
.courts-alt-card .courts-alt-media,
.courts-alt-card .courts-alt-media *,
.courts-alt-card .courts-alt-mid,
.courts-alt-card .courts-alt-mid * {
  pointer-events: none;
}
.courts-alt-card .courts-alt-media,
.courts-alt-card .courts-alt-mid {
  position: relative;
  z-index: 1;
}
.courts-alt-card-hit {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.courts-alt-card-hit * {
  pointer-events: auto !important;
}

.courts-alt-media {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
}

.courts-alt-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 148px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: var(--surface);
}
.courts-alt-photo--empty { min-height: 148px; }

.courts-alt-media-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  background: none;
  pointer-events: none;
}
.courts-alt-media-info {
  display: none;
  flex: 1;
  min-width: 0;
  padding: 2px 2px 0;
}
.courts-alt-media-info .courts-alt-name {
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-decoration: none;
}
.courts-alt-games--onphoto {
  margin-top: 3px;
  font-size: 11px;
  color: var(--sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.courts-alt-games--onphoto .courts-alt-trust {
  font-size: 11px;
}

.courts-alt-surf-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 3px rgba(31, 31, 31, .12);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.courts-alt-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 2px 0 0;
}

.courts-alt-desk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.courts-alt-desk-title {
  min-width: 0;
  flex: 1;
}
.courts-alt-desk-title .courts-alt-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 18px;
  line-height: 1.25;
}
.courts-alt-games--desk {
  margin-top: 4px;
  font-size: 13px;
  color: var(--sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.courts-alt-games--desk .courts-alt-trust {
  font-size: 13px;
  color: var(--text) !important;
  font-weight: 600;
}
.courts-alt-facts {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  margin-top: 4px;
}
.courts-alt-facts-rate {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.courts-alt-facts-rate .courts-alt-trust {
  font-size: 13px;
  font-weight: 600;
  color: var(--text) !important;
  text-decoration: none;
  white-space: nowrap;
}
.courts-alt-facts-rate .courts-alt-games-n {
  display: block;
  font-size: 12px;
  color: var(--sec);
  white-space: nowrap;
}
.courts-alt-facts-addr {
  flex: 1;
  min-width: 0;
  color: var(--sec);
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.courts-alt-main { min-width: 0; }
.courts-alt-meta--surf { display: none; }

.courts-alt-price--onphoto {
  display: none;
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: auto;
  width: max-content;
  max-width: calc(100% - 16px);
  text-align: left;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 3px rgba(31, 31, 31, .1);
}
.courts-alt-price--desk {
  flex: none;
  text-align: right;
  min-width: 5.5em;
  padding-top: 1px;
}
.courts-alt-price b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.courts-alt-price span { color: var(--sec); font-size: 12px; font-weight: 500; }
.courts-alt-price .courts-alt-price-na {
  display: block;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  background: none;
  max-width: 9em;
  white-space: normal;
}
.courts-alt-addr {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 0;
  color: var(--sec);
}

.courts-alt-name {
  background: none;
  border: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  color: var(--text);
  text-align: left;
}
.courts-alt-name:hover { text-decoration: underline; }

.courts-alt-meta { margin-top: 2px; }

.courts-alt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--adark);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--adark);
  border-radius: 999px;
  padding: 3px 8px;
}

.courts-alt-heart {
  position: relative;
  top: 0;
  right: 0;
  flex: none;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 4px rgba(31, 31, 31, .12);
  cursor: pointer;
  color: var(--sec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.courts-alt-heart.is-on {
  color: #C23B3B;
}

.courts-alt-chip-fav {
  width: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.courts-alt-chip-fav.is-on {
  color: #C23B3B;
}
.courts-alt-side-fav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.courts-alt-side-fav .ti { font-size: 18px; color: var(--sec); }
.courts-alt-side-fav.is-on {
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.courts-alt-side-fav.is-on .ti { color: #C23B3B; }

.courts-alt-side-modes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 0.5px solid var(--border);
}
.courts-alt-side .courts-alt-side-mode {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}
.courts-alt-side .courts-alt-side-mode:hover {
  background: var(--bg);
}
.courts-alt-side .courts-alt-side-mode.is-on {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text);
  font-weight: 700;
}
/* Пассивная тёплая обводка: «нет онлайн-расписания», не как выбранный фильтр. */
.courts-alt-side .courts-alt-side-mode--contacts:not(.is-on) {
  background: rgba(255, 248, 238, 0.55);
  box-shadow: inset 0 0 0 1px rgba(183, 121, 31, 0.38);
}
.courts-alt-side .courts-alt-side-mode--contacts:not(.is-on):hover {
  background: rgba(255, 248, 238, 0.9);
  box-shadow: inset 0 0 0 1px rgba(183, 121, 31, 0.55);
}
.courts-alt-side .courts-alt-side-mode--contacts.is-on {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.courts-alt-side-mode-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.courts-alt-side-mode-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.courts-alt-side-mode-count {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
}
.courts-alt-side-mode-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sec);
  line-height: 1.3;
}
.courts-alt-mob-contacts {
  display: none;
}
.courts-alt-contacts-search {
  margin: 0 0 14px;
}
.courts-alt-contacts-search .courts-alt-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

.courts-alt-body { min-width: 0; max-width: 100%; margin-top: auto; }
.courts-alt-footblock {
  margin-top: 2px;
}
.courts-alt-footrow {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  min-height: 36px;
}
.courts-alt-foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
  margin-left: auto;
  max-width: 70%;
}
.courts-alt-card-site {
  line-height: 1.2;
  text-align: right;
}
.courts-alt-card-site .courts-alt-site-link {
  font-size: 12px;
}
.courts-alt-footrow .courts-alt-contact-block {
  margin-left: 0;
  flex: none;
  max-width: 100%;
}
.courts-alt-contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 100%;
}
.courts-alt-contact-block .courts-alt-contacts {
  flex-wrap: nowrap;
}
.courts-alt-foot {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.courts-alt-foot.is-fresh-ok,
.courts-alt-fresh.is-fresh-ok {
  color: #8FBF8F;
}
.courts-alt-foot.is-fresh-old,
.courts-alt-fresh.is-fresh-old {
  color: #D4A0A0;
}

.courts-alt-card-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.courts-alt-card-day {
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-mid);
  background: var(--card);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.courts-alt-card-day.is-on {
  border-color: transparent;
  background: var(--text);
  color: #fff;
}
.courts-alt-card-day--more {
  color: var(--sec);
  background: var(--surface);
}

.courts-alt-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
}

.courts-alt-time {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.courts-alt-time--more {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border-mid);
  color: var(--sec);
  font-weight: 600;
}

.courts-alt-card--tn {
  box-shadow: inset 0 0 0 1.5px #C5D98A;
  background: #FBFFF0;
}
.courts-alt-card--tn .courts-alt-media {
  background: #F3F8E0;
}
.courts-alt-tn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--alight);
  color: var(--adark);
  font-size: 11px;
  font-weight: 700;
  flex: none;
  align-self: flex-start;
  white-space: nowrap;
}
.courts-alt-tn-corner { display: none; }
.courts-alt-tn-badge .ti { font-size: 14px; color: #2AABEE; }
.courts-alt-tn-wrap {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.courts-alt-map-tools {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 120px);
}
.courts-alt-map-tool {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(31, 31, 31, .16);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}
.courts-alt-map-tool.is-on {
  background: var(--alight);
  box-shadow: inset 0 0 0 1.5px var(--adark);
}
.courts-alt-map-tool--ghost {
  font-weight: 600;
  color: var(--sec);
}
.courts-alt-tn-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  min-width: 0;
}
.courts-alt-tn-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #229ED9;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  white-space: nowrap;
}
.courts-alt-tn-label .ti { font-size: 16px; color: #2AABEE; }
.courts-alt-tn-priority {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--sec);
  text-align: left;
  min-width: 0;
}
.courts-alt-tn-addr {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--sec);
}
.courts-alt-tn-line {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
}
.courts-alt-tn-line .courts-alt-tn {
  flex: 1;
  width: auto;
  min-width: 0;
  margin-top: 0;
}
.courts-alt-tn-main b,
.courts-alt-tn-main > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.courts-alt-tn {
  width: 100%;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: var(--surface);
  box-shadow: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}
.courts-alt-tn:hover { background: #E8E8E8; }
.courts-alt-tn.is-on {
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--text);
  font-weight: 700;
}
.courts-alt-tn.is-booked {
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}
.courts-alt-tn.is-booked:hover { background: var(--surface); }
.courts-alt-tn.is-booked b { text-decoration: line-through; }
.courts-alt-tn-main { min-width: 0; flex: 1; }
.courts-alt-tn-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--sec);
}
.courts-alt-tn-side .ti { font-size: 18px; color: var(--sec); }
.courts-alt-tn-side .ti-brand-telegram { color: #2AABEE; }
.courts-alt-tn-price {
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 600;
  white-space: nowrap;
}

.courts-alt-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.courts-alt-tn-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.courts-alt-tn-more {
  flex: none;
  width: 44px;
  min-width: 44px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--sec);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  align-self: stretch;
}
.courts-alt-tn-more:hover { background: #E8E8E8; }
.courts-alt-tn-more.is-on {
  background: var(--alight);
  color: var(--adark);
  letter-spacing: .12em;
}

.courts-alt-dt {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-mid);
  background: var(--card);
  padding: 0 10px;
  font-weight: 600;
  cursor: pointer;
}

.courts-alt-court.is-on {
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.courts-alt-dt.is-booked {
  background: var(--surface);
  color: var(--muted);
  text-decoration: line-through;
  cursor: default;
}
.courts-alt-tn b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.courts-alt-tn.is-on b { font-weight: 700; }
.courts-alt-tn-main > span {
  display: block;
  margin-top: 5px;
  color: var(--sec);
  font-size: 12px;
  font-weight: 400;
}

.courts-alt-practice { margin: 0 0 12px; }
.courts-alt-practice-card {
  margin: 8px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.courts-alt-mark {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3efe4;
  color: #6b5420;
  font-size: 12px;
  font-weight: 700;
}
.courts-alt-practice-name { font-size: 16px; font-weight: 700; }
.courts-alt-practice-photo {
  width: 100%;
  height: 160px;
  margin-top: 8px;
  object-fit: cover;
  border-radius: 12px;
}
.courts-alt-practice-photo--sheet {
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #f6f3ec;
}
.courts-alt-practice-meta,
.courts-alt-practice-note {
  margin-top: 6px;
  color: var(--sec);
  font-size: 13px;
}
.courts-alt-practice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.courts-alt-practice-links a { font-weight: 600; }

.courts-alt-fold {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.courts-alt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  padding: 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(31, 31, 31, .04);
}

.courts-alt-row b { display: block; font-size: 15px; }
.courts-alt-row-actions { display: flex; gap: 8px; flex: none; align-items: center; }
.courts-alt-contacts {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.courts-alt-mainch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  line-height: 1;
  white-space: nowrap;
}
.courts-alt-mainch:hover { background: #E8E8E8; }
.courts-alt-mainch:active { transform: scale(.98); }
.courts-alt-mainch .courts-alt-ch-face {
  width: 26px;
  height: 26px;
}
.courts-alt-mainch .courts-alt-ch-img {
  width: 26px;
  height: 26px;
}
.courts-alt-mainch-txt { padding-right: 2px; }
.courts-alt-contacts.is-cta .courts-alt-mainch {
  height: 44px;
  padding: 0 14px 0 8px;
  font-size: 15px;
  font-weight: 700;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.courts-alt-ch-face {
  width: 30px;
  height: 30px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.courts-alt-ch-img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(31, 31, 31, .18);
}
.courts-alt-ch-more {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--sec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.courts-alt-ch-more:hover { background: #E8E8E8; color: var(--text); }
.courts-alt-contacts.is-open .courts-alt-ch-more {
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.courts-alt-ch-more .ti { font-size: 18px; line-height: 1; }
/* Ряд иконок в потоке рядом с «Позвонить» / «⋯» — без absolute. */
.courts-alt-ch-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.courts-alt-ch-row[hidden],
.courts-alt-ch-row.is-off { display: none !important; }
.courts-alt-ch-iconbtn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.courts-alt-ch-iconbtn:hover { background: #E8E8E8; }
.courts-alt-ch-iconbtn:active { transform: scale(.96); }
.courts-alt-ch-iconbtn .courts-alt-ch-face {
  width: 26px;
  height: 26px;
}
.courts-alt-ch-iconbtn .courts-alt-ch-img {
  width: 26px;
  height: 26px;
}
.courts-alt-called {
  color: var(--sec);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
  max-width: 100%;
}
.courts-alt-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 700;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.courts-alt-row-btn {
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.courts-alt-row-btn--route {
  background: #F3EFD8;
  color: #6E632C;
}
.courts-alt-row-btn--route .ti { color: #C4B04A; }
.courts-alt-row-btn--fav {
  background: #F3EBEC;
  color: #7A5559;
}
.courts-alt-row-btn--fav .ti { color: #B57A80; }
.courts-alt-row-btn--fav.is-on {
  background: #EFE4E6;
  color: #7A4A50;
}
.courts-alt-row-btn--fav.is-on .ti { color: #C46B73; }

.courts-alt-addr-copy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sec);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.courts-alt-addr-copy span { min-width: 0; flex: 1; }
.courts-alt-addr-copy .ti {
  flex: none;
  margin-top: 1px;
  font-size: 16px;
  color: var(--muted);
}
.courts-alt-addr-copy:hover .ti { color: var(--text); }

.courts-alt-empty {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  color: var(--sec);
}

.courts-alt-summer {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--sec);
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.courts-alt-review {
  background: #fff3cd;
  color: #7a5b00;
}
.courts-alt-seo {
  margin: 10px 0 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--sec);
  font-size: 13px;
}
.courts-alt-seo summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: var(--sec);
  font-weight: 600;
  font-size: 14px;
  padding: 4px 0;
  outline: none;
  box-shadow: none;
}
.courts-alt-seo summary:focus { outline: none; box-shadow: none; }
.courts-alt-seo summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--text);
  border-radius: 8px;
  padding-left: 6px;
  padding-right: 6px;
}
.courts-alt-seo summary::-webkit-details-marker { display: none; }
.courts-alt-seo summary .ti {
  font-size: 16px;
  color: var(--sec);
  transition: transform .15s ease;
}
.courts-alt-seo[open] summary .ti { transform: rotate(180deg); }
.courts-alt-seo ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  columns: 3;
  column-gap: 24px;
}
.courts-alt-seo li {
  margin: 0 0 6px;
  line-height: 1.35;
  break-inside: avoid;
}
.courts-alt-seo a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.courts-alt-seo a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .courts-alt-seo ul { columns: 2; }
}
@media (max-width: 700px) {
  .courts-alt-seo ul { columns: 1; }
}
.courts-alt-ask { margin: 18px 0 0; font-size: 14px; }
.courts-alt-ask a { color: var(--sec); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.courts-alt-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
  color: #229ED9;
  font-weight: 600;
}
.courts-alt-tag .ti { font-size: 15px; color: #2AABEE; }

@media (max-width: 1099px) {
  .courts-alt-layout { grid-template-columns: minmax(0, 1fr); }
  .courts-alt-side { display: none; }
  .courts-alt-strip { display: flex; flex-direction: column; max-width: 100%; overflow: visible; }
  .courts-alt-chip {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .courts-alt-chip-fav {
    width: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 16px;
  }
  .courts-alt-strip-row { gap: 6px; }
}

@media (max-width: 900px) {
  .courts-alt-panel { flex-wrap: wrap; }
  .courts-alt-field-slot { flex: 1 1 46%; border-bottom: 1px solid var(--border); }
  .courts-alt-field-slot:nth-child(2n) { border-right: 0; }
  .courts-alt-field-slot:nth-child(n+3) { border-bottom: 0; }
  .courts-alt-field-slot:first-child { border-radius: 18px 0 0 0; }
  .courts-alt-field-slot:nth-child(2) { border-radius: 0 18px 0 0; }
  .courts-alt-field-slot:nth-child(3) { border-radius: 0 0 0 18px; }
  .courts-alt-field-slot:last-child { border-radius: 0 0 18px 0; }
  .courts-alt-field-value { font-size: 16px; }
  body.courts-alt-has-pop .courts-alt-fab {
    display: none !important;
  }
  .courts-alt-pop-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 620;
    background: rgba(31, 31, 31, .4);
  }
  .courts-alt-field .courts-alt-pop,
  .courts-alt-field:nth-child(n+3) .courts-alt-pop,
  .courts-alt-pop--cal {
    position: fixed;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
    top: auto;
    width: auto !important;
    max-width: none !important;
    max-height: min(85vh, 640px);
    border-radius: 22px 22px 0 0;
    z-index: 630;
  }
  .courts-alt-field:has(.courts-alt-pop),
  .courts-alt-field.is-pop {
    position: relative;
    z-index: 640;
  }
  body.courts-alt-has-pop .courts-alt-field-slot:not(.is-pop) {
    pointer-events: none;
  }
  body.courts-alt-has-pop .courts-alt-field-slot.is-pop .courts-alt-field-clear {
    pointer-events: auto;
  }
  body.courts-alt-lock { overflow: hidden; }
  .courts-alt-when-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
  }
  .courts-alt-other-date-cal {
    grid-column: 1 / -1;
    order: 0;
  }
  .courts-alt-when-any {
    width: auto;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    grid-column: 1;
    order: 1;
  }
  .courts-alt-other-date {
    grid-column: 2;
    order: 1;
    margin: 0;
    min-width: 0;
  }
  .courts-alt-other-date-label { display: none; }
  .courts-alt-other-date-btn {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
  }
  .courts-alt-when-grid {
    grid-column: 1 / -1;
    order: 2;
  }
}

@media (max-width: 700px) {
  .courts-alt-inner { padding: 14px; }
  .courts-alt-title { font-size: 24px; }
  .courts-alt-summary { font-size: 18px; }
  .courts-alt-headrow {
    align-items: center;
  }
  .courts-alt-head-actions {
    width: auto;
    margin: 0;
    justify-content: flex-end;
    align-items: center;
    flex: none;
  }
  .courts-alt-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 12px;
    overflow: hidden;
  }
  .courts-alt-media {
    flex: none;
    width: 100%;
    height: 132px;
    align-self: stretch;
    border-radius: 18px 18px 0 0;
  }
  .courts-alt-photo {
    width: 100%;
    height: 132px;
    min-height: 132px;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .courts-alt-photo--empty { min-height: 132px; aspect-ratio: auto; }
  .courts-alt-media-top {
    justify-content: flex-end;
    padding: 8px;
    background: linear-gradient(180deg, rgba(20, 20, 20, .28) 0%, transparent 70%);
  }
  .courts-alt-media-info { display: none; }
  .courts-alt-surf-pill { display: block; }
  .courts-alt-desk-head { display: flex; }
  .courts-alt-desk-title .courts-alt-name {
    font-size: 16px;
    -webkit-line-clamp: 2;
    text-decoration: none;
  }
  .courts-alt-facts { gap: 8px; margin-top: 2px; }
  .courts-alt-facts--desk .courts-alt-facts-addr {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .courts-alt-price--onphoto { display: none; }
  .courts-alt-price--desk {
    min-width: 0;
    padding-top: 0;
  }
  .courts-alt-price--desk b { font-size: 15px; }
  .courts-alt-tn-corner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 2px;
  }
  .courts-alt-tn-corner .courts-alt-meta--surf {
    display: block;
    flex: 1;
    min-width: 0;
    margin-top: 0;
  }
  .courts-alt-tn-corner .courts-alt-tn-badge {
    margin-left: auto;
    flex: none;
  }
  /* Тот же бейдж уже в строке покрытия. В шапке он для широкого экрана. */
  .courts-alt-desk-head > .courts-alt-tn-badge { display: none; }
  .courts-alt-meta--surf { display: block; }
  .courts-alt-addr { -webkit-line-clamp: 2; }
  .courts-alt-heart {
    width: 28px;
    height: 28px;
  }
  .courts-alt-heart .ti { font-size: 15px; }
  .courts-alt-mid {
    padding: 10px 12px 0;
    gap: 8px;
  }
  .courts-alt-body { margin-top: 0; }
  .courts-alt-card-days { gap: 6px; }
  .courts-alt-card-day { height: 34px; padding: 0 10px; font-size: 13px; }
  .courts-alt-footrow {
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 0;
  }
  .courts-alt-foot-right {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    align-items: stretch;
  }
  .courts-alt-footrow .courts-alt-contact-block {
    margin-left: 0;
    width: 100%;
    align-items: stretch;
  }
  .courts-alt-foot { font-size: 10px; width: auto; flex: 1; }
  .courts-alt-times { justify-content: flex-start; flex-wrap: wrap; overflow-x: visible; }
  .courts-alt-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .courts-alt-row-actions { width: 100%; }
  .courts-alt-contact-block { align-items: stretch; }
  .courts-alt-contact-block .courts-alt-contacts,
  .courts-alt-contacts {
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .courts-alt-called { text-align: left; }
  .courts-alt-ch-more { display: none; }
  .courts-alt-ch-row,
  .courts-alt-ch-row.is-off {
    display: inline-flex !important;
  }
  .courts-alt-mainch {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    font-size: 15px;
    justify-content: center;
  }
  .courts-alt-mainch .courts-alt-ch-face,
  .courts-alt-mainch .courts-alt-ch-img {
    width: 28px;
    height: 28px;
  }
  .courts-alt-ch-more,
  .courts-alt-ch-iconbtn {
    width: 44px;
    height: 44px;
  }
  .courts-alt-ch-iconbtn .courts-alt-ch-face,
  .courts-alt-ch-iconbtn .courts-alt-ch-img {
    width: 28px;
    height: 28px;
  }
  .courts-alt-mid .courts-alt-contacts { margin-top: 4px; }
  .courts-alt-titlebar {
    align-items: flex-end;
    gap: 8px;
  }
  .courts-alt-city-switch { font-size: 11px; }
  .courts-alt-title {
    font-size: 22px;
  }
  .courts-alt-beta {
    font-size: 7px;
    padding: 1px 3px;
    vertical-align: 2px;
  }
  body.v2-page .courts-alt-page .courts-alt-nameq {
    flex: 1 1 148px;
    max-width: 196px;
    min-width: 136px;
  }
  body.v2-page .courts-alt-page .courts-alt-nameq input.ratingSearch__input,
  body.v2-page .courts-alt-page .courts-alt-nameq input.mainV2__search-input {
    padding: 8px 36px 8px 12px !important;
    font-size: 16px !important;
    min-height: 38px !important;
    height: 38px !important;
  }
  .courts-alt-list-search .courts-alt-input,
  .courts-alt-page .courts-alt-input {
    font-size: 16px !important;
  }
  .courts-alt-strip { overflow-x: visible; }
  .courts-alt-strip-row { flex-wrap: wrap; overflow-x: visible; }
}

.courts-alt-sheet-host { background: transparent; }

/* Попап фильтров на body — не клипится полем и не наезжает на сетку. */
.courts-alt-pop-host { background: transparent; }
.courts-alt-pop-host .courts-alt-pop-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 620;
  background: transparent;
}
.courts-alt-pop-host .courts-alt-pop {
  z-index: 630;
  /* left/top/width — placeFilterPop() на десктопе */
}
@media (max-width: 900px) {
  .courts-alt-pop-host .courts-alt-pop-bg {
    background: rgba(31, 31, 31, .4);
  }
  .courts-alt-pop-host .courts-alt-pop,
  .courts-alt-pop-host .courts-alt-pop--cal {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: min(85vh, 640px);
    border-radius: 22px 22px 0 0;
    z-index: 630;
  }
  /* Город: лист на всю видимую высоту от верха, чтобы поиск не уезжал вниз, когда список короче. */
  .courts-alt-pop-host .courts-alt-pop.courts-alt-pop--city {
    top: var(--tn-vv-top, 56px) !important;
    bottom: auto !important;
    height: var(--tn-vv-h, 70dvh) !important;
    max-height: var(--tn-vv-h, 70dvh) !important;
    border-radius: 0 0 18px 18px;
  }
  .courts-alt-pop--city .courts-alt-city-search .courts-alt-input {
    font-size: 16px !important;
  }
}

.courts-alt-sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 31, .4);
  z-index: 600;
}

.courts-alt-sheet {
  position: fixed;
  z-index: 601;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 32px));
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--card);
  color: var(--text);
  border-radius: 22px;
  padding: 18px 18px 20px;
}

.courts-alt-sheet h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.courts-alt-sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.courts-alt-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  flex: none;
}

.courts-alt-sheet-row,
.courts-alt-sheet-block {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.courts-alt-sheet-block { display: block; }
.courts-alt-sheet-block > span,
.courts-alt-sheet-row > span { color: var(--sec); }

.courts-alt-court {
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.courts-alt-court span span {
  display: block;
  color: var(--sec);
  font-size: 12px;
  font-weight: 400;
}

.courts-alt-court.is-on span span { color: var(--sec); }

.courts-alt-lock {
  margin: 8px 0;
  color: var(--sec);
  font-size: 14px;
  font-weight: 600;
}

.courts-alt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 12px;
  border-radius: 14px;
  background: var(--cta);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.courts-alt-cta:hover { background: var(--cta-hover); }

.courts-alt-sheet-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.courts-alt-sheet-actions .courts-alt-contact-block {
  width: 100%;
  align-items: stretch;
}
.courts-alt-sheet-actions .courts-alt-contacts {
  width: 100%;
  flex-wrap: nowrap;
}
.courts-alt-sheet-actions .courts-alt-called {
  text-align: left;
}
.courts-alt-sheet-actions .courts-alt-mainch {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 16px 0 10px;
  border-radius: 14px;
  justify-content: center;
  background: var(--cta);
  box-shadow: inset 0 0 0 1.5px rgba(31, 31, 31, .28);
  font-size: 16px;
  font-weight: 700;
}
.courts-alt-sheet-actions .courts-alt-mainch:hover { background: var(--cta-hover); }
.courts-alt-sheet-actions .courts-alt-mainch .courts-alt-ch-face,
.courts-alt-sheet-actions .courts-alt-mainch .courts-alt-ch-img {
  width: 28px;
  height: 28px;
}
.courts-alt-sheet-actions .courts-alt-ch-more,
.courts-alt-sheet-actions .courts-alt-ch-iconbtn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
}
.courts-alt-sheet-actions .courts-alt-ch-iconbtn .courts-alt-ch-face,
.courts-alt-sheet-actions .courts-alt-ch-iconbtn .courts-alt-ch-img {
  width: 28px;
  height: 28px;
}
.courts-alt-site-link {
  display: inline-block;
  position: relative;
  z-index: 3;
  align-self: center;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(120, 120, 120, .45);
  cursor: pointer;
}
.courts-alt-site-link:hover {
  color: var(--sec);
  text-decoration-color: currentColor;
}
.courts-alt-block .courts-alt-site-link {
  display: inline-block;
  margin-top: 10px;
}

.courts-alt-tg-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1.5px solid #2AABEE;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}
.courts-alt-tg-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #E8F6FD;
  color: #2AABEE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.courts-alt-tg-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.courts-alt-tg-cta-text b {
  font-size: 15px;
  font-weight: 700;
  color: #1F1F1F;
}
.courts-alt-tg-cta-text span {
  font-size: 12px;
  font-weight: 500;
  color: #229ED9;
  line-height: 1.3;
}
.courts-alt-tn-sheet-addr {
  margin-top: 4px;
  font-weight: 600;
  color: var(--text) !important;
}

.courts-alt-head-actions { display: flex; gap: 8px; align-items: center; }
.courts-alt-map-btn {
  height: 40px;
  border: 1.5px solid var(--border-mid);
  border-radius: 12px;
  background: #fff;
  color: var(--text) !important;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.courts-alt-map-btn .ti { color: var(--adark); font-size: 18px; }
.courts-alt-map-btn.is-on,
.courts-alt-map-btn:hover {
  background: var(--alight);
  border-color: #B7C97A;
}
.courts-alt-chip-map {
  color: var(--text) !important;
  border-color: var(--border-mid);
  background: #fff;
}
.courts-alt-chip-map .ti { color: var(--adark); }
.courts-alt-chip-map.is-on {
  background: var(--alight);
  box-shadow: inset 0 0 0 1.5px #B7C97A;
  border-color: #B7C97A;
  color: var(--text) !important;
}
.courts-alt-layout.is-map { grid-template-columns: minmax(0, 1fr); align-items: start; }
.courts-alt-layout.is-map .courts-alt-strip { display: flex; }
.courts-alt-layout.is-map .courts-alt-chip-map { display: none; }
.courts-alt-mapcol { min-height: 480px; }
.courts-alt-inner--map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  column-gap: 16px;
  align-items: start;
}

/* Ширина колонки, не окна: 42vw на широком экране съедала фильтры. */
#courts-alt-root { container-type: inline-size; width: 100%; align-self: stretch; }
.courts-alt-field-value { min-width: 0; }
.courts-alt-field-label,
.courts-alt-field-value span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@container (max-width: 580px) {
  .courts-alt-panel { flex-wrap: wrap; }
  .courts-alt-field-slot { flex: 1 1 46%; border-bottom: 1px solid var(--border); }
  .courts-alt-field-slot:nth-child(2n) { border-right: 0; }
  .courts-alt-field-slot:nth-child(n+3) { border-bottom: 0; }
  .courts-alt-field-slot:first-child { border-radius: 18px 0 0 0; }
  .courts-alt-field-slot:nth-child(2) { border-radius: 0 18px 0 0; }
  .courts-alt-field-slot:nth-child(3) { border-radius: 0 0 0 18px; }
  .courts-alt-field-slot:last-child { border-radius: 0 0 18px 0; }
  .courts-alt-headrow { flex-wrap: wrap; }
}
.courts-alt-inner--map .courts-alt-titlebar {
  grid-column: 1 / -1;
}
.courts-alt-inner--map #courts-alt-root,
.courts-alt-inner--map #courts-alt-seo {
  grid-column: 1;
  min-width: 0;
}
.courts-alt-inner--map #courts-alt-map-slot {
  grid-column: 2;
  grid-row: 2 / span 8;
  position: sticky;
  top: 12px;
  width: 100%;
  height: calc(100dvh - 160px);
  min-height: 420px;
}
.courts-alt-map {
  position: relative;
  height: calc(100dvh - 200px);
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.courts-alt-map-wait {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--surface);
  color: var(--sec);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.courts-alt-map-canvas { width: 100%; height: 100%; }
.courts-alt-card.is-hot { box-shadow: inset 0 0 0 1.5px var(--text); }
.courts-alt-fab { display: none; }
.courts-alt-inner--map .courts-alt-map-close,
.courts-alt-map:not([hidden]) .courts-alt-map-close {
  display: inline-flex;
}
.courts-alt-map-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 14;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 2px 10px rgba(31, 31, 31, .18);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.courts-alt-map-close:hover {
  background: #fff;
}
.courts-alt-mini {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.courts-alt-mini b { font-size: 15px; }
.courts-alt-mini span { color: var(--sec); font-size: 13px; }
.courts-alt-mini a { margin-left: auto; color: var(--adark); font-weight: 700; text-decoration: none; }
.courts-alt-mini button { margin-left: auto; border: 0; background: none; color: var(--adark); font-weight: 700; cursor: pointer; }

.courts-alt-msum { display: none; }
.courts-alt-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 12px;
  border: 0;
  background: none;
  color: var(--sec) !important;
  font-weight: 600;
  cursor: pointer;
}
.courts-alt-club { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; }
.courts-alt-club-photo {
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.courts-alt-club-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.courts-alt-phnav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.courts-alt-phnav button, .courts-alt-phnav span {
  height: 32px;
  min-width: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-weight: 700;
}
.courts-alt-phnav button { cursor: pointer; }
.courts-alt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.courts-alt-club-name { margin: 10px 0 4px; font-size: 28px; }
.courts-alt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
button.courts-alt-row-btn { border: 0; cursor: pointer; }
.courts-alt-block {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.courts-alt-block h3 { margin: 0; font-size: 18px; }
.courts-alt-block-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.courts-alt-sched-top { flex-direction: column; align-items: stretch; gap: 2px; }
.courts-alt-sched-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.courts-alt-sched-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}
.courts-alt-sched-fresh,
.courts-alt-sched-fresh .courts-alt-fresh,
.courts-alt-sched-book {
  white-space: nowrap;
  font-size: 12px;
}
.courts-alt-sched-dot { display: none; }
@media (min-width: 901px) {
  .courts-alt-sched-top {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
  }
  .courts-alt-sched-line,
  .courts-alt-sched-aside { display: contents; }
  .courts-alt-sched-top h3 { order: 1; }
  .courts-alt-sched-book {
    order: 2;
    display: inline;
    white-space: nowrap;
    margin-top: 0;
    font-size: 13px;
  }
  .courts-alt-sched-fresh { order: 3; }
  .courts-alt-sched-fresh,
  .courts-alt-sched-fresh .courts-alt-fresh { font-size: 13px; }
  .courts-alt-sched-dot { display: inline; }
  .courts-alt-sched-top + .courts-alt-pills { margin-top: 10px; }
}
.courts-alt-offer { margin-top: 12px; }
.courts-alt-offer-top { display: flex; justify-content: space-between; gap: 8px; }
.courts-alt-dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.courts-alt-lock { margin-top: 8px; color: var(--sec); }
.courts-alt-durline { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.courts-alt-range-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.courts-alt-range-row b { color: var(--text); font-weight: 700; }
.courts-alt-range { margin-bottom: 10px; }
.courts-alt-rp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.courts-alt-rp label { display: flex; flex-direction: column; gap: 4px; color: var(--sec); font-size: 13px; }
.courts-alt-page .courts-alt-rp.courts-alt-rp-time {
  gap: 6px;
  margin-top: 0;
}
.courts-alt-page .courts-alt-rp.courts-alt-rp-time label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: 0;
}
.courts-alt-page .courts-alt-rp.courts-alt-rp-time label > span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.courts-alt-page .courts-alt-rp.courts-alt-rp-time select.courts-alt-time-sel {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .courts-alt-club { grid-template-columns: 1fr; }
}
.courts-alt-search-top { display: contents; }
.courts-alt-map-list { display: none; }

@media (max-width: 700px) {
  .courts-alt-search-top {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
  }
  .courts-alt-msum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    border: 0;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--border-mid);
    padding: 11px 12px 11px 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    text-align: left;
  }
  .courts-alt-msum:active {
    background: #E8E8E8;
  }
  .courts-alt-search.is-open .courts-alt-msum {
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--border-mid), inset 3px 0 0 0 var(--alight);
  }
  .courts-alt-msum-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .courts-alt-msum-main > span {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .courts-alt-msum-main > .ti {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--adark);
  }
  .courts-alt-msum-chev {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--alight);
    color: var(--adark);
  }
  .courts-alt-msum-chev .ti { font-size: 16px; color: inherit; }
  .courts-alt-search:not(.is-open) .courts-alt-panel { display: none; }
  .courts-alt-search.is-open .courts-alt-panel {
    background: var(--surface);
    border: 0;
    box-shadow: inset 0 0 0 1.5px var(--border-mid), inset 3px 0 0 0 var(--alight);
  }
  .courts-alt-rp { grid-template-columns: 1fr; }
  .courts-alt-rp-time { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .courts-alt-mob-contacts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 12px 0 24px;
    padding: 12px 14px;
    border: 1px solid var(--border-mid);
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 1px 2px rgba(31, 31, 31, 0.04);
  }
  .courts-alt-mob-contacts:active {
    background: var(--bg);
  }
  .courts-alt-mob-contacts.is-back {
    border-color: var(--border-mid);
    background: var(--bg);
    box-shadow: none;
  }
  .courts-alt-mob-contacts-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .courts-alt-mob-contacts-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }
  .courts-alt-mob-contacts-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .courts-alt-mob-contacts-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--sec);
    line-height: 1.3;
  }
  .courts-alt-mob-contacts-trail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    color: var(--muted);
  }
  .courts-alt-mob-contacts-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
  }
  .courts-alt-mob-contacts .ti {
    font-size: 18px;
    color: var(--sec);
    flex: none;
  }
  .courts-alt-head-actions .courts-alt-map-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 10px;
  }
  .courts-alt-feed { padding-bottom: 96px; }
  .courts-alt-fab { display: none !important; }
  .courts-alt-inner--map {
    display: flex;
    flex-direction: column;
  }
  .courts-alt-inner--map #courts-alt-map-slot {
    position: relative;
    top: auto;
    grid-column: auto;
    grid-row: auto;
  }
  .courts-alt-layout.is-map { grid-template-columns: 1fr; }
  .courts-alt-layout.is-map .courts-alt-feed { display: none; }
  .courts-alt-layout.is-map .courts-alt-map-close,
  body.courts-alt-map-open .courts-alt-map-close {
    display: inline-flex;
  }
  body.courts-alt-map-open .courts-alt-feed,
  body.courts-alt-map-open .courts-alt-layout {
    display: none !important;
  }
  body.courts-alt-map-open {
    overflow: hidden;
  }
  body.courts-alt-map-open #footer,
  body.courts-alt-map-open .footer,
  body.courts-alt-map-open .mainV2__bottom-nav {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.courts-alt-map-open .courts-alt-titlebar,
  body.courts-alt-map-open .courts-alt-mob-contacts,
  body.courts-alt-map-open .courts-alt-seo {
    display: none !important;
  }
  body.courts-alt-map-open .courts-alt-page.mainV2__page {
    padding-bottom: 0;
  }
  body.courts-alt-map-open .courts-alt-inner,
  body.courts-alt-map-open .courts-alt-inner--map {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--tn-vv-top, var(--mv2-mobile-topbar-h, 56px));
    height: var(--tn-vv-h, 70dvh) !important;
    max-height: none !important;
    bottom: auto;
    display: flex;
    flex-direction: column;
    padding: 8px 12px 0;
    overflow: hidden;
    z-index: 30;
    background: var(--bg, #f3f4f1);
  }
  body.courts-alt-map-open #courts-alt-root {
    flex: 0 0 auto;
    min-height: 0;
    display: block;
  }
  body.courts-alt-map-open #courts-alt-root > .courts-alt-search {
    position: relative;
    flex: none;
    z-index: 40 !important;
  }
  body.courts-alt-map-open .courts-alt-search-top {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 8px;
  }
  body.courts-alt-map-open .courts-alt-msum {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }
  body.courts-alt-map-open .courts-alt-panel {
    margin-bottom: 8px;
  }
  body.courts-alt-map-open .courts-alt-map-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    width: auto;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  body.courts-alt-map-open .courts-alt-map-list .ti {
    font-size: 18px;
    color: var(--adark);
  }
  body.courts-alt-map-open .courts-alt-layout.is-map {
    display: none !important;
  }
  body.courts-alt-map-open #courts-alt-map-slot {
    position: relative !important;
    inset: auto;
    flex: 1 1 0 !important;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    background: var(--card);
    border-radius: 16px 16px 0 0;
  }
  body.courts-alt-map-open #courts-alt-map-slot .courts-alt-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  body.courts-alt-find .courts-alt-mob-contacts,
  body.courts-alt-find .courts-alt-strip,
  body.courts-alt-find .courts-alt-disclaimer,
  body.courts-alt-find .courts-alt-list-search,
  body.courts-alt-find .courts-alt-panel,
  body.courts-alt-find .courts-alt-seo {
    display: none !important;
  }
  body.courts-alt-find .courts-alt-title-block {
    display: none;
  }
  body.v2-page.courts-alt-find .courts-alt-page .courts-alt-nameq {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
  body.courts-alt-find .courts-alt-feed {
    padding-bottom: 24px;
  }
  body.courts-alt-find .courts-alt-msum {
    display: none;
  }
}

@media (max-width: 700px) {
  .courts-alt-sheet {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: auto;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
  }
  body.courts-alt-map-open .courts-alt-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    z-index: 50;
    margin-bottom: 0;
    box-shadow: 0 12px 32px rgba(31, 31, 31, .16);
  }
}

.courts-alt-pills--city .courts-alt-pill.is-on {
  border-color: #DCEF7A;
  box-shadow: inset 0 0 0 1.5px #DCEF7A;
}

a.courts-alt-practice-name { color: inherit; text-decoration: none; }
