:root {
  --tf-bg: #f8f5ff;
  --tf-soft: #f2efff;
  --tf-card: rgba(255,255,255,0.92);
  --tf-white: #fff;
  --tf-text: #1f2550;
  --tf-muted: #687095;
  --tf-blue: #0049e6;
  --tf-blue-dark: #0039b8;
  --tf-accent: #d9ff00;
  --tf-line: rgba(85,95,150,.16);
  --tf-shadow: 0 28px 80px rgba(31,37,80,.12);
  --tf-radius-xl: 34px;
  --tf-radius-lg: 24px;
  --tf-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.trainer-finder-page {
  margin: 0;
  color: var(--tf-text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,73,230,.11), transparent 24%),
    radial-gradient(circle at 86% 8%, rgba(217,255,0,.18), transparent 22%),
    linear-gradient(180deg, #fbf9ff 0%, var(--tf-bg) 46%, #f2efff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.tf-page { padding: 44px 0 104px; }
.tf-wrap { width: min(calc(100% - 30px), var(--tf-max)); margin: 0 auto; }
.tf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: 22px;
  align-items: stretch;
}
.tf-panel {
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(245,242,255,.9));
  box-shadow: var(--tf-shadow);
}
.tf-hero-copy { padding: clamp(28px, 5vw, 48px); }
.tf-kicker, .tf-label {
  margin: 0 0 14px;
  color: var(--tf-blue);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tf-hero h1, .tf-section-title, .tf-card h3, .tf-modal h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.052em;
}
.tf-hero h1 { max-width: 10.6ch; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; }
.tf-hero h1 .accent-v, .tf-accent { color: var(--tf-accent); }
.tf-hero-copy > p:not(.tf-kicker) { margin: 22px 0 0; max-width: 58ch; color: var(--tf-muted); font-size: 1.08rem; line-height: 1.75; }
.tf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 23px; border: 0; border-radius: 999px;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: .84rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tf-btn:hover { transform: translateY(-1px); }
.tf-btn-primary { color: #fff; background: linear-gradient(135deg, var(--tf-blue), var(--tf-blue-dark)); box-shadow: 0 16px 38px rgba(0,73,230,.22); }
.tf-btn-ghost { color: var(--tf-text); background: rgba(255,255,255,.86); border: 1px solid var(--tf-line); }
.tf-hero-map { position: relative; min-height: 440px; overflow: hidden; background: #141944; }
.tf-hero-map::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 28% 35%, rgba(217,255,0,.2), transparent 24%),
    radial-gradient(circle at 70% 66%, rgba(0,73,230,.55), transparent 30%),
    #11163d;
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}
.tf-map-copy { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2; color: #fff; }
.tf-map-copy h2 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: .96; letter-spacing: -.05em; }
.tf-map-copy p { margin: 12px 0 0; max-width: 42ch; color: rgba(255,255,255,.82); line-height: 1.65; }
.tf-pin { position: absolute; z-index: 1; width: 14px; height: 14px; border-radius: 999px; background: var(--tf-accent); box-shadow: 0 0 0 8px rgba(217,255,0,.15), 0 0 28px rgba(217,255,0,.55); transform: translate(-50%, -50%); }
.tf-section { padding-top: 34px; }
.tf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.tf-section-title { font-size: clamp(2.1rem, 4.5vw, 4.1rem); line-height: .94; }
.tf-section-head p { margin: 0; max-width: 56ch; color: var(--tf-muted); line-height: 1.72; }
.tf-finder { padding: clamp(18px, 3vw, 28px); }
.tf-controls { display: grid; grid-template-columns: 1.25fr repeat(4, minmax(140px, .55fr)); gap: 12px; align-items: end; }
.tf-field label { display: block; margin: 0 0 8px; color: var(--tf-muted); font-family: "Plus Jakarta Sans", sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tf-field input, .tf-field select, .tf-field textarea {
  width: 100%; border: 1px solid transparent; border-radius: 18px; background: var(--tf-soft); color: var(--tf-text); padding: 14px 15px; outline: none;
}
.tf-field input:focus, .tf-field select:focus, .tf-field textarea:focus { border-color: rgba(0,73,230,.3); box-shadow: 0 0 0 4px rgba(0,73,230,.09); }
.tf-results-meta { margin: 18px 0 0; color: var(--tf-muted); font-weight: 700; }
.tf-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; margin-top: 18px; }
.tf-mini-map { min-height: 520px; position: sticky; top: 92px; overflow: hidden; background: #121740; }
.tf-list { display: grid; gap: 14px; }
.tf-card { padding: 20px; border: 1px solid var(--tf-line); border-radius: var(--tf-radius-lg); background: var(--tf-card); box-shadow: 0 18px 46px rgba(31,37,80,.08); }
.tf-card-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.tf-card h3 { font-size: 1.45rem; line-height: 1.05; }
.tf-card p { margin: 8px 0 0; color: var(--tf-muted); line-height: 1.62; }
.tf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tf-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(0,73,230,.08); color: var(--tf-text); font-family: "Plus Jakarta Sans", sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tf-badge.accent { background: rgba(217,255,0,.22); }
.tf-card-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.tf-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tf-city-link { padding: 17px; border: 1px solid var(--tf-line); border-radius: 20px; background: rgba(255,255,255,.76); transition: transform .18s ease, box-shadow .18s ease; }
.tf-city-link:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(31,37,80,.09); }
.tf-city-link strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; }
.tf-city-link span { display: block; margin-top: 5px; color: var(--tf-muted); font-size: .9rem; }
.tf-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tf-trust-card { padding: 22px; border-radius: 24px; background: #11133d; color: #fff; }
.tf-trust-card span { color: var(--tf-accent); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.tf-trust-card h3 { margin: 12px 0 8px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.35rem; }
.tf-trust-card p { margin: 0; color: rgba(255,255,255,.76); line-height: 1.65; }
.tf-faq { display: grid; gap: 10px; }
.tf-faq details { border: 1px solid var(--tf-line); border-radius: 18px; background: rgba(255,255,255,.8); padding: 17px 19px; }
.tf-faq summary { cursor: pointer; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; }
.tf-faq p { color: var(--tf-muted); line-height: 1.7; }
.tf-modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(9,12,36,.62); backdrop-filter: blur(10px); }
.tf-modal-backdrop.is-open { display: flex; }
.tf-modal { width: min(100%, 680px); max-height: min(760px, calc(100vh - 30px)); overflow: auto; padding: 24px; border-radius: 28px; background: #fff; box-shadow: 0 32px 100px rgba(0,0,0,.24); }
.tf-modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tf-modal h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: .98; }
.tf-close { width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--tf-soft); cursor: pointer; font-size: 24px; }
.tf-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tf-form-grid .full { grid-column: 1 / -1; }
.tf-check { display: flex; gap: 10px; align-items: start; margin: 14px 0 0; color: var(--tf-muted); line-height: 1.5; }
.tf-check input { margin-top: 4px; }
.tf-status { min-height: 24px; margin: 12px 0 0; font-weight: 800; }
.tf-status.error { color: #b42318; }
.tf-status.success { color: #027a48; }
.tf-empty { padding: 24px; border: 1px dashed rgba(85,95,150,.3); border-radius: 24px; color: var(--tf-muted); background: rgba(255,255,255,.58); }
@media (max-width: 1020px) {
  .tf-hero, .tf-layout { grid-template-columns: 1fr; }
  .tf-controls { grid-template-columns: repeat(2, 1fr); }
  .tf-field.search { grid-column: 1 / -1; }
  .tf-mini-map { position: relative; top: auto; min-height: 340px; }
  .tf-city-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-trust { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tf-page { padding: 24px 0 86px; }
  .tf-hero h1 { max-width: none; font-size: clamp(3rem, 16vw, 4.3rem); }
  .tf-hero-map { min-height: 330px; }
  .tf-actions .tf-btn, .tf-card-actions .tf-btn { width: 100%; }
  .tf-section-head { display: grid; }
  .tf-controls, .tf-form-grid, .tf-city-grid { grid-template-columns: 1fr; }
  .tf-card-top { display: grid; }
  .tf-modal { padding: 20px; border-radius: 24px; }
}
