/* Speed page only – desktop/mobile alignment and live course listing.
   Loaded AFTER styles.css so existing pages remain unchanged. */
.speed-page .inner-hero--speed {
  display: grid;
  grid-template-columns: minmax(250px, .88fr) minmax(0, 1.12fr);
  grid-template-rows: auto;
  gap: clamp(35px, 5vw, 90px);
  align-items: center;
  min-height: min(850px, 100svh);
  padding-top: clamp(145px, 11vh, 180px);
  padding-bottom: clamp(72px, 9vh, 100px);
  overflow: hidden;
}
.speed-page .inner-hero--speed .speed-hero-copy {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  max-width: min(640px, 100%);
  min-width: 0;
}
.speed-page .inner-hero--speed .speed-hero-badge {
  position: relative !important;
  z-index: 2;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: min(100%, 350px) !important;
  max-width: 100%;
  margin: 0;
  opacity: 1 !important;
  transform: none !important;
}
.speed-page .inner-hero--speed .speed-hero-badge img {
  display: block;
  width: min(100%, 335px) !important;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: auto;
}
.speed-page .inner-hero--speed .speed-hero-badge span {
  display: block;
  margin-top: 13px;
  line-height: 1.5;
  text-wrap: balance;
}
.speed-events.section {
  position: relative;
  padding-top: clamp(78px, 9vw, 132px);
  padding-bottom: clamp(72px, 9vw, 125px);
  scroll-margin-top: 96px;
}
.speed-events__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  gap: clamp(30px, 6vw, 95px);
  align-items: end;
}
.speed-events__heading h2 {
  margin: 15px 0 0;
  font-size: clamp(2.8rem, 5.7vw, 5.6rem);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -.052em;
}
.speed-events__heading h2 em { font-style: normal; color: #ffae6b; }
.speed-events__heading > p {
  color: #c9bdba;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.75;
}
.speed-events__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 60px);
  margin-bottom: 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 180, 135, .22);
  color: #d9c8c0;
}
.speed-events__summary strong { font-size: 1.4rem; color: #ffae6b; }
.speed-events__grid { align-items: stretch; }
.speed-event-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 184, 133, .2);
  background: rgba(21, 16, 18, .86);
}
.speed-event-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1b0d0b;
}
.speed-event-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}
.speed-event-card__image:hover img { transform: scale(1.035); }
.speed-event-card__category {
  position: absolute;
  left: 17px;
  bottom: 17px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(17, 11, 10, .88);
  color: #ffd2aa;
  font-size: .78rem;
  font-weight: 700;
}
.speed-event-card .course-body { padding: clamp(22px, 2.5vw, 33px); }
.speed-event-card .course-body h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.18;
}
.speed-event-card__description {
  color: #cdbab3;
  line-height: 1.65;
}
.speed-events__empty,
.speed-events__message {
  grid-column: 1 / -1;
  padding: clamp(35px, 5vw, 65px);
  text-align: center;
  border: 1px solid rgba(255, 184, 133, .18);
  border-radius: 24px;
  background: rgba(35, 17, 15, .5);
}
.speed-events__empty h3 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.speed-events__empty p {
  max-width: 630px;
  margin: 0 auto 28px;
  color: #d0bbb2;
  line-height: 1.7;
}
.speed-events__empty .button { display: inline-flex; }
@media (max-width: 1000px) {
  .speed-page .inner-hero--speed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    min-height: 0;
    padding: 130px max(22px, 5vw) 80px;
  }
  .speed-page .inner-hero--speed .speed-hero-badge {
    grid-column: 1;
    grid-row: 1;
    width: min(235px, 44vw) !important;
    justify-self: center;
  }
  .speed-page .inner-hero--speed .speed-hero-badge img { width: 100% !important; }
  .speed-page .inner-hero--speed .speed-hero-badge span { display: none; }
  .speed-page .inner-hero--speed .speed-hero-copy {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
  }
  .speed-page .inner-hero--speed .speed-hero-actions { justify-content: center; }
  .speed-events__heading { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 620px) {
  .speed-page .inner-hero--speed {
    padding: 112px 20px 70px;
  }
  .speed-page .inner-hero--speed .speed-hero-badge { width: min(190px, 48vw) !important; }
  .speed-page .inner-hero--speed h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
  .speed-page .inner-hero--speed .speed-hero-actions { align-items: stretch; }
  .speed-events__summary { align-items: start; }
  .speed-events.section { scroll-margin-top: 72px; }
}

/* Finální doladění karet vůči univerzálním pravidlům course-body. */
.speed-page .speed-event-card__body h3 { margin-top: 20px; }
.speed-page .speed-event-card__description {
  margin: 13px 0 0;
  font-size: .96rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #cdbab3;
  line-height: 1.65;
}
.speed-page .speed-events__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1050px) {
  .speed-page .speed-events__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .speed-page .speed-events__grid { grid-template-columns: minmax(0, 1fr); }
}
