/*!
 * eMBíčko – Theme stylesheet
 * Extracted from the prototype (embicko-prototyp.html) and reorganized
 * for production use. Sections marked /* === N. NAME === */
 * mirror the original CSS structure for quick auditing.
 */

/* === 1. DESIGN TOKENS ============================================== */
:root {
  --pink: #E8336B;
  --pink-dark: #C9184A;
  --gold: #FFB627;
  --gold-soft: #FFE5A6;
  --teal: #2EC4B6;
  --purple: #7B2CBF;
  --black: #1A1A1A;
  --gray-text: #555;
  --gray-soft: #888;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE0;
  --white: #FFFFFF;

  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow: 0 8px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);

  --header-height: 80px;
}

/* === 2. RESET / BASE =============================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg { max-width: 100%; height: auto; display: block; }
/* Block-level constraints – prevent layout-breaking content */
table { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* WordPress admin bar offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--black); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 1000;
}
.skip-link:focus { top: 8px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0;
  position: absolute; word-wrap: normal !important;
}

/* === 3. LAYOUT ===================================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === 4. HEADER + NAV =============================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  padding-top: 18px; padding-bottom: 18px;
}
.site-header .nav-wrapper { flex: 1; display: flex; justify-content: center; min-width: 0; }

.logo {
  font-family: var(--display); font-weight: 800;
  font-size: 28px; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--black);
  flex-shrink: 0;
}
.logo-dot { width: 14px; height: 14px; background: var(--pink); border-radius: 50%; display: inline-block; }

/* Custom logo (Vzhled → Customize → Identita webu) – constrain image size,
   jinak se SVG/PNG vykreslí v native rozměrech a roztáhne header. */
.site-header .custom-logo-link,
.site-header .custom-logo-link img,
.custom-logo,
img.custom-logo {
  max-height: 48px;
  max-width: 240px;
  width: auto;
  height: auto;
  display: inline-block;
}
.site-header .custom-logo-link {
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}
.site-footer .custom-logo-link img,
.site-footer img.custom-logo {
  max-height: 56px;
  /* dark footer → invert černého loga na bílé. Pokud máš barevné logo, nahrad
     toto pravidlo vlastním (Customize → Additional CSS). */
  filter: brightness(0) invert(1);
}

.nav {
  display: flex; gap: 28px; align-items: center;
  list-style: none; padding: 0; margin: 0;
  /* No flex-wrap – pokud se nevejde, raději schovat za media query (na ≤1100px
     padáme do mobile drawer). flex-wrap zlomil to do dvou řádků a vypadalo to divně. */
}
.nav li { list-style: none; padding: 0; margin: 0; }
.nav-link, .nav a {
  font-weight: 500; font-size: 15px;
  transition: color .2s; position: relative;
  color: var(--black);
  white-space: nowrap;
}
.nav-link:hover, .nav a:hover { color: var(--pink); }
.nav-link.active, .nav .current-menu-item > a {
  color: var(--pink);
}
.nav-link.active::after, .nav .current-menu-item > a::after {
  content: ''; position: absolute; bottom: -8px; left: 0; right: 0;
  height: 3px; background: var(--gold); border-radius: 2px;
}
.mobile-menu-btn {
  display: none; background: var(--black); color: var(--white);
  padding: 12px 20px; border-radius: 100px;
  min-height: 44px; min-width: 44px; /* iOS touch target */
  font-weight: 600;
}
.mobile-menu-btn[aria-expanded="true"] { background: var(--pink); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: var(--header-height) 0 0 0;
  background: var(--cream);
  padding: 32px 24px;
  z-index: 99;
  flex-direction: column; gap: 16px;
  font-size: 22px; font-family: var(--display); font-weight: 700;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--cream-dark); }

/* === 5. BUTTONS ==================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  font-weight: 600; font-size: 15px;
  transition: all .2s; cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--white); }
.btn-secondary { background: var(--black); color: var(--white); }
.btn-secondary:hover { background: var(--pink); transform: translateY(-2px); color: var(--white); }
.btn-ghost { background: transparent; border: 2px solid var(--black); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--gold); color: var(--black); }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }

/* === 6. SECTION HEADER ============================================= */
.section-label {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 16px;
}
.section-label-pink { color: var(--pink); }
.section-head { max-width: 800px; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--display); font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-head h2.medium {
  font-size: clamp(36px, 5vw, 56px);
}
.section-head p { font-size: 18px; color: var(--gray-text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--black);
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 24px;
}
.eyebrow-dot { width: 8px; height: 8px; background: var(--pink); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: .6; }
}

/* === 7. HERO (HOMEPAGE) ============================================ */
.hero {
  position: relative; padding: 80px 0 120px;
  background: var(--cream); overflow: hidden;
}
.hero-bg-shape { position: absolute; pointer-events: none; }
.hero-bg-shape.s1 {
  top: 100px; right: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  opacity: .6;
}
.hero-bg-shape.s2 {
  bottom: -100px; left: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,51,107,.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero h1 .word-rotator {
  display: inline-block;
  background: linear-gradient(120deg, var(--pink) 0%, var(--gold) 50%, var(--purple) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
.hero h1 .underline-mark { position: relative; display: inline-block; }
.hero h1 .underline-mark::after {
  content: ''; position: absolute; left: -4px; right: -4px;
  bottom: 4px; height: 14px; background: var(--gold);
  z-index: -1; border-radius: 4px; transform: rotate(-1deg);
}
.hero p.lead {
  font-size: 22px; color: var(--gray-text);
  max-width: 640px; margin-bottom: 40px;
}
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 80px; padding-top: 40px;
  border-top: 2px dashed rgba(0,0,0,.1);
}
.stat-num {
  font-family: var(--display); font-size: 56px; font-weight: 800;
  line-height: 1; color: var(--pink); letter-spacing: -0.02em;
}
.stat-label {
  font-size: 14px; color: var(--gray-text); margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;
}

/* === 8. MANIFEST =================================================== */
.manifest {
  background: var(--black); color: var(--white);
  padding: 120px 0; position: relative; overflow: hidden;
}
.manifest::before {
  content: ''; position: absolute; top: -50%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,51,107,.3) 0%, transparent 60%);
}
.manifest::after {
  content: ''; position: absolute; bottom: -50%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,182,39,.2) 0%, transparent 60%);
}
.manifest .container { position: relative; z-index: 2; }
.manifest h2 {
  font-family: var(--display); font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  max-width: 900px; margin-bottom: 48px;
}
.manifest h2 em { font-style: normal; color: var(--gold); }
.manifest-text {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 1000px; font-size: 18px; color: rgba(255,255,255,.85);
}
.manifest-text p { margin-bottom: 16px; }

.values-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 80px;
}
.value-item { text-align: left; }
.value-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--pink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
  transition: transform .3s;
}
.value-item:nth-child(2) .value-icon { background: var(--gold); color: var(--black); }
.value-item:nth-child(3) .value-icon { background: var(--teal); }
.value-item:nth-child(4) .value-icon { background: var(--purple); }
.value-item:hover .value-icon { transform: rotate(-8deg) scale(1.1); }
.value-name {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  margin-bottom: 8px; color: var(--white);
}
.value-desc { color: rgba(255,255,255,.7); font-size: 15px; }

/* === 9. PRINCIPY =================================================== */
.principy { padding: 120px 0; }
.princip-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.princip-card {
  background: var(--white); padding: 40px;
  border-radius: var(--radius); position: relative;
  transition: all .3s; border: 2px solid transparent;
}
.princip-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: var(--shadow);
}
.princip-num {
  font-family: var(--display); font-size: 56px; font-weight: 800;
  color: var(--gold); line-height: 1; letter-spacing: -0.04em;
  margin-bottom: 16px; opacity: .6;
}
.princip-card h3 {
  font-family: var(--display); font-size: 28px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.princip-card p { color: var(--gray-text); font-size: 16px; }

/* === 10. PROGRAMY (HOMEPAGE) ======================================= */
.programy {
  background: var(--cream-dark); padding: 120px 0;
  position: relative; overflow: hidden;
}
.programy::before {
  content: 'PROGRAMY'; position: absolute;
  top: 30px; right: -50px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(80px, 18vw, 200px); letter-spacing: -0.05em;
  color: rgba(0,0,0,.04); pointer-events: none; line-height: 1;
}
.programy .container { position: relative; z-index: 2; }
.programy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.program-card {
  background: var(--white); padding: 48px 40px;
  border-radius: var(--radius-lg); position: relative;
  overflow: hidden; transition: all .4s;
  border: 3px solid transparent;
  display: block;
}
.program-card.bastlirna { border-color: var(--gold); }
.program-card.ycc { border-color: var(--pink); }
.program-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}
.program-card.ycc:hover { transform: translateY(-8px) rotate(0.5deg); }
.program-icon-bg {
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  opacity: .15; transition: transform .4s;
}
.bastlirna .program-icon-bg { background: var(--gold); }
.ycc .program-icon-bg { background: var(--pink); }
.program-card:hover .program-icon-bg { transform: scale(1.3); }
.program-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 24px;
}
.bastlirna .program-tag { background: var(--gold-soft); color: var(--black); }
.ycc .program-tag { background: rgba(232,51,107,.15); color: var(--pink-dark); }
.program-card h3 {
  font-family: var(--display); font-size: 56px; font-weight: 800;
  line-height: 1; letter-spacing: -0.03em; margin-bottom: 16px;
  color: var(--black);
}
.program-period { font-size: 18px; color: var(--gray-text); margin-bottom: 24px; font-weight: 500; }
.program-card p.desc { font-size: 17px; color: var(--gray-text); margin-bottom: 32px; }
.program-features {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.program-feature {
  background: var(--cream); padding: 8px 14px;
  border-radius: 100px; font-size: 13px; font-weight: 500;
}

/* === 11. DOPLŇKOVÉ AKTIVITY ======================================== */
.doplnkove { padding: 120px 0; }
.doplnkove-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.activity-tile {
  background: var(--white); padding: 32px;
  border-radius: var(--radius); cursor: pointer;
  transition: all .3s; position: relative; overflow: hidden;
  text-align: left; border: 2px solid transparent;
  width: 100%; display: block;
}
.activity-tile:hover {
  border-color: var(--black); transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.activity-tile-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--gold-soft); display: flex; align-items: center;
  justify-content: center; font-size: 28px; margin-bottom: 20px;
}
.activity-tile.color-teal .activity-tile-icon { background: rgba(46,196,182,.2); }
.activity-tile.color-purple .activity-tile-icon { background: rgba(123,44,191,.15); }
.activity-tile h4 {
  font-family: var(--display); font-size: 26px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.activity-tile p { color: var(--gray-text); font-size: 15px; margin-bottom: 16px; }
.activity-tile .activity-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--pink);
}

/* === 12. REFERENCE ================================================= */
.reference {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.reference-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px;
}
.reference-card {
  background: var(--white); padding: 40px; border-radius: var(--radius);
  position: relative;
}
.reference-card.featured { background: var(--pink); color: var(--white); }
.quote-mark {
  font-family: var(--display); font-size: 80px;
  line-height: 0.5; color: var(--gold);
  margin-bottom: 16px; display: block;
}
.reference-card.featured .quote-mark { color: var(--gold); }
.reference-card blockquote {
  font-size: 18px; font-weight: 500; line-height: 1.5;
  margin-bottom: 24px;
}
.reference-card.featured blockquote { font-size: 22px; }
.reference-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid rgba(0,0,0,.1); padding-top: 16px;
}
.reference-card.featured .reference-author { border-top-color: rgba(255,255,255,.2); }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--display); font-size: 18px;
  background-size: cover; background-position: center;
}
.reference-card.featured .author-avatar { background: var(--white); color: var(--pink); }
.author-name { font-weight: 700; font-size: 15px; }
.author-role { font-size: 13px; opacity: .7; }

/* === 13. PARTNEŘI ================================================== */
.partneri-section { padding: 120px 0; background: var(--white); }
.partneri-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.partneri-head h2 {
  font-family: var(--display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.partneri-head p { color: var(--gray-text); font-size: 17px; }
.partneri-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin-bottom: 64px;
}
.partner-logo {
  aspect-ratio: 3/2; background: var(--cream);
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: var(--gray-soft);
  transition: all .3s; padding: 16px; text-align: center; font-size: 14px;
  filter: grayscale(1);
}
.partner-logo:hover {
  background: var(--black); color: var(--white);
  transform: scale(1.05); filter: grayscale(0);
}
.partner-logo img { max-height: 60px; max-width: 100%; object-fit: contain; }
.partner-cta {
  background: var(--black); color: var(--white);
  border-radius: var(--radius-lg); padding: 64px 48px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 32px;
  align-items: center; position: relative; overflow: hidden;
}
.partner-cta::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,182,39,.3) 0%, transparent 70%);
}
.partner-cta-content { position: relative; z-index: 2; }
.partner-cta h3 {
  font-family: var(--display); font-size: 40px; font-weight: 700;
  line-height: 1.05; margin-bottom: 16px; letter-spacing: -0.02em;
}
.partner-cta p { color: rgba(255,255,255,.7); font-size: 17px; }
.partner-cta-btn { position: relative; z-index: 2; display: flex; justify-content: flex-end; }

/* === 14. AKTUALITY (HOMEPAGE + ARCHIVE) ============================ */
.aktuality-home { padding: 120px 0; }
.aktuality-home .section-head {
  display: flex; justify-content: space-between; align-items: end;
  max-width: 100%;
}
.aktuality-home .section-head h2 {
  font-family: var(--display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.aktuality-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: all .3s; cursor: pointer;
  display: block; color: var(--black);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 40px; color: var(--white);
  background-size: cover; background-position: center;
}
.news-card.theme-2 .news-img { background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%); }
.news-card.theme-3 .news-img { background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%); }
.news-content { padding: 24px; }
.news-meta {
  display: flex; gap: 12px; font-size: 13px; color: var(--gray-soft);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
}
.news-meta-tag { color: var(--pink); }
.news-content h3 {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  margin-bottom: 8px; line-height: 1.2;
}
.news-content p { color: var(--gray-text); font-size: 15px; }

.news-hero { padding: 60px 0 40px; }
.news-hero h1 {
  font-family: var(--display); font-size: clamp(48px, 7vw, 96px);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.news-hero h1 .gradient-text {
  background: linear-gradient(120deg, var(--pink) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.news-hero p { font-size: 20px; color: var(--gray-text); max-width: 600px; }
.news-filters { display: flex; gap: 12px; margin: 32px 0 48px; flex-wrap: wrap; }
.news-filter {
  padding: 8px 16px; border-radius: 100px;
  border: 2px solid var(--black); background: transparent;
  font-weight: 500; font-size: 14px; transition: all .2s;
  text-decoration: none; color: var(--black);
}
.news-filter.active, .news-filter:hover { background: var(--black); color: var(--white); }
.news-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-bottom: 100px;
}
.news-list .news-card .news-img { font-size: 32px; }

/* Single post */
.single-post-hero { padding: 60px 0 24px; }
.single-post-hero h1 {
  font-family: var(--display); font-size: clamp(40px, 5vw, 64px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  max-width: 900px; margin-bottom: 16px;
}
.single-post-meta {
  display: flex; gap: 16px; font-size: 14px;
  color: var(--gray-soft); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.single-post-thumb {
  margin: 32px 0; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 21/9;
}
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-post-body {
  max-width: 760px; margin: 0 auto; padding: 0 24px 80px;
  font-size: 18px; color: var(--black); line-height: 1.7;
}
.single-post-body h2 {
  font-family: var(--display); font-size: 36px; font-weight: 700;
  margin: 48px 0 16px; letter-spacing: -0.01em;
}
.single-post-body h3 {
  font-family: var(--display); font-size: 26px; font-weight: 700;
  margin: 32px 0 12px;
}
.single-post-body p { margin-bottom: 16px; }
.single-post-body ul, .single-post-body ol { margin: 0 0 16px 24px; }
.single-post-body img { border-radius: var(--radius); margin: 24px 0; }
.single-post-body blockquote {
  border-left: 4px solid var(--pink);
  padding: 8px 24px; margin: 32px 0;
  font-family: var(--display); font-size: 24px; font-weight: 600;
  color: var(--black);
}
.single-post-body a { color: var(--pink); text-decoration: underline; }

.pagination {
  display: flex; gap: 8px; justify-content: center;
  padding: 40px 0 80px;
}
.pagination .page-numbers {
  padding: 8px 14px; border-radius: 100px;
  border: 2px solid var(--cream-dark); font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--black); color: var(--white); border-color: var(--black);
}

/* === 15. FOOTER ==================================================== */
.site-footer {
  background: var(--black); color: var(--white);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  margin-bottom: 64px;
}
.footer-logo .logo { color: var(--white); margin-bottom: 16px; }
.footer-logo p { color: rgba(255,255,255,.6); font-size: 15px; max-width: 300px; }
.footer-col h5 {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: 15px; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); padding: 12px 16px; border-radius: 100px;
  font-family: inherit; font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
  background: var(--gold); color: var(--black); padding: 12px 20px;
  border-radius: 100px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-legal { display: flex; gap: 24px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  font-weight: 600; font-size: 14px; color: var(--white);
}
.social-links a:hover { background: var(--pink); transform: translateY(-2px); }

/* === 16. PROGRAM SUBPAGE =========================================== */
.program-hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.program-hero.bastlirna-hero { background: linear-gradient(135deg, #FFE5A6 0%, #FFB627 100%); }
.program-hero.ycc-hero {
  background: linear-gradient(135deg, #FFD0E0 0%, #E8336B 100%);
  color: var(--white);
}
.program-hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.program-hero h1 {
  font-family: var(--display); font-size: clamp(56px, 8vw, 120px);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.program-hero .tagline { font-size: 22px; margin-bottom: 32px; max-width: 500px; }
.program-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-bottom: 32px; max-width: 500px;
}
.program-info-item .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; opacity: .7; margin-bottom: 4px;
}
.program-info-item .value { font-family: var(--display); font-size: 22px; font-weight: 700; }
.program-hero-visual {
  aspect-ratio: 1; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.4); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 120px; font-weight: 800;
  color: rgba(0,0,0,.2);
  background-size: cover; background-position: center;
}
.ycc-hero .program-hero-visual { color: rgba(255,255,255,.4); }

.program-about { padding: 100px 0; }
.program-about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.program-about h2 {
  font-family: var(--display); font-size: 48px; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em;
}
.program-about-text { font-size: 17px; color: var(--gray-text); }
.program-about-text p { margin-bottom: 16px; }

/* Úrovně zapojení */
.urovne { padding: 100px 0; background: var(--cream-dark); }
.urovne-list { display: grid; gap: 24px; margin-top: 48px; }
.uroven-row {
  background: var(--white); padding: 32px; border-radius: var(--radius);
  display: grid; grid-template-columns: 80px 1fr auto; gap: 32px;
  align-items: center; transition: all .3s;
}
.uroven-row:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.uroven-num {
  font-family: var(--display); font-size: 64px; font-weight: 800;
  color: var(--pink); line-height: 1; letter-spacing: -0.04em;
}
.uroven-content h4 {
  font-family: var(--display); font-size: 26px; font-weight: 700; margin-bottom: 4px;
}
.uroven-content p { color: var(--gray-text); }
.uroven-badge {
  background: var(--gold-soft); padding: 8px 16px;
  border-radius: 100px; font-size: 13px; font-weight: 600;
}
.uroven-badge.required { background: var(--pink); color: var(--white); }

/* Časová osa */
.timeline-section { padding: 100px 0; }
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 48px; position: relative;
}
.timeline::before {
  content: ''; position: absolute; top: 32px; left: 0; right: 0;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--gold), var(--gold) 8px, transparent 8px, transparent 16px);
}
.timeline-step {
  background: var(--white); padding: 24px;
  border-radius: var(--radius); position: relative;
  margin-top: 56px; border: 2px solid var(--cream-dark);
}
.timeline-marker {
  position: absolute; top: -56px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--pink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 24px; font-weight: 800;
  border: 4px solid var(--cream);
}
.timeline-step h5 {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.timeline-step .timeline-date {
  font-size: 13px; color: var(--pink); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.timeline-step p { font-size: 14px; color: var(--gray-text); }

/* === 17. FAQ ======================================================= */
.faq-section { padding: 100px 0; background: var(--cream-dark); }
.faq-list { max-width: 800px; margin: 48px auto 0; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 24px 32px; text-align: left;
  font-family: var(--display); font-size: 19px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.faq-question:hover { background: var(--cream); }
.faq-question .toggle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; transition: transform .3s;
}
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-answer {
  padding: 0 32px; max-height: 0; overflow: hidden;
  transition: all .3s; color: var(--gray-text); font-size: 16px;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 32px 24px; }

/* === 18. FORMS ===================================================== */
.form-section {
  padding: 100px 0; background: var(--black); color: var(--white);
  position: relative; overflow: hidden;
}
.form-section::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,51,107,.3) 0%, transparent 60%);
}
.form-section .container { position: relative; z-index: 2; }
.form-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.form-grid h2 {
  font-family: var(--display); font-size: 48px; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--white);
}
.form-grid p { color: rgba(255,255,255,.7); font-size: 17px; margin-top: 16px; }
.form-card {
  background: var(--white); color: var(--black);
  padding: 40px; border-radius: var(--radius-lg);
}
.form-row { margin-bottom: 16px; }
.form-row.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 15px;
  transition: border-color .2s; background: var(--white); color: var(--black);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--pink);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.checkbox-row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--gray-text);
  margin-bottom: 24px;
}
.checkbox-row input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.form-success {
  background: var(--gold-soft); border-radius: var(--radius);
  padding: 24px; margin-top: 24px; font-weight: 600;
}
.form-error {
  background: rgba(232,51,107,.1); color: var(--pink-dark);
  border-radius: var(--radius); padding: 16px; margin-top: 16px;
  font-size: 14px;
}

/* === 19. PRO PARTNERY ============================================== */
.partner-hero {
  padding: 80px 0 100px; background: var(--black); color: var(--white);
  position: relative; overflow: hidden;
}
.partner-hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,182,39,.3) 0%, transparent 60%);
}
.partner-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,51,107,.3) 0%, transparent 60%);
}
.partner-hero .container { position: relative; z-index: 2; }
.partner-hero h1 {
  font-family: var(--display); font-size: clamp(56px, 8vw, 110px);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  max-width: 1000px; margin-bottom: 24px;
}
.partner-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold) 0%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.partner-hero p.lead { font-size: 22px; max-width: 700px; color: rgba(255,255,255,.8); }

.benefits { padding: 100px 0; }
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--white); padding: 40px; border-radius: var(--radius);
  border: 2px solid var(--cream-dark); transition: all .3s;
}
.benefit-card:hover {
  border-color: var(--pink); transform: translateY(-4px); box-shadow: var(--shadow);
}
.benefit-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--pink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  margin-bottom: 16px;
}
.benefit-card.color-2 .benefit-num { background: var(--gold); color: var(--black); }
.benefit-card.color-3 .benefit-num { background: var(--teal); }
.benefit-card.color-4 .benefit-num { background: var(--purple); }
.benefit-card.color-5 .benefit-num { background: var(--pink-dark); }
.benefit-card.color-6 .benefit-num { background: var(--black); }
.benefit-card h4 {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
}
.benefit-card p { color: var(--gray-text); font-size: 15px; }

.tiers { padding: 100px 0; background: var(--cream-dark); }
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.tier-card {
  background: var(--white); padding: 40px; border-radius: var(--radius);
  text-align: center; position: relative; transition: all .3s;
}
.tier-card.featured {
  background: var(--pink); color: var(--white); transform: scale(1.05);
}
.tier-card.featured::before {
  content: 'NEJOBLÍBENĚJŠÍ'; position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--black);
  padding: 4px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.tier-card h4 {
  font-family: var(--display); font-size: 28px; font-weight: 700;
  margin-bottom: 8px;
}
.tier-card .tier-tagline { font-size: 14px; opacity: .7; margin-bottom: 24px; }
.tier-features { list-style: none; text-align: left; margin: 24px 0; padding: 0; }
.tier-features li {
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08);
  font-size: 15px; display: flex; align-items: center; gap: 10px;
}
.tier-card.featured .tier-features li { border-color: rgba(255,255,255,.2); }
.tier-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* === 20. KONTAKT =================================================== */
.kontakt-hero { padding: 60px 0 40px; }
.kontakt-hero h1 {
  font-family: var(--display); font-size: clamp(48px, 7vw, 96px);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.kontakt-hero h1 .gradient-text {
  background: linear-gradient(120deg, var(--pink) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kontakt-hero p { font-size: 20px; color: var(--gray-text); max-width: 700px; }
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px;
  padding-bottom: 100px;
}
.kontakt-info-card {
  background: var(--black); color: var(--white);
  padding: 40px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.kontakt-info-card::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,182,39,.2) 0%, transparent 60%);
}
.kontakt-info-card h3 {
  font-family: var(--display); font-size: 32px; font-weight: 700;
  margin-bottom: 24px; position: relative;
}
.kontakt-info-item { margin-bottom: 24px; position: relative; }
.kontakt-info-item .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 4px; font-weight: 700;
}
.kontakt-info-item .value {
  font-family: var(--display); font-size: 18px; font-weight: 600;
}
.kontakt-info-divider {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1); position: relative;
}
.kontakt-info-divider .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 12px; font-weight: 700;
}
.kontakt-form-card {
  background: var(--white); padding: 48px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--cream-dark);
}
.kontakt-form-card h3 {
  font-family: var(--display); font-size: 32px; font-weight: 700;
  margin-bottom: 8px;
}
.kontakt-form-card > p { color: var(--gray-text); margin-bottom: 32px; }

.partner-contact-card {
  margin-top: 32px; padding: 24px;
  background: rgba(255,255,255,.05); border-radius: var(--radius);
}
.partner-contact-card .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.partner-contact-card .name {
  font-family: var(--display); font-size: 24px; font-weight: 700;
}
.partner-contact-card .role { color: rgba(255,255,255,.7); }
.partner-contact-card .row { margin-top: 16px; }

/* === 21. POPUP ===================================================== */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: none; align-items: center; justify-content: center;
  z-index: 300; padding: 24px;
  backdrop-filter: blur(8px);
}
.popup-overlay.active { display: flex; }
.popup {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 600px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 48px; position: relative;
}
.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center;
  justify-content: center; font-size: 24px; color: var(--black);
  transition: all .2s;
}
.popup-close:hover { background: var(--pink); color: var(--white); }
.popup-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--gold-soft); display: flex; align-items: center;
  justify-content: center; font-size: 32px; margin-bottom: 24px;
}
.popup-icon.color-teal { background: rgba(46,196,182,.2); }
.popup-icon.color-purple { background: rgba(123,44,191,.15); }
.popup h3 {
  font-family: var(--display); font-size: 36px; font-weight: 800;
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px;
}
.popup p.lead { font-size: 17px; color: var(--gray-text); margin-bottom: 24px; }
.popup-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  background: var(--cream); padding: 20px; border-radius: var(--radius);
  margin-bottom: 24px;
}
.popup-info-item .label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-soft); font-weight: 600;
}
.popup-info-item .value { font-weight: 700; font-size: 15px; }
.popup-note {
  margin-bottom: 24px; padding: 16px;
  background: var(--cream); border-radius: 12px; font-size: 14px;
}

/* === 22a. CO ŠKOLA ZÍSKÁ (program subpage) ========================= */
.co-ziska { padding: 100px 0; }
.co-ziska-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 32px;
}
.co-ziska-card {
  background: var(--white); padding: 32px;
  border-radius: var(--radius);
  border: 2px solid var(--cream-dark);
  transition: all .3s;
}
.co-ziska-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.co-ziska-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.co-ziska-card h4 {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
}
.co-ziska-card p { color: var(--gray-text); font-size: 15px; }

/* === 22b. PROGRAM GALERIE ========================================== */
.program-galerie { padding: 100px 0; background: var(--cream-dark); }
.program-galerie .program-refs { margin-bottom: 64px; }
.galerie-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.galerie-tile {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  background-size: cover; background-position: center;
  background-color: var(--cream);
  transition: transform .3s;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.galerie-tile:not(.is-placeholder):hover { transform: scale(1.05); z-index: 2; }
.galerie-tile.is-placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--gray-soft);
  font-family: var(--display); font-weight: 700; font-size: 24px;
}
.galerie-note {
  grid-column: 1/-1; padding: 24px;
  background: rgba(255,182,39,.1); border-radius: var(--radius);
  font-size: 14px; color: var(--gray-text); text-align: center;
}

/* === 22c. PROČ PODPOROVAT (Pro partnery) =========================== */
.proc-podporovat { padding: 100px 0; background: var(--cream-dark); }
.proc-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
  align-items: center;
}
.proc-text h2 { margin-top: 16px; }
.proc-stats .hero-stats {
  margin: 0; padding: 0; border: none;
  grid-template-columns: 1fr 1fr;
}
.proc-stats .stat-num { font-size: 48px; }

/* === 22d. POPUP FORM =============================================== */
.popup-form {
  background: var(--cream); padding: 24px; border-radius: var(--radius);
  margin-top: 8px;
}
.popup-form .form-row { margin-bottom: 12px; }
.popup-form .form-row label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700;
}
.popup-form .form-row input {
  padding: 12px 14px; font-size: 14px;
  border: 2px solid var(--cream-dark); background: var(--white);
}
.popup-form .checkbox-row { font-size: 13px; margin-bottom: 16px; }

/* === 22f. SKELETON LOADER (AJAX news filter) ====================== */
.news-list.is-loading { opacity: .8; }
.news-card.is-skeleton { pointer-events: none; }
.sk {
  background: linear-gradient(90deg, var(--cream-dark) 0%, var(--cream) 50%, var(--cream-dark) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s linear infinite;
  border-radius: var(--radius-sm);
}
.sk-line { height: 14px; margin-top: 12px; }
.sk-line.short { width: 60%; }
.news-img.sk { aspect-ratio: 16/10; }
@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 22g. TOAST =================================================== */
.embicko-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: var(--black); color: var(--white);
  padding: 14px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  z-index: 250; max-width: 90vw;
  box-shadow: var(--shadow-lg);
  animation: toast-in .3s ease-out;
}
.embicko-toast.is-error { background: var(--pink-dark); }
.embicko-toast.out { opacity: 0; transform: translate(-50%, 16px); transition: all .4s; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* === 22e. FORM ERROR TOAST ========================================= */
.form-error[role="alert"] {
  background: rgba(232,51,107,.95); color: var(--white);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slide-down .3s ease-out;
}
@keyframes slide-down {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* === 22. UTILITIES ================================================= */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.flex-gap-16 { display: flex; gap: 16px; flex-wrap: wrap; }
.search-form {
  display: flex; gap: 8px; max-width: 400px;
}
.search-form input {
  flex: 1; padding: 12px 16px; border-radius: 100px;
  border: 2px solid var(--cream-dark); font-family: inherit;
}
.search-form button {
  padding: 12px 24px; border-radius: 100px;
  background: var(--black); color: var(--white);
  font-weight: 600;
}

/* === 23. RESPONSIVE ================================================ */
/* === RESPONSIVE ==================================================== */

/* Stop „underline-mark" od trhání ::after žlutého highlightu když se text
   zalomí přes víc řádků. */
.hero h1 .underline-mark,
.hero h1 .word-rotator {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Tablet a menší (≤ 1024 px) */
@media (max-width: 1024px) {
  .programy-grid,
  .princip-grid,
  .form-grid,
  .kontakt-grid,
  .partner-cta { grid-template-columns: 1fr; }
  .program-hero-grid,
  .program-about-grid,
  .manifest-text { grid-template-columns: 1fr; gap: 32px; }
  .doplnkove-grid,
  .reference-grid,
  .aktuality-grid,
  .news-list,
  .benefits-grid,
  .tiers-grid,
  .timeline,
  .co-ziska-grid { grid-template-columns: repeat(2, 1fr); }
  .partneri-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats,
  .proc-stats .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .values-row { grid-template-columns: repeat(2, 1fr); }
  .galerie-grid { grid-template-columns: repeat(3, 1fr); }
  .proc-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { display: none; }
  .uroven-row { grid-template-columns: 60px 1fr; }
  .uroven-row .uroven-badge { grid-column: 2; }
  .tier-card.featured { transform: scale(1); }
  .aktuality-home .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }

  /* Hero subpages – menší padding */
  .program-hero { padding: 60px 0 80px; }
  .partner-hero { padding: 60px 0 80px; }
  .partner-hero h1 { font-size: clamp(48px, 9vw, 80px); }
}

/* Header – přepni na mobile drawer dřív (≤ 1100 px). 5 nav položek včetně
   "Youth City Challenge" potřebuje cca 1000 px aby se vešlo s logem a CTA. */
@media (max-width: 1100px) {
  .site-header .nav-wrapper { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .site-header .container { gap: 16px; }
}

/* Mobil (≤ 640 px) – ještě skryj CTA „Zapojte školu" v hlavičce, ponech jen menu btn */
@media (max-width: 640px) {
  .nav { display: none; }
  .site-header .container > .btn { display: none; }
  .site-header .container { gap: 12px; }

  /* Mobile nav drawer – přesné napojení pod hlavičku */
  .mobile-nav { top: 100%; bottom: 0; inset-inline: 0; height: calc(100vh - 100%); }

  /* Hero – menší vertikální padding */
  .hero { padding: 56px 0 72px; }
  .hero p.lead { font-size: 18px; margin-bottom: 28px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; }
  .stat-num { font-size: 40px; }
  .stat-label { font-size: 12px; }

  /* Programy karty na home – menší nadpis aby se vešel */
  .program-card { padding: 32px 24px; }
  .program-card h3 { font-size: clamp(40px, 12vw, 56px); }

  /* Program hero subpages */
  .program-hero { padding: 48px 0 64px; }
  .program-hero h1 { font-size: clamp(48px, 11vw, 80px); }
  .program-hero .tagline { font-size: 18px; }
  .program-hero-visual { display: none; }

  /* Pro partnery hero */
  .partner-hero { padding: 48px 0 64px; }
  .partner-hero h1 { font-size: clamp(40px, 10vw, 64px); }
  .partner-hero p.lead { font-size: 18px; }

  /* Manifest – kompaktnější */
  .manifest { padding: 80px 0; }
  .manifest h2 { font-size: clamp(28px, 8vw, 40px); margin-bottom: 32px; }
  .manifest-text { font-size: 16px; gap: 16px; }

  /* Sections – globally menší vertical padding */
  .principy, .programy, .doplnkove, .reference, .partneri-section,
  .aktuality-home, .program-about, .urovne, .timeline-section, .faq-section,
  .form-section, .benefits, .tiers, .co-ziska, .program-galerie, .proc-podporovat {
    padding: 60px 0;
  }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 48px); }
  .section-head p { font-size: 16px; }

  /* Grids → 1 col */
  .doplnkove-grid,
  .reference-grid,
  .aktuality-grid,
  .news-list,
  .benefits-grid,
  .tiers-grid,
  .timeline,
  .co-ziska-grid { grid-template-columns: 1fr; }
  .partneri-grid,
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr; }

  /* Forms */
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .program-info-grid { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 100%; }
  .program-info-item .value { font-size: 18px; }

  /* Popup */
  .popup { padding: 28px 20px; max-height: 92vh; }
  .popup h3 { font-size: 28px; }
  .popup p.lead { font-size: 15px; }

  /* CTA partner */
  .partner-cta { padding: 40px 24px; }
  .partner-cta h3 { font-size: 28px; }
  .partner-cta-btn { justify-content: flex-start; }

  /* Forms cards */
  .form-card, .kontakt-form-card { padding: 24px; }
  .form-grid h2 { font-size: 32px; }

  /* Úrovně */
  .uroven-row { grid-template-columns: 50px 1fr; gap: 16px; padding: 24px 20px; }
  .uroven-num { font-size: 40px; }
  .uroven-content h4 { font-size: 22px; }

  /* Timeline – stack vertical */
  .timeline-step { margin-top: 16px; padding-top: 56px; }

  /* Pro partnery tier featured – odstranit -12px posun (pozadí přesahuje na mobile) */
  .tier-card.featured::before { top: -10px; }

  /* Buttons */
  .btn-lg { padding: 14px 28px; font-size: 15px; }

  /* Container padding redukován */
  .container { padding: 0 16px; }
}

/* Malé telefony (≤ 480 px) */
@media (max-width: 480px) {
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); margin-bottom: 24px; }
  .hero h1 .underline-mark::after { height: 10px; bottom: 2px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; padding-top: 20px; }
  .stat-num { font-size: 32px; }

  /* Popup info grid 2→1 col aby hodnoty s pomlčkami nepřetékaly */
  .popup-info-grid { grid-template-columns: 1fr; gap: 8px; }

  /* Partneri grid 2→1 logo wall (větší loga) */
  .partneri-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .partner-logo { font-size: 13px; padding: 12px; }

  /* Galerie 2→2 ale menší tiles, žádný overflow */
  .galerie-grid { gap: 8px; }

  /* News card padding */
  .news-content { padding: 20px; }
  .news-content h3 { font-size: 20px; }

  /* Section heading clamp */
  .section-head h2 { font-size: clamp(24px, 7vw, 36px); }

  /* Programy karty padding */
  .program-card { padding: 28px 20px; }
  .program-card h3 { font-size: clamp(36px, 11vw, 48px); }
  .program-period { font-size: 16px; }
  .program-card p.desc { font-size: 15px; }

  /* Tier card */
  .tier-card { padding: 28px 20px; }
  .tier-card h4 { font-size: 24px; }

  /* Reference card */
  .reference-card { padding: 28px 20px; }
  .reference-card blockquote { font-size: 16px; }
  .reference-card.featured blockquote { font-size: 18px; }
  .quote-mark { font-size: 60px; }

  /* Manifest values */
  .value-icon { width: 56px; height: 56px; font-size: 24px; }
  .value-name { font-size: 20px; }

  /* Principy */
  .princip-card { padding: 28px 20px; }
  .princip-num { font-size: 44px; }
  .princip-card h3 { font-size: 24px; }

  /* Form section */
  .form-grid h2 { font-size: 28px; }

  /* Co ziska */
  .co-ziska-card { padding: 24px 20px; }
}

/* Reduced motion support */
@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;
  }
  /* Without animation the gradient text would render as transparent
     because -webkit-text-fill-color stays. Fall back to solid pink. */
  .hero h1 .word-rotator,
  .partner-hero h1 em,
  .news-hero h1 .gradient-text,
  .kontakt-hero h1 .gradient-text {
    background: none !important;
    -webkit-text-fill-color: var(--pink) !important;
    color: var(--pink) !important;
  }
  .eyebrow-dot { animation: none !important; }
}

/* === DARK MODE (prefers-color-scheme) ============================= */
/* Opt-in přes filter `embicko_enable_dark_mode` v PHP, jinak je dark
   mode vypnutý (template má brand-konzistentní vzhled). */
@media (prefers-color-scheme: dark) {
  html[data-dark="auto"] {
    --cream: #15131F;
    --cream-dark: #1F1B2C;
    --white: #2A2533;
    --black: #FAF7F2;
    --gray-text: #B8B0BD;
    --gray-soft: #777084;
  }
  html[data-dark="auto"] body { background: var(--cream); color: var(--black); }
  html[data-dark="auto"] .site-header { background: rgba(21,19,31,.85); }
  html[data-dark="auto"] .program-card,
  html[data-dark="auto"] .princip-card,
  html[data-dark="auto"] .activity-tile,
  html[data-dark="auto"] .news-card,
  html[data-dark="auto"] .reference-card,
  html[data-dark="auto"] .form-card,
  html[data-dark="auto"] .kontakt-form-card {
    background: var(--white); color: var(--black);
  }
  html[data-dark="auto"] .partner-logo { filter: invert(1) grayscale(1); }
  html[data-dark="auto"] .form-row input,
  html[data-dark="auto"] .form-row select,
  html[data-dark="auto"] .form-row textarea {
    background: var(--cream); color: var(--black); border-color: var(--cream-dark);
  }
}

/* === PRINT ========================================================= */
/* Print stylesheet – speciálně pro single Aktualita / Page export do PDF */
@media print {
  .site-header, .site-footer, .hero-bg-shape, .popup-overlay,
  .form-section, .partner-cta, .mobile-menu-btn,
  .news-filters, .pagination, .embicko-toast { display: none !important; }
  body { background: white; color: black; }
  a { text-decoration: underline; color: black; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }

  /* Single Aktualita: clean magazine layout */
  .single-post-hero { padding: 0 0 16px; }
  .single-post-hero .single-post-meta { font-size: 10pt; color: #555; }
  .single-post-hero h1 { font-size: 28pt; line-height: 1.1; margin: 8pt 0; }
  .single-post-thumb { aspect-ratio: auto; max-height: 280pt; margin: 12pt 0; page-break-inside: avoid; }
  .single-post-body { font-size: 11pt; max-width: none; padding: 0; }
  .single-post-body h2 { font-size: 16pt; margin: 16pt 0 8pt; page-break-after: avoid; }
  .single-post-body h3 { font-size: 13pt; }
  .single-post-body p, .single-post-body li { orphans: 3; widows: 3; }
  .single-post-body img { max-width: 100%; page-break-inside: avoid; }
  .single-post-body blockquote { border-left: 3pt solid #000; margin: 12pt 0; padding: 4pt 12pt; font-style: italic; }
}
