:root {
  --ink: #222;
  --muted: #5b5b5b;
  --red: #ed1c24;
  --blue: #263a8f;
  --gray: #2d2d2d;
  --mid: #808080;
  --light: #f4f4f4;
  --paper: #fff;
  --line: #d7d7d7;
  --page: min(920px, calc(100% - 40px));
  --wide: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 18px solid #696969;
}

.site-logo {
  display: inline-flex;
  width: min(540px, calc(100% - 120px));
}

.site-logo img {
  width: 100%;
  height: auto;
}

.menu-button {
  position: absolute;
  right: max(28px, calc((100vw - 980px) / 2));
  top: 48px;
  width: 44px;
  height: 38px;
  padding: 7px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 4px;
  margin-bottom: 5px;
  background: #303030;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 34px;
  color: #fff;
  background: rgba(0, 0, 0, 0.93);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.nav-overlay__inner {
  display: grid;
  gap: 7px;
  text-align: center;
}

.nav-overlay__inner p {
  margin: 0 0 18px;
  color: #8cd9cc;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-overlay a {
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-overlay a:hover,
.nav-overlay a.is-current {
  color: var(--red);
}

.nav-overlay .dashboard-link {
  margin-top: 20px;
  color: #8cd9cc;
  font-size: 17px;
  font-weight: 700;
}

.nav-close {
  position: fixed;
  top: 28px;
  right: 34px;
  width: 46px;
  height: 46px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

.home-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 1;
  transition: opacity 900ms ease;
}

.home-splash.is-visible {
  display: grid;
}

.home-splash.is-hiding {
  opacity: 0;
}

.home-splash img {
  width: min(54vw, 720px);
  max-height: 72vh;
  object-fit: contain;
}

.home-stage {
  min-height: 818px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 92px 20px 70px;
  background: linear-gradient(#2d2d2d 0 252px, #fff 252px 100%);
}

.home-grid {
  position: relative;
  width: min(1290px, calc(100% - 80px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 78px 36px;
  align-items: start;
}

.home-tile {
  display: grid;
  gap: 22px;
  color: #090909;
  text-align: center;
  text-decoration: none;
}

.home-tile img {
  width: 100%;
  aspect-ratio: 1.03 / 1;
  object-fit: cover;
  border: 5px solid #fff;
  transition: opacity 160ms ease;
}

.home-tile span {
  color: #050505;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 5px;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: none;
}

.home-tile:hover img {
  opacity: 0.92;
}

.home-events {
  width: var(--wide);
  margin: 0 auto;
  padding: 74px 0 82px;
}

.section-title {
  margin-bottom: 34px;
  text-align: center;
}

.section-title p {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
}

.page-hero {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 18px 20px 20px;
  color: #fff;
  background: linear-gradient(180deg, #303030 0%, #292929 100%);
  border-bottom: 1px solid #e7e7e7;
}

.page-hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.15;
  text-transform: lowercase;
}

.content-page {
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0 92px;
}

.two-column {
  width: var(--wide);
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 58px;
  align-items: start;
}

.copy-block {
  font-size: 15px;
}

.copy-block h2 {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.12;
}

.copy-block p {
  margin: 0 0 15px;
  color: var(--muted);
  text-align: justify;
}

.copy-block--center {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.copy-block--center p {
  text-align: center;
}

.media-box,
.video-card,
.video-placeholder {
  display: block;
  overflow: hidden;
  border: 4px solid #111;
  background: #fff;
}

.media-box img,
.video-card img {
  width: 100%;
  height: auto;
}

.video-card__fallback {
  min-height: 344px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #333;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.08), rgba(38, 58, 143, 0.08)),
    #f8f8f8;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.history-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid #111;
}

.course-flow {
  max-width: 760px;
}

.course-section {
  margin-bottom: 70px;
}

.course-section h2 {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
}

.course-copy {
  padding: 14px 8px 0;
}

.course-copy p {
  margin: 0 0 8px;
  color: #565656;
  font-size: 13px;
  text-align: justify;
}

.video-card {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-card:hover::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.play-mark::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 11px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.video-placeholder {
  min-height: 344px;
  display: grid;
  place-items: center;
  color: #111;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.08), rgba(38, 58, 143, 0.08)),
    #f8f8f8;
}

.video-placeholder span {
  color: #333;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.reason-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.reason-list li {
  padding: 12px 16px;
  border-left: 4px solid var(--red);
  background: #f4f4f4;
  color: var(--muted);
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-list article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
}

.benefit-list h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.sede-gallery img {
  width: 100%;
  border: 3px solid #111;
}

.coach-flow {
  background: linear-gradient(#2e2e2e 0 18%, #fff 18% 31%, #858585 31% 52%, #fff 52% 66%, #858585 66% 86%, #fff 86% 100%);
}

.coach-profile {
  padding: 66px 20px 58px;
  color: #fff;
}

.coach-profile--muted {
  color: #fff;
}

.coach-profile:nth-child(even) {
  background: rgba(128, 128, 128, 0.72);
}

.coach-profile:nth-child(odd) {
  background: rgba(45, 45, 45, 0.94);
}

.coach-profile__inner {
  width: min(640px, 100%);
  margin: 0 auto;
}

.coach-profile__title {
  margin-bottom: 18px;
  text-align: center;
}

.coach-profile__title h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.02;
}

.coach-profile__title p {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.coach-profile ul {
  width: min(380px, 100%);
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  color: inherit;
  font-size: 14px;
}

.coach-profile li {
  margin-bottom: 8px;
}

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

.events-grid--page {
  grid-template-columns: repeat(2, 1fr);
}

.event-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.event-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 6px;
}

.event-card__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid #2d5cff;
  border-radius: 50%;
  object-fit: contain;
  padding: 2px;
}

.event-card__source {
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.event-card__body {
  padding: 6px 16px 14px;
}

.event-card time {
  display: block;
  color: #65676b;
  font-size: 12px;
  line-height: 1.2;
}

.event-card h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.event-card p {
  margin: 0;
  color: #202124;
  font-size: 15px;
  line-height: 1.42;
  text-align: left;
}

.event-card__media {
  display: flex;
  justify-content: center;
  margin: 0;
  border-top: 1px solid #edf0f2;
  background: #f2f3f5;
}

.event-card__media img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.event-video,
.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link {
  margin-top: 28px;
}

.events-feed {
  width: min(850px, 100%);
  display: grid;
  gap: 22px;
  margin: 0 auto;
}

.event-post {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.event-post__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 8px;
}

.event-post__avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid #2d5cff;
  border-radius: 50%;
  object-fit: contain;
  padding: 3px;
}

.event-post__meta {
  min-width: 0;
  flex: 1;
}

.event-post__source {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.event-post__verified {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: #2d6cdf;
}

.event-post__verified::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.event-post__meta p {
  margin: 2px 0 0;
  color: #65676b;
  font-size: 13px;
  line-height: 1.25;
}

.event-post__menu {
  align-self: flex-start;
  color: #65676b;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
}

.event-post time {
  color: inherit;
}

.event-post__content {
  padding: 4px 18px 16px;
  color: #1f1f1f;
  text-align: left;
}

.event-post__content h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
}

.event-post__subtitle {
  margin: 0;
  color: #1f1f1f;
  font-size: 18px;
  line-height: 1.42;
}

.event-post__text {
  margin-top: 10px;
}

.event-post__text p {
  margin: 0 0 10px;
  color: #1f1f1f;
  font-size: 17px;
  line-height: 1.46;
  text-align: left;
}

.event-post__text p:last-child {
  margin-bottom: 0;
}

.event-post__media {
  display: flex;
  justify-content: center;
  margin: 0;
  border-top: 1px solid #dfe3e8;
  background: #f2f3f5;
}

.event-post__media img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.event-card .event-video,
.event-post .event-video {
  margin: 12px 16px 16px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--muted);
  border: 1px dashed #aaa;
  text-align: center;
}

.contact-layout {
  width: var(--wide);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 4px solid #111;
}

.map-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 22px max(24px, calc((100vw - 1020px) / 2));
  color: #fff;
  background: #2f2f2f;
  font-size: 11px;
}

.site-footer p {
  margin: 0 0 3px;
}

.footer-links {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.footer-links a,
.footer-links button {
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: underline;
  cursor: pointer;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__frame {
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 160;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px;
  color: #222;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 400;
}

.cookie-banner p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.cookie-banner a {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-actions button,
.external-placeholder button {
  min-height: 40px;
  border: 0;
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions button.ghost {
  color: #222;
  background: #eee;
}

.external-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background: #f6f6f6;
}

.external-placeholder h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 400;
}

.external-placeholder p {
  max-width: 460px;
  margin: 0 auto 18px;
  color: var(--muted);
}

.map-frame iframe {
  width: 100%;
  min-height: 420px;
  display: block;
  border: 0;
}

@media (max-width: 920px) {
  .site-header {
    height: 104px;
    border-bottom-width: 12px;
  }

  .menu-button {
    top: 34px;
    right: 18px;
  }

  .site-logo {
    width: min(390px, calc(100% - 92px));
  }

  .home-stage {
    min-height: auto;
    padding: 58px 20px 64px;
    background: linear-gradient(#2d2d2d 0 190px, #fff 190px 100%);
  }

  .home-grid {
    width: min(720px, calc(100% - 36px));
    grid-template-columns: repeat(2, 1fr);
    gap: 52px 26px;
  }

  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .events-grid,
  .events-grid--page {
    grid-template-columns: 1fr 1fr;
  }

  .copy-block p,
  .course-copy p {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 82px;
    border-bottom-width: 9px;
  }

  .menu-button {
    top: 25px;
    width: 38px;
  }

  .menu-button span {
    height: 3px;
  }

  .nav-overlay a {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .home-grid,
  .events-grid,
  .events-grid--page,
  .history-grid,
  .sede-gallery {
    grid-template-columns: 1fr;
  }

  .home-stage {
    padding-top: 40px;
    background: linear-gradient(#2d2d2d 0 150px, #fff 150px 100%);
  }

  .home-tile span {
    font-size: 13px;
    letter-spacing: 4px;
  }

  .home-splash img {
    width: min(86vw, 420px);
  }

  .page-hero {
    min-height: 68px;
    padding: 14px 18px 16px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .content-page {
    width: min(100% - 28px, 920px);
    padding: 48px 0 68px;
  }

  .copy-block h2,
  .section-title h1,
  .section-title h2 {
    font-size: 28px;
  }

  .event-post {
    border-radius: 12px;
  }

  .event-post__top {
    padding: 14px 14px 7px;
  }

  .event-post__avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .event-post__content {
    padding: 4px 14px 14px;
  }

  .event-post__content h2 {
    font-size: 18px;
  }

  .event-post__subtitle {
    font-size: 16px;
  }

  .event-post__text p {
    font-size: 16px;
  }

  .course-section h2,
  .coach-profile__title h2 {
    font-size: 33px;
  }

  .coach-profile {
    padding: 48px 14px;
  }

  .site-footer {
    display: grid;
    font-size: 10px;
  }

  .footer-links {
    justify-items: start;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1 1 160px;
  }
}
