:root {
  --ink: #17211b;
  --muted: #65736c;
  --line: #dce5df;
  --paper: #fbfcfa;
  --soft: #eef5f0;
  --green: #176b3a;
  --green-dark: #0e4328;
  --red: #c7352f;
  --blue: #315c87;
  --gold: #c1902d;
  --shadow: 0 14px 36px rgba(23, 33, 27, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(220, 229, 223, 0.85);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #213f70);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-dark);
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero {
  position: relative;
  z-index: 10;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(14, 35, 24, 0.84), rgba(14, 35, 24, 0.52), rgba(14, 35, 24, 0.08)),
    url("assets/hero-training.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0 56px;
  color: #fff;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.quick-search {
  position: relative;
  z-index: 30;
  width: min(980px, 100%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
}

.section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
}

.section.slim {
  padding-top: 26px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.page-title {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.page-title p,
.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel,
.card,
.form-shell,
.legal-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel,
.form-shell,
.legal-block {
  padding: 22px;
}

.card {
  display: grid;
  gap: 13px;
  padding: 18px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 107, 58, 0.42);
  box-shadow: var(--shadow);
}

.ad-card h3,
.club-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.pill {
  color: var(--green-dark);
  background: var(--soft);
}

.tag {
  color: #fff;
  background: var(--green);
}

.tag.red {
  background: var(--red);
}

.tag.blue {
  background: var(--blue);
}

.tag.gold {
  background: var(--gold);
}

.tag.muted {
  color: var(--muted);
  background: #eef1ef;
}

.muted {
  color: var(--muted);
}

.empty {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
legend {
  color: #2d3a33;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd9d2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 44px;
  padding: 9px 11px;
}

textarea {
  min-height: 126px;
  resize: vertical;
  padding: 11px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(23, 107, 58, 0.18);
  border-color: var(--green);
}

fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid #cdd9d2;
  border-radius: 8px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.check-pill input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.btn:hover {
  background: var(--green-dark);
}

.btn.secondary {
  color: var(--green-dark);
  border-color: #b7cfc1;
  background: #fff;
}

.btn.secondary:hover {
  background: var(--soft);
}

.btn.danger {
  background: var(--red);
}

.btn.ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.contact-line {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 10px 10px 14px;
  border: 1px solid #b7cfc1;
  border-radius: 8px;
  background: #fff;
}

.contact-line:not(.secondary) {
  border-color: rgba(23, 107, 58, 0.34);
  background: rgba(238, 245, 240, 0.74);
}

.contact-text {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px 7px;
  user-select: text;
}

.contact-label {
  flex: 0 0 auto;
  font-weight: 950;
}

.contact-label::after {
  content: ":";
}

.contact-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
  user-select: text;
}

.contact-action {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.88rem;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.logo {
  display: grid;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.logo-placeholder {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.logo-image {
  padding: 6px;
  border: 2px solid #111;
  background: #fff;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.club-card {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.club-card .club-body {
  display: grid;
  gap: 8px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.ad-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-card {
  position: relative;
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 5px;
  padding: 16px 18px 16px 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 107, 58, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 107, 58, 0.1), rgba(49, 92, 135, 0.06)),
    #fff;
}

.fact-card::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 5px;
  border-radius: 999px;
  background: var(--green);
}

.fact-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--soft);
  font-size: 0.86rem;
}

tr:last-child td {
  border-bottom: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.legal-block {
  display: grid;
  gap: 18px;
}

.legal-block h2,
.legal-block h3 {
  margin: 0 0 8px;
}

.legal-block p,
.legal-block li {
  color: #334139;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.footer div,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    width: 100%;
  }

  .search-grid,
  .filters,
  .grid-2,
  .grid-3,
  .detail-layout,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding: 58px 0 30px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 30px 0;
  }

  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

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

  .footer {
    display: grid;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    border-bottom: 0;
  }

  tr {
    border-bottom: 1px solid var(--line);
  }
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: none;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
}

.hero {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(10, 27, 19, 0.9), rgba(15, 50, 35, 0.66), rgba(15, 50, 35, 0.1)),
    url("assets/hero-training.png") center / cover no-repeat;
}

.quick-search {
  width: min(1060px, 100%);
  padding: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
}

.search-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) 150px;
}

.field-label {
  color: #2d3a33;
  font-size: 0.88rem;
  font-weight: 900;
}

.multi-field {
  position: relative;
  z-index: 20;
}

.multi-field.open {
  z-index: 90;
}

.single-field.open {
  z-index: 90;
}

.multi-trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #c8d5cd;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-weight: 800;
}

.multi-trigger span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  display: none;
  width: min(360px, 92vw);
  max-height: 330px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.multi-menu .multi-search {
  display: block;
  width: 100%;
}

.multi-field.open .multi-menu {
  display: grid;
  gap: 10px;
}

.single-field.open .multi-menu {
  display: grid;
  gap: 10px;
}

.multi-search {
  min-height: 40px;
}

.multi-options {
  display: grid;
  max-height: 240px;
  overflow: auto;
  gap: 6px;
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.single-option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.single-option:hover {
  background: var(--soft);
}

.multi-option:hover {
  background: var(--soft);
}

.multi-option[hidden],
.single-option[hidden] {
  display: none !important;
}

.multi-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.stat-grid.compact {
  grid-template-columns: repeat(2, minmax(220px, 360px));
  justify-content: center;
}

.stat {
  text-align: center;
  border: 1px solid rgba(23, 107, 58, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 240, 0.9)),
    #fff;
  box-shadow: 0 12px 28px rgba(23, 33, 27, 0.08);
}

.stat strong {
  color: var(--green-dark);
  font-size: 2.25rem;
}

.listings-band {
  background:
    linear-gradient(180deg, #f7fbf8, #fff),
    #fff;
}

.feature-lists {
  align-items: start;
}

.feature-column {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 107, 58, 0.08), rgba(49, 92, 135, 0.08));
}

.feature-column.popular {
  background: linear-gradient(135deg, rgba(193, 144, 45, 0.13), rgba(199, 53, 47, 0.08));
}

.filter-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 33, 27, 0.07);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.filter-row.single {
  grid-template-columns: minmax(220px, 1fr);
  max-width: 380px;
}

.filter-card > .btn {
  width: calc((100% - 24px) / 3);
  margin-top: 12px;
}

.club-filter > .btn {
  width: min(180px, 100%);
}

.job-card {
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.35fr);
  align-items: center;
  gap: 16px;
  border-color: rgba(23, 107, 58, 0.16);
  background:
    linear-gradient(90deg, rgba(23, 107, 58, 0.08), rgba(255, 255, 255, 0) 34%),
    #fff;
}

.job-logo .logo {
  width: 68px;
  height: 68px;
}

.job-main {
  display: grid;
  gap: 10px;
}

.job-main h3 {
  font-size: 1.2rem;
}

.job-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.job-side {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.job-side strong {
  color: var(--ink);
}

.job-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.club-grid {
  align-items: stretch;
}

.club-tile {
  min-height: 190px;
  grid-template-columns: 1fr;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(49, 92, 135, 0.1), rgba(23, 107, 58, 0.07)),
    #fff;
}

.club-tile .logo {
  width: 72px;
  height: 72px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.login-card {
  align-self: start;
}

.login-card .btn {
  width: auto;
  justify-self: start;
}

.club-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.club-ads-box {
  align-self: start;
}

.compact-head {
  margin-bottom: 0;
}

.panel-list {
  display: grid;
  gap: 10px;
}

.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.panel-row-title {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.btn.small {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.88rem;
}

.footer {
  align-items: center;
  padding-block: 34px;
  color: #d8e8df;
  background:
    linear-gradient(135deg, rgba(23, 107, 58, 0.96), rgba(33, 63, 112, 0.96)),
    var(--green-dark);
}

.footer a,
.footer strong {
  color: #fff;
}

.footer small,
.footer-contact span {
  color: rgba(255, 255, 255, 0.74);
}

.footer-brand,
.footer-contact,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-contact {
  display: grid;
  gap: 3px;
}

@media (max-width: 920px) {
  .search-grid,
  .filter-row,
  .auth-layout,
  .club-panel-grid,
  .job-card {
    grid-template-columns: 1fr;
  }

  .filter-card > .btn {
    width: 100%;
  }

  .job-side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .stat-grid.compact {
    grid-template-columns: 1fr;
  }

  .ad-facts {
    grid-template-columns: 1fr;
  }

  .feature-column {
    padding: 12px;
  }

  .panel-row {
    grid-template-columns: 1fr;
  }

  .contact-line {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .contact-text {
    display: none;
  }

  .contact-action {
    flex: 1 1 120px;
    min-height: 44px;
    font-size: 1rem;
  }
}
