/* ── VARIABLES ────────────────────────────────────────── */
:root {
  --forest-deep: #0E180C;
  --forest:      #2A5C26;
  --forest-mid:  #1E4A1B;
  --green:       #4BAF47;
  --green-light: #7dd87a;
  --sage:        #E3EEE0;
  --ivory:       #F7F6EF;
  --ivory-dark:  #EDE8DC;
  --ink:         #1B2418;
  --ink-mid:     #3D4A3B;
  --muted:       #6B7B69;
  --border:      rgba(42,92,38,0.15);
  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'Plus Jakarta Sans', system-ui, sans-serif;
  --radius:      10px;
  --shadow:      0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.12);
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px; scroll-behavior: smooth; min-height: 100%;
  background: var(--ivory);
}

body {
  font-family: var(--ff-body); color: var(--ink);
  background: transparent;
  line-height: 1.65;
}

/* Full-width wrapper */
.site-shell {
  width: 100%;
  background: var(--ivory);
  position: relative;
  display: flex; flex-direction: column; min-height: 100vh;
}

img  { max-width: 100%; display: block; }
a    { color: var(--forest); text-decoration: none; }
a:hover { color: var(--green); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

main { flex: 1; }

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  background: rgba(247,246,239,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42,92,38,0.1);
  position: sticky; top: 0; z-index: 100;
  /* Jemný spodní stín aby se header odlišil od obsahu */
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo img { height: 26px; width: auto; display: block; }
.logo-esgv {
  font-family: var(--ff-display); font-size: 23px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
}
.logo-v { color: var(--green); }
.logo-sep { width: 1px; height: 20px; background: var(--border); }
.logo-akademie { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
/* jen textové linky — buttony si drží vlastní barvy */
.site-nav > a:not([class*="btn"]) {
  font-size: 14px; font-weight: 500; color: var(--ink-mid);
  padding: 7px 14px; border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.site-nav > a:not([class*="btn"]):hover { background: var(--sage); color: var(--forest); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer; border: none;
  transition: all 0.2s; text-decoration: none;
  -webkit-appearance: none; appearance: none; line-height: 1;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-mid); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(42,92,38,0.3); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline-sm { padding: 8px 18px; background: transparent; color: var(--forest); border: 1.5px solid var(--forest); border-radius: 8px; font-size: 13px; font-weight: 600; }
.btn-outline-sm:hover { background: var(--forest); color: #fff; }
.btn-primary-sm { padding: 8px 18px; background: var(--forest); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; }
.btn-primary-sm:hover { background: var(--forest-mid); color: #fff; }
.btn-outline-full { display: block; width: 100%; text-align: center; padding: 14px; background: transparent; color: var(--forest); border: 1.5px solid var(--forest); border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.btn-outline-full:hover { background: var(--forest); color: #fff; }
.btn-primary-full { display: block; width: 100%; text-align: center; padding: 14px; background: var(--forest); color: #fff; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary-full:hover { background: var(--forest-mid); transform: translateY(-1px); }

/* ── FLASH ────────────────────────────────────────────── */
.flash-wrap { position: fixed; top: 79px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); }
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4CAF50; }
.flash-error   { background: #fdecea; color: #c62828; border-left: 4px solid #f44336; }
.flash-warning { background: #fff8e1; color: #f57f17; border-left: 4px solid #FFC107; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--forest-deep);
  padding: 28px 0;
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.03) inset;
  border-radius: 0;
}
.site-footer--flush { margin-top: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-company { font-weight: 600; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-company:hover { color: var(--green-light); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.26); }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.38); transition: color 0.15s; }
.footer-links a:hover { color: var(--green-light); }
.footer-email { color: rgba(255,255,255,0.38); transition: color 0.15s; }
.footer-email:hover { color: var(--green-light); }

/* ── HOMEPAGE HERO ────────────────────────────────────── */
/* Foto + tmavý gradient teď žijí na .hero-wrap, aby vizuálně plynuly
   nepřerušeně přes hero i standards-strip pod ním (jeden souvislý blok,
   ne dvě na sebe navazující plochy s viditelným švem). */
.hero-wrap {
  position: relative; overflow: hidden;
  background-color: var(--forest-deep);
  background-image: url('/static/img/hero-bg.jpg');
  background-size: cover;
  background-position: center 45%;
}
.hero-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,18,8,0.88) 0%, rgba(10,18,8,0.82) 100%),
    radial-gradient(ellipse at 40% 50%, rgba(75,175,71,0.10) 0%, transparent 55%);
}
.hero {
  position: relative;
  padding: 96px 0 22px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; margin-bottom: 20px;
  background: rgba(75,175,71,0.12); border: 1px solid rgba(75,175,71,0.3);
  border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-light);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(75,175,71,.6); } 50% { box-shadow: 0 0 0 6px rgba(75,175,71,0); } }
.hero-title {
  font-family: var(--ff-display); font-size: clamp(40px, 5vw, 66px);
  font-weight: 300; color: #fff; line-height: 1.08; margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--green-light); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.68); line-height: 1.75; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }

/* ── HERO CALLOUT ─────────────────────────────────────── */
.hero-callout {
  background: linear-gradient(135deg, rgba(212,175,55,0.14) 0%, rgba(160,120,20,0.22) 100%);
  border: 1px solid rgba(212,175,55,0.38);
  border-radius: 12px;
  padding: 14px 20px;
}
.hero-callout-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 5px;
}
.hero-callout-star { color: #F5C842 !important; font-size: 14px; margin-right: 2px; }
.hero-callout-text {
  font-size: 13.5px; color: rgba(255,255,255,0.85);
  line-height: 1.62; margin: 0;
}
.hero-stats { display: flex; align-items: center; gap: 0; }
.hstat { text-align: left; padding: 0 28px; }
.hstat:first-child { padding-left: 0; }
.hstat-n { display: block; font-family: var(--ff-display); font-size: 32px; font-weight: 400; color: #fff; line-height: 1; }
.hstat-l { font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }
.hstat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* ── SECTION LABELS ───────────────────────────────────── */
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.section-title { font-family: var(--ff-display); font-size: clamp(28px, 4vw, 44px); font-weight: 400; color: var(--ink); margin-bottom: 16px; line-height: 1.2; }
.section-sub { font-size: 16px; color: var(--muted); margin-bottom: 56px; line-height: 1.7; }

/* ── KURZY ────────────────────────────────────────────── */
.courses-section { padding: 48px 0 72px; }
.courses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.courses-grid--extra {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.courses-grid--extra .course-card {
  flex: 0 0 calc(50% - 14px);
  box-sizing: border-box;
}

.course-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s; position: relative;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card--featured { background: var(--forest-deep); border-color: var(--forest); }
.course-card-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 99px;
}
.course-card-header { padding: 32px 32px 0; flex: 1; }
.course-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.course-tag--light { color: rgba(255,255,255,0.5); }
.course-name { font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.course-card--featured .course-name { color: #fff; }
.course-subtitle { font-size: 14px; color: var(--muted); }
.course-card--featured .course-subtitle { color: rgba(255,255,255,0.55); }
.course-for-whom {
  margin-top: 18px; padding: 14px 16px;
  background: rgba(42,92,38,0.05); border-radius: 8px;
  font-size: 13px; color: var(--ink-mid); line-height: 1.6;
}
.course-for-whom--light {
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.65);
}
.for-whom-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 5px;
}
.course-for-whom--light .for-whom-label { color: rgba(255,255,255,0.4); }
.course-card-body { padding: 24px 32px 32px; }
.course-price { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price-amount { font-family: var(--ff-display); font-size: 42px; font-weight: 400; color: var(--ink); line-height: 1; }
.course-card--featured .price-amount { color: #fff; }
.price-currency { font-size: 18px; font-weight: 500; color: var(--muted); }
.course-card--featured .price-currency { color: rgba(255,255,255,0.6); }
.price-vat { font-size: 12px; color: var(--muted); }
.course-card--featured .price-vat { color: rgba(255,255,255,0.4); }

/* Sleva — badge řádek nad cenou + přeškrtnutá původní cena za "vč. DPH" na stejném řádku */
.sale-badges-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.price-old {
  position: relative;
  font-family: var(--ff-display);
  font-size: 24px;
  color: var(--muted);
  margin-left: 4px;
}
.price-old::after {
  content: "";
  position: absolute;
  left: -6%; top: 48%;
  width: 112%; height: 2px;
  background: #D6362C;
  transform: rotate(-13deg);
  transform-origin: center;
}
.course-card--featured .price-old { color: rgba(255,255,255,0.45); }
.course-card--featured .price-old::after { background: #FF6B5B; }
.sale-badge {
  display: inline-flex; align-items: center;
  background: #D6362C; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 20px; line-height: 1.4;
  white-space: nowrap;
}
.sale-badge--time { background: #B45309; }
.osl-price-wrap { display: flex; flex-direction: column; gap: 6px; }
.modal-price-old {
  position: relative;
  font-size: 20px;
  color: rgba(255,255,255,0.45);
  margin-left: 4px;
}
.modal-price-old::after {
  content: "";
  position: absolute;
  left: -6%; top: 46%;
  width: 112%; height: 2px;
  background: #FF6B5B;
  transform: rotate(-13deg);
  transform-origin: center;
}
.osl-price-old {
  position: relative;
  font-size: 24px;
  color: rgba(255,255,255,0.4);
  margin-left: 6px;
}
.osl-price-old::after {
  content: "";
  position: absolute;
  left: -6%; top: 48%;
  width: 112%; height: 2px;
  background: #FF6B5B;
  transform: rotate(-13deg);
  transform-origin: center;
}
.course-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 7px; }
.course-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-mid); }
.course-card--featured .course-features li { color: rgba(255,255,255,0.75); }
.course-features svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--green); }
.course-card-footer { display: flex; flex-direction: column; gap: 12px; }
.course-detail-link { text-align: center; font-size: 13px; color: var(--muted); }
.course-detail-link:hover { color: var(--forest); }
.course-detail-link--light { color: rgba(255,255,255,0.4); }
.course-detail-link--light:hover { color: #fff; }

/* ── LEGAL / STATIC CONTENT PAGES ─────────────────────── */
.legal-page { padding: 56px 0 100px; }
.legal-container { max-width: 800px; margin: 0 auto; }
.legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.legal-container h1 { font-family: var(--ff-display); font-size: 38px; font-weight: 400; color: var(--ink); margin-bottom: 28px; line-height: 1.15; }
.legal-container h2 { font-family: var(--ff-display); font-size: 22px; font-weight: 500; color: var(--forest); margin: 40px 0 12px; }
.legal-container h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.legal-container p { font-size: 15px; line-height: 1.75; color: var(--ink-mid); margin-bottom: 14px; }
.legal-container ul, .legal-container ol { padding-left: 22px; margin-bottom: 16px; }
.legal-container li { font-size: 15px; line-height: 1.75; color: var(--ink-mid); margin-bottom: 6px; }
.legal-container a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.legal-container strong { color: var(--ink); }
.legal-box { background: var(--sage); border: 1px solid rgba(42,92,38,0.14); border-radius: 12px; padding: 20px 24px; margin: 20px 0; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-toc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 40px; }
.legal-toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { margin-bottom: 0; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.withdrawal-form-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; margin: 40px auto; max-width: 640px; }
.withdrawal-form-box h1 { font-size: 26px; margin-bottom: 10px; }
.withdrawal-form-box .form-group { margin-bottom: 16px; }
.withdrawal-form-box label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.withdrawal-form-box textarea, .withdrawal-form-box input[type="text"] {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px;
}
.withdrawal-notice { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }

/* ── PODCAST IN-CARD ──────────────────────────────────── */
.course-podcast {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 24px; padding: 14px 16px;
  background: rgba(42,92,38,0.05);
  border-radius: 8px;
}
.course-card--featured .course-podcast {
  background: rgba(255,255,255,0.07);
}
.cpod-btn {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--forest); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(42,92,38,0.32);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.cpod-btn:hover {
  background: #1B4A17; transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(42,92,38,0.45);
}
.cpod-btn svg { width: 16px; height: 16px; }
.cpod-icon-play { transform: translateX(1px); }
.course-card--featured .cpod-btn {
  background: transparent;
  border: 2px solid rgba(75,175,71,0.55);
  color: #4BAF47;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.course-card--featured .cpod-btn:hover {
  background: rgba(75,175,71,0.14);
  border-color: rgba(75,175,71,0.9);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transform: scale(1.07);
}
.cpod-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cpod-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--forest); opacity: 0.6;
}
.course-card--featured .cpod-label { color: rgba(180,230,178,0.65); opacity: 1; }
.cpod-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.course-card--featured .cpod-name { color: rgba(220,245,218,0.92); }

/* ── JAK TO FUNGUJE ───────────────────────────────────── */
.how-section { padding: 48px 0 72px; background: var(--sage); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { }
.step-num { font-family: var(--ff-display); font-size: 48px; font-weight: 300; color: var(--green); line-height: 1; margin-bottom: 16px; opacity: 0.6; }
.step h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── PROČ ESGV ────────────────────────────────────────── */
.why-section { padding: 48px 0 72px; }
.why-inner { display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: center; }
.why-text .section-title { margin-bottom: 20px; }
.why-text > p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.why-list li { font-size: 14px; color: var(--ink-mid); padding-left: 16px; position: relative; }
.why-list li::before { content: '—'; position: absolute; left: 0; color: var(--green); }
.why-card {
  background: var(--forest-deep); border-radius: 16px;
  padding: 40px; text-align: center;
}
.why-card-icon { width: 52px; height: 52px; margin: 0 auto 20px; color: var(--green); }
.why-card-icon svg { width: 100%; height: 100%; }
.why-card-title { font-family: var(--ff-display); font-size: 22px; color: #fff; margin-bottom: 12px; }
.why-card-sub { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* ── AUTH PAGES ───────────────────────────────────────── */
.auth-page { background: var(--ivory); min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 60px 0; }
.auth-page--app { min-height: calc(100vh - 76px); }
.auth-page .container { display: flex; flex-direction: column; width: 100%; }
.auth-body .auth-page { min-height: calc(100vh - 76px); padding: 40px 0; }
.auth-card {
  background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 8px 48px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06); padding: 56px 60px; max-width: 600px; margin: 0 auto; width: 100%;
}
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; display: flex; align-items: center; }
.pw-toggle:hover { color: var(--forest); }
.auth-card--wide { max-width: 760px; }
.auth-card-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.auth-card-brand .logo-esgv { font-family: var(--ff-display); font-size: 20px; font-weight: 600; color: var(--forest-deep); letter-spacing: 0.02em; }
.auth-card-brand .logo-v { color: var(--green); }
.auth-card-brand .logo-sep { width: 1px; height: 18px; background: var(--border); }
.auth-card-brand .logo-akademie { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.auth-header { margin-bottom: 32px; }
.auth-header h1 { font-family: var(--ff-display); font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: var(--muted); }
.auth-footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-footer a { color: var(--forest); font-weight: 600; }

/* ── FORMS ────────────────────────────────────────────── */
.form-section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.form-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--ink-mid); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 1.5px solid #e0e0de; border-radius: 8px;
  font-family: var(--ff-body); font-size: 14px; color: var(--ink);
  background: var(--ivory); outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--forest); background: #fff; }
.form-hint { font-size: 12px; color: var(--muted); }
.form-errors { background: #fdecea; border: 1px solid #f44336; border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; }
.form-errors p { font-size: 13px; color: #c62828; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* Výběr kurzu při registraci */
.course-radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.course-radio {
  border: 1.5px solid var(--border); border-radius: 11px; padding: 16px 18px;
  cursor: pointer; transition: all 0.18s; position: relative;
}
.course-radio.active { border-color: var(--forest); background: rgba(42,92,38,0.04); }
.course-radio.active::after {
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--forest);
}
.course-radio input { display: none; }
.course-radio-inner { display: flex; flex-direction: column; gap: 4px; }
.course-radio-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.course-radio-sub { font-size: 11px; color: var(--muted); line-height: 1.5; }
.course-radio-price { font-family: var(--ff-display); font-size: 26px; font-weight: 600; color: var(--forest-deep); margin-top: 10px; letter-spacing: -0.02em; }
.course-radio.active .course-radio-price { color: var(--forest); }

/* Sleva */
.discount-row { display: flex; gap: 10px; align-items: center; }
.discount-input-wrap { flex: 1; }
.discount-msg { font-size: 13px; margin-top: 8px; }
.discount-msg--ok  { color: #2e7d32; }
.discount-msg--err { color: #c62828; }

/* Souhrn */
.reg-summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--sage); border-radius: 10px; margin: 24px 0 20px; }
.reg-summary-label { font-size: 14px; font-weight: 600; color: var(--ink-mid); }
.reg-summary-price { font-family: var(--ff-display); font-size: 24px; color: var(--forest); }

/* Úspěch */
.success-icon, .pending-icon { text-align: center; margin-bottom: 20px; }
.success-icon svg, .pending-icon svg { width: 56px; height: 56px; margin: 0 auto; }
.success-icon svg { stroke: #4CAF50; }
.pending-icon svg { stroke: var(--green); }
.success-summary { background: var(--sage); border-radius: 10px; padding: 20px 24px; margin: 20px 0; }
.ss-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.ss-row:last-child { border-bottom: none; }
.success-note { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 16px 0; }

/* ── RESULT ────────────────────────────────────────────── */
.result-icon { text-align: center; margin-bottom: 20px; }
.result-icon svg { width: 56px; height: 56px; margin: 0 auto; }
.result-icon--pass svg { stroke: #4CAF50; }
.result-icon--fail svg { stroke: #f44336; }
.result-detail { background: var(--sage); border-radius: 10px; padding: 20px 24px; margin: 20px 0; }
.result-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.result-row:last-child { border-bottom: none; }
.text-green { color: #2e7d32; }
.text-red   { color: #c62828; }

/* ── DASHBOARD ────────────────────────────────────────── */
.dash-page {
  background: var(--ivory);
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(42,92,38,0.055) 1.5px, transparent 0);
  background-size: 30px 30px;
}

/* ── DASHBOARD WELCOME HEADER ─────────────────────────── */
.dash-welcome { background: var(--forest-deep); position: relative; overflow: hidden; }
.dash-welcome::before {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(75,175,71,0.11) 0%, transparent 60%);
  pointer-events: none;
}
.dash-welcome::after {
  content: ''; position: absolute; bottom: -60px; left: 40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(42,92,38,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.dw-inner { max-width: 1160px; margin: 0 auto; padding: 44px 24px 40px; position: relative; z-index: 1; }
.dw-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 10px; }
.dw-greeting { font-family: var(--ff-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 300; color: rgba(255,255,255,0.95); line-height: 1.15; }
.dw-greeting em { font-style: italic; color: var(--green-light); }
.dw-sub { font-size: 14px; color: rgba(255,255,255,0.42); margin-top: 8px; }

/* Module panels */
.csm-panel { display: none; }
.csm-panel.is-active { display: block; }
.cm-module-competence { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); background: rgba(42,92,38,0.1); border-radius: 4px; padding: 3px 9px; }
.mod-progress-row { display: flex; align-items: center; gap: 14px; margin: 20px 0 8px; }
.mod-progress-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mod-cta-row { margin: 24px 0 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mod-done-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--forest); background: rgba(42,92,38,0.1); border-radius: 20px; padding: 8px 18px; }
.cm-quiz-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--ivory); border-radius: 12px; margin-top: 12px; border: 1px solid rgba(0,0,0,0.07); }
.cm-quiz-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(42,92,38,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-quiz-icon svg { width: 16px; height: 16px; color: var(--forest); }
.cm-quiz-label { font-size: 14px; color: var(--ink); font-weight: 500; flex: 1; }
.cm-quiz-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.dash-greeting { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.dash-course-title { font-family: var(--ff-display); font-size: 32px; font-weight: 400; color: var(--ink); }
.dash-status { padding: 6px 16px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dash-status--active    { background: rgba(42,92,38,0.1); color: var(--forest); }
.dash-status--completed { background: rgba(75,175,71,0.15); color: #2e7d32; }
.dash-status--pending   { background: #fff8e1; color: #f57f17; }

/* Progress */
.progress-section { margin-bottom: 40px; }
.progress-bar-wrap { height: 8px; background: #e0e0de; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.progress-bar-fill { height: 100%; background: linear-gradient(to right, var(--forest), var(--green)); border-radius: 99px; transition: width 0.6s ease; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; }
.progress-pct { font-size: 14px; font-weight: 600; color: var(--forest); }
.progress-done { font-size: 14px; font-weight: 600; color: #2e7d32; }

/* Cert banner */
.cert-banner {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-mid));
  border-radius: 14px; padding: 24px 28px; margin-bottom: 40px;
}
.cert-banner-icon { color: var(--green); }
.cert-banner-icon svg { width: 36px; height: 36px; }
.cert-banner-title { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.cert-banner-num { font-family: var(--ff-display); font-size: 20px; color: #fff; }
.cert-banner-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cert-banner-actions form { display: contents; }
.cert-banner-actions button { -webkit-appearance: none; appearance: none; font: inherit; line-height: 1; cursor: pointer; }
.cert-banner-actions .btn-primary-sm,
.cert-banner-actions .btn-outline-sm {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1.5px solid transparent;
}
.cert-banner-actions .btn-primary-sm {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.cert-banner-actions .btn-primary-sm:hover {
  background: rgba(255,255,255,0.28);
}
.cert-banner-actions .btn-outline-sm {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}
.cert-banner-actions .btn-outline-sm:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* Moduly */
.modules-list { display: flex; flex-direction: column; gap: 12px; }
.module-card { background: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.module-card--done { border-color: rgba(75,175,71,0.5); box-shadow: 0 2px 10px rgba(75,175,71,0.08); }
.module-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; user-select: none; }
.module-header:hover { background: var(--ivory); }
.module-title-wrap { display: flex; align-items: center; gap: 16px; }
.module-num { width: 32px; height: 32px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--forest); flex-shrink: 0; }
.module-card--done .module-num { background: rgba(75,175,71,0.2); }
.module-competence-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; }
.module-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.module-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.module-toggle svg { width: 20px; height: 20px; transition: transform 0.25s; }
.module-body { border-top: 1px solid var(--border); }

/* Lekce */
.lesson-list { list-style: none; padding: 12px 24px; }
.lesson-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.lesson-item:last-child { border-bottom: none; }
.lesson-check { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); }
.lesson-done .lesson-check { color: var(--green); }
.lesson-check svg { width: 100%; height: 100%; }
.lesson-link { font-size: 14px; color: var(--ink-mid); flex: 1; transition: color 0.15s; }
.lesson-link:hover { color: var(--forest); }
.lesson-done .lesson-link { color: var(--muted); }
.lesson-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.module-quiz-row { padding: 16px 24px; background: var(--ivory); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.quiz-done-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #2e7d32; }
.quiz-done-badge svg { width: 18px; height: 18px; }
.quiz-locked { font-size: 13px; color: var(--muted); }

/* ── COURSE PAGE — horizontální nav ──────────────────── */
.course-page { background: var(--ivory); min-height: calc(100vh - 76px); }

.course-nav-sticky {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: var(--ivory);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.course-nav { background: transparent; }

/* Modul tabs — bílé boxy se stínem na ivory pozadí */
.cmod-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 14px 0 0;
}
.cmod-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  color: var(--ink-mid);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  text-align: center;
  line-height: 1.3;
  position: relative;
}
.cmod-tab:hover {
  background: #eeede8;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,0.11);
  transform: translateY(-2px);
}
.cmod-tab.active {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 2px 12px rgba(42,92,38,0.3);
  transform: none;
}
.cmod-num {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.cmod-tab:hover .cmod-num { color: var(--forest); }
.cmod-tab.active .cmod-num { color: rgba(255,255,255,0.7); }
.cmod-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.cmod-tab:hover .cmod-name { color: var(--forest-deep); }
.cmod-tab.active .cmod-name { color: #fff; }
.cmod-done-mark {
  position: absolute; top: 6px; right: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(75,175,71,0.4);
}
.cmod-done-mark svg { width: 9px; height: 9px; color: #fff; stroke-width: 3; }
.cmod-tab.active .cmod-done-mark {
  background: rgba(255,255,255,0.9);
  box-shadow: none;
}
.cmod-tab.active .cmod-done-mark svg { color: var(--forest); }

/* Separator + speciální taby (Mapa, Šablony) */
.cmod-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 8px 2px 0;
  flex-shrink: 0;
}
.cmod-tab.cmod-special {
  flex: 0 0 auto;
  min-width: 88px;
  padding-left: 16px;
  padding-right: 16px;
  color: #7a5c08;
  background: #fffbf0;
  box-shadow: 0 2px 8px rgba(200,153,26,0.1);
}
.cmod-tab.cmod-special:hover { background: #fff3cc; color: #5a4206; box-shadow: 0 2px 12px rgba(200,153,26,0.18); }
.cmod-tab.cmod-special .cmod-num { color: #b88a1a; }
.cmod-tab.cmod-special:hover .cmod-num,
.cmod-tab.cmod-special.active .cmod-num { color: #7a5008; }
.cmod-tab.cmod-special .cmod-name { color: #7a5c08; }
.cmod-tab.cmod-special:hover .cmod-name,
.cmod-tab.cmod-special.active .cmod-name { color: #5a4206; }
.cmod-tab.cmod-special.active { background: #fff3cc; color: #5a4206; box-shadow: 0 2px 12px rgba(200,153,26,0.2); }

/* Lekce tabs — bílé boxy se stínem, stejný systém */
.cles-band { background: var(--ivory); padding-bottom: 12px; }
.cles-row {
  display: flex;
  gap: 5px;
  padding: 8px 0 0;
}
.cles-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.cles-tab:hover { background: #eeede8; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,0.11); transform: translateY(-2px); border-color: rgba(42,92,38,0.15); }
.cles-tab.active { background: var(--sage); color: var(--forest-deep); font-weight: 700; box-shadow: 0 2px 10px rgba(42,92,38,0.12); border-color: rgba(42,92,38,0.2); transform: none; }
.cles-tab.done { color: var(--forest); }
.cles-tab.done .cles-icon { color: var(--green); filter: drop-shadow(0 0 3px rgba(75,175,71,0.5)); width: 13px; height: 13px; }
.cles-tab.done.active { background: var(--sage); color: var(--forest-deep); }
.cles-icon { width: 11px; height: 11px; flex-shrink: 0; }
.cles-icon--unread { color: #d94f4f; }
.cles-tab-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Obsah lekce */
.course-content { padding: 44px 0 40px; }
.course-lesson-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.course-lesson-title { font-family: var(--ff-display); font-size: 2.2rem; font-weight: 400; color: var(--ink); margin-bottom: 28px; line-height: 1.2; }
.course-lesson-body { font-size: 15px; line-height: 1.8; color: var(--ink-mid); }
.course-lesson-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* ── LEKCE (legacy) ────────────────────────────────── */
/* ── TEMPLATES LIST PAGE ────────────────────────────────── */
.tpl-locked-banner {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--sage); border: 1px solid rgba(42,92,38,0.18);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 44px;
}
.tpl-locked-pct {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--ff-display); font-size: 2rem; font-weight: 400;
  color: var(--forest); line-height: 1; padding-top: 2px;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .tpl-grid { grid-template-columns: 1fr; }
}
.tpl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 16px;
  padding: 24px 24px 20px;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.18s, transform 0.18s;
}
.tpl-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.1); transform: translateY(-2px); }
.tpl-card--locked { opacity: 0.72; border-top-color: var(--border); }
.tpl-card--locked:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); transform: none; }
.tpl-card-head {
  display: flex; align-items: flex-start; gap: 14px;
  flex: 1; margin-bottom: 20px;
}
.tpl-card-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.tpl-card--locked .tpl-card-icon { filter: grayscale(1); opacity: 0.5; }
.tpl-card-meta { flex: 1; min-width: 0; }
.tpl-card-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
  white-space: nowrap;
}
.tpl-card-name {
  font-size: 15px; font-weight: 700; color: var(--ink);
  line-height: 1.4;
}
.tpl-card-btns {
  display: flex; flex-direction: row; gap: 10px;
}
.tpl-card-btn {
  flex: 1;
  display: inline-flex; align-items: center; gap: 6px;
  justify-content: center;
  background: var(--forest); color: #fff;
  border: 1.5px solid var(--forest);
  border-radius: 8px; padding: 9px 12px;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tpl-card-btn:hover { background: var(--forest-mid); border-color: var(--forest-mid); }
.tpl-card-btn--outline {
  background: var(--sage); color: var(--forest-deep);
  border-color: rgba(42,92,38,0.25);
}
.tpl-card-btn--outline:hover { background: #d4e8ce; border-color: var(--forest); color: var(--forest-deep); }
.tpl-card-locked-msg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 10px 0;
}

.lesson-page { background: var(--ivory); min-height: calc(100vh - 68px); padding: 40px 24px 80px; }
.lesson-inner { max-width: 1140px; margin: 0 auto; display: flex; gap: 24px; align-items: flex-start; }
.lesson-sidebar { width: 280px; flex-shrink: 0; background: #fff; border-radius: 20px; box-shadow: 0 8px 48px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.07); position: sticky; top: 91px; max-height: calc(100vh - 104px); overflow-y: auto; }
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.sidebar-back { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.sidebar-back:hover { color: var(--forest); }
.sidebar-back svg { width: 16px; height: 16px; }
.sidebar-progress-bar { height: 4px; background: #e0e0de; border-radius: 99px; overflow: hidden; }
.sidebar-progress-fill { height: 100%; background: var(--green); border-radius: 99px; }
.sidebar-modules { padding: 12px 0; }
.sidebar-module { padding: 0 0 4px; }
.sidebar-module-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 20px 6px; }
.sidebar-module--active .sidebar-module-title { color: var(--forest); }
.sidebar-mod-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; border-radius: 6px; transition: background 0.15s; }
.sidebar-mod-toggle:hover { background: var(--ivory); }
.sidebar-lessons { list-style: none; }
.sidebar-lesson a { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 13px; color: var(--ink-mid); transition: background 0.15s; }
.sidebar-lesson a:hover { background: var(--ivory); }
.sidebar-lesson.current a { background: rgba(42,92,38,0.08); color: var(--forest); font-weight: 600; }
.sidebar-lesson.done a { color: var(--muted); }
.sl-check { font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; }
.sidebar-quiz a { color: var(--forest); }
.sidebar-close-btn { display: none; background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; line-height: 1; border-radius: 6px; transition: background 0.15s; position: absolute; top: 14px; right: 16px; }
.sidebar-close-btn:hover { background: var(--ivory); color: var(--ink); }
.sidebar-header { position: relative; }

.lesson-main { flex: 1; min-width: 0; }
.lesson-content-wrap { width: 100%; max-width: 820px; padding: 56px 68px; background: #fff; border-radius: 20px; box-shadow: 0 8px 48px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.07); }
.lesson-meta-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.lesson-module-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.lesson-time-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lesson-time-label svg { width: 14px; height: 14px; }
.lesson-title { font-family: var(--ff-display); font-size: 38px; font-weight: 400; color: var(--ink); margin-bottom: 36px; line-height: 1.2; }
.lesson-body h2 { font-family: var(--ff-display); font-size: 26px; font-weight: 400; color: var(--ink); margin: 36px 0 14px; }
.lesson-body h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.lesson-body p  { font-size: 15px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 18px; }
.lesson-body ul, .lesson-body ol { font-size: 15px; color: var(--ink-mid); line-height: 1.75; margin: 0 0 18px 20px; }
.lesson-body li { margin-bottom: 6px; }
.lesson-body ul > li::marker { color: var(--green); font-size: 1.1em; }
.lesson-body ol > li::marker { color: var(--forest); font-weight: 700; }
.lesson-body strong { color: var(--ink); }
.lesson-body blockquote { border-left: 3px solid var(--green); padding: 12px 20px; background: var(--sage); border-radius: 0 8px 8px 0; margin: 24px 0; font-style: italic; color: var(--ink-mid); }
.lesson-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.lesson-body th { background: var(--forest); color: #fff; padding: 10px 14px; font-size: 13px; text-align: left; }
.lesson-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.lesson-body tr:nth-child(even) td { background: var(--ivory); }
.lesson-body .info-box { background: rgba(42,92,38,0.07); border: 1px solid rgba(42,92,38,0.2); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.lesson-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.lesson-nav-btn { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--forest); padding: 10px 20px; border-radius: 8px; border: 1.5px solid var(--border); transition: all 0.18s; }
.lesson-nav-btn:hover { border-color: var(--forest); background: rgba(42,92,38,0.05); }
.lesson-nav-btn svg { width: 18px; height: 18px; }

/* ── QUIZ ─────────────────────────────────────────────── */
.quiz-page { background: var(--ivory); min-height: calc(100vh - 68px); }
.quiz-inner { max-width: 1160px; margin: 0 auto; padding: 44px 24px 80px; display: flex; flex-direction: column; gap: 24px; }
.quiz-card { background: transparent; }
.quiz-header { padding: 32px 36px 28px; border-radius: 16px; background: var(--forest-deep); box-shadow: var(--shadow); }
.quiz-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-light); margin-bottom: 8px; }
.quiz-title { font-family: var(--ff-display); font-size: 28px; font-weight: 400; color: #fff; margin-bottom: 12px; }
.quiz-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); }
.quiz-meta-sep { opacity: 0.4; }
.question-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 36px 40px;
}
.question-num { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.question-text { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 20px; line-height: 1.55; }
.answers-list { display: flex; flex-direction: column; gap: 8px; }
.answer-label { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.answer-label:hover { border-color: var(--forest); background: rgba(42,92,38,0.04); }
.answer-label input { margin-top: 2px; accent-color: var(--forest); flex-shrink: 0; }
.answer-label input:checked ~ .answer-text { color: var(--forest); font-weight: 600; }
.answer-label:has(input:checked) { border-color: var(--forest); background: rgba(42,92,38,0.06); }
.answer-text { font-size: 14px; color: var(--ink-mid); }
.quiz-footer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.quiz-progress-wrap { flex: 1; }
.quiz-progress-bar { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 7px; }
.quiz-progress-fill { height: 100%; background: var(--green); border-radius: 99px; transition: width 0.3s; }
.quiz-progress-label { font-size: 12px; color: var(--muted); }
#quiz-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── CERTIFICATE VIEW ─────────────────────────────────── */
.cert-page { background: var(--ivory); min-height: calc(100vh - 68px); }
.cert-inner { max-width: 640px; margin: 0 auto; padding: 60px 40px; }
.cert-view-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto; overflow: hidden; }
.cert-view-header { background: var(--forest-deep); padding: 36px 36px 28px; }
.cert-view-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.cert-view-num { font-family: var(--ff-display); font-size: 26px; color: #fff; }
.cert-view-info { padding: 28px 36px; }
.cvi-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cvi-row:last-child { border-bottom: none; }
.cvi-row span { color: var(--muted); }
.cert-view-valid { display: flex; align-items: center; gap: 10px; padding: 14px 36px; background: rgba(42,92,38,0.08); font-size: 13px; font-weight: 600; color: #2e7d32; }
.cert-view-valid svg { width: 18px; height: 18px; stroke: #2e7d32; }
.cert-view-actions { padding: 24px 36px; display: flex; gap: 12px; }

/* ── COURSE DETAIL (nový layout) ─────────────────────────── */
.cd-hero { position: relative; overflow: hidden; padding: 96px 0 22px; background-color: var(--forest-deep); }
.cd-hero-photo {
  position: absolute; inset: 0;
  background-image: url('/static/img/hero-bg.jpg');
  background-size: cover; background-position: center 55%;
}
.cd-hero-overlay {
  position: absolute; inset: 0;
}
.cd-hero-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
}
.cd-hero-inner { position: relative; z-index: 1; }
.cd-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cd-hero-right {
  min-width: 300px;
  display: flex; flex-direction: column; gap: 18px;
}
.cd-back-link {
  display: inline-block; font-size: 13px; color: var(--muted);
  margin: 32px 0 -8px; text-decoration: none; transition: color 0.15s;
}
.cd-back-link:hover { color: var(--green); }
.cd-hero-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 99px; padding: 4px 14px; margin-bottom: 20px;
}
.cd-hero-title { font-family: var(--ff-display); font-size: clamp(32px,5vw,52px); font-weight: 300; color: #fff; margin-bottom: 12px; line-height: 1.15; }
.cd-hero-sub { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 24px; max-width: 600px; }
.cd-price { font-family: var(--ff-display); font-size: 36px; color: #fff; display: flex; flex-direction: column; gap: 5px; }
.cd-price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cd-price span { font-size: 14px; color: rgba(255,255,255,0.45); }
.cd-price .sale-badge { color: #fff; }
.cd-price .modal-price-old { font-size: 26px; color: rgba(255,255,255,0.55); }
.btn--lg { padding: 14px 36px; font-size: 15px; }
.cd-section { padding: 48px 0; }

/* Co kurz zahrnuje — 2sloupcová mřížka, stín vždy, zelené/červené ikony */
.cd-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-feature {
  display: flex; align-items: center; gap: 14px; min-height: 44px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; font-size: 14px; color: var(--ink-mid);
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s, transform 0.18s;
}
.cd-feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cd-feature--no { opacity: 0.65; }
.cd-feature-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cd-feature:not(.cd-feature--no) .cd-feature-icon { background: rgba(75,175,71,0.16); color: var(--green); }
.cd-feature--no .cd-feature-icon { background: rgba(214,54,44,0.1); color: #D6362C; }
@media (max-width: 700px) { .cd-features { grid-template-columns: 1fr; } }

/* Ukázka zdarma */
.cd-preview-box { background: var(--sage); border-radius: 14px; padding: 40px 48px; border: 1px solid rgba(42,92,38,0.12); }
.cd-preview-clip { position: relative; max-height: 460px; overflow: hidden; }
.cd-preview-clip.cd-preview-clip--expanded { max-height: none; overflow: visible; }
.cd-preview-clip.cd-preview-clip--expanded .cd-preview-fade { display: none; }
.cd-preview-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(to bottom, rgba(227,238,224,0) 0%, var(--sage) 80%);
  pointer-events: none;
}
.cd-preview-more { display: flex; margin: 20px auto 0; }

/* Obsah kurzu — jednořádkový slider (funkčně jako esgv-web why-carousel: auto-scroll, tažení, šipky, fade) */
.cd-mod-carousel { position: relative; cursor: grab; }
.cd-mod-carousel.cd-mod-carousel--dragging { cursor: grabbing; }
.cd-mod-carousel__overflow {
  overflow-x: auto; overflow-y: hidden; padding: 8px 4px 28px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cd-mod-carousel__overflow::-webkit-scrollbar { display: none; }
.cd-mod-carousel__track { display: flex; gap: 20px; width: max-content; }
.cd-mod-carousel__fade { position: absolute; top: 0; bottom: 28px; width: 70px; z-index: 5; pointer-events: none; }
.cd-mod-carousel__fade--l { left: 0;  background: linear-gradient(to right, var(--ivory), transparent); }
.cd-mod-carousel__fade--r { right: 0; background: linear-gradient(to left,  var(--ivory), transparent); }
.cd-mod-carousel__arrow {
  position: absolute; top: 45%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; z-index: 10;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}
.cd-mod-carousel__arrow:hover { background: var(--sage); box-shadow: var(--shadow-lg); }
.cd-mod-carousel__arrow--prev { left: -6px; }
.cd-mod-carousel__arrow--next { right: -6px; }
@media (max-width: 768px) { .cd-mod-carousel__arrow { display: none; } }

.cd-mod-card {
  width: 260px; flex-shrink: 0; padding: 26px 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  text-align: center; box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: all 0.18s;
}
.cd-mod-card:hover { border-bottom-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cd-mod-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cd-mod-competence { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.cd-mod-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.cd-mod-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; }
.feature-unavailable { opacity: 0.7; }
.feature-unavailable svg { stroke: #C62828 !important; }
.feature-unavailable { color: var(--ink-mid); }
@media (max-width: 960px) {
  .cd-layout { grid-template-columns: 1fr; gap: 32px; }
  .cd-right { order: -1; }
  .cd-cta-sticky { position: static; }
}

/* ── PREVIEW PAGE ─────────────────────────────────────── */
.preview-page { padding: 56px 0 80px; }
.preview-wrap { max-width: 760px; }
.preview-badge { display: inline-block; background: rgba(42,92,38,0.1); color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 14px; border-radius: 99px; margin-bottom: 16px; }
.preview-title { font-family: var(--ff-display); font-size: 38px; font-weight: 400; margin-bottom: 36px; }
.preview-cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.preview-cta p { flex: 1; min-width: 200px; font-size: 15px; color: var(--muted); }

/* ── RESPONSIVE ───────────────────────────────────────── */

/* Mobilní sidebar drawer pro lekce */
.lesson-mob-bar {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #fff;
  border-bottom: 1px solid var(--border); position: sticky; top: 75px; z-index: 50;
}
.lesson-mob-back { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lesson-mob-back svg { width: 16px; height: 16px; }
.lesson-mob-menu {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--forest);
  background: var(--sage); border: none; border-radius: 8px;
  padding: 6px 14px; cursor: pointer;
}
.lesson-mob-menu svg { width: 15px; height: 15px; }

/* Overlay sidebar na mobilu */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.45);
}
.sidebar-overlay.open { display: block; }
.lesson-sidebar.mob-open { transform: translateX(0) !important; }

@media (max-width: 900px) {
  .courses-grid { grid-template-columns: 1fr !important; max-width: 480px; }
  .courses-grid--extra .course-card { flex: 0 0 100%; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .lesson-page { padding: 16px 12px 60px; }
  .lesson-inner { flex-direction: column; gap: 0; }
  .lesson-mob-bar { display: flex; }
  .lesson-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 210;
    width: 300px; max-width: 85vw; height: 100vh; max-height: 100vh; transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    border-radius: 0; box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .sidebar-close-btn { display: block; }
  .lesson-main { width: 100%; }
  .lesson-content-wrap { padding: 32px 24px; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
}

@media (max-width: 768px) {
  .dash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cert-banner { flex-wrap: wrap; }
  .cert-banner-actions { margin-left: 0; }
  .esg-map-banner { flex-direction: column; }
  .module-header { padding: 16px 18px; }
  .lesson-list { padding: 8px 18px; }
  .hero { padding: 72px 0 56px; }
  .courses-section { padding: 64px 0; }
  .cd-hero-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lesson-key-takeaway h3 { padding: 22px 24px 0; }
  .lesson-key-takeaway ul { padding: 0 24px 24px; }
}

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .course-radio-group { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hstat-sep { display: none; }
  .quiz-header, .question-block, .quiz-footer { padding-left: 20px; padding-right: 20px; }
  .site-nav .btn-outline-sm { padding: 7px 12px; font-size: 12px; }
  .site-nav .btn-primary-sm { padding: 7px 12px; font-size: 12px; }
  .lesson-main { padding: 16px 12px; }
  .lesson-content-wrap { padding: 24px 20px; border-radius: 10px; }
  .lesson-title { font-size: 28px; }
  .section-title { font-size: 26px; }
  .hero-title { font-size: 36px; }
  .learn-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .learn-tabs::-webkit-scrollbar { display: none; }
  .learn-tab { flex-shrink: 0; padding: 10px 20px; font-size: 12px; }
}

/* ── ESG MAP PAGE ────────────────────────────────────── */
.esg-map-page { background: var(--ivory); min-height: calc(100vh - 68px); }
.esg-map-inner { max-width: 1160px; margin: 0 auto; padding: 40px 24px 80px; }

/* ── ESG MAP BANNER (dashboard) ──────────────────────── */
.esg-map-banner {
  display: flex; align-items: flex-start; gap: 20px;
  background: linear-gradient(135deg, #f0f7ef 0%, #e3f0e1 100%);
  border: 1.5px solid rgba(42,92,38,0.2); border-radius: 14px;
  padding: 24px 28px; margin-bottom: 28px;
}
.emb-icon { font-size: 2rem; flex-shrink: 0; }
.emb-title { font-size: 1rem; font-weight: 700; color: #1a2e18; margin-bottom: 4px; }
.emb-sub { font-size: 0.9rem; color: #5a6b58; line-height: 1.5; }

/* ── LESSON CONTENT STYLES ───────────────────────────── */
.lesson-lead { font-size: 1.15rem; color: #3a4e38; line-height: 1.7; margin-bottom: 32px; font-weight: 400; border-left: 3px solid #2A5C26; padding-left: 20px; }
.lesson-content h2 { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; color: #1a2e18; margin: 36px 0 14px; }
.lesson-content h3 { font-size: 1.05rem; font-weight: 700; color: #2A5C26; margin: 24px 0 10px; }
.lesson-content p  { margin-bottom: 16px; line-height: 1.75; color: #3a4e38; }
.lesson-content ul, .lesson-content ol { margin: 0 0 16px 24px; }
.lesson-content li { margin-bottom: 6px; line-height: 1.65; color: #3a4e38; }

/* ── CALLOUT BOX SYSTÉM ───────────────────────────────────── */
.callout {
  border-radius: 12px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

/* ── Cíle lekce — objectives (zelený sage box) ─────────── */
.callout--objectives {
  background: linear-gradient(145deg, #eef6ec 0%, #e1eedc 100%);
  border: 1.5px solid rgba(42,92,38,0.16);
  border-left: 4px solid #2A5C26;
  padding: 0;
  box-shadow: 0 2px 14px rgba(42,92,38,0.07);
}
.callout--objectives::before {
  content: "CO SE V TÉTO LEKCI NAUČÍTE";
  display: block;
  font-family: var(--ff-body);
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  color: #2A5C26;
  background: rgba(42,92,38,0.07);
  border-bottom: 1px solid rgba(42,92,38,0.11);
  padding: 11px 20px;
}
.callout--objectives ul {
  list-style: none !important;
  margin: 0 !important; padding: 14px 20px 18px !important;
  display: flex; flex-direction: column; gap: 9px;
}
.callout--objectives li {
  position: relative;
  padding-left: 30px;
  font-size: 0.9rem; color: #1C3A19; line-height: 1.65; margin: 0 !important;
}
.callout--objectives li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: #2A5C26; color: #fff;
  border-radius: 50%;
  font-size: 11px; font-weight: 900;
  box-shadow: 0 2px 6px rgba(42,92,38,0.3);
}
.callout--objectives li::marker { display: none; }

/* ── Příklad z praxe — Pekárna Zlaťák ─────────────────── */
.callout--practice {
  background: linear-gradient(145deg, #f0f2f5 0%, #e8ebf0 100%);
  border-radius: 14px;
  border: 1.5px solid rgba(100,115,135,0.15);
  padding: 0 22px 20px;
  box-shadow: 0 3px 16px rgba(80,95,115,0.1);
  color: #3a4655;
  font-size: 0.9rem; line-height: 1.72;
}
.callout--practice::before {
  content: "PEKÁRNA ZLAŤÁK  —  PŘÍKLAD Z PRAXE";
  display: block;
  font-family: var(--ff-body);
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.18em;
  color: #5a6b80;
  background: rgba(100,115,135,0.08);
  border-bottom: 1px solid rgba(100,115,135,0.14);
  padding: 11px 22px;
  margin: 0 -22px 14px;
}
.callout--practice strong {
  display: block;
  font-size: 0.97rem; font-weight: 700;
  color: #2a3545;
  margin-bottom: 10px; margin-top: 2px;
}
.callout--practice br { display: none; }

/* ── Poznámka / varování — note (amber box) ─────────────── */
.callout--note {
  background: linear-gradient(145deg, #fef9ee 0%, #fdf2d6 100%);
  border: 1.5px solid rgba(200,153,26,0.22);
  border-left: 4px solid #C8991A;
  padding: 16px 20px;
  box-shadow: 0 2px 14px rgba(200,153,26,0.08);
  font-size: 0.9rem; color: #5a4010; line-height: 1.7;
}
.callout--note strong { color: #7a5412; font-weight: 700; }
.callout--note br + * { margin-top: 6px; }

/* ── Shrnutí lekce — summary (tmavý forest/gold box) ──── */
.callout--summary {
  background: linear-gradient(135deg, #0C1A0A 0%, #162413 55%, #1C3018 100%);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  border-top: 3px solid #C8991A;
  box-shadow: 0 8px 36px rgba(14,24,12,0.22), 0 2px 8px rgba(14,24,12,0.1);
}
.callout--summary::before {
  content: "SHRNUTÍ LEKCE";
  display: block;
  font-family: var(--ff-body);
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em;
  color: #C8991A;
  padding: 20px 28px 0;
  margin-bottom: 16px;
}
.callout--summary ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 28px 28px !important;
  display: flex; flex-direction: column; gap: 12px;
  counter-reset: sum-counter;
}
.callout--summary li {
  counter-increment: sum-counter;
  position: relative;
  padding-left: 42px;
  font-size: 0.92rem; color: rgba(210,238,207,0.9);
  line-height: 1.68; margin: 0 !important;
}
/* .lesson-body strong natvrdo nastavuje tmavou barvu (var(--ink)) pro světlé
   pozadí lekce — v tomhle tmavém boxu by tak splývala s pozadím. */
.callout--summary li strong { color: #fff; font-weight: 700; }
.callout--summary li::before {
  content: counter(sum-counter);
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8991A 0%, #E8B830 100%);
  color: #0C1A0A;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(200,153,26,0.45);
}
.callout--summary ul::after {
  content: '';
  display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,153,26,0.18), transparent);
  margin-top: 6px;
}

/* Legacy label */
.callout-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #2A5C26; margin-bottom: 8px; }

/* ── KEY TAKEAWAY — vizuálně geniální ────────────────────── */
.lesson-key-takeaway {
  position: relative;
  background: linear-gradient(135deg, #0C1A0A 0%, #162413 55%, #1C3018 100%);
  border-radius: 18px;
  padding: 0;
  margin-top: 56px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(14,24,12,0.22), 0 2px 8px rgba(14,24,12,0.12);
}
/* Zlatá horní linka */
.lesson-key-takeaway::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #C8991A 20%, #F0C040 50%, #C8991A 80%, transparent 100%);
}
/* Dekorativní záblesk vpravo */
.lesson-key-takeaway::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(75,175,71,0.1) 0%, transparent 65%);
  pointer-events: none;
}
/* Nadpis h3 v widgetu → přeměníme na štítek + ikonku */
.lesson-key-takeaway h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #C8991A;
  padding: 28px 32px 0;
  margin: 0 0 20px;
}
.lesson-key-takeaway h3::before {
  content: '';
  display: inline-block;
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, #C8991A, #F0C040);
  border-radius: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1A0A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 2.5-1.3 4.7-3.2 6H8.2A7.02 7.02 0 0 1 5 9a7 7 0 0 1 7-7z'/%3E%3Cpath d='M9 21h6M10 17h4'/%3E%3C/svg%3E");
  background-size: 18px 18px; background-repeat: no-repeat; background-position: center;
  box-shadow: 0 3px 10px rgba(200,153,26,0.45);
}
/* Seznam položek */
.lesson-key-takeaway ul {
  list-style: none;
  margin: 0;
  padding: 0 32px 32px;
  counter-reset: kto-counter;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lesson-key-takeaway li {
  counter-increment: kto-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(220,240,218,0.9);
  line-height: 1.65;
  position: relative;
  margin: 0;
}
.lesson-key-takeaway li::before {
  content: counter(kto-counter);
  display: flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8991A 0%, #E8B830 100%);
  color: #0C1A0A;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 3px 10px rgba(200,153,26,0.5);
}
/* Oddělovač pod posledním prvkem */
.lesson-key-takeaway ul::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,153,26,0.2), transparent);
  margin-top: 8px;
}

/* Piliere ESG */
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0; }
.pillar { display: flex; gap: 14px; background: #f4f8f3; border-radius: 10px; padding: 16px; }
.pillar-letter { width: 38px; height: 38px; border-radius: 8px; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pillar--e .pillar-letter { background: rgba(42,92,38,0.15); color: #2A5C26; }
.pillar--s .pillar-letter { background: rgba(21,101,192,0.12); color: #1565C0; }
.pillar--g .pillar-letter { background: rgba(106,27,154,0.1); color: #6A1B9A; }
.pillar-content strong { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; color: #1a2e18; }
.pillar-content p { font-size: 0.83rem; color: #5a6b58; margin: 0; }

/* Two-col layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }

/* Info box */
.info-box { background: #f4f8f3; border: 1.5px solid rgba(42,92,38,0.15); border-radius: 10px; padding: 16px 20px; }
.info-box strong { display: block; font-size: 0.9rem; font-weight: 700; color: #1a2e18; margin-bottom: 8px; }
.info-box p, .info-box ul { font-size: 0.88rem; color: #3a4e38; margin: 0; }
.info-box ul { margin-left: 18px; }

/* Timeline */
.timeline { margin: 20px 0; }
.tl-item { display: flex; gap: 16px; margin-bottom: 14px; align-items: flex-start; }
.tl-year { min-width: 80px; font-size: 0.85rem; font-weight: 700; color: #2A5C26; padding-top: 2px; }
.tl-text { font-size: 0.9rem; color: #3a4e38; border-left: 2px solid rgba(42,92,38,0.2); padding-left: 14px; padding-top: 2px; }

/* ── Tabulky — card styl ─────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid rgba(42,92,38,0.13);
  box-shadow: 0 4px 20px rgba(42,92,38,0.08), 0 1px 4px rgba(42,92,38,0.05);
}
.table-wrap table, .lesson-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0;
}
.table-wrap th, .lesson-table th {
  background: var(--forest);
  color: #e8f4e7; padding: 12px 16px;
  text-align: left; font-weight: 600; font-size: 0.81rem;
  letter-spacing: 0.03em;
}
.table-wrap td, .lesson-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(42,92,38,0.09);
  color: #3a4e38; vertical-align: top;
  background: #fff !important;
}
.table-wrap tr:last-child td, .lesson-table tr:last-child td { border-bottom: none; }
.table-wrap tr:nth-child(even) td, .lesson-table tr:nth-child(even) td { background: #f7faf7 !important; }
.table-wrap tr:hover td, .lesson-table tr:hover td { background: #eef5ee !important; }

/* Quote */
.lesson-quote { border-left: 3px solid var(--green); padding: 14px 20px; margin: 24px 0; background: #f9fbf9; border-radius: 0 8px 8px 0; }
.lesson-quote p { font-style: italic; color: #3a4e38; margin: 0 0 8px; }
.lesson-quote cite { font-size: 0.82rem; color: #7a8b78; }

@media (max-width: 700px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* ── Quiz retake banner ───────────────────────────────────── */
.quiz-retake-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #0f2e0d 0%, #162413 100%);
  border: 1.5px solid rgba(46,125,50,0.35);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: rgba(200,240,196,0.9);
  margin-bottom: 24px;
}
.quiz-retake-banner svg { color: #4CAF50; flex-shrink: 0; }

/* ── Quiz result page ─────────────────────────────────────── */
.qr-header {
  display: flex; align-items: center; gap: 24px;
  background: #f4f8f3; border-radius: 16px;
  padding: 28px 32px; margin-bottom: 20px;
  border: 1.5px solid rgba(42,92,38,0.12);
}
.qr-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qr-icon--pass { background: linear-gradient(135deg, #1B5E20, #2e7d32); color: #fff; }
.qr-icon--fail { background: linear-gradient(135deg, #7f0000, #c62828); color: #fff; }
.qr-icon svg { width: 26px; height: 26px; }
.qr-verdict { flex: 1; }
.qr-verdict h1 { font-size: 1.5rem; font-weight: 800; color: #1a2e18; margin: 0 0 6px; }
.qr-verdict p { font-size: 0.9rem; color: #5a6b58; margin: 0; }
.qr-score-ring { margin-left: auto; flex-shrink: 0; color: #1a2e18; }

.qr-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 24px 0;
}

.qr-review { margin-top: 32px; }
.qr-review-title { font-size: 1.1rem; font-weight: 700; color: #1a2e18; margin-bottom: 16px; }
.qr-question {
  border-radius: 12px; padding: 20px 22px; margin-bottom: 14px;
  border: 1.5px solid rgba(42,92,38,0.12);
}
.qr-q--ok { background: #f0faf0; border-color: rgba(46,125,50,0.2); }
.qr-q--fail { background: #fff8f8; border-color: rgba(198,40,40,0.15); }
.qr-q-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.qr-q-badge {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.qr-q--ok .qr-q-badge { background: #2e7d32; color: #fff; }
.qr-q--fail .qr-q-badge { background: #c62828; color: #fff; }
.qr-q-num { font-size: 0.82rem; font-weight: 700; color: #7a8b78; margin-top: 4px; flex-shrink: 0; }
.qr-q-text { font-size: 0.95rem; font-weight: 600; color: #1a2e18; line-height: 1.5; }
.qr-answers { display: flex; flex-direction: column; gap: 8px; padding-left: 36px; }
.qr-ans {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: #5a6b58; padding: 8px 12px;
  border-radius: 7px; border: 1px solid transparent;
}
.qr-ans--correct { background: rgba(46,125,50,0.08); border-color: rgba(46,125,50,0.25); color: #1a3a18; font-weight: 600; }
.qr-ans--wrong { background: rgba(198,40,40,0.07); border-color: rgba(198,40,40,0.2); color: #5a1a1a; }
.qr-ans-dot {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ccc;
  flex-shrink: 0; margin-top: 2px;
}
.qr-ans--correct .qr-ans-dot { border-color: #2e7d32; background: #2e7d32; }
.qr-ans--wrong .qr-ans-dot { border-color: #c62828; background: #c62828; }
.qr-ans-label {
  font-size: 0.74rem; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; margin-left: auto; white-space: nowrap; align-self: center;
}
.qr-ans-label--ok { background: #2e7d32; color: #fff; }
.qr-ans-label--no { background: #c62828; color: #fff; }

@media (max-width: 640px) {
  .qr-header { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .qr-score-ring { margin-left: 0; }
  .qr-answers { padding-left: 0; }
}

/* ── Dashboard extra sections (Šablony + ESG mapa) ─────────── */
.dash-extras {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 32px;
}
.dash-extra-card {
  display: flex; align-items: flex-start; gap: 20px;
  background: #f4f8f3; border-radius: 14px;
  border: 1.5px solid rgba(42,92,38,0.15);
  padding: 24px 26px;
  transition: border-color 0.2s;
}
.dash-extra-card:not(.dash-extra--locked) { border-color: rgba(42,92,38,0.3); }
.dash-extra--locked { opacity: 0.75; }
.dex-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.dex-body { flex: 1; min-width: 0; }
.dex-title { font-size: 1rem; font-weight: 700; color: #1a2e18; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dex-lock { font-size: 0.75rem; font-weight: 600; color: #8a7b4a; background: rgba(200,153,26,0.12); border-radius: 5px; padding: 2px 8px; }
.dex-sub { font-size: 0.88rem; color: #5a6b58; line-height: 1.6; }
.dex-templates {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.dex-tmpl {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid rgba(42,92,38,0.25);
  border-radius: 7px; padding: 7px 12px;
  font-size: 0.83rem; font-weight: 600; color: #2A5C26;
  text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.dex-tmpl:hover { background: rgba(42,92,38,0.06); border-color: rgba(42,92,38,0.45); }
.dex-tmpl svg { color: #7aad77; flex-shrink: 0; }

/* ── MOBILE NAV TOGGLE ────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 8px; transition: background 0.15s;
}
.nav-toggle:hover { background: var(--sage); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; background: var(--ivory); border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
  .nav-toggle:hover { background: var(--sage); }
  .site-nav {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 14px; font-size: 15px; }
  .site-nav .btn-outline-sm,
  .site-nav .btn-primary-sm { text-align: center; padding: 11px 18px; font-size: 14px; }
}

/* ── HERO LAYOUT — verze B (centered) ────────────────── */
.hero-inner {
  position: relative; z-index: 1;
}

/* ESRS přehledová karta */
.esrs-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 22px 20px;
  backdrop-filter: blur(8px);
}
.esrs-card-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.esrs-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.esrs-group:last-of-type { margin-bottom: 0; }
.esrs-letter {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 1px;
}
.esrs-letter--e { background: rgba(75,175,71,0.25); color: #7dd87a; }
.esrs-letter--s { background: rgba(59,130,246,0.2); color: #93c5fd; }
.esrs-letter--g { background: rgba(167,139,250,0.2); color: #c4b5fd; }
.esrs-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.esrs-chip {
  padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 600;
  white-space: nowrap;
}
.esrs-chip--e { background: rgba(75,175,71,0.15); color: rgba(125,216,122,0.9); border: 1px solid rgba(75,175,71,0.2); }
.esrs-chip--s { background: rgba(59,130,246,0.12); color: rgba(147,197,253,0.9); border: 1px solid rgba(59,130,246,0.2); }
.esrs-chip--g { background: rgba(167,139,250,0.12); color: rgba(196,181,253,0.9); border: 1px solid rgba(167,139,250,0.2); }
.esrs-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 14px 0; }
.esrs-footer { display: flex; flex-wrap: wrap; gap: 8px; }
.esrs-std {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.45);
}
.esrs-std-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; gap: 32px; }
  .hero-head { margin-bottom: 24px; }
  .cd-hero-grid { grid-template-columns: 1fr; }
  .cd-hero-right { min-width: 0; }
}
@media (max-width: 600px) {
  .esrs-card { display: none; }
}

/* ── STANDARDS STRIP ──────────────────────────────────── */
.standards-strip { position: relative; z-index: 1; padding: 24px 0; }
.strip-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.strip-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-right: 8px; flex-shrink: 0; }
.strip-items { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strip-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 99px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.strip-item-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── CO SE NAUCITE — tabs + rows ─────────────────────── */
.learn-section {
  padding: 48px 0 72px;
  background: var(--forest-deep);
  position: relative; overflow: hidden;
}
.learn-section::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(75,175,71,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.learn-section::after {
  content: ''; position: absolute; bottom: -60px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(42,92,38,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.learn-section .section-label { color: rgba(255,255,255,0.35); }
.learn-section .section-title { color: #fff; }
.learn-section .section-sub { color: rgba(255,255,255,0.55); margin-bottom: 40px; }

/* Segmented tab control */
.learn-tabs {
  display: flex; gap: 0; width: fit-content; margin: 0 auto 52px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.11);
  border-radius: 99px; padding: 5px;
}
.learn-tab {
  padding: 11px 36px; border-radius: 99px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; color: rgba(255,255,255,0.45);
  background: transparent; transition: all 0.22s; white-space: nowrap; letter-spacing: 0.01em;
}
.learn-tab.active {
  background: var(--green); color: #fff;
  box-shadow: 0 2px 16px rgba(75,175,71,0.4), 0 1px 4px rgba(0,0,0,0.2);
}
.learn-tab:hover:not(.active) { color: rgba(255,255,255,0.88); background: rgba(255,255,255,0.06); }

/* Panel jako 2-sloupcová mřížka */
.learn-panel { display: none; position: relative; z-index: 1; }
.learn-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Intro text — full width */
.learn-intro {
  grid-column: 1 / -1;
  font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.75;
  margin-bottom: 4px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Modul karta */
.learn-row {
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, rgba(75,175,71,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(75,175,71,0.14);
  border-left: 2px solid rgba(75,175,71,0.5);
  border-radius: 14px; padding: 22px 24px;
  transition: background 0.18s, border-color 0.18s;
  position: relative; overflow: hidden;
}
.learn-row:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  border-left-color: rgba(75,175,71,0.75);
}
.learn-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.learn-row-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px; line-height: 1;
}
.learn-row-title { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.92); margin-bottom: 6px; }
.learn-row-desc { font-size: 13px; color: rgba(255,255,255,0.48); line-height: 1.65; }
.learn-row-deco {
  position: absolute; bottom: -6px; right: -6px;
  width: 72px; height: 72px; opacity: 0.06;
  color: var(--green); pointer-events: none;
}
.learn-row-deco svg { width: 100%; height: 100%; }
.learn-row-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.08;
  border-radius: 14px;
  pointer-events: none;
}

/* ── PROC ESGV — 3 sloupce ────────────────────────────── */
.why3-section { padding: 56px 0 80px; background: var(--sage); }
.why3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.why3-card {
  background: #fff; border-radius: 14px; padding: 32px 28px;
  border: 1px solid rgba(42,92,38,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.why3-icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(42,92,38,0.1); color: var(--forest); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why3-icon svg { width: 22px; height: 22px; }
.why3-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.why3-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

@media (max-width: 760px) {
  .why3-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDION ────────────────────────────────────── */
.faq-section { padding: 48px 0 72px; }
.faq-list { max-width: 1160px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 760px) { .faq-list { grid-template-columns: 1fr; } }
.faq-item { background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; font-size: 15px; font-weight: 600;
  color: var(--ink); gap: 16px; transition: background 0.15s; user-select: none;
}
.faq-q:hover { background: var(--ivory); }
.faq-arrow { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); transition: transform 0.25s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; border-top: 1px solid var(--border); padding-top: 16px; }
.faq-item.open .faq-a { display: block; }

/* ── BOTTOM CTA ───────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-mid) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(75,175,71,0.18) 0%, transparent 60%);
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-title { font-family: var(--ff-display); font-size: clamp(30px, 4vw, 44px); font-weight: 300; color: #fff; margin-bottom: 14px; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.contact-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.contact-form-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-form-row input { flex: 1; min-width: 180px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
  color: #fff; font-family: inherit; font-size: 14px; transition: all 0.15s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.38); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green-light); background: rgba(255,255,255,0.1);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form button { align-self: center; margin-top: 4px; }
.contact-form-alt { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 16px; }
.contact-form-alt a { color: rgba(255,255,255,0.55); }
.contact-form-alt a:hover { color: var(--green-light); }

/* ── AUTH SPLIT (login) ───────────────────────────────── */
/* ── AUTH SPLIT LAYOUT ────────────────────────────────── */
.auth-split {
  display: grid;
  grid-template-columns: 35% 65%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.07);
  width: 100%;
  min-height: 630px;
}

/* LEFT PANEL */
.auth-split-left {
  background: var(--forest-deep);
  padding: 56px 60px;
  display: flex; flex-direction: column; justify-content: flex-start;
  position: relative; overflow: hidden;
}
.asl-top { flex-shrink: 0; }
.asl-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 40px; }
.asl-bot { flex-shrink: 0; }
.auth-split-left::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(75,175,71,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.auth-split-left::after {
  content: ''; position: absolute; bottom: 40px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(42,92,38,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.asl-top { position: relative; z-index: 1; }
.asl-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.asl-kicker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.asl-mid { position: relative; z-index: 1; }
.auth-brand-tagline {
  font-family: var(--ff-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 300;
  color: rgba(255,255,255,0.93); line-height: 1.2; margin-bottom: 40px;
}
.auth-brand-tagline em { font-style: italic; color: var(--green-light); }
.auth-features { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.auth-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55;
}
.auth-features li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 2px; }

.asl-bot { position: relative; z-index: 1; }
.auth-mini-cert {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 2px solid rgba(75,175,71,0.5);
  border-radius: 10px; padding: 18px 22px;
}
.amc-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 8px; }
.amc-name { font-family: var(--ff-display); font-size: 19px; color: rgba(255,255,255,0.9); margin-bottom: 3px; }
.amc-course { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 14px; line-height: 1.5; }
.amc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(75,175,71,0.12); border: 1px solid rgba(75,175,71,0.25);
  border-radius: 99px; padding: 4px 12px; font-size: 11px; font-weight: 600; color: var(--green-light);
}

/* RIGHT PANEL */
.auth-split-right {
  background: #fff;
  padding: 56px 64px;
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
}
.auth-form-wrap { width: 100%; max-width: 460px; }

.auth-form-title { font-family: var(--ff-display); font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.auth-form-sub { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.form-group + .form-group { margin-top: 16px; }
.form-row .form-group + .form-group { margin-top: 0; }
.forgot-link { float: right; font-size: 12px; color: var(--muted); margin-top: -2px; }
.forgot-link:hover { color: var(--forest); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { font-size: 13px; color: var(--muted); text-align: center; margin-top: 28px; }
.auth-footer a { color: var(--forest); font-weight: 600; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-split-left { padding: 48px 36px; min-height: 280px; }
  .asl-bot { display: none; }
  .auth-split-right { padding: 48px 36px; background: #fff; }
}
@media (max-width: 640px) {
  /* ── Auth pages ── */
  .auth-page { padding: 0; align-items: flex-start; min-height: calc(100vh - 75px); }
  .auth-page .container { padding: 0; }
  .auth-split { border-radius: 0; box-shadow: none; border: none; max-width: 100%; }
  .auth-split-left { display: none; }
  .auth-split-right { padding: 40px 24px; border-radius: 0; }
  .auth-form-wrap { max-width: 100%; }
  .auth-form-wrap::before {
    content: 'ESGV Akademie';
    display: block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green); margin-bottom: 24px;
  }
  /* ── Lekce a přehled kurzu — plná šířka ── */
  .lesson-page { padding: 0 0 60px; }
  .lesson-main { padding: 0; }
  .lesson-content-wrap { padding: 20px 16px; border-radius: 0; box-shadow: none; border: none; }
  /* ── ESG mapa — plná šířka ── */
  .esg-map-inner { padding: 16px 0 60px; }
  /* ── Horizontální course nav — mobil ── */
  .course-nav-sticky { top: 68px; }
  .cmod-row { gap: 3px; padding: 8px 0 0; }
  .cmod-tab { padding: 7px 4px; font-size: 10px; border-radius: 7px; }
  .cmod-name { font-size: 10px; }
  .cmod-num { font-size: 8.5px; }
  .cles-row { gap: 3px; padding: 8px 0 10px; }
  .cles-tab { padding: 6px 4px; font-size: 10px; border-radius: 5px; }
  .course-content { padding: 24px 0 60px; }
  .course-lesson-title { font-size: 1.5rem; }
  .course-lesson-nav { flex-direction: column; gap: 12px; align-items: stretch; }
  .course-lesson-nav .lesson-nav-btn, .course-lesson-nav .btn { text-align: center; justify-content: center; }
}

/* ── REGISTER WIZARD STEPS ────────────────────────────── */
.reg-steps {
  display: flex; align-items: center; margin-bottom: 36px;
}
.reg-step-indicator {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.reg-step-indicator.active { color: var(--forest); }
.reg-step-indicator.done { color: var(--green); }
.reg-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted); flex-shrink: 0;
  transition: all 0.2s;
}
.reg-step-indicator.active .reg-step-dot { background: var(--forest); border-color: var(--forest); color: #fff; }
.reg-step-indicator.done .reg-step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.reg-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 12px; transition: background 0.3s; }
.reg-step-line.done { background: var(--green); }

.reg-panel { display: none; }
.reg-panel.active { display: block; }

/* Souhrn registrace (krok 2) */
.reg-summary-box {
  background: var(--sage); border-radius: 12px; padding: 20px 22px; margin: 20px 0;
  border: 1px solid rgba(42,92,38,0.15);
}
.rsb-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(42,92,38,0.1); }
.rsb-row:last-child { border-bottom: none; }
.rsb-label { color: var(--muted); }
.rsb-value { font-weight: 600; color: var(--ink); }
.rsb-total { font-family: var(--ff-display); font-size: 22px; color: var(--forest); }

/* Forgot password page */
.auth-simple {
  min-height: calc(100vh - 75px); display: flex; align-items: center; padding: 60px 0;
}
.auth-simple-card {
  background: #fff; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 48px; max-width: 480px; margin: 0 auto; width: 100%;
  text-align: center;
}

/* ── DASHBOARD — enrollment-aware extensions ─────────── */
.dash-course-switcher {
  display: flex; gap: 6px; margin-bottom: 28px;
}
.dcs-tab {
  padding: 8px 20px; border-radius: 99px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--ink-mid); transition: all 0.15s;
}
.dcs-tab:hover { border-color: var(--forest); color: var(--forest); }
.dcs-tab.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Pending enrollment banner */
.pending-banner {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: #fffbe6; border: 1px solid #fde68a; border-radius: 12px;
  margin-bottom: 20px;
}
.pb-icon { color: #f59e0b; flex-shrink: 0; }
.pb-icon svg { width: 28px; height: 28px; }
.pb-body { flex: 1; }
.pb-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.pb-sub { font-size: 12px; color: #92400e; margin-top: 2px; }
.pb-price { font-family: var(--ff-display); font-size: 20px; color: #92400e; white-space: nowrap; }

/* ── DASHBOARD: VÝBĚR KURZU ──────────────────────────── */
.dse-wrap { max-width: 1160px; margin: 0 auto; padding: 48px 24px 80px; }
.dse-header { margin-bottom: 36px; }
.dse-greeting { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.dse-title { font-family: var(--ff-display); font-size: 36px; font-weight: 400; color: var(--ink); }

.dse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dse-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 20px; padding: 32px 28px;
  border: 1.5px solid rgba(255,255,255,0.75);
  box-shadow: 0 6px 32px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.05), 0 0 0 1px rgba(255,255,255,0.5) inset;
  position: relative; transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
  overflow: hidden; display: flex; flex-direction: column;
}
.dse-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.6) inset; transform: translateY(-2px); }
.dse-card--featured {
  background: var(--forest-deep);
  border-color: rgba(75,175,71,0.3);
  box-shadow: 0 6px 36px rgba(14,24,12,0.35), 0 1px 4px rgba(0,0,0,0.12);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.dse-card--featured:hover { box-shadow: 0 14px 52px rgba(14,24,12,0.45), 0 1px 4px rgba(0,0,0,0.15); }
.dse-card--featured .dse-tag { color: rgba(255,255,255,0.45); }
.dse-card--featured .dse-name { color: #fff; }
.dse-card--featured .dse-sub { color: rgba(255,255,255,0.55); }
.dse-card--featured .dse-dot { color: rgba(255,255,255,0.2); }
.dse-card--featured .dse-meta { color: rgba(255,255,255,0.5); }
.dse-card--featured .dse-price-num { color: #fff; }
.dse-card--featured .dse-price-unit { color: rgba(255,255,255,0.4); }
.dse-card--featured .dse-pending-note { color: rgba(255,255,255,0.5); }
.dse-card--featured .dse-expired-note { color: rgba(255,255,255,0.5); }
.dse-card--featured .dse-extras { border-top-color: rgba(255,255,255,0.1); }
.dse-card--featured .dse-extras-btn {
  color: #4BAF47; background: rgba(75,175,71,0.1); border-color: rgba(75,175,71,0.25);
}
.dse-card--featured .dse-extras-btn:hover { background: rgba(75,175,71,0.18); border-color: rgba(75,175,71,0.4); }
.dse-card--featured .dse-extras-btn--locked { color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.dse-card--featured .dse-status--active,
.dse-card--featured .dse-status--completed { background: rgba(75,175,71,0.15); color: #4BAF47; }
.dse-card--featured .dse-status--expired { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.dse-card--featured .dse-status--pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.dse-card--featured .dse-status--orderable { background: rgba(220,38,38,0.12); color: #f87171; }
.dse-card--featured.dse-card--completed::before,
.dse-card--featured.dse-card--active::before {
  background: linear-gradient(135deg, rgba(75,175,71,0.2) 0%, rgba(75,175,71,0.08) 48%, transparent 52%);
}
.dse-card--featured.dse-card--expired::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 48%, transparent 52%);
}
.dse-recommended {
  position: absolute; top: -12px; right: 20px;
  background: var(--forest); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 14px; border-radius: 99px;
}
.dse-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dse-name { font-family: var(--ff-display); font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 6px; line-height: 1.2; }
.dse-sub { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.dse-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.dse-dot { opacity: 0.4; }
.dse-price { margin-bottom: 20px; }
.dse-price-num { font-family: var(--ff-display); font-size: 30px; color: var(--ink); }
.dse-price-unit { font-size: 12px; color: var(--muted); }
.dse-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; }
.dse-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 99px; position: absolute; top: 20px; right: 20px; z-index: 2;
}
.dse-status--active { background: rgba(42,92,38,0.1); color: var(--forest); }
.dse-status--pending { background: #fff8e1; color: #b45309; }
.dse-pending-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.dse-detail-link { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 2px; }
.dse-detail-link:hover { color: var(--forest); }
.dse-withdraw-btn {
  display: block; width: 100%; text-align: center; padding: 10px 14px; box-sizing: border-box;
  background: transparent; color: var(--muted); border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 600;
}
.dse-withdraw-btn:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
.dse-card--featured .dse-withdraw-btn { color: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.25); }
.dse-card--featured .dse-withdraw-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Breadcrumb zpět */
.dash-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 28px; transition: color 0.15s;
}
.dash-back:hover { color: var(--forest); }

@media (max-width: 640px) {
  .dse-grid { grid-template-columns: 1fr !important; }
  .dse-wrap { padding: 32px 16px 60px; }
  .learn-panel.active { grid-template-columns: 1fr; }
}



/* ── ORDER PAGE ───────────────────────────────────────── */
.order-page { background: var(--ivory); padding: 48px 0 80px; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.order-page .container { display: flex; flex-direction: column; width: 100%; }
.order-split {
  display: grid;
  grid-template-columns: 35% 65%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.07);
  min-height: 630px;
  width: 100%;
}

/* Order left panel */
.order-split-left {
  background: var(--forest-deep);
  padding: 48px 40px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.order-split-left::before {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(75,175,71,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.osl-top { position: relative; z-index: 1; }
.osl-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.osl-name { font-family: var(--ff-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; color: #fff; line-height: 1.2; margin-bottom: 22px; }
.osl-price { font-family: var(--ff-display); font-size: 38px; color: var(--green-light); line-height: 1; }
.osl-price-sub { font-size: 12px; color: rgba(255,255,255,0.38); margin-top: 5px; margin-bottom: 14px; }
.osl-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: rgba(255,255,255,0.38); margin-bottom: 32px; }
.osl-dot { opacity: 0.5; }
.osl-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: auto; position: relative; z-index: 1; }
.osl-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.5; }
.osl-features li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.osl-summary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 18px 20px; margin-top: 36px; position: relative; z-index: 1; }
.osl-summary-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 12px; }
.osl-summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); }
.osl-summary-row:last-child { border-bottom: none; }
.osl-summary-row span:last-child { color: rgba(255,255,255,0.82); font-weight: 600; text-align: right; max-width: 60%; word-break: break-word; }
.osl-summary-total { padding-top: 10px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,0.12) !important; border-bottom: none !important; }
.osl-summary-total span:first-child { font-weight: 700; color: rgba(255,255,255,0.65); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.osl-summary-total span:last-child { font-family: var(--ff-display); font-size: 24px; color: var(--green-light); }

/* Order right panel */
.order-split-right { background: #fff; padding: 48px 44px; min-width: 0; }
.osr-title { font-family: var(--ff-display); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.osr-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.order-section-title { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; margin-bottom: 4px; }
.order-section-sub { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.order-required { color: var(--forest); }

.order-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.order-field label { font-size: 12px; font-weight: 600; color: var(--ink-mid); }
.order-field input { width: 100%; padding: 11px 14px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px; font-size: 14px; font-family: var(--ff-body); color: var(--ink); background: var(--ivory); outline: none; transition: border-color 0.15s, background 0.15s; box-sizing: border-box; }
.order-field input:focus { border-color: var(--forest); background: #fff; }
.order-field input::placeholder { color: var(--muted); opacity: 0.7; }

.order-row { display: flex; gap: 12px; }
.order-row .order-field { flex: 1; }

.order-divider { height: 1px; background: rgba(0,0,0,0.07); margin: 24px 0; }

.order-discount-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; }
.order-discount-row input { flex: 1; padding: 11px 14px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px; font-size: 14px; font-family: var(--ff-body); color: var(--ink); background: var(--ivory); outline: none; transition: border-color 0.15s; }
.order-discount-row input:focus { border-color: var(--forest); background: #fff; }
.order-discount-row .btn { white-space: nowrap; }

.order-summary { background: var(--ivory); border-radius: 12px; padding: 18px 20px; }
.order-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--ink-mid); }
.order-summary-row:last-child { border-bottom: none; }
.order-summary-row span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.order-summary-total { padding-top: 12px; margin-top: 4px; border-top: 1.5px solid rgba(0,0,0,0.1) !important; border-bottom: none !important; }
.order-summary-total span:first-child { font-weight: 700; color: var(--ink); }
.order-summary-total span:last-child { font-family: var(--ff-display); font-size: 22px; color: var(--forest); }

.order-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

@media (max-width: 820px) {
  .order-split { grid-template-columns: 1fr; }
  .order-split-left { padding: 40px 32px; }
  .order-split-right { padding: 40px 32px; }
  .osl-summary { margin-top: 28px; }
}
@media (max-width: 640px) {
  .order-page { padding: 0; align-items: flex-start; }
  .order-page .container { padding: 0; }
  .order-split { border-radius: 0; box-shadow: none; border: none; max-width: 100%; }
  .order-split-left { padding: 32px 24px; }
  .order-split-right { padding: 32px 24px; }
}
@media (max-width: 500px) {
  .order-split-left { padding: 28px 20px; }
  .order-split-right { padding: 28px 20px; }
}

/* ── REGISTER SUCCESS ─────────────────────────────────── */
.reg-success-icon { text-align: center; margin-bottom: 24px; }
.reg-success-icon svg { stroke: var(--green); }
.reg-success-steps { background: var(--sage); border-radius: 12px; padding: 18px 22px; margin: 24px 0 20px; }
.rss-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.rss-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-mid); line-height: 2.1; }
.reg-success-note { font-size: 13px; color: var(--muted); line-height: 1.65; }
.reg-success-note a { color: var(--forest); font-weight: 600; }

/* ── DASHBOARD PREVIEW TEASERS ────────────────────────── */
/* ── DASHBOARD PREVIEW LINK ───────────────────────────── */
.dse-preview-link {
  display: block; width: 100%; text-align: center;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 10px 0 0;
  transition: color 0.14s; font-family: var(--ff-body);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,0.15);
}
.dse-preview-link:hover { color: var(--forest); }

/* ── DASHBOARD PREVIEW MODAL ──────────────────────────── */
.dpm-body { padding: 32px 36px 28px; }
.dpm-content { font-size: 14px; line-height: 1.78; color: var(--ink-mid); }
.dpm-content p, .dpm-content li { font-size: 14px; line-height: 1.78; color: var(--ink-mid); margin-bottom: 13px; }
.dpm-content h2 { font-family: var(--ff-display); font-size: 19px; font-weight: 400; color: var(--ink); margin: 22px 0 10px; }
.dpm-content h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 16px 0 7px; }
.dpm-content .lesson-lead { font-size: 15px; line-height: 1.72; border-left: 3px solid var(--green); padding-left: 16px; margin-bottom: 18px; color: var(--ink-mid); font-weight: 400; }
.dpm-content .callout { background: rgba(245,158,11,0.07); border-left: 3px solid #f59e0b; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 16px 0; font-size: 13.5px; }
.dpm-content .callout--practice { background: rgba(42,92,38,0.06); border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 16px 0; font-size: 13.5px; }
.dpm-content blockquote { border-left: 3px solid rgba(0,0,0,0.1); padding-left: 18px; margin: 14px 0; color: var(--muted); font-style: italic; }
.dpm-content .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
.dpm-content .table-wrap { overflow-x: auto; margin: 14px 0; }
.dpm-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dpm-content th { background: rgba(42,92,38,0.06); padding: 8px 12px; text-align: left; font-size: 12px; font-weight: 600; }
.dpm-content td { padding: 8px 12px; border-bottom: 1px solid rgba(0,0,0,0.07); vertical-align: top; }
.dpm-action { padding: 16px 36px 28px; border-top: 1px solid rgba(0,0,0,0.07); }
.dpm-action .btn-primary-full { max-width: 340px; box-shadow: 0 4px 24px rgba(14,24,12,0.18); }
.dpm-lock { display: inline-flex; align-items: center; gap: 8px; background: var(--forest-deep); color: rgba(255,255,255,0.88); border-radius: 99px; padding: 10px 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; box-shadow: 0 4px 20px rgba(14,24,12,0.28); }

@media (max-width: 640px) {
  .dpm-body { padding: 20px 20px 24px; }
  .dpm-action { padding: 12px 20px 24px; }
  .dpm-content .two-col { grid-template-columns: 1fr; }
}

/* Dashboard course card status colours */
.dse-card--active { border-color: rgba(42,92,38,0.3); }
.dse-card--active::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, rgba(42,92,38,0.14) 0%, rgba(42,92,38,0.06) 48%, transparent 52%);
}
.dse-card--completed { border-color: rgba(42,92,38,0.45); }
.dse-card--completed::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, rgba(42,92,38,0.18) 0%, rgba(42,92,38,0.08) 48%, transparent 52%);
}
.dse-card--expired { border-color: rgba(100,116,139,0.3); }
.dse-card--expired::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, rgba(100,116,139,0.1) 0%, rgba(100,116,139,0.04) 48%, transparent 52%);
}
.dse-card--pending { border-color: rgba(245,158,11,0.35); }
.dse-card--pending::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.06) 48%, transparent 52%);
}
.dse-card--orderable { border-color: rgba(0,0,0,0.08); }
.dse-card--orderable::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(135deg, rgba(220,38,38,0.12) 0%, rgba(220,38,38,0.05) 48%, transparent 52%);
}
.dse-card > *:not(.dse-card::before) { position: relative; z-index: 1; }
.dse-status--orderable { background: rgba(220,38,38,0.08); color: #dc2626; font-weight: 700; }
.dse-status--completed { background: rgba(42,92,38,0.12); color: var(--forest); font-weight: 600; }
.dse-status--expired { background: rgba(100,116,139,0.1); color: #64748b; font-weight: 600; }
.dse-expired-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: #64748b; padding: 10px 0 2px;
}
.dse-extras {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.dse-extras-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--forest);
  background: rgba(42,92,38,0.07); border: 1px solid rgba(42,92,38,0.18);
  border-radius: 6px; padding: 5px 10px; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.dse-extras-btn:hover { background: rgba(42,92,38,0.13); border-color: rgba(42,92,38,0.3); }
.dse-extras-btn--locked {
  color: #94a3b8; background: rgba(148,163,184,0.07); border-color: rgba(148,163,184,0.2);
  cursor: default;
}
.dse-extras-btn--locked:hover { background: rgba(148,163,184,0.07); border-color: rgba(148,163,184,0.2); }

@media (max-width: 640px) {
  .order-course-header { padding: 24px; }
  .order-form-body { padding: 24px; }
  .order-row { flex-direction: column; gap: 0; }
}

/* ── COURSE MODAL ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,18,8,0.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: 20px;
  max-width: 680px; width: 100%; max-height: 86vh;
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 4px 20px rgba(0,0,0,0.12);
  transform: scale(0.95) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.34,1.2,0.64,1);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal-head { padding: 32px 36px 26px; position: relative; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.28); }
.modal-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 10px;
}
.modal-name {
  font-family: var(--ff-display); font-size: 28px; font-weight: 400;
  color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.modal-meta-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.48); margin-bottom: 22px;
}
.modal-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.3); flex-shrink: 0; }
/* Mobile: slide up */
@media (max-width: 640px) {
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; transform: translateY(24px); }
  .modal-backdrop.open .modal { transform: translateY(0); }
  .modal-head { padding: 28px 24px 22px; }
  .modal-name { font-size: 22px; }
}

.dse-card-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }

/* ── MOBILE: téma/lekce slider ──────────────────────────── */
@media (max-width: 768px) {
  .cmod-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .cmod-row::-webkit-scrollbar { display: none; }
  .cmod-tab {
    flex: 0 0 auto;
    min-width: 88px;
    max-width: 110px;
    scroll-snap-align: start;
  }
  .cles-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .cles-row::-webkit-scrollbar { display: none; }
  .cles-tab {
    flex: 0 0 auto;
    min-width: 130px;
    max-width: 160px;
    scroll-snap-align: start;
  }
}

/* ── MOBILE: nastavení účtu — full-width ────────────────── */
@media (max-width: 640px) {
  .settings-page { padding: 28px 0 60px; }
  .settings-inner { padding: 0; }
  .settings-title, .settings-sub { padding-left: 20px; padding-right: 20px; }
  .settings-success, .form-errors { margin-left: 20px; margin-right: 20px; }
  .settings-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 24px 20px;
    margin-bottom: 8px;
  }
  .settings-card:last-of-type { margin-bottom: 0; }
  .settings-inner > [style*="text-align:center"] { padding: 16px 20px 0; }
}

/* ── Heslo — toggle zobrazení ───────────────────────────── */
.pwd-wrap { position: relative; display: flex; align-items: center; }
.pwd-wrap input { flex: 1; padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; display: flex; align-items: center;
  transition: color 0.15s;
}
.pwd-toggle:hover { color: var(--forest); }

/* ── Progress bar kurzu pod lištu lekcí ─────────────────── */
.course-prog-bar {
  background: var(--ivory);
  padding: 6px 0 10px;
}
.cpb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
}
.cpb-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cpb-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
}
.cpb-track {
  height: 3px;
  background: rgba(42,92,38,0.12);
}
.cpb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest) 0%, #4BAF47 100%);
  transition: width 0.6s cubic-bezier(.25,.8,.25,1);
  min-width: 0;
}

/* ── COOKIE BANNER ────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--forest-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-inner p {
  margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.65); flex: 1; min-width: 240px;
}
.cookie-banner-inner a { color: var(--green-light); }
.cookie-banner-inner .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-inner .btn { width: 100%; }
}

/* ── BACK TO TOP ──────────────────────────────────────── */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest-deep); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, bottom 0.3s, background 0.2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green); }
.cookie-banner.visible ~ .back-to-top { bottom: 96px; }
@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .cookie-banner.visible ~ .back-to-top { bottom: 130px; }
}

/* Glosář zkratek — tooltip vysvětlivky v textu lekcí */
.gl-term {
  text-decoration: underline dotted;
  text-decoration-color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: help;
  font-weight: 600;
  color: inherit;
  outline: none;
  border-radius: 2px;
  transition: color .15s ease, background-color .15s ease;
}
.gl-term:hover,
.gl-term:focus-visible,
.gl-term.gl-active {
  color: var(--forest);
  background: rgba(75,175,71,0.12);
  text-decoration-color: var(--forest);
}

#gl-popover {
  position: fixed;
  z-index: 4000;
  width: max-content;
  max-width: min(340px, calc(100vw - 32px));
  background: var(--forest-deep);
  color: var(--sage);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px) scale(.97);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
#gl-popover.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#gl-popover::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--forest-deep);
  transform: rotate(45deg);
  left: var(--gl-arrow-x, 20px);
}
#gl-popover[data-placement="top"]::before { bottom: -5px; }
#gl-popover[data-placement="bottom"]::before { top: -5px; }

.gl-pop-name {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  padding-right: 22px;
  line-height: 1.3;
}
.gl-pop-text { margin: 0 0 10px; color: var(--sage); }
.gl-pop-example {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  color: rgba(227,238,224,0.75);
}
.gl-pop-example b {
  color: var(--green-light);
  font-weight: 600;
}
.gl-pop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--sage);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-pop-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

@media (max-width: 600px) {
  #gl-popover { font-size: 13.5px; padding: 14px 16px; }
  .gl-pop-name { font-size: 16px; }
}
