/* ============================================
   KENJI KNIHOVNA — SDÍLENÝ STYL
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-2: #1a1a1a;
  --bg-elevated: #1f1f1f;
  --orange: #ff6b1a;
  --orange-bright: #ff8533;
  --orange-dim: #cc5614;
  --blue: #2a6fff;
  --blue-dim: #1a4fc4;
  --text: #f5f5f5;
  --text-dim: #9a9a9a;
  --text-mute: #666;
  --border: #262626;
  --border-light: #1f1f1f;
  --border-accent: #ff6b1a;

  --sidebar-width: 280px;
  --header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================
   HEADER (TOP BAR)
   ============================================ */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.3);
}

.brand-name {
  display: block;
  width: 132px;
  height: 22px;
  background: url('logo-kenji.png') no-repeat left center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

.header-spacer { flex: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ============================================
   LAYOUT (SIDEBAR + MAIN)
   ============================================ */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - var(--header-height));
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  background: #0d0d0d;
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-section:last-child { margin-bottom: 0; }

.sidebar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-link:hover {
  background: var(--bg-card);
  color: var(--text);
}

.sidebar-link.active {
  background: rgba(255, 107, 26, 0.1);
  color: var(--orange);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}

.sidebar-link .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-link .badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-mute);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}
.sidebar-link.locked {
  padding-right: 42px;
}
.sidebar-link.locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,107,26,.26);
  border-radius: 999px;
  background: rgba(255,107,26,.075);
  color: var(--orange);
  font-size: 10px;
  line-height: 1;
}
.sidebar-link.locked.active::after {
  border-color: rgba(255,107,26,.42);
  background: rgba(255,107,26,.13);
}

.sidebar-link.coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
}

.sidebar-link.coming-soon:hover {
  background: transparent;
  color: var(--text-dim);
}

/* Sidebar — rozklikávací kategorie (accordion) */
.sidebar-cat { display: flex; flex-direction: column; }

.cat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-toggle:hover { background: var(--bg-card); color: var(--text); }
.cat-toggle .cat-name { flex: 1; }
.cat-toggle .icon { font-size: 16px; flex-shrink: 0; }
.cat-toggle .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-mute);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}
.cat-arrow {
  font-size: 11px;
  color: var(--text-mute);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.sidebar-cat.open > .cat-toggle { color: var(--text); }
.sidebar-cat.open .cat-arrow { transform: rotate(180deg); }
.sidebar-cat.empty .cat-toggle { opacity: 0.45; cursor: default; }
.sidebar-cat.empty .cat-toggle:hover { background: none; color: var(--text-dim); }

/* Sidebar — sub items inside category (sbalené, dokud není .open) */
.sidebar-sublist {
  display: none;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  margin-bottom: 4px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
  margin-left: 18px;
}
.sidebar-cat.open > .sidebar-sublist { display: flex; }

.sidebar-sublink {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 10px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.15s ease;
  position: relative;
}

/* Checkbox přečtení v menu */
.read-check {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.read-check:hover { border-color: var(--orange); }
.sidebar-sublink.is-read .read-check {
  background: var(--orange);
  border-color: var(--orange);
}
.sidebar-sublink.is-read .read-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.sidebar-sublink.is-read .sublink-text { color: var(--text-mute); }

.sidebar-sublink:hover {
  background: var(--bg-card);
  color: var(--text);
}

.sidebar-sublink.active {
  color: var(--orange);
  font-weight: 600;
}

.sidebar-sublink.coming {
  opacity: 0.4;
  cursor: not-allowed;
}

.sidebar-sublink.coming:hover {
  background: transparent;
  color: var(--text-dim);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
  padding: 48px 56px 80px;
  max-width: 100%;
  overflow-x: hidden;
}

.main-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.breadcrumbs a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover { color: var(--orange); }

.breadcrumbs .separator {
  color: var(--border);
}

.breadcrumbs .current {
  color: var(--text);
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::before {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--orange);
}

/* ============================================
   HOMEPAGE HERO
   ============================================ */
.home-hero {
  position: relative;
  padding: 80px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 64px;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,107,26,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,111,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.home-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding: 8px 14px;
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.3);
  border-radius: 100px;
}

.home-hero-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.home-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(68px, 9vw, 118px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.home-hero h1 .highlight {
  background: linear-gradient(180deg, #ffffff 0%, #ffe4d1 30%, #ff9550 70%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 32px rgba(255, 107, 26, 0.5)) drop-shadow(0 0 8px rgba(255, 180, 100, 0.3));
  position: relative;
}

.home-hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
}

/* ============================================
   CATEGORY GRID (HOMEPAGE)
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  overflow: hidden;
}

.category-card:hover {
  border-color: rgba(255,107,26,0.4);
  transform: translateY(-3px);
  background: var(--bg-card-2);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-flex;
  width: 52px;
  height: 52px;
  background: rgba(255,107,26,0.08);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.category-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.55;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-mute);
}

.category-meta .count {
  color: var(--orange);
  font-weight: 700;
}

.category-meta .arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.category-card:hover .category-meta .arrow {
  transform: translateX(4px);
  color: var(--orange);
}

/* ============================================
   ARTICLE LIST
   ============================================ */
.articles-section {
  margin-top: 32px;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.article-row:hover {
  border-color: rgba(255,107,26,0.4);
  background: var(--bg-card-2);
  transform: translateX(4px);
}

.article-row.coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.article-row.coming-soon:hover {
  transform: none;
  border-color: var(--border);
  background: var(--bg-card);
}

.article-row-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,107,26,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.article-row-content {
  flex: 1;
  min-width: 0;
}

.article-row-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.article-row-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.article-row-desc {
  font-size: 13px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-row-status {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 6px;
}

.article-row-status.new {
  background: rgba(255,107,26,0.12);
  color: var(--orange);
}

.article-row-status.soon {
  background: var(--bg-elevated);
  color: var(--text-mute);
}

/* ============================================
   ARTICLE PAGE COMPONENTS
   ============================================ */

/* Article hero */
.article-hero {
  position: relative;
  padding: 60px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 48px;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,26,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,111,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.article-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding: 8px 14px;
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.3);
  border-radius: 100px;
  position: relative;
  z-index: 2;
}

.article-hero-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
  animation: pulse 2s ease-in-out infinite;
}

.article-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.article-hero h1 .highlight {
  background: linear-gradient(135deg, #fff 0%, #ffb380 35%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(255, 107, 26, 0.35));
}

.article-hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  position: relative;
  z-index: 2;
}

/* Article intro */
.article-intro {
  padding: 0 8px;
  margin-bottom: 56px;
}

.article-intro p {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.article-intro p strong {
  color: var(--text);
  font-weight: 600;
}

.quote-box {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(255,107,26,0.08) 0%, transparent 100%);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 56px;
}

.stat {
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* Numbered cards (mistakes/tips/steps) */
.numbered-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 64px;
}

.numbered-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.numbered-card:hover {
  border-color: rgba(255,107,26,0.4);
  transform: translateY(-2px);
}

.numbered-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.numbered-card-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,107,26,0.25);
}

.numbered-card-title-wrap { flex: 1; }

.numbered-card-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}

.numbered-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

/* Card blocks (diagnosis, fix, etc.) */
.card-block {
  padding: 20px 22px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.card-block:last-child { margin-bottom: 0; }

.card-block.diagnosis {
  background: rgba(220, 50, 50, 0.06);
  border-left: 3px solid #dc3232;
}

.card-block.fix {
  background: rgba(42, 111, 255, 0.06);
  border-left: 3px solid var(--blue);
}

.card-block.reality {
  background: rgba(255, 107, 26, 0.06);
  border-left: 3px solid var(--orange);
}

.block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-label.diagnosis-label { color: #ff5555; }
.block-label.fix-label { color: var(--blue); }
.block-label.reality-label { color: var(--orange); }

.block-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.card-block p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.card-block p strong {
  color: var(--text);
  font-weight: 600;
}

.card-block ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.card-block ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text-dim);
  font-size: 15px;
}

.card-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

.example-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: #0a0a0a;
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.example-box .tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--orange);
  background: rgba(255,107,26,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 700;
}

.example-box p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* Closing section */
.closing {
  margin-top: 64px;
  padding: 48px 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-bright) 100%);
}

/* Badge „Přečteno" na konci článku */
.read-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 40px 0 8px;
}
.read-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.read-toggle:hover { border-color: var(--orange); color: var(--text); }
.read-toggle .rt-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--text-mute);
  border-radius: 4px;
  position: relative;
  transition: all 0.15s ease;
}
.read-toggle.is-read { border-color: var(--orange); color: var(--orange); }
.read-toggle.is-read .rt-box { background: var(--orange); border-color: var(--orange); }
.read-toggle.is-read .rt-box::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.closing h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.closing p {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.closing p strong {
  color: var(--orange);
  font-weight: 600;
}

/* Checklist */
.checklist {
  margin-top: 56px;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.checklist h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.checklist-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.checklist-item:last-child { border-bottom: none; }

.checklist-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  margin-top: 2px;
  position: relative;
}

.checklist-check::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist-item p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.checklist-item p span {
  color: var(--text-mute);
  font-size: 14px;
  display: block;
  margin-top: 2px;
}

/* Signoff */
.signoff {
  margin-top: 56px;
  text-align: center;
  padding: 32px 0;
}

.signoff-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.signoff-text {
  font-size: 14px;
  color: var(--text-mute);
  font-style: italic;
}

/* Article footer nav (prev/next) */
.article-footer-nav {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-nav-link {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.footer-nav-link:hover {
  border-color: rgba(255,107,26,0.4);
  background: var(--bg-card-2);
}

.footer-nav-link.next { text-align: right; }

.footer-nav-link .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-nav-link .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.footer-nav-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   COMING SOON PAGE
   ============================================ */
.coming-soon-page {
  text-align: center;
  padding: 80px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.coming-soon-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.coming-soon-page h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.coming-soon-page p {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange) 0%, #ff4500 100%);
  box-shadow: 0 0 8px rgba(255, 107, 26, 0.6);
  transition: width 0.1s ease-out;
  z-index: 102;
}

/* ============================================
   ARTICLE META (reading time, date)
   ============================================ */
.article-meta {
  display: none; /* lišta s časem čtení / kategorií / autorem skrytá (Daniel 5/2026) */
  align-items: center;
  gap: 16px;
  margin: 0 0 32px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-mute);
  border-radius: 50%;
}

/* ============================================
   SCROLLSPY — active TOC link in sidebar
   ============================================ */
.sidebar-sublink.toc-active {
  color: var(--orange);
  background: rgba(255, 107, 26, 0.08);
  font-weight: 600;
}

/* ============================================
   COMPARISON GRID (e.g. drone categories A1/A2/A3)
   ============================================ */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 48px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.compare-card.featured {
  border-color: rgba(255, 107, 26, 0.5);
  background: linear-gradient(180deg, rgba(255, 107, 26, 0.05) 0%, var(--bg-card) 100%);
  position: relative;
}

.compare-card.featured::before {
  content: 'NEJČASTĚJŠÍ VOLBA';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  background: var(--orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.compare-card-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--orange);
  margin-bottom: 4px;
  line-height: 1;
}

.compare-card-sub {
  font-size: 13px;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.compare-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

.compare-card ul li {
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.5;
}

.compare-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* ============================================
   MODEL SHOWCASE (drones recommendations)
   ============================================ */
.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0 48px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.model-card:hover {
  border-color: rgba(255, 107, 26, 0.4);
  transform: translateY(-2px);
}

.model-card.recommended {
  border-color: rgba(255, 107, 26, 0.45);
}

.model-card.recommended::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange), #ff4500);
}

.model-badge {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #000;
  flex-shrink: 0;
}

.model-badge.silver {
  background: linear-gradient(135deg, #b8b8b8 0%, #707070 100%);
  color: #000;
}

.model-badge.bronze {
  background: linear-gradient(135deg, #c97b3d 0%, #8a4f1f 100%);
  color: #000;
}

.model-content { min-width: 0; }

.model-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.model-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  line-height: 1.1;
}

.model-price {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-weight: 700;
}

.model-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.model-spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  background: var(--bg-elevated);
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.model-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.model-desc strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   LINK CARDS (official sources)
   ============================================ */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 24px 0 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: rgba(255, 107, 26, 0.5);
  background: var(--bg-card-2);
  transform: translateY(-2px);
}

.link-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 107, 26, 0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.link-card-text { flex: 1; min-width: 0; }

.link-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.link-card-url {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card-arrow {
  flex-shrink: 0;
  color: var(--text-mute);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.link-card:hover .link-card-arrow {
  transform: translateX(3px);
  color: var(--orange);
}

/* ============================================
   WARNING / TIP CALLOUTS
   ============================================ */
.callout {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.callout-content { flex: 1; }

.callout-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.callout p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

.callout p strong { color: var(--text); }

.callout.warning {
  background: rgba(255, 180, 30, 0.08);
  border-left: 3px solid #ffb41e;
}

.callout.warning .callout-title { color: #ffb41e; }

.callout.danger {
  background: rgba(220, 50, 50, 0.08);
  border-left: 3px solid #dc3232;
}

.callout.danger .callout-title { color: #ff5555; }

.callout.tip {
  background: rgba(42, 111, 255, 0.06);
  border-left: 3px solid var(--blue);
}

.callout.tip .callout-title { color: var(--blue); }

.callout.success {
  background: rgba(80, 200, 120, 0.08);
  border-left: 3px solid #50c878;
}

.callout.success .callout-title { color: #50c878; }

/* ============================================
   STEP LIST (procesní kroky)
   ============================================ */
.step-list {
  margin: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--orange);
}

.step-content { flex: 1; }

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.step-content p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.step-content p strong {
  color: var(--text);
  font-weight: 600;
}

.step-content a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 107, 26, 0.4);
  font-weight: 600;
}

.step-content a:hover {
  border-bottom-color: var(--orange);
}

/* Inline odkazy v textu článku — oranžové a podtržené (čitelné, v brandu) */
.article-intro a,
.main-inner > p a,
.card-block a,
.callout-content a,
.example-box a,
.closing a,
.compare-card a,
.model-desc a,
.home-prose a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.article-intro a:hover,
.main-inner > p a:hover,
.card-block a:hover,
.callout-content a:hover,
.example-box a:hover,
.closing a:hover,
.compare-card a:hover,
.model-desc a:hover,
.home-prose a:hover {
  color: var(--orange-bright);
}

/* ============================================
   HOMEPAGE — PROLOG, PŘÍSTUP, CTA
   ============================================ */
.home-prose { max-width: 680px; margin-bottom: 56px; }
.home-lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
}
.home-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.home-goal { font-size: 18px !important; color: var(--text) !important; }
.highlight-text {
  background: linear-gradient(180deg, #ffffff 0%, #ff9550 70%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin: -8px 0 28px;
}

/* Free vs placená */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
  align-items: stretch;
}
.access-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.access-card.free {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,107,26,.11), transparent 34%),
    linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    var(--bg-card);
  border-color: rgba(255,255,255,.12);
}
.access-card.free::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,26,.45), transparent);
}
.access-card.featured {
  border-color: rgba(255,107,26,0.55);
  background: linear-gradient(160deg, rgba(255,107,26,0.10) 0%, var(--bg-card) 55%);
  box-shadow: 0 12px 40px rgba(255,107,26,0.10);
}
@media (min-width: 861px) {
  .access-card.featured { transform: scale(1.04); z-index: 1; }
}
.access-tag {
  position: absolute;
  top: -11px; left: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: var(--orange);
  padding: 4px 12px;
  border-radius: 6px;
}
.access-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}
.access-card.free .access-head {
  width: fit-content;
  padding: 5px 9px 4px;
  border: 1px solid rgba(255,107,26,.26);
  border-radius: 999px;
  background: rgba(255,107,26,.075);
  color: var(--orange-bright);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1.8px;
  margin-bottom: 14px;
}
.access-card.featured .access-head { color: var(--orange); }
.access-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.access-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.access-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}
.access-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--text-mute);
  font-weight: 700;
}
.access-card.featured .access-list li::before { color: var(--orange); }
.access-card.featured .access-list li { color: var(--text); }
.access-card.academy .access-list li { color: var(--text); }
.access-card.academy .access-list li::before { color: var(--orange); }
.access-card.free .access-list li:not(.unavailable) { color: var(--text); }
.access-card.free .access-list li:not(.unavailable)::before { color: var(--orange); }
.access-list li.unavailable {
  color: var(--text-mute);
}
.access-list li.unavailable::before {
  content: '–';
  color: var(--text-mute);
}
.access-logo {
  width: 205px;
  height: 34px;
  margin: 0 0 8px;
  background: url('logo-kenji.png') no-repeat left center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

/* --- cena (přeškrtnutá → akční) --- */
.access-priceblock { margin: 4px 0 16px; }
.access-card.free .access-priceblock {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-new {
  font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: 1;
  color: var(--text); letter-spacing: 1px;
}
.access-card.featured .price-new { color: var(--orange); }
.price-old {
  font-size: 16px; color: var(--text-mute); text-decoration: line-through;
  font-weight: 600;
}
.price-free { font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: 1; color: var(--text); letter-spacing: 1px; }
.access-card.free .price-free {
  font-size: 52px;
  line-height: .88;
  letter-spacing: .5px;
}
.price-note { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.access-card.free .price-note {
  max-width: 210px;
  margin-top: 10px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
  line-height: 1.45;
}
.price-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.65);
  background: rgba(6, 78, 59, 0.72);
  color: #7ff0b2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.16);
}
.price-guarantee-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- urgence (odpočet) --- */
.access-urgency {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: #ffcaa6;
  background: rgba(255,107,26,0.12); border: 1px solid rgba(255,107,26,0.3);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 14px;
}
.access-urgency .uc-time { font-family: 'JetBrains Mono', monospace; color: #fff; letter-spacing: .5px; }

/* --- CTA tlačítko v kartě --- */
.access-list { flex: 1; }
.access-cta {
  display: block; text-align: center; margin-top: 22px;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  padding: 13px 18px; border-radius: 11px; text-decoration: none;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  transition: filter .15s, transform .15s, border-color .15s, background .15s; width: 100%;
}
.access-cta:hover { border-color: var(--text-dim); transform: translateY(-1px); }
.access-cta.primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  border-color: transparent; color: #fff;
}
.access-cta.primary:hover { filter: brightness(1.08); }
.access-cta.access-current {
  background: transparent; border-color: rgba(52,211,153,.35); color: #34d399;
  cursor: default; font-weight: 600;
}
.access-cta.access-current:hover { transform: none; border-color: rgba(52,211,153,.35); }

/* Stav členství podle reálného tieru uživatele (řídí auth.js → markHomepagePlan) */
.access-card.is-current { border-color: rgba(52,211,153,.45); box-shadow: 0 0 0 1px rgba(52,211,153,.25); }
.access-card.is-owned { opacity: .68; }
.access-card.is-owned:hover { opacity: .9; }

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

.home-cta { margin-top: 0; }

/* Homepage reviews */
.home-reviews {
  margin: 66px 0 8px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255,107,26,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.048), rgba(255,255,255,.015));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.075),
    0 24px 70px rgba(0,0,0,.22);
  overflow: hidden;
}
.home-reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 26px;
}
.reviews-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 9px;
}
.home-reviews h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
  letter-spacing: .5px;
  color: var(--text);
}
.reviews-score {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  min-width: 168px;
  padding: 15px 18px;
  border: 1px solid rgba(255,107,26,.28);
  border-radius: 16px;
  background: rgba(255,107,26,.075);
  text-align: right;
}
.reviews-score-stars,
.review-stars {
  color: #ffc545;
  letter-spacing: 1.5px;
  text-shadow: 0 0 18px rgba(255,197,69,.18);
}
.reviews-score strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.reviews-score span:last-child {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  position: relative;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    var(--bg-card);
}
.review-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,26,.55), transparent);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.35), transparent 30%),
    linear-gradient(135deg, var(--orange), #8a2f00);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 24px rgba(255,107,26,.16);
}
.review-top h3 {
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.review-top span {
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 700;
}
.review-stars {
  font-size: 16px;
  margin-bottom: 14px;
}
.review-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .home-reviews { padding: 28px; }
  .home-reviews-head { flex-direction: column; }
  .reviews-score { width: 100%; text-align: left; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home-reviews { margin-top: 48px; padding: 22px 18px; border-radius: 18px; }
  .review-card { padding: 19px; }
  .review-card p { font-size: 13px; }
}

/* ============================================
   ČLENSTVÍ / PŘIHLÁŠENÍ / PAYWALL
   ============================================ */

/* Tlačítko přihlášení v hlavičce */
.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.auth-btn:hover { background: #f5f5f5; box-shadow: 0 1px 6px rgba(0,0,0,0.25); }

/* Google "G" — barevné na bílém tlačítku */
.g-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #fff;
  color: #4285F4;
  border-radius: 2px;
  font-weight: 900;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

/* Přihlášený uživatel */
.auth-user { display: inline-flex; align-items: center; gap: 10px; }

.auth-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 7px;
  border-radius: 4px;
}
.auth-badge.member { background: rgba(255,255,255,0.12); color: #fff; }
.auth-badge.free { background: var(--bg-card); color: var(--text-mute); }

.auth-name { font-size: 13px; font-weight: 600; color: var(--text); }

.auth-logout {
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.auth-logout:hover { color: var(--orange); border-color: var(--orange); }

/* Zamčené položky na homepage / v sidebaru */
.article-row.locked { opacity: 0.78; }
.article-row.locked .article-row-status { display: none; }
.lock-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--orange);
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.25);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-sublink.locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,107,26,.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,107,26,.18), transparent 70%),
    rgba(255,107,26,.075);
  color: var(--orange);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(255,107,26,.08);
}
.sidebar-sublink.locked {
  padding-right: 36px;
  color: rgba(166,166,166,.62);
}
.sidebar-sublink.locked .read-check {
  opacity: .35;
}
.sidebar-sublink.locked:hover {
  background: rgba(255,107,26,.055);
  color: var(--text-dim);
}
.sidebar-sublink.locked:hover::after {
  border-color: rgba(255,107,26,.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,107,26,.24), transparent 70%),
    rgba(255,107,26,.11);
}

/* Paywall (teaser cut v premium článku) */
.paywall {
  margin-top: 16px;
  padding: 48px 40px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255,107,26,0.08) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(255,107,26,0.25);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.paywall::before {
  content: '';
  position: absolute;
  top: -120px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.paywall-lock { font-size: 40px; margin-bottom: 12px; }
.paywall-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--text);
}
.paywall-text {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}
.paywall-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.paywall-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,107,26,0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.paywall-cta:hover { background: var(--orange-bright); transform: translateY(-2px); }

/* Google login v paywallu — bílé, jako v hlavičce (ne oranžové) */
.paywall-cta-google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  box-shadow: none;
}
.paywall-cta-google:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.paywall-note { font-size: 13px; color: var(--text-mute); }
.paywall-note a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: rgba(255,107,26,.55);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.paywall-note a:hover {
  color: var(--orange-bright);
  text-decoration-color: currentColor;
}

/* Promo banner na konci free článků */
.promo-banner {
  margin: 48px 0 0;
  padding: 36px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1208 0%, #14100c 100%);
  border: 1px solid rgba(255,107,26,0.3);
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,107,26,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.promo-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}
.promo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 8px;
}
.promo-text { color: var(--text-dim); font-size: 15px; max-width: 540px; margin-bottom: 20px; }
.promo-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.promo-cta:hover { background: var(--orange-bright); transform: translateY(-2px); }

/* Demo přihlášení (dočasné, dokud nejsou Supabase klíče) */
.demo-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-auth-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
}
.demo-auth-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}
.demo-auth-modal h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 8px;
}
.demo-auth-modal > p { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.demo-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-opt:hover { border-color: var(--orange); transform: translateY(-1px); }
.demo-opt strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.demo-opt span { color: var(--text-mute); font-size: 12px; }
.demo-opt.member:hover { background: rgba(255,107,26,0.08); }
.demo-close {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-mute);
  font-size: 13px;
  padding: 8px;
  cursor: pointer;
}
.demo-close:hover { color: var(--text-dim); }

/* ============================================
   VYHLEDÁVÁNÍ (sidebar)
   ============================================ */
.sidebar-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 22px;
}

.sidebar-search .search-icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  opacity: 0.6;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 9px 34px 9px 34px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-input::placeholder { color: var(--text-mute); }

.search-input:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--bg-card-2);
}

.search-kbd {
  position: absolute;
  right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  pointer-events: none;
}

.search-input:focus ~ .search-kbd { opacity: 0; }

.search-results {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.search-results[hidden] { display: none; }

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s ease;
}

.search-result:hover { background: var(--bg-elevated); }

.search-result .sr-icon { font-size: 16px; flex-shrink: 0; }

.search-result .sr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-result .sr-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.search-result .sr-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-mute);
  text-transform: uppercase;
}

.search-result.is-soon {
  opacity: 0.55;
  cursor: default;
}

.search-result.is-soon:hover { background: transparent; }

.search-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .menu-toggle { display: flex; }

  .sidebar {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    z-index: 99;
    transition: left 0.3s ease;
    border-right: 1px solid var(--border);
  }

  .sidebar.open { left: 0; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 98;
    top: var(--header-height);
  }

  .sidebar-overlay.show { display: block; }

  .main { padding: 32px 24px 64px; }

  .home-hero { padding: 56px 28px; }
  .article-hero { padding: 44px 28px; }

  .numbered-card { padding: 28px 22px; }
  .numbered-card-header { gap: 14px; }
  .numbered-card-num { width: 48px; height: 48px; font-size: 24px; }
  .numbered-card-title { font-size: 22px; }
  .card-block { padding: 16px; }

  .stats { grid-template-columns: 1fr; }

  .closing { padding: 32px 24px; }
  .closing h2 { font-size: 28px; }

  .checklist { padding: 28px 20px; }

  .article-footer-nav {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .model-card {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 22px 20px;
  }

  .model-badge {
    width: 60px; height: 60px;
    font-size: 22px;
  }

  .model-name { font-size: 22px; }
  .step-item { padding: 16px 18px; gap: 14px; }
}

@media (max-width: 540px) {
  .top-header { padding: 0 16px; gap: 12px; }
  .brand-name { width: 112px; height: 19px; }
  .header-tag { display: none; }

  .home-hero h1 { font-size: 58px; line-height: 1.16; }
  .article-hero h1 { font-size: 36px; }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .link-cards {
    grid-template-columns: 1fr;
  }

  .model-card {
    grid-template-columns: 1fr;
  }

  .model-badge {
    width: 52px; height: 52px;
  }
}

/* ============================================
   COMPONENTS PRO ČLÁNEK O DRONECH
   (a obecně pro budoucí články)
   ============================================ */

/* OFICIAL LINK BOX */
.official-links {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(42,111,255,0.04), rgba(42,111,255,0.02));
  border: 1px solid rgba(42,111,255,0.25);
  border-radius: 14px;
}

.official-links-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.official-links-title::before {
  content: '🔗';
  font-size: 14px;
}

.official-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.official-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.official-link:hover {
  background: rgba(42,111,255,0.08);
  transform: translateX(4px);
}

.official-link-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(42,111,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.official-link-content {
  flex: 1;
  min-width: 0;
}

.official-link-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.official-link-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  word-break: break-all;
}

.official-link-arrow {
  flex-shrink: 0;
  color: var(--text-mute);
  font-size: 18px;
  align-self: center;
}

/* CATEGORY CARDS (A1, A2, A3) */
.category-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0 56px;
}

.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}

.cat-pill.recommended {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(255,107,26,0.05), var(--bg-card));
}

.cat-pill-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.cat-pill-letter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 14px;
  letter-spacing: -2px;
}

.cat-pill-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--text);
}

.cat-pill-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-pill-specs li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 5px 0;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

.cat-pill-specs li:last-child { border-bottom: none; }

.cat-pill-specs li strong {
  color: var(--text);
  font-weight: 600;
}

/* MODEL RECOMMENDATION CARDS */
.model-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.model-card:hover {
  border-color: rgba(255,107,26,0.4);
  transform: translateY(-2px);
}

.model-card.gold {
  border-color: rgba(255,107,26,0.4);
  background: linear-gradient(135deg, rgba(255,107,26,0.04), var(--bg-card));
}

.model-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.model-medal {
  font-size: 48px;
  line-height: 1;
}

.model-rank-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  text-align: center;
}

.model-content {
  min-width: 0;
}

.model-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: var(--text);
}

.model-tagline {
  font-size: 14px;
  color: var(--orange);
  margin-bottom: 16px;
  font-weight: 600;
}

.model-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}

.model-spec {
  font-size: 12px;
}

.model-spec-label {
  display: block;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.model-spec-value {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.model-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}

.model-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.5px;
}

.model-for {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.model-for strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .model-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 20px;
  }
  .model-rank { flex-direction: row; }
  .model-medal { font-size: 40px; }
  .category-pills { grid-template-columns: 1fr; }
}

/* INFO BOX (warning/tip/note) */
.info-box {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-box.warning {
  background: rgba(220, 50, 50, 0.08);
  border-left: 3px solid #dc3232;
}

.info-box.tip {
  background: rgba(42, 111, 255, 0.06);
  border-left: 3px solid var(--blue);
}

.info-box.note {
  background: rgba(255, 107, 26, 0.06);
  border-left: 3px solid var(--orange);
}

.info-box-icon {
  flex-shrink: 0;
  font-size: 20px;
  margin-top: 2px;
}

.info-box-content {
  flex: 1;
}

.info-box-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.info-box.warning .info-box-title { color: #ff5555; }
.info-box.tip .info-box-title { color: var(--blue); }
.info-box.note .info-box-title { color: var(--orange); }

.info-box-content p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

.info-box-content p strong {
  color: var(--text);
}

/* ČLÁNEK BODY PROSE */
.article-body {
  padding: 0 8px;
  margin-bottom: 48px;
}

.article-body p {
  font-size: 16.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.7;
}

.article-body p strong {
  color: var(--text);
  font-weight: 600;
}

.article-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--text);
  margin: 36px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-body h3::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--orange);
  flex-shrink: 0;
}

.article-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.article-body ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}

.article-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
  font-size: 18px;
}

.article-body ul li strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   KVÍZ
   ============================================ */
.quiz-app { margin-top: 8px; }

/* --- pravidla nahoře --- */
.quiz-rules {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-dim);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 28px;
}
.quiz-rules strong { color: var(--text); }
.qr-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-mute); }

/* --- mřížka levelů --- */
.quiz-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-bottom: 32px;
}
.quiz-level-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.quiz-level-card:not(.is-locked):hover { border-color: var(--border-accent); transform: translateY(-2px); }
.quiz-level-card.is-done { border-color: rgba(52,211,153,.35); }
.quiz-level-card.is-locked { opacity: .55; }
.ql-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ql-icon { font-size: 30px; line-height: 1; }
.ql-belt {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
}
.ql-name { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.ql-desc { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin: 0 0 18px; flex: 1; }
.ql-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ql-status { font-size: 13px; font-weight: 600; }
.ql-status.done { color: #34d399; }
.ql-status.open { color: var(--orange-bright); }
.ql-status.locked { color: var(--text-mute); }
.ql-locknote { font-size: 12px; color: var(--text-mute); font-style: italic; }

.ql-btn {
  display: inline-block; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transition: filter .15s, transform .15s;
}
.ql-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ql-btn.ghost {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border);
}
.ql-btn.ghost:hover { color: var(--text); border-color: var(--text-dim); filter: none; }

/* --- odměna CTA pod levely --- */
.quiz-reward-cta {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-card-2); border: 1px dashed var(--border);
  border-radius: 16px; padding: 22px 24px;
}
.quiz-reward-cta.ready {
  border: 1px solid rgba(255,107,26,.5);
  background: linear-gradient(135deg, rgba(255,107,26,.08), rgba(255,69,0,.04));
}
.qcc-icon { font-size: 34px; line-height: 1; }
.qcc-text { flex: 1; }
.qcc-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.qcc-text p { font-size: 14px; color: var(--text-dim); line-height: 1.5; margin: 0; }
.qcc-btn {
  white-space: nowrap; background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px;
  border-radius: 10px; text-decoration: none; transition: filter .15s, transform .15s;
}
.qcc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.qcc-progress { width: 120px; height: 8px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; }
.qcc-progress span { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .3s; }

/* --- běh kvízu --- */
.quiz-runner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
}
.qrun-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.qrun-quit {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-family: inherit; font-size: 13px; padding: 0;
}
.qrun-quit:hover { color: var(--text); }
.qrun-belt {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim); margin-left: auto;
}
.qrun-count { font-size: 13px; font-weight: 700; color: var(--orange-bright); }
.qrun-bar { height: 6px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; margin-bottom: 24px; }
.qrun-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-bright)); transition: width .3s; }

.qrun-question {
  font-size: 21px; font-weight: 700; line-height: 1.4; color: var(--text);
  margin-bottom: 22px;
}
.qrun-options { display: flex; flex-direction: column; gap: 10px; }
.qrun-opt {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 16px; cursor: pointer;
  font-family: inherit; font-size: 16px; color: var(--text);
  transition: border-color .15s, background .15s;
}
.qrun-opt:not(.locked):hover { border-color: var(--text-dim); background: var(--bg-elevated); }
.qo-letter {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--text-dim);
}
.qo-text { line-height: 1.45; padding-top: 3px; }
.qrun-opt.locked { cursor: default; }
.qrun-opt.correct { border-color: #34d399; background: rgba(52,211,153,.1); }
.qrun-opt.correct .qo-letter { background: #34d399; color: #06281c; border-color: #34d399; }
.qrun-opt.wrong { border-color: #ff5e5e; background: rgba(255,94,94,.08); }
.qrun-opt.wrong .qo-letter { background: #ff5e5e; color: #2a0606; border-color: #ff5e5e; }

.qrun-feedback {
  margin-top: 18px; border-radius: 12px; padding: 16px 18px;
  border: 1px solid var(--border); background: var(--bg-card-2);
}
.qrun-feedback.good { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.06); }
.qrun-feedback.bad { border-color: rgba(255,94,94,.4); background: rgba(255,94,94,.05); }
.qfb-head { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.qrun-feedback.good .qfb-head { color: #34d399; }
.qrun-feedback.bad .qfb-head { color: #ff7a7a; }
.qrun-feedback p { font-size: 15px; color: var(--text-dim); line-height: 1.55; margin: 0 0 10px; }
.qfb-link {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--orange-bright);
  text-decoration: none; border-bottom: 1px solid rgba(255,133,51,.4); padding-bottom: 1px;
}
.qfb-link:hover { color: var(--orange); }

.qrun-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.qrun-score { font-size: 14px; color: var(--text-dim); }
.qrun-score strong { color: var(--text); font-size: 16px; }
.qrun-next {
  cursor: pointer; border: none; font-family: inherit; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%); color: #fff;
  padding: 12px 22px; border-radius: 10px; transition: filter .15s, transform .15s;
}
.qrun-next:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* --- výsledek --- */
.quiz-result {
  text-align: center; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 44px 28px;
}
.quiz-result.pass { border-color: rgba(52,211,153,.4); }
.qres-icon { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.qres-score { font-family: 'Bebas Neue', sans-serif; font-size: 64px; line-height: 1; color: var(--text); }
.qres-score span { color: var(--text-mute); font-size: 38px; }
.quiz-result.pass .qres-score { color: #34d399; }
.qres-title { font-size: 26px; font-weight: 800; margin: 8px 0 10px; color: var(--text); }
.qres-msg { font-size: 16px; color: var(--text-dim); line-height: 1.6; max-width: 520px; margin: 0 auto 26px; }
.qres-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   ODMĚNA ZA KVÍZ
   ============================================ */
.reward-locked { text-align: center; padding: 60px 24px; }
.cl-icon { font-size: 56px; margin-bottom: 12px; }
.reward-locked h1 { font-size: 28px; margin-bottom: 12px; }
.reward-locked p { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 480px; margin: 0 auto 24px; }

.reward-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,107,26,.18), transparent 38%),
    linear-gradient(150deg, rgba(255,107,26,.10), var(--bg-card) 46%);
  border: 1px solid rgba(255,107,26,.42);
  border-radius: 22px;
  padding: 46px 42px;
  margin-bottom: 22px;
}
.reward-kicker,
.reward-academy-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.reward-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.reward-hero h1 span {
  background: linear-gradient(180deg, #fff 0%, #ffe4d1 30%, #ff9550 70%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.reward-hero p {
  max-width: 660px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.reward-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reward-primary { font-size: 15px; padding: 13px 22px; }
.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.reward-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
}
.reward-card-icon { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.reward-card h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}
.reward-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.reward-academy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255,107,26,.3);
  border-radius: 16px;
  padding: 24px;
}
.reward-academy h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.reward-academy p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 620px;
}

/* --- responsivita kvízu --- */
@media (max-width: 720px) {
  .quiz-grid { grid-template-columns: 1fr; }
  .quiz-reward-cta { flex-direction: column; text-align: center; }
  .reward-hero { padding: 34px 24px; }
  .reward-grid { grid-template-columns: 1fr; }
  .reward-academy { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   ZAMČENÝ VIDEO PLAYER (upsell do akademie)
   ============================================ */
.video-lock {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin: 36px 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: #000;
  text-decoration: none; color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.video-lock:hover { border-color: var(--border-accent); transform: translateY(-2px); }

/* pozadí — fotka (rozmazaná) nebo fallback gradient */
.vl-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #3a1808 0%, #1a0e06 45%, #0a0a0a 100%);
  background-size: cover; background-position: center;
}
.vl-bg.has-img { filter: blur(3px) brightness(.62); transform: scale(1.06); }
.vl-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(0,0,0,.1), rgba(0,0,0,.72));
}

/* horní lišta */
.vl-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
}
.vl-brand { font-family: 'Bebas Neue', sans-serif; letter-spacing: 3px; font-size: 17px; color: #fff; }
.vl-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #fff;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.22);
  padding: 5px 11px; border-radius: 99px; backdrop-filter: blur(4px);
}

/* střed — play tlačítko se zámkem + CTA */
.vl-center {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.vl-play {
  position: relative; width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 34px rgba(0,0,0,.55);
  transition: transform .2s;
}
.video-lock:hover .vl-play { transform: scale(1.09); }
.vl-play-icon { color: #fff; font-size: 30px; margin-left: 5px; line-height: 1; }
.vl-lock {
  position: absolute; bottom: -5px; right: -5px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #0a0a0a; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.vl-cta {
  font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .3px;
  background: rgba(0,0,0,.4); padding: 7px 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px);
  transition: background .2s;
}
.video-lock:hover .vl-cta { background: rgba(255,107,26,.85); border-color: transparent; }

/* dolní lišta — název videa + délka */
.vl-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}
.vl-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--orange-bright); margin-bottom: 6px; }
.vl-title { font-size: 25px; font-weight: 800; color: #fff; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.vl-dur {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.55); padding: 4px 9px; border-radius: 6px;
}

@media (max-width: 720px) {
  .vl-play { width: 60px; height: 60px; }
  .vl-play-icon { font-size: 24px; }
  .vl-title { font-size: 19px; }
  .vl-brand { font-size: 15px; }
}

/* ============================================
   PLOVOUCÍ TLAČÍTKO „MÁM DOTAZ" → Instagram
   ============================================ */
.kenji-help {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%); color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  transition: transform .15s, filter .15s;
}
.kenji-help:hover { transform: translateY(-2px); filter: brightness(1.08); }
.kenji-help svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 600px) {
  .kenji-help { right: 14px; bottom: 14px; padding: 11px 15px; font-size: 13px; }
}
@media print { .kenji-help { display: none !important; } }

/* ============================================
   VSTUPNÍ GATE (e-mail + Instagram)
   ============================================ */
body.kenji-gated { overflow: hidden; height: 100vh; }
body.kenji-gated .top-header,
body.kenji-gated .layout { filter: blur(4px); pointer-events: none; user-select: none; }
body.kenji-gated .kenji-help { display: none !important; }

.kenji-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  background: rgba(8,8,8,.5); backdrop-filter: blur(1px);
}
.kg-modal {
  width: 100%; max-width: 880px; margin: auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  animation: kgIn .35s cubic-bezier(.4,0,.2,1);
}
@keyframes kgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.kg-intro {
  padding: 42px 38px;
  background: linear-gradient(160deg, rgba(255,107,26,.12) 0%, var(--bg-card) 58%);
  border-right: 1px solid var(--border);
}
.kg-logo {
  width: 150px; height: 25px; margin-bottom: 22px;
  background: url('logo-kenji.png') no-repeat left center; background-size: contain;
  text-indent: -9999px; overflow: hidden; white-space: nowrap;
}
.kg-intro h2 { font-family: 'Bebas Neue', sans-serif; font-size: 34px; line-height: 1.05; letter-spacing: -.5px; margin-bottom: 14px; color: var(--text); }
.kg-intro p { font-size: 14.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }
.kg-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.kg-bullets li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.kg-bullets li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 800; }

.kg-form { padding: 42px 38px; display: flex; flex-direction: column; }
.kg-form-head { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: .5px; color: var(--text); }
.kg-form-sub { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 4px 0 20px; }
.kg-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.kg-input {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 15px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 16px; outline: none; margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.kg-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,26,.14); }
.kg-input::placeholder { color: var(--text-mute); }
.kg-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-bottom: 18px; cursor: pointer; }
.kg-consent input { margin-top: 2px; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.kg-consent a { color: var(--orange-bright); }
.kg-btn {
  width: 100%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px 20px; border-radius: 11px; transition: filter .15s, transform .15s;
}
.kg-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.kg-btn:disabled { opacity: .6; cursor: default; transform: none; }
.kg-error { margin-top: 12px; font-size: 13px; color: #ff7a7a; }

/* ============================================
   GLOBÁLNÍ PATIČKA
   ============================================ */
.site-footer {
  margin-top: 72px;
  padding: 42px 0 0;
  border-top: 1px solid var(--border);
}
.sf-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 46px;
  align-items: start;
}
.sf-logo {
  width: 214px;
  height: 36px;
  background: url('logo-kenji.png') no-repeat left center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 24px;
}
.sf-brand p {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .1px;
  margin-bottom: 24px;
}
.sf-rating {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  color: var(--text);
  position: relative;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,106,26,.16), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 45px rgba(0,0,0,.22);
  overflow: hidden;
}
.sf-rating::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,26,.72), transparent);
}
.sf-rating-body {
  position: relative;
  z-index: 1;
  min-width: 158px;
  text-align: center;
}
.sf-laurel {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 62px;
  border-left: 2px solid rgba(255,255,255,.72);
  border-radius: 100% 0 0 100%;
  transform: rotate(-9deg);
  opacity: .88;
}
.sf-laurel::before,
.sf-laurel::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 13px;
  height: 7px;
  border-radius: 999px 0 999px 0;
  background: rgba(255,255,255,.86);
  transform: rotate(-35deg);
}
.sf-laurel::before { top: 15px; }
.sf-laurel::after { top: 37px; }
.sf-laurel.right {
  border-left: 0;
  border-right: 2px solid rgba(255,255,255,.72);
  border-radius: 0 100% 100% 0;
  transform: rotate(9deg);
}
.sf-laurel.right::before,
.sf-laurel.right::after {
  left: auto;
  right: -4px;
  border-radius: 0 999px 0 999px;
  transform: rotate(35deg);
}
.sf-stars {
  color: #ffc545;
  font-size: 21px;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 22px rgba(255,197,69,.23);
}
.sf-rating-meta {
  display: grid;
  gap: 4px;
}
.sf-rating-score {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}
.sf-rating-count {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  font-weight: 700;
  letter-spacing: .35px;
  text-transform: uppercase;
}
.sf-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.sf-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sf-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 800;
  margin-bottom: 8px;
}
.sf-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition: color .15s;
}
.sf-col a:hover { color: var(--text); }
.sf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-mute);
  font-size: 12px;
}

@media (max-width: 680px) {
  .kg-modal { grid-template-columns: 1fr; max-width: 440px; }
  .kg-intro { border-right: none; border-bottom: 1px solid var(--border); padding: 30px 26px; }
  .kg-intro h2 { font-size: 28px; }
  .kg-form { padding: 28px 26px; }
  body.kenji-gated .top-header, body.kenji-gated .layout { filter: blur(5px); }
}

@media (max-width: 860px) {
  .sf-main { grid-template-columns: 1fr; gap: 34px; }
  .sf-brand p { font-size: 13px; }
}

@media (max-width: 560px) {
  .site-footer { margin-top: 56px; padding-top: 34px; }
  .sf-logo { width: 176px; height: 30px; }
  .sf-brand p { font-size: 12px; line-height: 1.6; }
  .sf-links { grid-template-columns: 1fr; gap: 24px; }
  .sf-rating { gap: 11px; padding: 16px 14px; }
  .sf-rating-body { min-width: 136px; }
  .sf-laurel { width: 20px; height: 54px; }
  .sf-stars { font-size: 18px; }
  .sf-rating-score { font-size: 15px; }
  .sf-rating-count { font-size: 11px; }
  .sf-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   UVÍTACÍ PRŮVODCE
   ============================================ */
/* click-catcher (blokuje pozadí během průvodce) */
.kt-catch { position: fixed; inset: 0; z-index: 1100; background: transparent; }
/* zvýrazňovací kroužek kolem prvku — dimuje zbytek přes box-shadow */
.kt-ring {
  position: fixed; z-index: 1101; pointer-events: none; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(8,8,8,.74), 0 0 0 2px var(--orange) inset;
  outline: 2px solid var(--orange); outline-offset: 0;
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
  animation: ktPulse 1.6s ease-in-out infinite;
}
@keyframes ktPulse { 0%,100% { outline-color: rgba(255,107,26,.9); } 50% { outline-color: rgba(255,107,26,.35); } }
/* bublina s textem + šipka */
.kt-tip {
  position: fixed; z-index: 1102; box-sizing: border-box;
  background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: 14px;
  padding: 16px 18px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.6);
  animation: kgIn .25s ease;
}
.kt-tip::before {
  content: ''; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px;
  background: var(--bg-card); border: 1px solid var(--border-accent);
  transform: translateX(-50%) rotate(45deg);
}
.kt-tip.arrow-up::before { top: -8px; border-right: none; border-bottom: none; }
.kt-tip.arrow-down::before { bottom: -8px; border-left: none; border-top: none; }
.kt-skip {
  position: absolute; top: 12px; right: 14px; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-mute);
}
.kt-skip:hover { color: var(--text-dim); }
.kt-text { font-size: 15px; line-height: 1.55; color: var(--text); margin: 6px 28px 16px 0; }
.kt-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.kt-dots { display: flex; gap: 6px; }
.kt-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .2s, width .2s; }
.kt-dots span.on { background: var(--orange); width: 18px; border-radius: 4px; }
.kt-btns { display: flex; align-items: center; gap: 6px; }
.kt-back { background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-dim); padding: 8px 8px; }
.kt-back:hover { color: var(--text); }
.kt-next {
  cursor: pointer; border: none; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%); color: #fff;
  padding: 10px 16px; border-radius: 9px; transition: filter .15s;
}
.kt-next:hover { filter: brightness(1.08); }

/* ============================================
   PROMO BANNER — KENJI PRESETY (ostrá fotka, bez ceny)
   ============================================ */
.preset-promo {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin: 36px 0; border-radius: 16px; overflow: hidden;
  background-size: cover; background-position: center;
  border: 1px solid var(--border); text-decoration: none; color: #fff;
  transition: transform .2s, border-color .2s;
}
.preset-promo:hover { transform: translateY(-2px); border-color: var(--border-accent); }
.pp-overlay {
  position: absolute; inset: 0;
  /* oranžový gradient zleva (značka) přes tmavou vrstvu pro čitelnost textu */
  background:
    linear-gradient(90deg, rgba(255,107,26,.55) 0%, rgba(255,107,26,.18) 28%, rgba(255,107,26,0) 55%),
    linear-gradient(90deg, rgba(10,7,4,.92) 0%, rgba(10,7,4,.64) 34%, rgba(10,7,4,.22) 62%, rgba(10,7,4,0) 85%);
}
.pp-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: 10px; padding: 0 8% 0 7%; max-width: 66%;
}
.pp-kicker { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 3px; color: #fff; }
.pp-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1; letter-spacing: 1px;
  color: #fff; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.pp-text { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); margin: 0; max-width: 440px; }
.pp-bonus { font-size: 13px; font-weight: 600; color: #ffd9bf; }
.pp-cta {
  align-self: flex-start; margin-top: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%); color: #fff;
  font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: filter .15s;
}
.preset-promo:hover .pp-cta { filter: brightness(1.08); }

@media (max-width: 720px) {
  .preset-promo { aspect-ratio: auto; min-height: 380px; display: flex; }
  .pp-overlay {
    background:
      radial-gradient(150% 120% at 0% 100%, rgba(255,107,26,.5) 0%, rgba(255,107,26,.14) 36%, rgba(255,107,26,0) 62%),
      linear-gradient(to top, rgba(10,7,4,.95) 0%, rgba(10,7,4,.6) 50%, rgba(10,7,4,.2) 100%);
  }
  .pp-content {
    position: relative; inset: auto; max-width: 100%;
    justify-content: flex-end; padding: 24px 22px;
  }
  .pp-title { font-size: 31px; }
}

/* ============================================
   INTRO OD KENJIHO (homepage)
   ============================================ */
.kenji-intro {
  display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center;
  background: linear-gradient(150deg, rgba(255,107,26,.09) 0%, var(--bg-card) 55%);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; margin: 8px 0 56px;
}
.ki-photo {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: 16px; display: block; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.ki-text h2 {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.02; letter-spacing: -.5px; color: var(--text); margin-bottom: 16px;
}
.ki-text p { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.ki-text p strong { color: var(--text); }
.ki-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0 22px; }
.ki-num { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--orange); display: block; line-height: 1; letter-spacing: .5px; }
.ki-lbl { font-size: 12px; color: var(--text-mute); }
.ki-cta {
  display: inline-block; background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%);
  color: #fff; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 11px;
  text-decoration: none; transition: filter .15s, transform .15s;
}
.ki-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 760px) {
  .kenji-intro { display: block; padding: 24px; }
  .kenji-intro::after { content: ''; display: block; clear: both; }
  .ki-photo {
    float: left; width: 124px; aspect-ratio: 3 / 4; margin: 2px 18px 12px 0;
    box-shadow: 0 10px 26px rgba(0,0,0,.45);
  }
  .ki-text h2 { font-size: 30px; margin-bottom: 12px; }
  .ki-text p { font-size: 15px; }
}

/* ============================================
   TLAČÍTKO „PŘIDAT NA PLOCHU" + MODAL NÁVODU
   ============================================ */
.auth-pwa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 15px; line-height: 1; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.auth-pwa:hover { border-color: var(--orange); background: rgba(255,107,26,.1); }

.kenji-a2hs {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8,8,8,.74); backdrop-filter: blur(3px);
}
.a2-card {
  position: relative; width: 100%; max-width: 440px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px 28px; box-shadow: 0 30px 90px rgba(0,0,0,.6);
  animation: kgIn .3s cubic-bezier(.4,0,.2,1);
}
.a2-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--text-mute); font-size: 17px; cursor: pointer; line-height: 1;
}
.a2-close:hover { color: var(--text); }
.a2-emoji { font-size: 42px; line-height: 1; }
.a2-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .3px; color: var(--text); margin: 8px 0 8px; }
.a2-sub { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin: 0 auto 18px; max-width: 360px; }
.a2-tabs {
  display: inline-flex; gap: 6px; margin-bottom: 18px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 99px; padding: 4px;
}
.a2-tab {
  border: none; background: none; color: var(--text-dim); cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  padding: 7px 18px; border-radius: 99px; transition: background .15s, color .15s;
}
.a2-tab.on { background: linear-gradient(135deg, var(--orange) 0%, #ff4500 100%); color: #fff; }
.a2-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.a2-step {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.a2-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.a2-ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 18px;
}
.a2-ic svg { width: 18px; height: 18px; }
.a2-txt { font-size: 13.5px; color: var(--text-dim); line-height: 1.45; }
.a2-txt strong { color: var(--text); }

/* ============================================
   ÚČET V HLAVIČCE (rozklikávací dropdown)
   ============================================ */
.auth-acct { position: relative; }
.acct-trigger {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 99px;
  padding: 6px 11px; color: var(--text); font-family: inherit;
  transition: border-color .15s, background .15s;
}
.acct-trigger:hover { border-color: var(--text-dim); }
.acct-ico { width: 19px; height: 19px; }
.acct-caret { font-size: 10px; color: var(--text-dim); transition: transform .2s; }
.acct-trigger[aria-expanded="true"] .acct-caret { transform: rotate(180deg); }

.acct-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; z-index: 400;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 8px;
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.acct-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.acct-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct-name { font-weight: 700; color: var(--text); font-size: 14px; word-break: break-all; line-height: 1.3; }
.acct-tier { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.acct-sub { font-size: 12px; color: var(--text-dim); }
.acct-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14px;
  color: var(--text); padding: 11px 12px; border-radius: 9px; transition: background .12s;
}
.acct-item > span { width: 18px; text-align: center; flex-shrink: 0; }
.acct-item:hover { background: var(--bg-elevated); }
.acct-item.danger { color: #ff6b6b; }
.acct-item.danger:hover { background: rgba(255,94,94,.1); }

/* ============================================
   PRICE / TIER TABLE (porovnání AI nástrojů)
   ============================================ */
.price-table-wrap {
  margin: 28px 0 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
.price-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.5;
}
.price-table thead th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: rgba(255,107,26,.03); }
.price-table .pt-tool {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.price-table .pt-tool small {
  display: block;
  font-weight: 600;
  color: var(--text-mute);
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-top: 3px;
}
.price-table td { color: var(--text-dim); }
.price-table td strong { color: var(--text); }
.pt-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pt-pill.free   { background: rgba(80,200,120,.12);  color: #50c878; }
.pt-pill.paid   { background: rgba(255,107,26,.12);  color: var(--orange-bright); }
.pt-pill.mixed  { background: rgba(42,111,255,.12);  color: #6f9bff; }
.price-table .pt-verdict { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  .price-table th, .price-table td { padding: 13px 14px; }
  .price-table-wrap::after {
    content: "← táhni pro celou tabulku →";
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-mute);
    padding: 8px;
    border-top: 1px solid var(--border-light);
  }
}

/* ============================================
   PROMPT ŠABLONY (ke zkopírování)
   ============================================ */
.prompt-cards {
  margin: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.prompt-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.prompt-card-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,107,26,.12);
  color: var(--orange-bright);
  white-space: nowrap;
  flex-shrink: 0;
}
.prompt-card-title {
  font-weight: 800;
  color: var(--text);
  font-size: 14.5px;
  flex: 1;
  min-width: 0;
}
.prompt-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 9px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.prompt-copy:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.prompt-copy:active { transform: scale(.96); }
.prompt-copy.copied { background: #50c878; border-color: #50c878; color: #06210f; }
.prompt-text {
  margin: 0;
  padding: 18px 18px 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.prompt-text b { color: var(--text); font-weight: 700; }
.prompt-hint {
  font-size: 13.5px;
  color: var(--text-mute);
  margin: -8px 0 22px;
}
@media (max-width: 560px) {
  .prompt-card-head { flex-wrap: wrap; gap: 8px; }
  .prompt-card-title { order: 3; flex-basis: 100%; }
}

/* ============================================
   ŠABLONY — speciální kategorie (page link) + zamčená stránka
   ============================================ */
/* Sidebar: kategorie, která odkazuje na vlastní stránku */
.cat-link { text-decoration: none; }
.cat-link .cat-lock { font-size: 12px; flex-shrink: 0; opacity: .85; }
.cat-link:hover .cat-lock { opacity: 1; }
.sidebar-cat-page .cat-toggle.active { background: var(--bg-card); color: var(--text); }

/* Homepage karta „připravujeme" */
.category-card-soon .count { color: var(--orange); }

/* Badge „Připravujeme" na zamčené stránce */
.paywall-soon {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-bright);
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
