:root {
  --ink: #1b2027;
  --muted: #68727e;
  --line: #e1ded8;
  --paper: #f4f1ea;
  --surface: #ffffff;
  --red: #b11322;
  --red-dark: #74101a;
  --green: #153c3b;
  --gold: #b79855;
  --shadow: 0 18px 44px rgba(31, 41, 55, .09);
}

* {
  box-sizing: border-box;
}

html {
  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;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
}

.admin-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 38px;
  padding: 7px clamp(18px, 5vw, 72px);
  background: #151a20;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
}

.admin-bar span {
  color: var(--gold);
  text-transform: uppercase;
}

.admin-bar a {
  color: #ffffff;
  text-decoration: none;
}

.admin-bar a:hover {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(31, 41, 55, .1);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.has-admin-bar .site-header {
  top: 38px;
}

.nav-toggle,
.nav-button {
  display: none;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

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

.brand strong {
  font-size: 17px;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a,
.button,
.text-link {
  text-decoration: none;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #303943;
  font-size: 14px;
  font-weight: 750;
}

.main-nav a:hover {
  background: #ffffff;
  color: var(--red-dark);
}

.main-nav .nav-cta,
.button.primary {
  background: var(--red);
  color: #ffffff;
}

main {
  flex: 1 0 auto;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: min(760px, calc(100vh - 82px));
  padding: clamp(44px, 6vw, 82px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 82% 24%, rgba(177, 19, 34, .28), transparent 30%),
    radial-gradient(circle at 26% 18%, rgba(183, 152, 85, .16), transparent 28%),
    linear-gradient(135deg, #111820 0%, #183032 58%, #10151b 100%);
}

.hero h1,
.page-hero h1,
.section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 860px;
  color: #ffffff;
  font-size: clamp(46px, 7vw, 104px);
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d8dee3;
  font-size: clamp(18px, 2vw, 24px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}

.button.secondary {
  background: #ffffff;
}

.hero-panel {
  position: relative;
  min-height: 280px;
  padding: 32px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(13, 18, 24, .24), rgba(13, 18, 24, .24)),
    linear-gradient(145deg, #891522, #1b3032 70%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "Training";
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: rgba(255, 255, 255, .1);
  font-size: clamp(58px, 8vw, 118px);
  font-weight: 900;
  line-height: 1;
}

.hero-panel p,
.hero-panel strong,
.hero-panel span {
  position: relative;
  display: block;
}

.hero-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  max-width: 420px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.hero-panel span {
  margin-top: 20px;
  font-weight: 700;
}

.quick-grid,
.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  transform: translateY(-40px);
  background: var(--line);
  box-shadow: 0 12px 36px rgba(31, 41, 55, .07);
}

.quick-grid a,
.card-grid article,
.info-panel,
.membership-grid article {
  background: #ffffff;
}

.quick-grid a {
  min-height: 142px;
  padding: 24px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
}

.quick-grid span,
.card-grid span,
.info-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  padding: 42px 0;
}

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

.section h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.text-link,
.card-grid article a,
.info-panel a {
  color: var(--red);
  font-weight: 850;
}

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

.card-grid article,
.membership-grid article,
.info-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card-grid article h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.news-card img {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: -24px -24px 18px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  background: var(--paper);
}

.news-detail-content {
  max-width: 860px;
}

.news-content-card {
  margin-top: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.news-content-card p:first-child {
  margin-top: 0;
}

.news-content-card p:last-child {
  margin-bottom: 0;
}

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

.news-gallery button {
  display: block;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.news-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(10, 14, 18, .9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 86vw);
  max-height: 84vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.membership-grid article h2 {
  margin: 8px 0 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.membership-grid article p {
  overflow-wrap: anywhere;
}

.person-card img {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
}

.card-grid article p,
.prose p,
.membership-grid p,
.info-panel {
  color: var(--muted);
}

.card-grid time {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.schedule,
.detail-grid,
.membership-grid {
  display: grid;
  gap: 16px;
}

.schedule {
  grid-template-columns: repeat(4, 1fr);
}

.schedule article {
  min-height: 164px;
  padding: 22px;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .06);
}

.schedule strong,
.schedule span,
.schedule small {
  display: block;
}

.schedule strong {
  font-size: 24px;
}

.schedule span {
  margin: 10px 0;
  color: var(--green);
  font-weight: 900;
}

.schedule small {
  color: var(--muted);
  font-size: 14px;
}

.training-link-card {
  display: grid;
  align-items: start;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 41, 55, .07);
}

.training-link-card strong {
  display: block;
  max-width: 680px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.15;
}

.training-link-card p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.training-notice {
  margin-top: 42px;
  margin-bottom: 0;
  padding: 22px 24px;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.training-notice.is-empty {
  border-left-color: var(--green);
}

.training-notice span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.training-notice p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.training-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  align-items: stretch;
  gap: 1px;
  margin-top: 22px;
  margin-bottom: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.calendar-day {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: #ffffff;
}

.calendar-day header {
  min-height: 92px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-day header span,
.calendar-day header strong {
  display: block;
}

.calendar-day header span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day header strong {
  margin-top: 6px;
  font-size: 21px;
  line-height: 1.1;
}

.calendar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 270px;
  padding: 14px;
}

.training-slot {
  flex: 0 0 var(--slot-height);
  min-height: 92px;
  margin: 0 0 10px;
  padding: 14px;
  border-left: 5px solid var(--slot-color, var(--red));
  border-radius: 8px;
  background: var(--slot-bg, #f8f5ef);
}

.training-slot:last-child {
  margin-bottom: 0;
}

.training-slot.type-combi {
  --slot-color: #b11322;
  --slot-bg: #f8e9ea;
}

.training-slot.type-youth {
  --slot-color: #1f6f78;
  --slot-bg: #e8f3f4;
}

.training-slot.type-open {
  --slot-color: #b4832f;
  --slot-bg: #f7f0df;
}

.training-slot time,
.training-slot strong,
.training-slot span {
  display: block;
}

.training-slot time {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.training-slot strong {
  margin-top: 10px;
  font-size: 16px;
}

.training-slot span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.calendar-empty {
  margin: 0;
  color: #9aa0a7;
  font-weight: 800;
}

.calendar-day.is-empty {
  background: #f7f7f6;
}

.training-page .page-hero {
  margin-bottom: clamp(28px, 4vw, 56px);
}

.training-page .training-notice {
  margin-top: 0;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.training-page .training-calendar {
  margin-top: 0;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.page-hero {
  padding: 64px clamp(18px, 5vw, 72px) 54px;
  background:
    radial-gradient(circle at 92% 14%, rgba(177, 19, 34, .2), transparent 26%),
    linear-gradient(135deg, #111820 0%, #183032 70%, #10151b 100%);
  color: #ffffff;
}

.page-hero .lead {
  color: #d8dee3;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(44px, 6vw, 82px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
}

.club-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  margin-top: clamp(28px, 4vw, 56px);
}

.club-intro-copy,
.club-intro-facts {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.club-intro-copy {
  padding: clamp(26px, 4vw, 44px);
}

.club-intro-copy h2 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 56px);
}

.club-intro-copy .prose {
  margin-top: 22px;
}

.club-intro-facts {
  display: grid;
  align-content: stretch;
  overflow: hidden;
}

.club-intro-facts article {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.club-intro-facts article:last-child {
  border-bottom: 0;
}

.club-intro-facts span {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.club-intro-facts strong {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
}

.prose {
  max-width: 760px;
  font-size: 18px;
}

.prose p:first-child {
  margin-top: 0;
}

.page-content h2 {
  margin: 34px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
}

.page-content h2:first-child {
  margin-top: 0;
}

.content-notice {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-notice span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.content-notice p {
  margin: 0;
}

.legal-content-card {
  margin-top: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(42px, 6vw, 72px);
  max-width: 920px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-content-card h2:first-child,
.legal-content-card h3:first-child,
.legal-content-card p:first-child {
  margin-top: 0;
}

.legal-content-card p:last-child,
.legal-content-card ul:last-child,
.legal-content-card ol:last-child {
  margin-bottom: 0;
}

.team-content-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.team-content-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-content-card .prose {
  max-width: 820px;
}

.team-content-card .prose p:last-child {
  margin-bottom: 0;
}

.detail-grid,
.membership-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-panel strong,
.info-panel a {
  color: var(--ink);
  font-size: 20px;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  font-size: 14px;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.ttlive-section {
  display: grid;
  gap: 22px;
}

.live-league {
  margin: -10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.ttlive-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ttlive-block h3 {
  margin: 0 0 16px;
  font-size: 26px;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.live-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

.live-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-table tr.is-own,
.live-table .is-own-cell {
  background: #f7eef0;
  color: var(--red-dark);
  font-weight: 900;
}

.live-table a {
  color: var(--red);
  font-weight: 850;
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: 1fr 46px;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px 18px;
  }

  .nav-button {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
  }

  .nav-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0 4px;
  }

  .nav-toggle:checked ~ .main-nav {
    display: grid;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 0 14px;
  }

  .main-nav .nav-cta {
    justify-content: center;
    border-color: var(--red);
    background: var(--red);
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 72px);
  }

  .hero-panel {
    min-height: 230px;
  }

  .quick-grid,
  .card-grid,
  .schedule,
  .training-calendar,
  .detail-grid,
  .news-gallery,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .training-calendar {
    border-radius: 0;
    box-shadow: none;
  }

  .calendar-day {
    min-height: 0;
  }

  .calendar-body {
    min-height: 0;
  }

  .calendar-day header {
    min-height: 0;
    padding: 16px 18px;
  }

  .quick-grid {
    transform: none;
    margin-top: 0;
  }

  .ttlive-section .section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .ttlive-block {
    padding: 18px;
  }

  .ttlive-block h3 {
    font-size: 22px;
  }

  .table-scroll {
    overflow-x: visible;
  }

  .live-table {
    display: block;
    min-width: 0;
  }

  .live-table thead {
    display: none;
  }

  .live-table tbody {
    display: grid;
    gap: 12px;
  }

  .live-table tr {
    display: grid;
    gap: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf7;
  }

  .live-table tr.is-own {
    border-color: #e8c7cf;
    background: #f7eef0;
  }

  .live-table td {
    display: grid;
    grid-template-columns: minmax(84px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid rgba(37, 41, 51, .08);
    overflow-wrap: anywhere;
  }

  .live-table td:last-child {
    border-bottom: 0;
  }

  .live-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .live-table .is-own-cell {
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .main-nav a {
    padding: 0 12px;
    font-size: 13px;
  }

  .hero,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-panel {
    min-height: 220px;
    padding: 24px;
  }

  .hero-panel strong {
    font-size: 34px;
  }

  .hero-panel::before {
    right: 18px;
    bottom: 18px;
    font-size: 58px;
  }

  .ttlive-block {
    padding: 14px;
  }

  .live-table td {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    font-size: 14px;
  }
}
