/* ===================================================================
   davidvas.cz — Marketing web
   Design system z Lovable projektu (my-best-web-ever)
   #TYMDEJVID brand greens
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ===== Design tokens ============================================== */
:root {
  --background: 0 0% 100%;
  --foreground: 150 20% 10%;

  --card: 0 0% 100%;
  --card-foreground: 150 20% 10%;

  --primary: 145 75% 28%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 142 70% 45%;
  --primary-deep: 150 80% 18%;

  --secondary: 145 25% 95%;
  --secondary-foreground: 150 30% 12%;

  --muted: 145 15% 94%;
  --muted-foreground: 150 8% 40%;

  --accent: 142 70% 45%;
  --accent-foreground: 0 0% 100%;

  --border: 145 15% 88%;
  --radius: 0.875rem;

  --hero-overlay: linear-gradient(135deg, hsla(150, 80%, 10%, 0.92) 0%, hsla(145, 75%, 22%, 0.78) 45%, hsla(142, 70%, 35%, 0.55) 100%);
  --gradient-primary: linear-gradient(135deg, hsl(150, 80%, 18%) 0%, hsl(145, 75%, 28%) 50%, hsl(142, 70%, 40%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(142, 70%, 40%) 0%, hsl(145, 75%, 32%) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, hsla(142, 75%, 50%, 0.35) 0%, transparent 70%);
  --gradient-mesh: radial-gradient(at 20% 20%, hsla(142, 70%, 45%, 0.25) 0px, transparent 50%), radial-gradient(at 80% 0%, hsla(145, 75%, 35%, 0.2) 0px, transparent 50%), radial-gradient(at 80% 80%, hsla(150, 80%, 25%, 0.15) 0px, transparent 50%);
  --gradient-dark: linear-gradient(180deg, hsl(150, 35%, 8%) 0%, hsl(150, 40%, 12%) 50%, hsl(145, 45%, 15%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(145, 30%, 98%) 100%);

  --shadow-card: 0 4px 24px -4px hsla(150, 40%, 15%, 0.1);
  --shadow-card-hover: 0 20px 50px -12px hsla(145, 75%, 25%, 0.25);
  --shadow-hero: 0 20px 60px -12px hsla(145, 75%, 25%, 0.45);
  --shadow-glow: 0 0 40px hsla(142, 70%, 45%, 0.4);

  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== Reset & base =============================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-width: 320px;
}

/* Generic safety: any decorative orb/glow under subhero should NOT block text */
.subhero .hero-orb,
.subhero-bg {
  z-index: 0;
  pointer-events: none;
}
.subhero .container { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* ===== Layout helpers ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* ===== Buttons ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: all var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: hsla(0, 0%, 100%, 0.06);
  color: hsl(var(--primary-foreground));
  border: 2px solid hsla(0, 0%, 100%, 0.4);
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: hsla(0, 0%, 100%, 0.12);
  border-color: hsla(0, 0%, 100%, 0.6);
}

.btn-white {
  background: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
  box-shadow: var(--shadow-hero);
}

.btn-white:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn .icon-arrow {
  transition: transform var(--transition-smooth);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

/* Inline SVG icons sizing */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-xs {
  width: 0.85rem;
  height: 0.85rem;
}

/* ===== Navbar ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsla(145, 15%, 88%, 0.6);
}

.navbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.navbar-brand .brand-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .navbar-links { display: flex; }
}

.navbar-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.5rem;
  transition: all var(--transition-smooth);
}

.navbar-link:hover {
  color: hsl(var(--primary));
  background: hsl(var(--secondary));
}

.navbar-cta {
  margin-left: 0.75rem;
}

.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .navbar-toggle { display: none; }
}

.navbar-mobile {
  display: none;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
}

.navbar-mobile.is-open {
  display: block;
  animation: slideDown 240ms ease-out;
}

.navbar-mobile-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.navbar-mobile-link {
  padding: 0.75rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.5rem;
  transition: all var(--transition-smooth);
}

.navbar-mobile-link:hover {
  color: hsl(var(--primary));
  background: hsl(var(--secondary));
}

.navbar-mobile .btn {
  margin-top: 0.5rem;
  width: 100%;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero ======================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
  background: hsl(150, 35%, 8%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.6;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-glow);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero-orb-1 {
  top: 25%;
  left: -5rem;
  width: 24rem;
  height: 24rem;
}

.hero-orb-2 {
  bottom: 20%;
  right: -5rem;
  width: 28rem;
  height: 28rem;
  animation-delay: 2s;
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
}

.hero h1 .accent-word {
  background: linear-gradient(90deg,
    hsl(var(--primary-foreground)) 0%,
    hsl(142, 70%, 75%) 50%,
    hsl(var(--primary-foreground)) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: hsla(0, 0%, 100%, 0.85);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .hero-cta { flex-direction: row; }
}

.hero-meta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.4);
}

/* Hero photo (placeholder until David sends real photo) */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero-photo {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  border: 2px solid hsla(142, 70%, 45%, 0.3);
  box-shadow: var(--shadow-hero), var(--shadow-glow);
  overflow: hidden;
  background: linear-gradient(145deg, hsl(150, 30%, 18%) 0%, hsl(145, 45%, 22%) 100%);
}

.hero-photo picture {
  display: block;
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: inherit;
}

/* Decorative corner rings */
.hero-photo-wrap::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: -1.25rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 2px solid hsla(142, 70%, 55%, 0.5);
  pointer-events: none;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--gradient-glow);
  opacity: 0.7;
  pointer-events: none;
}

/* ===== Sub-page hero with background image ====================== */
.subhero-with-image {
  position: relative;
}

.subhero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.subhero-bg--over-image {
  background: linear-gradient(135deg, hsla(150, 80%, 10%, 0.94) 0%, hsla(145, 75%, 18%, 0.86) 55%, hsla(142, 70%, 25%, 0.78) 100%) !important;
  z-index: 1 !important;
}

.subhero-bg--over-image::before {
  background: var(--gradient-mesh) !important;
  opacity: 0.4 !important;
}

/* ===== Sub-page hero (shorter than homepage hero) ================= */
.subhero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 3rem;
  background: hsl(150, 35%, 8%);
  color: hsl(var(--primary-foreground));
}

.subhero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.subhero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.6;
}

.subhero .hero-orb {
  z-index: 0;
}

.subhero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.subhero-eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  color: hsl(var(--primary-foreground));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.subhero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  color: hsl(var(--primary-foreground));
}

.subhero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: hsla(0, 0%, 100%, 0.8);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== Generic content section ==================================== */
.section-content {
  padding: 5rem 0;
  position: relative;
}

.section-content.alt {
  background: hsl(var(--secondary));
}

.section-content.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.25;
  pointer-events: none;
}

.section-content > .container {
  position: relative;
  z-index: 1;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  color: hsl(var(--foreground));
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2,
.prose h3 {
  margin: 2rem 0 1rem;
  color: hsl(var(--foreground));
}

.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }

.prose ul,
.prose ol {
  margin: 0 0 1.25rem 1.25rem;
  padding-left: 1rem;
  list-style: disc;
}

.prose ul li,
.prose ol li {
  margin-bottom: 0.5rem;
}

/* ===== Generic cards grid ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.card-grid > * { min-height: 100%; }

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 350ms var(--transition-smooth);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-card .icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.service-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: hsl(var(--primary));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition-smooth);
}

.service-card:hover .service-card-cta {
  gap: 0.5rem;
}

/* ===== Timeline =================================================== */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 999px;
}

@media (min-width: 720px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .timeline-item {
    width: 50%;
    padding-left: 3rem;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
  }
  .timeline-item:nth-child(odd) {
    text-align: right;
    padding-left: 0;
    padding-right: 3rem;
  }
}

.timeline-dot {
  position: absolute;
  left: 0.4rem;
  top: 0.3rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid hsl(var(--background));
  box-shadow: var(--shadow-glow);
  z-index: 1;
}

@media (min-width: 720px) {
  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -0.6rem;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: -0.6rem;
  }
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: hsl(var(--foreground));
}

.timeline-text {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===== Filter pills (blog filter) ================================ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: 1px solid hsla(145, 15%, 88%, 0.4);
}

.filter-pill:hover {
  color: hsl(var(--primary));
  transform: scale(1.04);
}

.filter-pill.is-active {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
}

/* ===== Countdown (BEM) =========================================== */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 8px;
  flex-wrap: wrap;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 80px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.countdown__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  font-family: var(--font-display);
}

.countdown__sep {
  font-size: clamp(24px, 4vw, 32px);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  align-self: flex-start;
  padding-top: 8px;
}

.countdown__caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0 0 24px;
}

.countdown--started {
  display: none;
}

.countdown__started-message {
  display: none;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: #4ade80;
  text-align: center;
  margin: 32px 0;
  font-family: var(--font-display);
}

.countdown__started-message.show {
  display: block;
}

@media (max-width: 600px) {
  .countdown { gap: 8px; }
  .countdown__item { padding: 12px 14px; min-width: 64px; }
  .countdown__sep { display: none; }
}

/* ===== Course timeline (BEM) ===================================== */
.course-timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-week {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--gradient-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 300ms var(--transition-smooth);
}

.course-week:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.course-week__num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
}

.course-week__body {
  flex: 1;
  min-width: 0;
}

.course-week__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
  color: hsl(var(--foreground));
  line-height: 1.3;
}

.course-week__date {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.course-week__points {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.course-week__points li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: hsl(var(--foreground));
}

.course-week__points li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0.45rem;
  font-size: 0.65rem;
  color: hsl(var(--primary-glow));
}

.course-week__highlight {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: hsla(45, 90%, 60%, 0.12);
  border-left: 3px solid hsl(45, 90%, 55%);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  line-height: 1.55;
}

.course-week__highlight strong {
  color: hsl(35, 90%, 40%);
}

.course-week--peak .course-week__num {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #4b2c00;
  box-shadow: 0 0 30px hsla(40, 95%, 55%, 0.45);
}

.course-week--bonus .course-week__num {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #06281a;
  box-shadow: 0 0 30px hsla(155, 70%, 50%, 0.45);
}

@media (max-width: 600px) {
  .course-week { padding: 1.1rem 1rem; gap: 0.85rem; }
  .course-week__num { width: 2.5rem; height: 2.5rem; font-size: 1.15rem; border-radius: 12px; }
  .course-week__body h3 { font-size: 1rem; }
  .course-week__points li { font-size: 0.88rem; padding-left: 1.1rem; }
  .course-week__highlight { font-size: 0.88rem; }
}

/* ===== Contact form / kontakt page =============================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: hsl(var(--foreground));
}

.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(145, 75%, 28%, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-card {
  background: var(--gradient-card);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsla(145, 15%, 88%, 0.6);
}

.contact-card-item:last-of-type {
  border-bottom: 0;
}

.contact-card-item .icon-circle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.contact-card-item-body {
  flex: 1;
}

.contact-card-item-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.15rem;
}

.contact-card-item-value {
  font-size: 1rem;
  color: hsl(var(--foreground));
  font-weight: 500;
  word-break: break-word;
}

.contact-card-item-value a:hover {
  color: hsl(var(--primary));
}

.contact-card-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-card-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.contact-card-social a:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.08);
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: hsla(142, 70%, 40%, 0.1);
  color: hsl(145, 75%, 25%);
  border: 1px solid hsla(142, 70%, 40%, 0.3);
}

/* ===== Persona / feature cards =================================== */
.persona-card {
  background: var(--gradient-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 350ms var(--transition-smooth);
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.persona-card .icon-circle {
  margin-left: auto;
  margin-right: auto;
}

.persona-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.persona-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===== Price box ================================================= */
.price-box {
  max-width: 480px;
  margin: 2rem auto 0;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-hero);
}

.price-box-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.price-box-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  margin: 0.5rem 0 1rem;
}

.price-box-note {
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ===== Team / coach cards ======================================== */
.coach-card {
  background: var(--gradient-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  display: flex;
  flex-direction: column;
}

.coach-card-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, hsl(150, 30%, 18%) 0%, hsl(145, 45%, 22%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsla(0, 0%, 100%, 0.6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.coach-card-body {
  padding: 1.25rem;
}

.coach-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.coach-card-role {
  color: hsl(var(--primary));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.coach-card-bio {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== FAQ ======================================================= */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--foreground));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: hsl(var(--primary));
  transition: transform var(--transition-smooth);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: hsl(var(--primary));
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* ===== Info pill grid (race info, event info) ==================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto 2rem;
}

@media (min-width: 720px) {
  .info-grid { grid-template-columns: repeat(4, 1fr); }
}

.info-pill {
  background: var(--gradient-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.info-pill-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.info-pill-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

.info-pill-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: hsl(var(--foreground));
}

/* ===== Section: News ============================================== */
.section-news {
  position: relative;
  padding: 6rem 0;
  background: hsl(var(--secondary));
  overflow: hidden;
}

.section-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.4;
  pointer-events: none;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: hsla(145, 75%, 28%, 0.1);
  color: hsl(var(--primary));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.section-heading-underline {
  width: 5rem;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 999px;
  margin: 0 auto;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
}

.news-tab:hover {
  color: hsl(var(--primary));
  transform: scale(1.04);
}

.news-tab.is-active {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.news-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--gradient-card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  transition: all 500ms var(--transition-smooth);
  position: relative;
}

@media (min-width: 640px) {
  .news-panel { padding: 3rem; }
}

.news-panel:hover {
  box-shadow: var(--shadow-card-hover);
}

.news-icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-glow);
  margin: 0 auto 1.5rem;
}

.news-icon-circle .icon {
  width: 2rem;
  height: 2rem;
}

.news-panel h3 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  font-weight: 700;
}

.news-panel p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.news-content {
  animation: fadeUp 400ms var(--transition-smooth);
}

/* ===== Section: Blog ============================================== */
.section-blog {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-blog .glow-tl,
.section-blog .glow-br {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: var(--gradient-glow);
  pointer-events: none;
}

.section-blog .glow-tl {
  top: 0;
  right: 0;
  opacity: 0.3;
}

.section-blog .glow-br {
  bottom: 0;
  left: 0;
  opacity: 0.2;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  background: var(--gradient-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid hsla(145, 15%, 88%, 0.5);
  transition: all 500ms var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px);
}

.blog-card-image {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(150, 80%, 10%, 0.8) 0%, hsla(150, 80%, 10%, 0.2) 40%, transparent 70%);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  transition: color var(--transition-smooth);
}

.blog-card:hover .blog-card-body h3 {
  color: hsl(var(--primary));
}

.blog-card-excerpt {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  gap: 0.875rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.blog-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: hsl(var(--primary));
  transition: gap var(--transition-smooth);
}

.blog-card:hover .blog-card-cta {
  gap: 0.5rem;
}

/* ===== Footer ===================================================== */
.footer {
  position: relative;
  background: var(--gradient-dark);
  color: hsl(var(--primary-foreground));
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.3;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-brand .brand-accent {
  background: linear-gradient(90deg, hsl(142, 70%, 60%) 0%, hsl(142, 70%, 80%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  transition: all var(--transition-smooth);
}

.footer-social a:hover {
  background: hsl(var(--primary));
  box-shadow: var(--shadow-glow);
}

.footer-section h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.footer-links a:hover {
  color: hsl(142, 70%, 70%);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.6);
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item .icon {
  color: hsl(142, 70%, 60%);
}

.footer-contact a:hover {
  color: hsl(142, 70%, 70%);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.4);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

.footer-made-with {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-made-with .icon {
  color: hsl(142, 70%, 60%);
}

/* ===== Animations ================================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--transition-smooth),
              transform 700ms var(--transition-smooth);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Partners grid (Okolo Muňáku) =============================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 1080px;
  margin: 1.5rem auto 0;
}

.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: hsl(var(--background));
  border: 1px solid hsla(145, 15%, 88%, 0.6);
  border-radius: 14px;
  min-height: 88px;
  transition: all 220ms var(--transition-smooth);
  box-shadow: 0 1px 3px hsla(150, 40%, 15%, 0.05);
}

.partner-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: hsla(145, 75%, 28%, 0.3);
}

.partner-tile picture,
.partner-tile picture > img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.97) contrast(1.02);
}

.partner-tile:hover picture > img {
  filter: brightness(1) contrast(1);
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .partner-tile {
    padding: 0.75rem;
    min-height: 64px;
  }
  .partner-tile picture > img { max-height: 40px; }
}

/* ===== Mobile safety overrides =================================== */
@media (max-width: 600px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .subhero { padding: 5.5rem 0 2.5rem; min-height: 240px; }
  .section-content { padding: 3.5rem 0; }
  .hero { padding: 5rem 0 3rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .subhero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .section-heading h2,
  .prose h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .price-box { padding: 2rem 1.25rem; }
  .news-panel { padding: 2rem 1.25rem; }
  .timeline-item { padding-left: 2.5rem; }
  .countdown { gap: 0.5rem; }
  .countdown-cell { padding: 0.85rem 0.35rem; }
}

/* ===== Article body (Quill HTML output v blog detail) ============= */
.article-body { font-size: 1.05rem; line-height: 1.75; color: hsl(var(--foreground)); }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 800; margin: 2rem 0 0.6rem; color: hsl(var(--foreground)); line-height: 1.25; }
.article-body h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.4rem); font-weight: 700; margin: 1.5rem 0 0.4rem; color: hsl(var(--foreground)); line-height: 1.3; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.2rem; padding-left: 1.8rem; }
.article-body li { margin: 0.3rem 0; line-height: 1.6; }
.article-body blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding: 0.8rem 1.2rem;
  margin: 1.2rem 0;
  background: hsla(145, 75%, 28%, 0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: hsl(var(--foreground));
}
.article-body blockquote p { margin: 0; }
.article-body img {
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  display: block;
}
/* WordPress twemoji/emoji <img> safety net — vždy inline-size jako text */
.article-body img.emoji,
.article-body img.wp-smiley,
.article-body img[src*="emoji"],
.article-body img[src*="twemoji"],
.article-body img[src*="s.w.org"] {
  height: 1em !important;
  width: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  display: inline !important;
  margin: 0 0.1em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}
.article-body figure { margin: 1.5rem 0; text-align: center; }
.article-body figure img { margin: 0 auto; }
.article-body figcaption {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
  font-style: italic;
}
.article-body a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.article-body a:hover { color: hsl(var(--primary-deep)); }
.article-body hr {
  margin: 2rem auto;
  border: 0;
  border-top: 2px solid hsl(var(--border));
  max-width: 120px;
}
.article-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  margin: 1.5rem 0;
  border: 0;
  background: #000;
  box-shadow: var(--shadow-card);
  display: block;
}
.article-body pre {
  background: #0f172a;
  color: #e5e7eb;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}
.article-body code { font-family: 'SF Mono', 'Monaco', 'Consolas', monospace; }
.article-body strong { font-weight: 700; color: hsl(var(--foreground)); }
.article-body em { font-style: italic; }

/* ===== Reduced motion ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in-up { opacity: 1; transform: none; }
}

/* ===== 404 page =================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gradient-dark);
  color: hsl(var(--primary-foreground));
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
}

.error-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 480px;
}

.error-content .error-code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  background: linear-gradient(90deg, hsl(142, 70%, 60%), hsl(142, 70%, 85%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-content h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.error-content p {
  color: hsla(0, 0%, 100%, 0.7);
  margin-bottom: 2rem;
}

/* ===== Členská sekce redirect ===================================== */
.redirect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gradient-dark);
  color: hsl(var(--primary-foreground));
  text-align: center;
}

.redirect-content {
  max-width: 420px;
}

.redirect-content .spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid hsla(0, 0%, 100%, 0.15);
  border-top-color: hsl(142, 70%, 55%);
  margin: 0 auto 1.5rem;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.redirect-content h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.redirect-content p {
  color: hsla(0, 0%, 100%, 0.75);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   F5.1 — REGISTRATION FORM (bezecky-kurz #prihlaska)
   "Premium dark" — brand --gradient-dark (jako hero) + bílá form card
   ============================================================ */
.registration-section {
  padding: 5rem 0;
  background: var(--gradient-dark);     /* brand official dark green */
  color: #fff;
  position: relative;
  overflow: hidden;
}
.registration-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.35;
  pointer-events: none;
}
.registration-section .section-heading h2,
.registration-section .section-heading .section-eyebrow,
.registration-section .section-lead {
  color: #fff !important;
}
.registration-section .section-eyebrow {
  background: hsla(145, 60%, 50%, 0.18);
  color: hsl(145, 75%, 75%) !important;
  border: 1px solid hsla(145, 60%, 60%, 0.25);
}
.registration-section .section-heading-underline {
  background: linear-gradient(90deg, hsl(145, 75%, 55%), hsl(160, 60%, 65%));
}
.registration-section > .container { position: relative; z-index: 1; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }

.registration-form {
  margin-top: 2rem;
  background: #fff;                    /* bílá karta uvnitř dark sekce — kontrast + čitelnost */
  border: 1px solid hsl(145 25% 88%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}
.registration-form .form-row { margin-bottom: 1.25rem; }
.registration-form .form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.registration-form .form-row input:not([type="checkbox"]),
.registration-form .form-row select,
.registration-form .form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  border: 1px solid hsl(145 20% 85%);
  border-radius: 8px;
  color: hsl(var(--foreground));
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.registration-form .form-row input::placeholder,
.registration-form .form-row textarea::placeholder {
  color: hsl(145 10% 55%);
}
.registration-form .form-row input:focus,
.registration-form .form-row select:focus,
.registration-form .form-row textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(145, 75%, 28%, 0.12);
}
.registration-form select option { background: #fff; color: hsl(var(--foreground)); }
.registration-form .form-row--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.registration-form .form-row--double > div { margin-bottom: 0; }
.registration-form .form-row--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  color: hsl(var(--foreground));
}
.registration-form .form-row--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: hsl(var(--primary));
}
.registration-form .form-row--checkbox a { color: hsl(var(--primary)); text-decoration: underline; }

.registration-form .form-actions {
  margin-top: 1.75rem;
  text-align: center;
}
.registration-form .form-actions .btn {
  width: 100%;
  max-width: 360px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px hsla(145, 75%, 28%, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.registration-form .form-actions .btn:hover {
  background: hsl(var(--primary-deep));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px hsla(145, 75%, 28%, 0.35);
}
.registration-form .form-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-fineprint {
  font-size: 0.8rem;
  color: hsl(145 10% 45%);
  margin: 0.75rem 0 0;
}

.registration-result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 12px;
}
.registration-result--success {
  background: hsl(145 60% 95%);
  border: 1px solid hsl(145 50% 80%);
  color: hsl(145 60% 22%);
}
.registration-result--error {
  background: hsl(0 80% 96%);
  border: 1px solid hsl(0 70% 85%);
  color: hsl(0 65% 35%);
}

/* ── Payment info card (po submitu) ── */
.payment-info { margin-top: 2rem; }
.payment-card {
  background: hsl(var(--card));
  border: 1px solid hsl(145 30% 85%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(20, 70, 40, 0.08);
  color: hsl(var(--foreground));
}
.payment-card__success { margin-bottom: 1.5rem; }
.payment-card__success h3 {
  color: hsl(var(--primary));
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
.payment-card__success p {
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.payment-methods { display: grid; gap: 1.25rem; }
.payment-method {
  background: hsl(145 25% 97%);
  border: 1px solid hsl(145 20% 88%);
  border-radius: 12px;
  padding: 1.25rem;
}
.payment-method--primary {
  border-color: hsl(var(--primary));
  background: hsl(145 60% 96%);
}
.payment-method h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.payment-method .badge {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}
.qr-code-wrapper {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  display: inline-block;
  margin: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.payment-details {
  margin: 0.5rem 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
.payment-details dt { color: hsl(145 10% 40%); font-weight: 500; }
.payment-details dd { margin: 0; }
.payment-details code {
  font-family: 'SF Mono', Menlo, Monaco, monospace;
  background: hsl(145 20% 92%);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: hsl(var(--foreground));
}
.copy-btn {
  background: hsl(145 60% 92%);
  color: hsl(var(--primary));
  border: 1px solid hsl(145 50% 75%);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  margin-left: 0.5rem;
  font-weight: 600;
}
.copy-btn:hover { background: hsl(145 60% 85%); }

.payment-deadline {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: hsl(45 100% 95%);
  border-left: 3px solid hsl(40 95% 55%);
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: hsl(40 80% 25%);
}
.payment-auto-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: hsl(145 60% 96%);
  border-radius: 8px;
  font-size: 0.85rem;
  color: hsl(145 30% 25%);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .registration-form .form-row--double { grid-template-columns: 1fr; gap: 0.75rem; }
  .registration-form, .payment-card { padding: 1.5rem 1.25rem; }
  .payment-details { grid-template-columns: 1fr; gap: 0.25rem; }
  .payment-details dt { font-weight: 600; }
}

/* ── F5.1 ČÁST K — Slevový kód v registračním formuláři (světlé téma) ── */
.registration-form .form-row--discount {
  background: hsl(145 60% 96%);
  border: 1px dashed hsl(145 50% 70%);
  border-radius: 8px;
  padding: 1rem;
}
.discount-toggle {
  background: none;
  border: none;
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.discount-toggle:hover { text-decoration: underline; }
.discount-input-wrap { margin-top: 0.75rem; }
.discount-input-wrap label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.4rem;
}
.discount-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.discount-input-row input {
  flex: 1;
  text-transform: uppercase;
  font-family: 'SF Mono', Menlo, Monaco, monospace;
  letter-spacing: 0.5px;
}
.discount-apply-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary));
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
.discount-apply-btn:hover:not(:disabled) { background: hsl(var(--primary-deep)); }
.discount-apply-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.discount-result {
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.discount-result--success {
  background: hsl(145 60% 92%);
  border: 1px solid hsl(145 50% 70%);
  color: hsl(145 60% 22%);
}
.discount-result--success strong { color: hsl(var(--primary)); }
.discount-result--error {
  background: hsl(0 80% 96%);
  border: 1px solid hsl(0 70% 80%);
  color: hsl(0 65% 35%);
}
@media (max-width: 600px) {
  .discount-input-row { flex-direction: column; }
}

/* ============================================================
   F5.1.1 — Děkovná stránka (/dekujeme)
   Dark hero (brand --gradient-dark) + white card content
   ============================================================ */
.dekujeme-section {
  /* Navbar je position:fixed; height 64px → padding-top musí kompenzovat,
     aby se 🎉 emoji nepřekrývalo s navbar. Plus safe-area pro iPhone notch. */
  padding: calc(64px + 2rem + env(safe-area-inset-top, 0px)) 0 5rem;
  background: var(--gradient-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}
.dekujeme-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.35;
  pointer-events: none;
}
.dekujeme-section > .container {
  position: relative;
  z-index: 1;
}

.dekujeme-celebrate {
  text-align: center;
  margin-bottom: 2.5rem;
}
.dekujeme-icon {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  animation: dekujeme-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dekujeme-bounce {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dekujeme-icon { animation: none; }
}
.dekujeme-celebrate h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.15;
}
.dekujeme-celebrate h1 span { color: hsl(145, 75%, 65%); }
.dekujeme-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: hsla(0, 0%, 100%, 0.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.dekujeme-card {
  background: #fff;
  color: hsl(var(--foreground));
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.dekujeme-card h2 {
  font-size: 1.35rem;
  color: hsl(var(--primary));
  margin: 0 0 1.25rem;
}
.dekujeme-steps {
  padding-left: 1.25rem;
  margin: 0;
  line-height: 1.75;
  color: hsl(var(--foreground));
}
.dekujeme-steps li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}
.dekujeme-steps li::marker {
  color: hsl(var(--primary));
  font-weight: 700;
}
.dekujeme-steps strong { color: hsl(var(--foreground)); }
.invoice-pill {
  display: inline-block;
  font-family: 'SF Mono', Menlo, Monaco, monospace;
  font-weight: 700;
  background: hsl(145, 60%, 92%);
  color: hsl(var(--primary));
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.95em;
}

.dekujeme-faq {
  margin-top: 1.5rem;
}
.dekujeme-faq details {
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid hsla(145, 50%, 60%, 0.15);
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  margin-bottom: 0.5rem;
  transition: background 0.15s, border-color 0.15s;
}
.dekujeme-faq details[open] {
  background: hsla(0, 0%, 100%, 0.12);
  border-color: hsla(145, 50%, 60%, 0.3);
}
.dekujeme-faq summary {
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  outline: none;
  user-select: none;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.dekujeme-faq summary::-webkit-details-marker { display: none; }
.dekujeme-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: hsl(145, 75%, 65%);
  transition: transform 0.2s;
}
.dekujeme-faq details[open] summary::after { transform: rotate(45deg); }
.dekujeme-faq p {
  margin: 0.75rem 0 0;
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 0.9rem;
  line-height: 1.65;
}
.dekujeme-faq a { color: hsl(145, 75%, 70%); text-decoration: underline; }

.dekujeme-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost,
.btn.btn-ghost {
  background: hsla(0, 0%, 100%, 0.08);
  color: #fff;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
}
.btn-ghost:hover,
.btn.btn-ghost:hover {
  background: hsla(0, 0%, 100%, 0.15);
  border-color: hsla(0, 0%, 100%, 0.35);
}

.share-buttons {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-buttons .btn { gap: 0.4rem; }

@media (max-width: 600px) {
  .dekujeme-section {
    /* Mobile: stejně musí padding kompenzovat fixed navbar (64px) + safe-area */
    padding: calc(64px + 1.25rem + env(safe-area-inset-top, 0px)) 0 3rem;
  }
  .dekujeme-icon { font-size: 3.25rem; margin-bottom: 0.5rem; }
  .dekujeme-celebrate h1 { font-size: 1.75rem; line-height: 1.25; }
  .dekujeme-lead { font-size: 0.95rem; }
  .dekujeme-card { padding: 1.5rem 1.25rem; }
  .dekujeme-cta .btn { flex: 1; min-width: 0; }
}

/* ============================================================
   F5.1.2 — Běžecký kurz hero — split layout s 2 fotkami
   Left: david-hero (trénink) · Right: og-image (závod) · Center: text
   ============================================================ */
.kurz-hero-split {
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);   /* fallback + safety */
  color: #fff;
  display: flex;
  align-items: center;
  /* Navbar je fixed 64px → kompenzace + bottom dýchací prostor */
  padding: calc(64px + 2.5rem) 0 3rem;
  min-height: 600px;
}
.kurz-hero-split .subhero-eyebrow,
.kurz-hero-split h1,
.kurz-hero-split .subhero-lead {
  /* Auto-rebalance line breaks: H1 se nebude lámat divně */
  text-wrap: balance;
}
.kurz-hero-split h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.kurz-hero-split .subhero-lead--list {
  /* 3 řádky jako vertikální seznam s ikonami a bullets */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.5;
  color: hsla(0, 0%, 100%, 0.92);
  margin: 1.25rem auto 0.5rem;
  max-width: 600px;
}
.kurz-hero-split .subhero-lead--list span {
  display: inline-block;
  padding: 0.4rem 0.875rem;
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.01em;
}
.kurz-hero-split .subhero-lead--list span strong {
  color: hsl(145, 75%, 70%);
  font-weight: 700;
}
@media (max-width: 600px) {
  .kurz-hero-split .subhero-lead--list { gap: 0.375rem; max-width: 92vw; }
  .kurz-hero-split .subhero-lead--list span { font-size: 0.85rem; padding: 0.35rem 0.7rem; }
}

/* Photos absolute positioned — left + right side */
.kurz-hero-photo {
  position: absolute;
  top: 0;
  height: 100%;
  width: 38%;
  z-index: 0;
  pointer-events: none;
}
.kurz-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kurz-hero-photo--left {
  left: 0;
  /* fade out vpravo aby plynule navázal na center text */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}
.kurz-hero-photo--right {
  right: 0;
  /* fade out vlevo */
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
}

/* Dark overlay přes celý hero pro čitelnost textu */
.kurz-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, hsla(150, 80%, 10%, 0.55) 0%, hsla(145, 75%, 15%, 0.85) 100%),
    radial-gradient(ellipse at center, hsla(150, 80%, 12%, 0.45) 0%, hsla(150, 80%, 8%, 0.92) 70%);
}

/* Content musí být nad overlayem + photos */
.kurz-hero-split > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.kurz-hero-split .subhero-content {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

/* Mobile / tablet — schovej pravou fotku, levá jako pozadí ztlumená */
@media (max-width: 899px) {
  .kurz-hero-split {
    /* DŮLEŽITÉ: na mobile vypneme flex-center (overflowuje content nad padding-top).
       Místo toho content jde z top dolů + padding kompenzuje navbar. */
    display: block;
    min-height: auto;
    padding: calc(64px + 1.5rem) 0 2.5rem;
  }
  .kurz-hero-split h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.4rem);
    max-width: 16ch;
  }
  .kurz-hero-photo--left {
    width: 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    opacity: 0.4;
  }
  .kurz-hero-photo--right {
    display: none;   /* mobile = jedna fotka stačí */
  }
}

@media (max-width: 600px) {
  .kurz-hero-split {
    padding: calc(64px + 1rem) 0 2rem;
  }
  .kurz-hero-photo--left { opacity: 0.32; }
  .kurz-hero-split .subhero-eyebrow {
    font-size: 0.7rem;
    padding: 0.35rem 0.875rem;
  }
}

/* ============================================================
   F5.1.5 — Capacity widget („Zbývá X míst")
   Hero pod countdown, frosted-glass tile s progress bar
   ============================================================ */
.capacity-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1.25rem;
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid hsla(0, 0%, 100%, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 360px;
  width: fit-content;
}
.capacity-bar {
  width: 100%;
  height: 8px;
  background: hsla(0, 0%, 100%, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.capacity-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(145, 75%, 55%) 0%, hsl(40, 95%, 60%) 70%, hsl(0, 80%, 60%) 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.capacity-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.capacity-text strong {
  color: hsl(145, 75%, 70%);
  font-size: 1.05em;
}
.capacity-widget--full {
  background: hsla(0, 80%, 60%, 0.15);
  border-color: hsla(0, 80%, 60%, 0.45);
}
.capacity-widget--full .capacity-text strong { color: hsl(0, 80%, 75%); }
.capacity-widget--almost {
  background: hsla(40, 95%, 55%, 0.12);
  border-color: hsla(40, 95%, 55%, 0.4);
}
.capacity-widget--almost .capacity-text strong { color: hsl(40, 95%, 75%); }

@media (max-width: 600px) {
  .capacity-widget { min-width: 240px; padding: 0.625rem 1rem; }
  .capacity-text { font-size: 0.8rem; }
}

/* ============================================================
   F6.3.21+23 — Company fields toggle + ARES auto-fill
   Pro davidvas.cz bezecky-kurz.html (objednavka-kurz má vlastní inline)
   ============================================================ */
.form-row--company {
  background: hsla(150, 30%, 95%, 0.6);
  border: 1px solid hsla(150, 30%, 70%, 0.3);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}
.form-checkbox-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink, #1a3a26);
  user-select: none;
  font-weight: 500;
}
.form-checkbox-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: hsl(142, 70%, 45%);
  cursor: pointer;
}
.company-fields {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid hsla(150, 30%, 70%, 0.3);
}
.company-fields .form-row { margin-bottom: 0.75rem; }
.company-fields .form-row:last-child { margin-bottom: 0; }
.form-hint {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.78rem;
  color: hsla(150, 20%, 35%, 0.75);
}
.ico-input-wrap {
  position: relative;
}
.ico-status {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}
.ico-status--loading { color: hsla(150, 20%, 35%, 0.75); }
.ico-status--ok      { color: hsl(142, 70%, 35%); }
.ico-status--error   { color: hsl(0, 70%, 50%); }
.ares-result {
  margin-top: 0.625rem;
  background: linear-gradient(135deg, hsla(142, 70%, 90%, 0.7), hsla(142, 70%, 95%, 0.5));
  border: 1px solid hsla(142, 70%, 45%, 0.4);
  border-radius: 10px;
  padding: 0.75rem 0.875rem;
}
.ares-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.ares-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: hsl(142, 70%, 45%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ares-edit-btn {
  background: transparent;
  border: 1px solid hsla(150, 20%, 35%, 0.3);
  color: hsla(150, 20%, 25%, 0.85);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.ares-edit-btn:hover {
  border-color: hsla(150, 20%, 35%, 0.6);
  color: hsl(150, 30%, 15%);
}
.ares-name {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(150, 30%, 15%);
  margin-bottom: 2px;
}
.ares-address {
  font-size: 0.85rem;
  color: hsla(150, 20%, 25%, 0.85);
  line-height: 1.4;
}
.ares-dic {
  font-size: 0.82rem;
  color: hsla(150, 20%, 35%, 0.75);
  margin-top: 4px;
}
.company-manual {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed hsla(150, 30%, 70%, 0.4);
}
