:root {
  /* =========================================
   * CSS Variables
   * ======================================= */

  /* Colors */
  --color-bg: #faf7f0; /* ivory / light background */
  --color-bg-alt: #fffdf8; /* subtle alternate background */
  --color-surface: #ffffff;
  --color-surface-soft: #f4efe5;
  --color-text: #1e2227; /* soft graphite */
  --color-text-muted: #6b7280;
  --color-primary: #0fadb5; /* bright teal */
  --color-primary-soft: rgba(15, 173, 181, 0.12);
  --color-primary-strong: #008a92;
  --color-accent: #f45b5b; /* coral red for CTAs */
  --color-accent-soft: rgba(244, 91, 91, 0.12);
  --color-sand: #f2ddc0; /* warm sand */
  --color-graphite-soft: #2d343f; /* deeper graphite for header/footer */
  --color-21-badge: #d00024; /* strong fixed red for 21+ badge */

  /* Neutral grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Semantic colors */
  --color-success: #16a34a;
  --color-success-soft: rgba(22, 163, 74, 0.12);
  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.12);
  --color-danger: #e11d48;
  --color-danger-soft: rgba(225, 29, 72, 0.12);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing (0–96px in 4px steps) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-9: 2.25rem;  /* 36px */
  --space-10: 2.5rem;  /* 40px */
  --space-11: 2.75rem; /* 44px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --page-max-width: 1120px;
  --header-height: 4.5rem;
  --topbar-height: 2.5rem;
}

/* =========================================
 * Reset & Normalize
 * ======================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  padding: 0;
  background: none;
}

a {
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default outline, we re-add focus-visible below */
:focus {
  outline: none;
}

/* =========================================
 * Base
 * ======================================= */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.3rem, 3.3vw, 3.1rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.9rem, 2.7vw, 2.4rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: var(--font-size-sm);
}

strong {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-normal), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
}

a:active {
  opacity: 0.9;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

hr {
  border: 0;
  border-top: 1px solid var(--gray-200);
  margin: var(--space-6) 0;
}

/* Layout helpers for header / 21+ badge baseline */
body.has-sticky-header {
  padding-top: calc(var(--topbar-height) + var(--header-height));
}

/* =========================================
 * Utilities
 * ======================================= */

.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1200px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Flex */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-end {
  justify-content: flex-end;
}

.gap-xs {
  gap: var(--space-2);
}

.gap-sm {
  gap: var(--space-3);
}

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

/* Grid */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Align text */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Spacing utilities (minimal set for layout) */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.pt-section { padding-top: var(--space-16); }
.pb-section { padding-bottom: var(--space-16); }

/* Width constraints for narrow content (e.g. legal pages / copy blocks) */
/* =========================================
 * Components
 * ======================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: #e04444;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

/* Form elements */
.input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), 0 0 0 3px rgba(15, 173, 181, 0.25);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.form-row {
  margin-bottom: var(--space-4);
}

.form-help {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Card */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card-soft {
  background: linear-gradient(145deg, #ffffff, var(--color-surface-soft));
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
}

/* Bento / geometric blocks for event layouts */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bento-item {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}

/* Utility tokens for span columns (usage in modules) */
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-7 { grid-column: span 7; }
.bento-span-8 { grid-column: span 8; }

@media (max-width: 960px) {
  .bento-span-3,
  .bento-span-4,
  .bento-span-5,
  .bento-span-6,
  .bento-span-7,
  .bento-span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .bento-span-3,
  .bento-span-4,
  .bento-span-5,
  .bento-span-6,
  .bento-span-7,
  .bento-span-8 {
    grid-column: span 2;
  }
}

/* Header scaffolding (no layout specifics, only tokens) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

/* 21+ fixed badge – must be visible on every page */
.badge-21-plus {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 50;
  background-color: var(--color-21-badge);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(208, 0, 36, 0.4);
}

@media (max-width: 480px) {
  .badge-21-plus {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Hero / page intro helpers */
.page-hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.page-hero-eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-3);
}

.page-hero-lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  max-width: 34rem;
}

/* FAQ / accordion basics */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background-color: #ffffff;
  padding: var(--space-4);
}

.faq-item + .faq-item {
  margin-top: var(--space-3);
}

/* Tag / pill (for program labels, event types) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 500;
  background-color: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

.tag-neutral {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.tag-accent {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Badge for mini status indicators (e.g. "Firemní tým", "Hosté") */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--gray-900);
  color: #ffffff;
}

/* =========================================
 * Accessibility / Motion
 * ======================================= */

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

button:focus-visible,
.btn:focus-visible,
a.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

@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;
  }
}

/* =========================================
 * Footer baseline (for disclaimer integration)
 * ======================================= */

.site-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
  background: #111827;
  color: #e5e7eb;
  font-size: var(--font-size-sm);
}

.site-footer a {
  color: #e5e7eb;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer-disclaimer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
  color: #cbd5f5;
}

/* =========================================
 * Page-specific helpers (for Czech corporate event context)
 * ======================================= */

.badge-calendar-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.icon-chip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.icon-bubble {
  width: 18px;
  height: 14px;
  border-radius: 10px;
  background-color: var(--color-primary-soft);
}

/* Simple schedule pill (e.g. "19:00 – 23:00", "Program pro 30–120 osob") */
.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--gray-300);
  font-size: var(--font-size-xs);
  color: var(--gray-700);
  background-color: #ffffff;
}

.event-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-3);
}

/* Ensure legal pages remain clean and readable */
.legal-page h1 {
  margin-bottom: var(--space-4);
}

.legal-page h2 {
  margin-top: var(--space-6);
}

.legal-page p,
.legal-page li {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page 