/* ==========================================================================
   Trainer List — design system
   ========================================================================== */
@font-face {
  font-family: "Jakarta";
  src: url("../assets/vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("../assets/vendor/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20CF, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #e10b17;
  --brand-dark: #b80812;
  --brand-soft: #fdecee;
  --ink: #1f1f1f;
  --ink-2: #4a4a4a;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --soft: #f6f6f6;
  --bg: #ffffff;
  --ok: #12805c;
  --ok-soft: #e6f5ee;
  --warn-soft: #fff5db;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-2: 0 6px 24px rgba(0, 0, 0, .12);
  --page: 1760px;
  --gutter: clamp(16px, 4vw, 80px);
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-primary: var(--brand);
  --bs-link-color-rgb: 31, 31, 31;
  --bs-link-hover-color-rgb: 225, 11, 23;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.01em; }
a { text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 1180px; }
.wrap-text { max-width: 820px; }
.muted { color: var(--muted); }
.small-caps { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 10px; --bs-btn-padding-y: .6rem; --bs-btn-padding-x: 1.1rem; font-size: 15px; }
.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #e58b90; --bs-btn-disabled-border-color: #e58b90;
}
.btn-ink {
  --bs-btn-color: #fff; --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #000;
}
.btn-line {
  --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: #cfcfcf;
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--soft); --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--soft); --bs-btn-active-border-color: var(--ink);
}
.btn-ghost { --bs-btn-color: var(--ink); --bs-btn-hover-bg: var(--soft); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: #ececec; --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-border-color: transparent; text-decoration: underline; padding-inline: .6rem; }
.btn-lg { --bs-btn-padding-y: .85rem; --bs-btn-border-radius: 12px; font-size: 16px; }
.btn-pill { border-radius: 999px !important; }
.btn .spinner-border { width: 1em; height: 1em; border-width: 2px; margin-right: .4em; vertical-align: -2px; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: 13.5px; margin-bottom: .35rem; }
.form-control, .form-select { border-color: #cfcfcf; padding: .65rem .85rem; font-size: 15px; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form-text { color: var(--muted); font-size: 12.5px; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .12); border-color: var(--ink); }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 38px; height: 38px; border-radius: 8px; }
.pw-toggle:hover { color: var(--ink); background: var(--soft); }
.form-alert { display: none; border-radius: 10px; padding: .7rem .9rem; font-size: 14px; margin-bottom: 1rem; }
.form-alert.is-error { display: block; background: var(--brand-soft); color: #8f0710; }
.form-alert.is-ok { display: block; background: var(--ok-soft); color: #0c5b41; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1020; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.is-home { background: linear-gradient(#fff 0, #fff 40%, #f8f8f8 100%); }
.promo-bar { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 7px 12px; }
.promo-bar a { color: #fff; font-weight: 700; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand img { height: 38px; width: auto; display: block; }
.brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-link { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.header-link:hover { background: var(--soft); color: var(--ink); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #f2f2f2; color: var(--ink); display: inline-grid; place-items: center; font-size: 16px; position: relative; overflow: hidden; flex: none; }
.icon-btn:hover { background: #e6e6e6; }
.icon-btn img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.user-menu { min-width: 250px; border: 0; border-radius: 14px; box-shadow: var(--shadow-2); padding: 8px; font-size: 14.5px; }
.user-menu .dropdown-item { border-radius: 8px; padding: .6rem .8rem; display: flex; align-items: center; gap: 10px; }
.user-menu .dropdown-item i { width: 18px; text-align: center; color: var(--muted); }
.user-menu .dropdown-item:active { background: var(--soft); color: var(--ink); }
.user-menu .dropdown-item.strong { font-weight: 700; }
.user-menu .badge-count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 7px; }

.type-tabs { display: flex; gap: 6px; align-items: stretch; justify-content: center; }
.type-tab { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.type-tab i { font-size: 20px; }
.type-tab:hover { color: var(--ink); }
.type-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.type-tab.active i { color: var(--brand); }

/* Large search pill (home) */
.search-zone { padding: 10px 0 26px; }
.search-pill { display: grid; grid-template-columns: 1.15fr 1fr 1fr auto; align-items: center; max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #dedede; border-radius: 999px; box-shadow: 0 3px 14px rgba(0, 0, 0, .09); padding: 7px; }
.search-seg { position: relative; padding: 9px 24px; border-radius: 999px; min-width: 0; }
.search-seg + .search-seg::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: #dcdcdc; }
.search-seg:hover, .search-seg:focus-within { background: #f1f1f1; }
.search-seg:hover::before, .search-seg:focus-within::before, .search-seg:hover + .search-seg::before, .search-seg:focus-within + .search-seg::before { opacity: 0; }
.search-seg label { display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin: 0; }
.search-seg input, .search-seg select { width: 100%; border: 0; background: transparent; padding: 0; font: inherit; font-size: 14.5px; color: var(--ink); outline: 0; appearance: none; text-overflow: ellipsis; cursor: pointer; }
.search-seg input { cursor: text; }
.search-seg select:invalid, .search-seg input::placeholder { color: var(--muted); }
.search-go { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 17px; display: grid; place-items: center; margin-left: 6px; transition: background .15s, transform .15s; }
.search-go:hover { background: var(--brand-dark); transform: scale(1.04); }

/* Compact pill (inner pages) */
.mini-pill { display: inline-flex; align-items: center; background: #fff; border: 1px solid #dedede; border-radius: 999px; box-shadow: 0 1px 6px rgba(0, 0, 0, .08); padding: 6px 6px 6px 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; max-width: 100%; }
.mini-pill:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.mini-pill span { padding: 4px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pill span + span { border-left: 1px solid #dcdcdc; }
.mini-pill .go { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dedede; background: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn .count { background: var(--ink); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.header-center { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }

/* ---------- Rails (horizontal rows) ---------- */
.section { padding: 34px 0 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.section-head h2 .go { width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0; display: inline-grid; place-items: center; font-size: 12px; }
.section-head h2 a:hover .go { background: #e2e2e2; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f0f0f0; color: var(--ink); display: grid; place-items: center; font-size: 12px; }
.rail-nav button:hover:not(:disabled) { background: #e0e0e0; }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 6px; scroll-padding-left: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-sports { grid-auto-columns: clamp(132px, 11.2vw, 196px); }
.rail-trainers { grid-auto-columns: clamp(210px, 15.4vw, 280px); }

.sport-tile { text-decoration: none; color: var(--ink); display: block; }
.sport-tile .pic { aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; overflow: hidden; transition: background .2s, transform .2s; }
.sport-tile .pic img { width: 54%; height: 54%; object-fit: contain; transition: transform .25s; }
.sport-tile:hover .pic { background: var(--brand-soft); }
.sport-tile:hover .pic img { transform: scale(1.08); }
.sport-tile .name { font-weight: 600; font-size: 14.5px; margin-top: 10px; line-height: 1.25; }
.sport-tile .sub { color: var(--muted); font-size: 13px; }
.sport-tile .pic .fallback { font-size: 34px; color: #b9b9b9; }

/* ---------- Trainer cards ---------- */
.t-card { position: relative; display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.t-card .pic { position: relative; aspect-ratio: 20 / 19; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.t-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.t-card:hover .pic img { transform: scale(1.04); }
.t-card .tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); display: inline-flex; align-items: center; gap: 6px; }
.t-card .tag i { color: #d99a00; }
.t-card .tag.cert i { color: var(--ok); }
.t-card .tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.t-card .tags .tag { position: static; }
.t-card .body { padding: 10px 2px 0; font-size: 14.5px; line-height: 1.35; }
.t-card .top { display: flex; justify-content: space-between; gap: 8px; }
.t-card .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-card .cert-check { color: var(--ok); font-size: 12.5px; margin-left: 3px; vertical-align: 0; }
.t-card .rate { white-space: nowrap; font-weight: 500; flex: none; }
.t-card .rate i { font-size: 11px; vertical-align: 1px; }
.t-card .line { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-card .price { margin-top: 4px; }
.t-card .price b { font-weight: 700; }
.t-card.is-hot .pic { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Results (grid + map) ---------- */
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 44%); gap: 28px; padding-top: 22px; align-items: start; }
.results.no-map { grid-template-columns: minmax(0, 1fr); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head h1 { font-size: 19px; margin: 0; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.results.no-map .results-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.results-map { position: sticky; top: 104px; height: calc(100vh - 128px); min-height: 420px; border-radius: var(--radius); overflow: hidden; background: #e9eef1; }
.results-map #map { width: 100%; height: 100%; }
.map-chip { position: absolute; transform: translate(-50%, -50%); background: #fff; color: var(--ink); font: 700 13px/1 var(--font); padding: 7px 10px; border-radius: 999px; box-shadow: 0 1px 5px rgba(0, 0, 0, .28); white-space: nowrap; cursor: pointer; transition: transform .12s; text-decoration: none; }
.map-chip:hover, .map-chip.is-hot { background: var(--ink); color: #fff; transform: translate(-50%, -50%) scale(1.08); z-index: 5; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.chip:hover { background: #e9e9e9; color: var(--ink); }
.chip i { font-size: 11px; color: var(--muted); }
.sort-select { border: 1px solid #dedede; border-radius: 999px; padding: 8px 34px 8px 14px; font-size: 13.5px; font-weight: 600; width: auto; }
.map-toggle { display: none; position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1010; box-shadow: var(--shadow-2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 40px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); padding: 0 6px; }
.pager a:hover { background: var(--soft); }
.pager .current { background: var(--ink); color: #fff; }
.pager .disabled { color: #c4c4c4; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 26px; color: var(--muted); margin: 0 auto 18px; }
.empty-state h2 { font-size: 20px; }

/* ---------- Home extras ---------- */
.cta-band { margin: 46px 0 10px; border-radius: 24px; background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 54px); display: grid; grid-template-columns: 1.3fr auto; gap: 24px; align-items: center; }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 32px); margin: 0 0 8px; }
.cta-band p { color: #c9c9c9; margin: 0; max-width: 56ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--brand); font-size: 17px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

/* ---------- Trainer profile ---------- */
.profile { padding-top: 26px; padding-bottom: 60px; }
.profile-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.profile-title h1 { font-size: clamp(22px, 2.3vw, 28px); margin: 0; }
.profile-actions { display: flex; gap: 4px; flex: none; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 8px; height: clamp(300px, 39vw, 520px); border-radius: var(--radius); overflow: hidden; position: relative; }
.mosaic button { border: 0; padding: 0; background: var(--soft); overflow: hidden; position: relative; cursor: zoom-in; }
.mosaic button:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; display: block; }
.mosaic button:hover img { filter: brightness(.9); }
.mosaic .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #c5c5c5; font-size: 30px; background: var(--soft); cursor: default; }
.mosaic.n1 { grid-template-columns: 1fr; }
.mosaic.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.mosaic.n2 button:first-child { grid-row: auto; }
.mosaic.n3 { grid-template-columns: 2fr 1fr; }
.mosaic-all { position: absolute; right: 18px; bottom: 18px; background: #fff; border: 1px solid var(--ink); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.mosaic-all:hover { background: var(--soft); }
.profile-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 6vw, 90px); margin-top: 30px; align-items: start; }
.profile-main h2 { font-size: 21px; margin-bottom: 4px; }
.profile-main section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.profile-main section:first-child { padding-top: 0; }
.profile-main section:last-child { border-bottom: 0; }
.profile-main h3 { font-size: 19px; margin-bottom: 14px; }
.rating-line { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rating-line i { font-size: 12px; }
.pillset { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill { font-size: 12.5px; font-weight: 600; background: var(--soft); color: var(--ink-2); padding: 4px 10px; border-radius: 6px; }
.pill.ok { background: var(--ok-soft); color: #0c5b41; }
.pill.hot { background: var(--warn-soft); color: #7a5600; }
.bio { font-size: 16px; line-height: 1.6; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.facts { display: grid; gap: 20px; }
.fact { display: flex; gap: 18px; align-items: flex-start; }
.fact .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 17px; flex: none; }
.fact b { display: block; }
.fact span { color: var(--muted); font-size: 14.5px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cert-grid button { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; background: var(--soft); aspect-ratio: 4 / 3; cursor: zoom-in; }
.cert-grid img { width: 100%; height: 100%; object-fit: cover; }
.review { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; }
.review + .review { border-top: 1px solid var(--line); }
.avatar-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; overflow: hidden; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.review .meta { font-size: 13px; color: var(--muted); }
.review .stars { color: var(--ink); font-size: 11px; letter-spacing: 1px; }
.review p { margin: 6px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 26px; color: #d0d0d0; cursor: pointer; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a400; }
.star-input input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 4px; }

.book-card { position: sticky; top: 110px; border: 1px solid #dddddd; border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 20px rgba(0, 0, 0, .1); background: #fff; }
.book-card .price { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.book-card .price small { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.book-box { border: 1px solid #b9b9b9; border-radius: 12px; overflow: hidden; margin: 16px 0 12px; }
.book-box .two { display: grid; grid-template-columns: 1fr 1fr; }
.book-box .cell { padding: 9px 12px; position: relative; min-width: 0; }
.book-box .two .cell + .cell { border-left: 1px solid #b9b9b9; }
.book-box .row-cell { border-top: 1px solid #b9b9b9; }
.book-box label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.book-box input, .book-box select { border: 0; width: 100%; padding: 2px 0 0; background: transparent; font: inherit; font-size: 14.5px; outline: 0; color: var(--ink); }
.book-box .cell:focus-within { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 10px; }
.book-note { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contact-list a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { background: var(--soft); }
.contact-list i { width: 20px; text-align: center; color: var(--ink-2); }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 18px; }
.side-card h4 { font-size: 15px; margin-bottom: 8px; }
.report-link { display: flex; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 13.5px; font-weight: 600; background: none; border: 0; width: 100%; text-decoration: underline; }
.report-link:hover { color: var(--ink); }
.mobile-book { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .94); z-index: 2000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 17px; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 18px; left: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; }

/* ---------- Modals ---------- */
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-2); }
.modal-header { border-bottom: 1px solid var(--line); padding: 16px 22px; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 22px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #efefef; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; flex-wrap: wrap; }
.auth-links button { border: 0; background: none; padding: 0; text-decoration: underline; font-weight: 600; color: var(--ink); }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-grid a, .share-grid button { border: 1px solid #d5d5d5; background: #fff; border-radius: 12px; padding: 14px; font-weight: 600; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.share-grid a:hover, .share-grid button:hover { background: var(--soft); }
gmp-place-autocomplete { width: 100%; border: 1px solid #cfcfcf; border-radius: 10px; color-scheme: light; }

/* ---------- Account area ---------- */
.account { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; padding-top: 34px; padding-bottom: 70px; align-items: start; }
.account-nav { position: sticky; top: 110px; display: grid; gap: 2px; }
.account-nav .who { display: flex; gap: 12px; align-items: center; padding: 6px 10px 16px; }
.account-nav .who b { display: block; line-height: 1.2; }
.account-nav .who span { color: var(--muted); font-size: 13px; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.account-nav a i { width: 20px; text-align: center; }
.account-nav a:hover { background: var(--soft); color: var(--ink); }
.account-nav a.active { background: var(--soft); color: var(--ink); }
.account-nav a .badge-count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 7px; }
.account-nav hr { margin: 8px 0; border-color: var(--line); opacity: 1; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; margin: 0 0 4px; }
.page-head p { color: var(--muted); margin: 0; }
.card-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card-box + .card-box { margin-top: 18px; }
.card-box h2 { font-size: 17px; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.stat .s { font-size: 13px; color: var(--muted); }
.stat.warn { border-color: #f1c4c7; background: #fff8f8; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: block; transition: box-shadow .15s, border-color .15s; }
.tile:hover { border-color: #cfcfcf; box-shadow: var(--shadow-1); color: var(--ink); }
.tile i { font-size: 20px; color: var(--brand); margin-bottom: 12px; display: block; }
.tile b { display: block; }
.tile span { color: var(--muted); font-size: 13.5px; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.notice.warn { background: var(--warn-soft); color: #6b4b00; }
.notice.bad { background: var(--brand-soft); color: #8f0710; }
.notice.good { background: var(--ok-soft); color: #0c5b41; }
.notice a { color: inherit; font-weight: 700; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.media-slot { position: relative; border: 1.5px dashed #c9c9c9; border-radius: 14px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); display: grid; place-items: center; text-align: center; cursor: pointer; transition: border-color .15s; }
.media-slot:hover { border-color: var(--ink); }
.media-slot.has-img { border-style: solid; border-color: var(--line); }
.media-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-slot .hint { color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px; }
.media-slot .hint i { display: block; font-size: 22px; margin-bottom: 8px; }
.media-slot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.media-slot .label { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 3px 8px; z-index: 2; pointer-events: none; }
.media-slot .rm { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.media-slot .rm:hover { background: var(--brand); color: #fff; }
.media-slot.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .7); z-index: 4; }

.appt { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; }
.appt + .appt { border-top: 1px solid var(--line); }
.appt .when { font-weight: 700; }
.appt .who { color: var(--ink-2); font-size: 14.5px; }
.appt .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status.pending { background: var(--warn-soft); color: #7a5600; }
.status.ok { background: var(--ok-soft); color: #0c5b41; }
.status.no { background: #efefef; color: var(--ink-2); }
.nav-tabs-clean { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; padding: 0; list-style: none; }
.nav-tabs-clean button { border: 0; background: none; padding: 10px 0 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-tabs-clean button.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-tabs-clean .n { background: #efefef; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; color: var(--ink-2); }

/* Messages */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: min(74vh, 780px); min-height: 460px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.inbox-item:hover { background: #fafafa; color: var(--ink); }
.inbox-item.active { background: var(--soft); }
.inbox-item .avatar-circle { width: 44px; height: 44px; font-size: 15px; }
.inbox-item .t { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.inbox-item .t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item .t time { color: var(--muted); font-size: 12px; flex: none; }
.inbox-item .p { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.unread .p { color: var(--ink); font-weight: 600; }
.inbox-item .new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; }
.thread { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-weight: 700; }
.thread-head .back { display: none; }
.thread-body { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fafafa; }
.bubble { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-line; font-size: 14.5px; position: relative; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 16px 16px 4px 16px; }
.bubble time { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.bubble .flag { border: 0; background: none; color: inherit; opacity: .45; font-size: 11px; padding: 0; margin-left: 8px; }
.bubble .flag:hover { opacity: 1; }
.thread-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.thread-form textarea { resize: none; max-height: 140px; }
.thread-empty { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 30px; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; background: #fff; }
.plan.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan .kind { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.plan h3 { font-size: 18px; margin: 6px 0 12px; }
.plan .amount { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .amount small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; }
.plan li i { color: var(--ok); margin-top: 4px; font-size: 12px; }
.plan .btn { margin-top: auto; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 17px; }
.summary-row .neg { color: var(--ok); }

/* Content pages */
.prose { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { height: auto; border-radius: 12px; }
.prose a { color: var(--brand); }
.center-card { max-width: 520px; margin: 0 auto; padding: 56px 0 80px; text-align: center; }
.center-card .ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; margin: 0 auto 20px; }
.center-card .ico.good { background: var(--ok-soft); color: var(--ok); }
.center-card .ico.bad { background: var(--brand-soft); color: var(--brand); }
.center-card .ico.neutral { background: var(--soft); color: var(--ink-2); }
.center-card h1 { font-size: 26px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); margin-top: 60px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; padding: 44px 0 34px; }
.footer-cols h3 { font-size: 14px; margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; color: var(--ink); }
.footer-cols p { color: var(--ink-2); max-width: 34ch; }
.footer-bottom { border-top: 1px solid #dddddd; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-social { display: flex; gap: 6px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: 16px; text-decoration: none; }
.footer-social a:hover { background: #e6e6e6; }

.toast-host { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3000; display: grid; gap: 8px; pointer-events: none; }
.toast-msg { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-2); animation: toast-in .2s ease; max-width: 90vw; }
.toast-msg.bad { background: #8f0710; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-cols { grid-template-columns: minmax(0, 1fr) 350px; }
}
@media (max-width: 991.98px) {
  .header-row { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .header-link.hide-md { display: none; }
  .type-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .home-tabs-row { order: 3; grid-column: 1 / -1; }
  .header-row.is-home { grid-template-columns: 1fr auto; }
  .header-row.is-home .type-tabs { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .search-pill { grid-template-columns: 1fr auto; border-radius: 20px; padding: 6px; }
  .search-pill .search-seg { grid-column: 1 / 2; padding: 8px 16px; }
  .search-pill .search-seg + .search-seg::before { left: 16px; right: 16px; top: 0; width: auto; height: 1px; }
  .search-pill .search-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0 6px; }
  .results { grid-template-columns: 1fr; }
  .results-grid, .results.no-map .results-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .results-map { display: none; position: fixed; inset: 0; top: 0; height: 100vh; z-index: 1005; border-radius: 0; }
  body.show-map .results-map { display: block; }
  .map-toggle { display: inline-flex; }
  .profile-cols { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .mobile-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1010; background: #fff; border-top: 1px solid var(--line); padding: 12px var(--gutter); justify-content: space-between; align-items: center; gap: 12px; }
  .has-mobile-book { padding-bottom: 78px; }
  .account { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 4px; }
  .account-nav .who, .account-nav hr { display: none; }
  .account-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .account-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .inbox .thread { height: 72vh; }
  .inbox-list { border-right: 0; max-height: 70vh; }
  .thread-head .back { display: inline-grid; }
}
@media (max-width: 767.98px) {
  .mini-pill span:nth-child(n+2):not(.go) { display: none; }
  .filter-btn .txt { display: none; }
  .filter-btn { padding: 11px 13px; }
  .mosaic, .mosaic.n2, .mosaic.n3 { display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; scrollbar-width: none; }
  .mosaic button { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: 12px; }
  .mosaic.n1 button { flex-basis: 100%; }
  .mosaic .ph-wrap { display: none; }
  .mosaic-all { right: 10px; bottom: 10px; }
  .profile-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .rail-sports { grid-auto-columns: 118px; }
  .rail-trainers { grid-auto-columns: 62vw; }
  .section-head h2 { font-size: 19px; }
  .rail-nav { display: none; }
  .appt { grid-template-columns: 1fr; }
  .appt .acts { justify-content: flex-start; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .card-box { padding: 18px; }
  .share-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .results-grid, .results.no-map .results-grid { grid-template-columns: 1fr; }
  .brand span.word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
