/* ==========================================================================
   Training pages (training hub + sport pages)
   Loaded after styles.css (global: colors, header, footer, buttons, shared parts)
   ========================================================================== */
/* =========================================================
   SPORT TRAINING PAGES
   ========================================================= */
.sport-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 64px);
  background: var(--secondary);
}
.sport-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-repeat: no-repeat;
}
.sport-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 50%);
}
.sport-hero__inner {
  padding-bottom: clamp(40px, 5vw, 64px);
}
.sport-hero .crumbs {
  margin-bottom: 24px;
}
.sport-hero__title {
  font-size: clamp(42px, 6.4vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 900px;
}
.sport-hero__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: 34px;
}
.sport-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sport-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.sport-tags li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 28px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sport-tags li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.sport-tags li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  flex-shrink: 0;
}

/* Why */
.why {
  background: var(--secondary);
  padding: clamp(72px, 8vw, 120px) 0;
}
.why__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.why__title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.why__text p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}
.why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.why__list li {
  padding: 26px;
  background: #0e0e0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.why__list h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why__list p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Levels */
.levels {
  background: #0a0a0b;
  padding: clamp(72px, 8vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.levels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.level {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 32px;
  background: #121213;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}
.level:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}
.level__step {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ebbe4d;
  margin-bottom: 18px;
}
.level h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.level__ages {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.level p:not(.level__ages):not(.level__step) {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 26px;
}
.level .offer__more {
  margin-top: auto;
}

/* Anatomy */
.anatomy {
  background: var(--secondary);
  padding: clamp(72px, 8vw, 120px) 0;
}
.anatomy__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.anatomy__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.anatomy__intro p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 20px 0 30px;
  max-width: 420px;
}
.steps {
  counter-reset: step;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: padding-left 0.35s var(--ease);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
  transition:
    color 0.3s,
    -webkit-text-stroke-color 0.3s;
}
.steps li:hover {
  padding-left: 12px;
}
.steps li:hover::before {
  color: #ebbe4d;
  -webkit-text-stroke-color: #ebbe4d;
}
.steps h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.steps p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Formats */
.formats {
  background: #0a0a0b;
  padding: clamp(72px, 8vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.formats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.format {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  background: #121213;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}
.format:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}
.format--featured {
  border-color: #ebbe4d;
}
.format--featured:hover {
  border-color: #ebbe4d;
}
.format h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.format__who {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ebbe4d;
  margin-bottom: 18px;
}
.format p:not(.format__who) {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}
.format .offer__more {
  margin-top: auto;
}
@media (max-width: 1100px) {
  .why__inner,
  .anatomy__inner {
    grid-template-columns: 1fr;
  }
  .anatomy__intro {
    position: static;
  }
  .levels__grid,
  .formats__grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .level {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .sport-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sport-tags li {
    padding: 16px 12px 16px 0;
    font-size: 14px;
  }
  .sport-tags li + li {
    padding-left: 12px;
  }
  .sport-tags li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .sport-tags li:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .why__list {
    grid-template-columns: 1fr;
  }
  .steps li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }
  .steps li::before {
    font-size: 26px;
  }
  .sport-hero__buttons .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 14px 10px;
    min-height: 52px;
    font-size: 15px;
  }
}
.as-plans .format__who {
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
}
.sport-hero--center .sport-hero__overlay {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.8) 75%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 40%);
}
.sport-hero--center .sport-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}
.sport-hero--center .sport-hero__title {
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.08;
  max-width: 820px;
}
.sport-hero--center .sport-hero__text {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}
.sport-hero--center .sport-hero__buttons {
  justify-content: center;
}
.sport-hero--center .sport-tags {
  margin-top: auto;
}
.sport-hero--center .sport-tags li {
  justify-content: center;
}
.sport-hero--center .sport-tags li + li {
  padding-left: 20px;
}
@media (max-width: 700px) {
  .sport-hero--center .sport-hero__title br {
    display: none;
  }
  .sport-hero--center .sport-tags li {
    justify-content: flex-start;
    text-align: left;
  }
}
@media (max-width: 700px) {
  .sport-hero--center .sport-tags li:nth-child(3) {
    padding-left: 0;
  }
  .sport-hero--center .sport-tags li:nth-child(2n) {
    padding-left: 16px;
  }
}

/* =========================================================
   TRAINING HUB
   ========================================================= */
.hub-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 72px;
  text-align: center;
  background: var(--secondary);
}
.hub-hero__mosaic {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #000;
}
.hub-hero__mosaic span {
  display: block;
  background-size: cover !important;
  filter: grayscale(0.4);
  transform: scale(1.04);
  animation: hubIn 1.2s var(--ease) both;
}
.hub-hero__mosaic span:nth-child(2) {
  animation-delay: 0.1s;
}
.hub-hero__mosaic span:nth-child(3) {
  animation-delay: 0.2s;
}
.hub-hero__mosaic span:nth-child(4) {
  animation-delay: 0.3s;
}
.hub-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.82) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 40%);
}
.hub-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hub-hero .crumbs {
  justify-content: center;
  margin-bottom: 24px;
}
.hub-hero__title {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 22px;
}
.hub-hero__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 34px;
}
.hub-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Sport cards */
.hub-sports {
  background: var(--secondary);
  padding: clamp(72px, 8vw, 120px) 0;
  scroll-margin-top: var(--header-h);
}
.hub-sports__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.hub-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hub-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover !important;
  filter: grayscale(0.6) brightness(0.85);
  transition:
    transform 1s var(--ease),
    filter 0.6s;
}
.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.1) 100%);
}
.hub-card:hover .hub-card__img {
  transform: scale(1.07);
  filter: none;
}
.hub-card__body {
  display: grid;
  gap: 8px;
}
.hub-card__name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hub-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}
.hub-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s;
}
.hub-card:hover .hub-card__tags,
.hub-card:focus-visible .hub-card__tags {
  max-height: 80px;
  opacity: 1;
}
.hub-card__tags span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hub-card__go {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #ebbe4d;
  color: #000;
  transition: transform 0.4s var(--ease);
}
.hub-card__go svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.hub-card:hover .hub-card__go {
  transform: rotate(45deg);
}
.hub-card:focus-visible {
  outline: 2px solid #ebbe4d;
  outline-offset: 3px;
}

/* Method */
.hub-method {
  background: #0a0a0b;
  padding: clamp(72px, 8vw, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  list-style: none;
  padding: 0;
}
.method::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 27px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.method__step {
  position: relative;
  padding-right: 32px;
}
.method__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 16px;
  font-weight: 800;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.method__step:hover .method__num {
  background: #ebbe4d;
  border-color: #ebbe4d;
  color: #000;
}
.method__step h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}
.method__step p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* Pathway */
.hub-path {
  background: var(--secondary);
  padding: clamp(72px, 8vw, 120px) 0;
}
.hub-path__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.hub-path__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.hub-path__intro p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 20px 0 30px;
  max-width: 420px;
}
.path {
  display: grid;
  gap: 16px;
}
.path__item {
  position: relative;
  padding: 32px 32px 32px 36px;
  background: #0e0e0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    border-color 0.3s,
    transform 0.35s var(--ease);
}
.path__item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(6px);
}
.path__age {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ebbe4d;
  margin-bottom: 10px;
}
.path__item h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.path__item p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
}

.hub-cta__img {
  background: url('../images/sport-baseball.jpg') 30% 40% / cover no-repeat;
}
@media (max-width: 1100px) {
  .hub-sports__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-card {
    min-height: 400px;
  }
  .method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 0;
  }
  .method::before {
    display: none;
  }
  .hub-path__inner {
    grid-template-columns: 1fr;
  }
  .hub-path__intro {
    position: static;
  }
}
@media (max-width: 600px) {
  .hub-hero__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .hub-sports__grid {
    grid-template-columns: 1fr;
  }
  .hub-card {
    min-height: 320px;
  }
  .hub-card__tags {
    max-height: 80px;
    opacity: 1;
  }
  .method {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hub-hero__buttons .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 14px 10px;
    min-height: 52px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Inner page banner headings - smaller, consistent size (home hero unchanged)
   ========================================================================== */
.sport-hero__title,
.sport-hero--center .sport-hero__title,
.hub-hero__title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}
