/* =========================================================================
   AI E-Bezpečí – styly webu
   Vzdušný, světlý (i tmavý) design: měkké barevné záře, skleněné karty,
   jemné poletující částice. Písma Space Grotesk (nadpisy) a Inter (text).
   ========================================================================= */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokeny ---------- */
:root {
  --bg: #f5f7ff;
  --text: #101a3f;
  --body: #2f3859;
  --muted: #555e82;
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #ffffff;
  --glass: rgba(255, 255, 255, .82);
  --chip: #eceffb;
  --border: rgba(16, 26, 63, .09);
  --nav: rgba(255, 255, 255, .74);
  --btn: #101a3f;
  --btn-text: #ffffff;
  --shadow: rgba(16, 26, 63, .07);
  --shadow-strong: rgba(16, 26, 63, .17);
  --particle-op: .85;
  --night: #070b24;

  --cyan: #38d6ff;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --sun: #ff9a3c;
  --teal: #14c4b0;
  --blue: #3b82f6;

  --acc-cyan: #0a7aa8;
  --acc-violet: #6d3fe0;
  --acc-pink: #c2216f;
  --acc-sun: #b85210;
  --acc-teal: #0a8075;

  --glow-cyan: rgba(56, 214, 255, .26);
  --glow-violet: rgba(139, 92, 246, .18);
  --glow-pink: rgba(236, 72, 153, .13);
  --glow-sun: rgba(255, 154, 60, .17);
  --glow-teal: rgba(20, 196, 176, .17);

  /* Barevné přechody pro text a ozdoby: na světlém pozadí sytější (čitelné), na tmavém zářivé. */
  --g-main: linear-gradient(135deg, #0a78b4, #7037e6);
  --g-violet: linear-gradient(135deg, #7037e6, #c2237a);
  --g-warm: linear-gradient(135deg, #c2237a, #c0420f);
  --g-sun: linear-gradient(135deg, #c0420f, #c2237a);
  --g-mint: linear-gradient(135deg, #0b7a70, #0a73a0);
  --g-text: linear-gradient(120deg, #0a78b4, #7037e6 55%, #c2237a);
  /* Plné barevné plochy s bílým textem: vždy dost tmavé (kontrast min. 4,5 : 1). */
  --f-main: linear-gradient(135deg, #0a6fa8, #6d2fe0);
  --f-violet: linear-gradient(135deg, #6d2fe0, #b81e72);
  --f-warm: linear-gradient(135deg, #b81e72, #b23c0b);
  --f-sun: linear-gradient(135deg, #b23c0b, #b81e72);
  --f-mint: linear-gradient(135deg, #0b6e66, #0a6896);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a1030; --text: #f2f4ff; --body: #d0d6f2; --muted: #a3abd4;
  --surface: rgba(255, 255, 255, .06); --surface-solid: #141c47; --glass: rgba(18, 26, 66, .8);
  --chip: rgba(255, 255, 255, .09); --border: rgba(255, 255, 255, .11); --nav: rgba(10, 16, 48, .74);
  --btn: #ffffff; --btn-text: #0a1030; --shadow: rgba(0, 0, 0, .35); --shadow-strong: rgba(0, 0, 0, .5); --particle-op: 1;
  --acc-cyan: #7fe3ff; --acc-violet: #c0abff; --acc-pink: #ff8cc0; --acc-sun: #ffb46b; --acc-teal: #5fe8d6;
  --glow-cyan: rgba(56, 214, 255, .2); --glow-violet: rgba(139, 92, 246, .26); --glow-pink: rgba(236, 72, 153, .18);
  --glow-sun: rgba(255, 154, 60, .15); --glow-teal: rgba(20, 196, 176, .17);
  --g-main: linear-gradient(135deg, #38d6ff, #8b5cf6); --g-violet: linear-gradient(135deg, #a78bfa, #f472b6); --g-warm: linear-gradient(135deg, #f472b6, #ffa95c); --g-sun: linear-gradient(135deg, #ffa95c, #f472b6); --g-mint: linear-gradient(135deg, #2ee6cf, #38d6ff); --g-text: linear-gradient(120deg, #38d6ff, #a78bfa 55%, #f472b6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1030; --text: #f2f4ff; --body: #d0d6f2; --muted: #a3abd4;
    --surface: rgba(255, 255, 255, .06); --surface-solid: #141c47; --glass: rgba(18, 26, 66, .8);
    --chip: rgba(255, 255, 255, .09); --border: rgba(255, 255, 255, .11); --nav: rgba(10, 16, 48, .74);
    --btn: #ffffff; --btn-text: #0a1030; --shadow: rgba(0, 0, 0, .35); --shadow-strong: rgba(0, 0, 0, .5); --particle-op: 1;
    --acc-cyan: #7fe3ff; --acc-violet: #c0abff; --acc-pink: #ff8cc0; --acc-sun: #ffb46b; --acc-teal: #5fe8d6;
    --glow-cyan: rgba(56, 214, 255, .2); --glow-violet: rgba(139, 92, 246, .26); --glow-pink: rgba(236, 72, 153, .18);
    --glow-sun: rgba(255, 154, 60, .15); --glow-teal: rgba(20, 196, 176, .17);
    --g-main: linear-gradient(135deg, #38d6ff, #8b5cf6); --g-violet: linear-gradient(135deg, #a78bfa, #f472b6); --g-warm: linear-gradient(135deg, #f472b6, #ffa95c); --g-sun: linear-gradient(135deg, #ffa95c, #f472b6); --g-mint: linear-gradient(135deg, #2ee6cf, #38d6ff); --g-text: linear-gradient(120deg, #38d6ff, #a78bfa 55%, #f472b6);
    color-scheme: dark;
  }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--acc-violet); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--text); margin: 0; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
b, strong { font-weight: 650; color: var(--text); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--btn); color: var(--btn-text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.gradient-text { background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: .875rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); align-items: center; }

/* ---------- Animace ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
@keyframes blink { 50% { opacity: 0; } }
.floaty { animation: floaty 6s ease-in-out infinite; }
/* Jemné částice na pozadí (canvas, kreslí main.js) */
.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--particle-op, .9); }

/* Postupné zobrazování obsahu při posouvání stránky */
.js .reveal { opacity: 0; transform: translateY(32px) scale(.985); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .js .reveal { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Záře v pozadí ---------- */
.glow { position: absolute; border-radius: 50%; pointer-events: none; width: 760px; height: 760px; max-width: 120vw; max-height: 120vw; }
.glow-cyan { background: radial-gradient(circle, var(--glow-cyan), transparent 65%); }
.glow-violet { background: radial-gradient(circle, var(--glow-violet), transparent 65%); }
.glow-pink { background: radial-gradient(circle, var(--glow-pink), transparent 65%); }
.glow-sun { background: radial-gradient(circle, var(--glow-sun), transparent 65%); }
.glow-teal { background: radial-gradient(circle, var(--glow-teal), transparent 65%); }
.glow.tr { right: -220px; top: -80px; } .glow.tl { left: -260px; top: 40px; } .glow.br { right: -240px; bottom: -200px; } .glow.bl { left: -260px; bottom: -220px; }

/* ---------- Tlačítka a čipy ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1.2 var(--font-body); padding: 15px 26px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--f-main); color: #fff; box-shadow: 0 12px 30px rgba(139, 92, 246, .35); }
.btn-dark { background: var(--btn); color: var(--btn-text); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-white { background: #fff; color: #101a3f; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--chip); color: var(--acc-cyan); font-size: .875rem; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-main); }
.hero-sub { margin-top: -6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.chip { font: 500 .95rem/1.25 var(--font-body); padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--border); cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--f-main); color: #fff; border-color: transparent; }
.chip .count { opacity: .7; font-size: .85em; margin-left: 2px; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px var(--gutter) 0; }
.header-bar { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 14px 20px; padding: 9px 10px 9px 16px; border-radius: 999px; background: var(--nav); border: 1px solid var(--border); box-shadow: 0 8px 32px var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; border-radius: 11px; background: var(--f-main); color: #fff; align-items: center; justify-content: center; font-size: .9rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--chip); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: #fff; background: var(--f-main); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.header-cta { white-space: nowrap; }
@media (max-width: 1240px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 78px; flex-direction: column; align-items: stretch; padding: 14px; border-radius: 24px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: 0 24px 60px var(--shadow-strong); max-height: calc(100vh - 100px); overflow-y: auto; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { font-size: 1.05rem; padding: 12px 14px; }
  .header-actions { margin-left: auto; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------- Sekce ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 104px) 0; overflow: hidden; }
.section-head { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; max-width: 880px; margin: 0 auto; }
.section-head p, .lead { font-size: clamp(1.05rem, 1.6vw, 1.15rem); color: var(--body); }
.section-head p + p { margin-top: 0; }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose p { color: var(--body); font-size: 1.1rem; }

.media { width: 100%; max-width: 1000px; border-radius: clamp(24px, 3vw, 36px); overflow: hidden; box-shadow: 0 30px 80px var(--shadow-strong); border: 1px solid var(--border); background: #101a3f; }
.media img, .media video { width: 100%; height: auto; }
.media-white { background: #fff; padding: 20px; }
.media-white img { border-radius: 18px; }
.cutout { position: relative; width: 100%; max-width: 880px; }
.cutout::before { content: ""; position: absolute; left: 10%; right: 10%; top: 20%; bottom: 0; border-radius: 50%; background: radial-gradient(circle, var(--cutout-glow, var(--glow-cyan)), transparent 70%); }
.cutout img { position: relative; width: 100%; filter: drop-shadow(0 30px 40px rgba(16, 26, 63, .2)); }

.grid { display: grid; gap: 18px; width: 100%; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.card { padding: clamp(22px, 2.6vw, 30px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 32px var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.card p, .card span { color: var(--body); }
.card-grad { color: #fff; border: 0; }
.card-grad p, .card-grad span, .card-grad b { color: #fff; }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; }
.card-center { text-align: center; align-items: center; }
.bar { height: 6px; width: 56px; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .82rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--text); }
.dot-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.dot-item::before { content: ""; flex-shrink: 0; margin-top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--g-sun); }
.banner { width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding: clamp(24px, 3vw, 36px); border-radius: 28px; color: #fff; }
.banner p { color: #fff; max-width: 70ch; }
.banner b, .banner h2 { color: #fff; }
.banner p a { color: #fff; text-decoration-thickness: 2px; }

/* ---------- Úvod ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; max-width: 960px; margin: 0 auto; }
.hero-copy .lead { max-width: 62ch; }
.hero-stage { position: relative; margin-top: clamp(36px, 5vw, 56px); padding-bottom: 150px; }
.slideshow { position: relative; width: 100%; aspect-ratio: 1672 / 941; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: #101a3f; box-shadow: 0 40px 100px var(--shadow-strong); border: 1px solid var(--border); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slideshow img.is-active { opacity: 1; }
.slide-dots { position: absolute; right: 20px; top: 20px; display: flex; gap: 8px; padding: 9px 11px; border-radius: 999px; background: rgba(10, 16, 48, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.slide-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s ease; }
.slide-dots button[aria-current="true"] { width: 28px; background: #fff; }

.predictor { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(620px, 94%); padding: 24px; border-radius: 28px; background: var(--glass); border: 1px solid var(--border); box-shadow: 0 24px 60px var(--shadow-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 14px; }
.predictor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.predictor-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.predictor-sentence { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.28; letter-spacing: -.015em; min-height: 2.5em; }
.predictor-sentence .added { background-image: var(--f-main); background-repeat: no-repeat; background-size: 100% 100%; color: #fff; padding: 0 .18em; border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.predictor-sentence .added.is-new { animation: mark .55s ease-out both; }
.caret { display: inline-block; width: 3px; height: .95em; margin-left: 4px; vertical-align: -.1em; background: var(--violet); animation: blink 1.1s steps(1) infinite; }
.predictor-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.predictor-bars li { display: grid; grid-template-columns: minmax(84px, 130px) 1fr 52px; gap: 12px; align-items: center; font-size: .9rem; }
.bar-word { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--g-main); transition: width .4s ease; }
.predictor-bars li.is-picked .bar-word { color: var(--acc-violet); }
.bar-pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.predictor-end { color: var(--muted); font-style: italic; }
.predictor-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.predictor-temp { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); flex: 1 1 200px; }
.predictor-temp input { flex: 1; accent-color: var(--violet); }
.predictor-note { font-size: .82rem; color: var(--muted); }
.predictor-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.predictor-prompts .chip { font-size: .85rem; padding: 6px 12px; }
@media (max-width: 720px) {
  .hero-stage { padding-bottom: 0; }
  .predictor { position: relative; left: auto; transform: none; width: auto; margin: -40px 12px 0; }
}

/* ---------- Galerie schopností ---------- */
.abilities { width: 100%; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.ability-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ability-stage { position: relative; width: 100%; aspect-ratio: 1672 / 941; border-radius: clamp(24px, 3vw, 36px); overflow: hidden; background: #101a3f; box-shadow: 0 30px 80px var(--shadow-strong); }
.ability-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.ability-stage img.is-active { opacity: 1; }
.ability-card { width: min(720px, 100%); margin: -90px auto 0; position: relative; padding: 22px 26px; border-radius: 24px; background: rgba(10, 16, 48, .84); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .14); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.ability-card b { color: #fff; font-family: var(--font-display); font-size: 1.4rem; }
.ability-card span { color: rgba(255, 255, 255, .92); }
.ability-card .tools { color: #7fe3ff; font-size: .9rem; font-weight: 600; }
.ability-card .tools a { color: #7fe3ff; text-decoration: underline; text-decoration-color: rgba(127, 227, 255, .45); }
.ability-card .tools a:hover { color: #fff; text-decoration-color: #fff; }
.tag-link { text-decoration: none; color: var(--text); transition: background .2s, color .2s; }
.tag-link:hover { background: var(--f-main); color: #fff; }

/* ---------- Video ---------- */
.video { display: flex; flex-direction: column; gap: 10px; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--g-main); box-shadow: 0 12px 30px var(--shadow); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.video-play::after { content: ""; position: absolute; left: 24px; top: 19px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #101a3f; }
.video-thumb:hover .video-play { transform: scale(1.08); }
.video-title { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.video-big { width: 100%; max-width: 860px; }
.video-big .video-thumb { border-radius: 28px; }

/* ---------- Časová osa ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.legend i, .tl-meta i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.timeline { position: relative; width: 100%; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 95px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink), var(--sun)); }
.tl-year { position: relative; display: grid; grid-template-columns: 80px 32px minmax(0, 1fr); padding: 18px 0; }
.tl-year > h3 { font-size: 1.9rem; letter-spacing: -.03em; text-align: right; line-height: 1.2; }
.tl-year > .tl-dot { justify-self: center; margin-top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 4px solid var(--violet); }
.tl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; padding-left: 12px; list-style: none; margin: 0; }
.tl-item { padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 20px var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.tl-item p { font-size: .95rem; color: var(--body); line-height: 1.55; }
.tl-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.tl-item.is-law { background: #101a3f; border-color: transparent; }
.tl-item.is-law p, .tl-item.is-law .tl-meta { color: #fff; }
:root[data-theme="dark"] .tl-item.is-law { background: #24306e; }
.tl-item.is-law a { color: #9fe8ff; }
.tl-item a { font-weight: 600; }
.tl-item.is-abuse { background: #fff1f3; border-color: rgba(225, 29, 72, .35); box-shadow: 0 6px 22px rgba(225, 29, 72, .12); }
.tl-item.is-abuse .tl-meta { color: #b3123b; }
.tl-item.is-abuse p { color: #4a1020; }
.tl-item.is-abuse a { color: #b3123b; }
:root[data-theme="dark"] .tl-item.is-abuse { background: rgba(225, 29, 72, .16); border-color: rgba(251, 113, 133, .4); }
:root[data-theme="dark"] .tl-item.is-abuse .tl-meta, :root[data-theme="dark"] .tl-item.is-abuse a { color: #fda4af; }
:root[data-theme="dark"] .tl-item.is-abuse p { color: #ffe4e6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tl-item.is-abuse { background: rgba(225, 29, 72, .16); border-color: rgba(251, 113, 133, .4); }
  :root:not([data-theme="light"]) .tl-item.is-abuse .tl-meta, :root:not([data-theme="light"]) .tl-item.is-abuse a { color: #fda4af; }
  :root:not([data-theme="light"]) .tl-item.is-abuse p { color: #ffe4e6; }
}
/* Rozbalovací část „Před rokem 2022“ */
.tl-before { width: 100%; }
.tl-before > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; width: max-content; max-width: 100%; margin: 0 auto; padding: 12px 26px; border-radius: 999px; background: var(--surface); border: 1px dashed var(--acc-violet); color: var(--text); text-align: center; transition: background .2s; }
.tl-before > summary::-webkit-details-marker { display: none; }
.tl-before > summary span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.tl-before > summary span::before { content: "▸ "; display: inline-block; transition: transform .2s; color: var(--acc-violet); }
.tl-before[open] > summary span::before { transform: rotate(90deg); }
.tl-before > summary small { color: var(--muted); font-size: .85rem; }
.tl-before > summary:hover { background: var(--chip); }
.timeline-before { margin-top: 18px; }
.timeline-before::before { background: linear-gradient(180deg, var(--muted), var(--violet)); opacity: .6; }
.timeline-before .tl-year { padding: 10px 0; }
.timeline-before .tl-year > h3 { font-size: 1.5rem; }
.timeline-before .tl-year > .tl-dot { border-color: var(--muted); }
.timeline-before .tl-items { grid-template-columns: minmax(0, 720px); }
@media (max-width: 640px) {
  .timeline::before { left: 10px; }
  .tl-year { grid-template-columns: 1fr; gap: 10px; padding-left: 30px; }
  .tl-year > h3 { text-align: left; }
  .tl-year > .tl-dot { position: absolute; left: 2px; top: 20px; margin: 0; }
  .tl-items { padding-left: 0; }
}

.compare { width: 100%; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.compare figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.compare .media { position: relative; max-width: none; }
.compare .badge { position: absolute; left: 18px; top: 18px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #fff; padding: 6px 14px; border-radius: 999px; }
.compare figcaption { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }
.compare figcaption p { color: var(--body); }

/* ---------- Tmavé sekce (rizika) ---------- */
.section-night { background: var(--night); color: #fff; --text: #ffffff; --body: rgba(255, 255, 255, .84); --muted: rgba(255, 255, 255, .7); --surface: rgba(255, 255, 255, .06); --border: rgba(255, 255, 255, .13); --chip: rgba(255, 255, 255, .1); --particle-op: 1; }
.section-night a { color: #7fe3ff; }
.section-night, .page-hero-night, .site-footer, .help-box { --g-main: linear-gradient(135deg, #38d6ff, #8b5cf6); --g-violet: linear-gradient(135deg, #a78bfa, #f472b6); --g-warm: linear-gradient(135deg, #f472b6, #ffa95c); --g-sun: linear-gradient(135deg, #ffa95c, #f472b6); --g-mint: linear-gradient(135deg, #2ee6cf, #38d6ff); --g-text: linear-gradient(120deg, #38d6ff, #a78bfa 55%, #f472b6); }
.stat { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; background: var(--g-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.night-item { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-weight: 500; }
.night-item::before { content: ""; flex-shrink: 0; margin-top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--g-warm); }

/* ---------- Chat ---------- */
.chat { width: 100%; max-width: 760px; position: relative; border-radius: 28px; background: var(--glass); border: 1px solid var(--border); box-shadow: 0 24px 60px var(--shadow-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; flex-direction: column; overflow: hidden; }
.chat-overlap { margin-top: -60px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.chat-head .live, .ai-modal-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.chat-reset { margin-left: auto; font: inherit; font-size: .875rem; background: none; border: 0; color: var(--acc-violet); text-decoration: underline; cursor: pointer; }
.chat-log { height: clamp(260px, 42vh, 420px); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: .98rem; line-height: 1.55; overflow-wrap: anywhere; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: .3em 0 .6em; padding-left: 1.2em; }
.msg-user { align-self: flex-end; background: var(--btn); color: var(--btn-text); border-bottom-right-radius: 6px; }
.msg-user b { color: inherit; }
.msg-bot { align-self: flex-start; background: var(--chip); border-bottom-left-radius: 6px; }
.msg-error { align-self: stretch; max-width: none; border: 1.5px dashed var(--pink); color: var(--acc-pink); }
.msg-typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg-typing span:nth-child(2) { animation-delay: .2s; } .msg-typing span:nth-child(3) { animation-delay: .4s; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }
.chat-suggest[hidden] { display: none; }
.chat-suggest .chip { font-size: .85rem; padding: 7px 12px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface-solid); border: 1px solid var(--border); border-radius: 20px; padding: 11px 16px; min-height: 48px; max-height: 9em; }
.chat-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--glow-violet); }
.chat-off { padding: 28px; text-align: center; }

/* ---------- Výzkum, slovníček ---------- */
.study-meta { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.study-year { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; }
.study-sample { font-size: .88rem; font-weight: 600; color: var(--muted); }
.study-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; font-size: .95rem; }
.term { display: flex; align-items: center; gap: 10px; }
.term i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.term b { font-family: var(--font-display); font-size: 1.2rem; }

/* ---------- Katalog nástrojů ---------- */
.tool-filters { width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.tool-filters[hidden] { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.search { width: min(560px, 100%); }
.search input { width: 100%; font: inherit; color: var(--text); padding: 13px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid); }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--glow-violet); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--body); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--violet); }
.filter-status { min-height: 1.4em; font-size: .9rem; color: var(--muted); margin: 0; }
.tool-group { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.tool-group[hidden] { display: none; }
.tool-group-title { font-size: 1.3rem; color: var(--acc-violet); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tool { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 22px var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.tool[hidden] { display: none; }
.tool-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.tool-name:hover { text-decoration: underline; }
.tool-desc { font-size: .95rem; color: var(--body); }
.tool-warn { font-size: .88rem; color: var(--acc-pink); font-weight: 500; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag-zdarma { background: rgba(20, 196, 176, .14); color: var(--acc-teal); }
.tag-cast { background: rgba(56, 214, 255, .14); color: var(--acc-cyan); }
.tag-placene { background: var(--chip); color: var(--muted); }
.tag-age { background: var(--btn); color: var(--btn-text); }
.tag-new { background: var(--f-warm); color: #fff; font-weight: 700; }
.table-scroll { width: 100%; overflow-x: auto; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.age-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.age-table th, .age-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--body); }
.age-table thead th { font-size: .82rem; color: var(--muted); }
.age-table tbody th { font-family: var(--font-display); color: var(--text); white-space: nowrap; }
.age-firm { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); }
.age-limit { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--acc-violet) !important; white-space: nowrap; }
@media (max-width: 680px) {
  .table-scroll { border: 0; background: none; overflow: visible; }
  .age-table { min-width: 0; }
  .age-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .age-table, .age-table tbody, .age-table tr, .age-table th, .age-table td { display: block; }
  .age-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px; margin-bottom: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
  .age-table th, .age-table td { padding: 0; border: 0; }
  .age-table td:nth-child(3), .age-table td:nth-child(4) { grid-column: 1 / -1; }
}

/* ---------- Rizika (podstránka) ---------- */
.page-hero { position: relative; padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 7vw, 80px); overflow: hidden; }
.page-hero-night { background: var(--night); color: #fff; --text: #ffffff; --body: rgba(255, 255, 255, .86); --muted: rgba(255, 255, 255, .72); --surface: rgba(255, 255, 255, .07); --border: rgba(255, 255, 255, .14); --chip: rgba(255, 255, 255, .1); --particle-op: 1; }
.page-hero-night a { color: #7fe3ff; }
.page-hero-night .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero-night::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 85% 10%, rgba(236, 72, 153, .22), transparent 70%), radial-gradient(50% 40% at 10% 30%, rgba(139, 92, 246, .22), transparent 70%); }
.page-hero-night > .wrap, .page-hero-night > .particles { z-index: 1; }
.page-hero-night > .wrap { position: relative; }
.chapter-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chapter-nav a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .15); }
.chapter-nav a:hover { background: rgba(255, 255, 255, .18); }
.chapter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(28px, 4vw, 48px); align-items: center; padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--border); }
.chapter:nth-of-type(even) > .chapter-media { order: -1; }
@media (max-width: 960px) { .chapter:nth-of-type(even) > .chapter-media { order: 0; } }
.chapter-copy { display: flex; flex-direction: column; gap: 16px; }
.chapter-copy p { color: var(--body); }
.chapter-num { display: flex; align-items: center; gap: 12px; }
.chapter-num span { font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--f-warm); width: 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.new-badge { font-size: .8rem; font-weight: 700; color: var(--acc-violet); background: var(--chip); padding: 4px 10px; border-radius: 999px; }
.chapter h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.chapter-media { display: flex; flex-direction: column; gap: 14px; }
.chapter-media .media { max-width: none; }
.stat-box { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.stat-box .stat { font-size: 2.4rem; white-space: nowrap; }
.events { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.events h3 { font-size: 1.05rem; }
.event { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; }
.event time { font-size: .8rem; font-weight: 700; color: #fff; background: var(--f-warm); padding: 4px 8px; border-radius: 8px; text-align: center; }
.event p { font-size: .95rem; line-height: 1.55; }
.defend { padding: 18px 20px; border-radius: 20px; background: rgba(20, 196, 176, .09); border: 1px solid rgba(20, 196, 176, .26); }
.defend h3 { font-size: 1.05rem; color: var(--acc-teal); margin-bottom: 6px; }
.defend ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--body); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery a { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.gallery img { width: 100%; height: 120px; object-fit: cover; }
.gallery .fake { position: absolute; left: 8px; top: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: #e11d48; padding: 2px 7px; border-radius: 6px; }
.media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-list figure { margin: 0; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.media-list video { border-radius: 12px; aspect-ratio: 16 / 9; width: 100%; background: #000; object-fit: cover; }
.media-list audio { width: 100%; }
.media-list figcaption { font-size: .85rem; color: var(--muted); }
.help-box { position: relative; overflow: hidden; padding: 32px; border-radius: 32px; background: var(--night); color: #fff; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 70px rgba(236, 72, 153, .22); }
.help-box::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 72, 153, .4), transparent 65%); }
.help-box > * { position: relative; }
.help-box b { color: #fff; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.help-box p { color: rgba(255, 255, 255, .86); }
.funding { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.funding img { height: 48px; width: auto; }
.download { text-decoration: none; color: var(--text); }
.download img { width: 100%; height: 230px; object-fit: cover; object-position: center top; border-radius: 20px; background: #fff; }

/* ---------- Pro učitele ---------- */
.prompt { padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); display: flex; flex-direction: column; gap: 10px; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prompt-head b { font-family: var(--font-display); font-size: 1.1rem; }
.prompt q { font-style: italic; color: rgba(255, 255, 255, .86); line-height: 1.6; quotes: "„" "“"; }
.copy-btn { font: 600 .82rem var(--font-body); color: #0a1030; background: #7fe3ff; border: 0; border-radius: 999px; padding: 7px 13px; cursor: pointer; white-space: nowrap; }
.copy-btn.alt { background: #ffb46b; }
.method { text-decoration: none; color: var(--text); padding: 16px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px var(--shadow); display: flex; align-items: center; gap: 14px; }
.method-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.method small { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- Zdroje ---------- */
.link-card { text-decoration: none; color: var(--text); padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 20px var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.link-card span { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.article-link { text-decoration: none; color: var(--text); padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.article-link::before { content: ""; flex-shrink: 0; margin-top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--g-main); }
.article-link small { display: block; color: var(--muted); font-size: .85rem; }
.cite { padding: 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.cite ul { margin: 8px 0 0; padding-left: 20px; color: var(--body); font-size: .95rem; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Patička ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 40px 0 40px; --text: #fff; --body: rgba(255, 255, 255, .86); --muted: rgba(255, 255, 255, .72); }
.site-footer::before { content: ""; position: absolute; width: 760px; height: 760px; left: 50%; top: -280px; margin-left: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 65%); }
.site-footer > .wrap { position: relative; display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center; }
.site-footer a { color: #7fe3ff; }
.contact { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: center; align-items: center; text-align: left; }
.contact-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(139, 92, 246, .7), 0 20px 50px rgba(0, 0, 0, .4); }
.contact-info { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.contact-info b { font-family: var(--font-display); font-size: 1.6rem; }
.contact-info span { color: var(--body); }
.social { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.social a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.social a:hover { background: rgba(255, 255, 255, .16); }
.counter { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 28px 36px; border-radius: 28px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.counter-digits { display: flex; gap: 8px; align-items: center; }
.counter-digits span { width: 56px; height: 72px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; color: #fff; background: linear-gradient(160deg, #38d6ff, #8b5cf6 60%, #ec4899); box-shadow: 0 12px 30px rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.counter-digits .sep { width: 8px; background: none; box-shadow: none; }
@media (max-width: 480px) { .counter-digits span { width: 42px; height: 56px; font-size: 2rem; } }
.footer-bottom { width: 100%; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: var(--muted); }
.footer-bottom img { width: 200px; }

@media print {
  .site-header, .predictor, .chat, .particles, .glow, .slide-dots { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Zvětšení obrázku z galerie */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(7, 11, 36, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 16px; }
.lightbox p { color: #fff; text-align: center; max-width: 70ch; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #0a1030; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Ikony aplikací */
.tool-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid rgba(16, 26, 63, .1); box-shadow: 0 2px 6px rgba(16, 26, 63, .08); color: #0a1030; vertical-align: middle; }
.tool-icon img { width: 18px; height: 18px; }
.tool-icon-letter { color: #fff; border: 0; font: 700 .85rem var(--font-display); }
.tool-name { display: inline-flex; align-items: center; gap: 10px; }
.tag-link { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.tag-link .tool-icon { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
.tag-link .tool-icon img { width: 13px; height: 13px; }
.tool-inline { white-space: nowrap; }
.tool-inline .tool-icon { width: 18px; height: 18px; border-radius: 5px; margin-right: 4px; box-shadow: none; border: 0; }
.tool-inline .tool-icon img { width: 12px; height: 12px; }

/* Malý odkaz na zdroj za tvrzením */
.src { font-size: .72em; line-height: 1; vertical-align: .12em; margin-left: 4px; white-space: nowrap; }
.src a { display: inline-block; line-height: 1.45; font-family: var(--font-body); font-weight: 600; color: var(--muted); text-decoration: none; padding: 0 7px; border-radius: 999px; background: var(--chip); border: 1px solid var(--border); }
.src a::before { content: "↗ "; opacity: .7; }
.src a:hover { color: var(--text); border-color: var(--acc-violet); }
.src + .src { margin-left: 2px; }

/* Vibecoding a mikrohra */
.vibe { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 50px var(--shadow); }
.vibe-copy { display: flex; flex-direction: column; gap: 14px; }
.vibe-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.vibe-copy p { color: var(--body); }
.prompt-mini { padding: 14px 16px; border-radius: 18px; background: var(--chip); font-size: .92rem; display: flex; flex-direction: column; gap: 6px; }
.prompt-mini span { font-weight: 600; color: var(--muted); font-size: .82rem; }
.prompt-mini q { font-style: italic; color: var(--body); quotes: "„" "“"; }
.game { display: flex; flex-direction: column; gap: 10px; }
.game-screen { position: relative; border-radius: 22px; overflow: hidden; background: #070b24; box-shadow: 0 20px 50px rgba(7, 11, 36, .35), 0 0 0 1px rgba(127, 227, 255, .25); }
.game canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; image-rendering: pixelated; outline: none; }
.game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(7, 11, 36, .78); color: #fff; text-align: center; padding: 16px; }
.game-overlay[hidden] { display: none; }
.game-overlay b { font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.game-overlay span { color: rgba(255, 255, 255, .8); font-size: .9rem; }
.game-msg { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); color: #fff; font-weight: 700; background: rgba(139, 92, 246, .85); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.game-msg[hidden] { display: none; }
.game-pad { display: none; gap: 8px; }
.game-pad button { flex: 1; font: 700 1rem var(--font-body); padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); touch-action: none; user-select: none; -webkit-user-select: none; }
.game-pad button:active { background: var(--chip); }
@media (hover: none), (max-width: 760px) { .game-pad { display: flex; } }

/* Kontakt na střed a uspořádaná patička */
.site-footer .contact { flex-direction: column; align-items: center; text-align: center; gap: 8px; max-width: 720px; margin: 0 auto; }
.site-footer .contact .contact-photo { margin-bottom: 6px; }
.contact-name { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.site-footer .contact .social { justify-content: center; margin-top: 8px; }
.footer-bottom { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 36px; text-align: left; }
.footer-logo img { height: 64px; width: auto; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; max-width: 640px; font-size: .9rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; text-align: center; } .footer-links { justify-content: center; } }
.tl-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; float: left; margin: 2px 14px 4px 0; border: 2px solid var(--border); }

/* Ukázka předpovědi slova uvnitř stránky (už ne přes obrázek v úvodu) */
.hero-stage-solo { padding-bottom: 0; }
.predictor.predictor-inline { position: relative; left: auto; bottom: auto; transform: none; width: min(680px, 100%); margin: 0 auto; }
.help-box p b { font-family: var(--font-body); font-size: inherit; line-height: inherit; }

/* Pro učitele: Bloomova taxonomie, náměty, tři zadání */
.bloom { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.bloom-step { position: relative; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.bloom-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 24px 24px 0 0; background: var(--g-main); opacity: calc(.35 + var(--lvl) * .13); }
.bloom-head { display: flex; align-items: center; gap: 12px; }
.bloom-head b { font-family: var(--font-display); font-size: 1.25rem; }
.bloom-num { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: var(--f-main); }
.bloom-step p { color: var(--body); }
.prompt.prompt-light { background: var(--chip); border-color: var(--border); }
.prompt.prompt-light q { color: var(--body); }
.prompt.prompt-light .prompt-head small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.prompt.prompt-light .prompt-head b { font-family: var(--font-display); font-size: 1.05rem; }
.prompt.prompt-light .copy-btn { background: var(--f-main); color: #fff; }
.note-warn { width: 100%; padding: 14px 18px; border-radius: 16px; background: rgba(255, 154, 60, .12); border: 1px solid rgba(255, 154, 60, .35); color: var(--body); font-size: .95rem; }
.task-card { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .14) !important; color: #fff; }
.task-card h3 { color: #fff; }
.task-card p { color: rgba(255, 255, 255, .86); }
.task-badge { align-self: flex-start; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.task-card.is-bad .task-badge { background: rgba(244, 63, 94, .2); color: #fda4af; border: 1px solid rgba(251, 113, 133, .4); }
.task-card.is-good .task-badge { background: rgba(20, 196, 176, .2); color: #5fe8d6; border: 1px solid rgba(95, 232, 214, .4); }
.dot-list { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }

/* ---------- Pipeline: jak vzniká model strojového učení ---------- */
.pipeline { width: 100%; margin: 0; padding: clamp(16px, 2.4vw, 28px); border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 50px var(--shadow); display: flex; flex-direction: column; gap: 16px;
  --pl-card: #ffffff; --pl-line: rgba(16, 26, 63, .16); --pl-text: #101a3f; --pl-muted: #555e82; --pl-tray: rgba(16, 26, 63, .04); }
:root[data-theme="dark"] .pipeline { --pl-card: #1b2457; --pl-line: rgba(255, 255, 255, .2); --pl-text: #f2f4ff; --pl-muted: #a3abd4; --pl-tray: rgba(255, 255, 255, .05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pipeline { --pl-card: #1b2457; --pl-line: rgba(255, 255, 255, .2); --pl-text: #f2f4ff; --pl-muted: #a3abd4; --pl-tray: rgba(255, 255, 255, .05); } }
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.pl-steps button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font: 600 .78rem var(--font-body); cursor: pointer; line-height: 1.2; text-align: center; }
.pl-steps button span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--chip); color: var(--text); font-family: var(--font-display); font-size: .9rem; transition: background .3s, color .3s, transform .3s; }
.pl-steps button[aria-selected="true"] { color: var(--text); }
.pl-steps button[aria-selected="true"] span { background: var(--f-main); color: #fff; transform: scale(1.12); }
.pl-steps button.is-done span { background: var(--f-mint); color: #fff; }
@media (max-width: 760px) { .pl-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pl-stage { display: flex; flex-direction: column; gap: 12px; }
.pl-svg { width: 100%; height: auto; display: block; border-radius: 22px; background: var(--pl-tray); }
.pl-caption p { color: var(--body); text-align: center; max-width: 72ch; margin: 0 auto; }
.pl-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pl-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); cursor: pointer; font-size: .85rem; }
.pl-progress { width: min(220px, 40vw); height: 4px; border-radius: 4px; background: var(--chip); overflow: hidden; margin-left: 8px; }
.pl-progress i { display: block; height: 100%; width: 0; background: var(--g-main); }
.pl-progress i.is-running { animation: plbar var(--pl-dur, 6500ms) linear forwards; }
@keyframes plbar { to { width: 100%; } }

/* prvky scén */
.pl-card-bg { fill: var(--pl-card); stroke: var(--pl-line); stroke-width: 1.5; }
.pl-emoji { font-size: 26px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.pl-emoji-big { font-size: 38px; }
.pl-note, .pl-small, .pl-tray-label { fill: var(--pl-muted); font: 600 13px var(--font-body); }
.pl-tray-label { fill: var(--pl-text); font-size: 14px; font-family: var(--font-display); }
.pl-tray { fill: var(--pl-tray); stroke: var(--pl-line); stroke-width: 1.5; stroke-dasharray: 6 6; }
.pl-tray-test { stroke: #f472b6; }
.pl-bad-frame { fill: none; stroke: #e11d48; stroke-width: 3; }
.pl-bad-x { stroke: #e11d48; stroke-width: 4; stroke-linecap: round; }
.pl-tag rect { stroke: none; }
.pl-tag text { font: 700 11px var(--font-body); fill: #fff; }
.pl-tag-kocka rect { fill: #c2410c; } .pl-tag-pes rect { fill: #1d4ed8; } .pl-tag-ptak rect { fill: #047857; }
.pl-edge { stroke: var(--pl-line); stroke-width: 1.4; }
.pl-node { fill: var(--pl-card); stroke: #8b5cf6; stroke-width: 2.5; }
.pl-loss { fill: none; stroke: #ec4899; stroke-width: 3.5; stroke-linecap: round; }
.pl-model { fill: #6d2fe0; }
.pl-scene[hidden] { display: none; }
.pl-model-big { fill: #4c1d95; filter: drop-shadow(0 0 18px rgba(139, 92, 246, .55)); }
.pl-model-text { fill: #fff; font: 700 17px var(--font-display); }
.pl-on-model { fill: rgba(255, 255, 255, .8); }
.pl-param { fill: #7fe3ff; }
.pl-arrow { fill: none; stroke: var(--pl-line); stroke-width: 2; stroke-dasharray: 5 5; }
.pl-answer { fill: var(--pl-card); stroke: var(--pl-line); }
.pl-answer-text { font: 700 13px var(--font-body); fill: var(--pl-text); }
.pl-verdict { font: 800 26px var(--font-body); }
.pl-verdict.is-ok { fill: #059669; } .pl-verdict.is-bad { fill: #e11d48; }
.pl-phone { fill: #101a3f; }
.pl-screen { fill: #f5f7ff; }
.pl-bubble-user { fill: #dbeafe; }
.pl-bubble-ai { fill: #6d2fe0; }
.pl-ai-text { fill: #fff; font: 600 13px var(--font-body); }
.pl-ai-small { font-size: 11.5px; fill: rgba(255, 255, 255, .85); }
.pl-typing circle { fill: #8b5cf6; }
.pl-loop { fill: none; stroke: #14c4b0; stroke-width: 3; stroke-dasharray: 8 7; marker-end: none; }

/* animace – výchozí stav je konečný, animace jen „přehrají“ cestu k němu */
.pl-scene * { transform-box: fill-box; }
.pl-fly { animation: plfly .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes plfly { from { transform: translate(var(--fx), var(--fy)) rotate(-25deg); opacity: 0; } }
.pl-pop { animation: plpop .5s ease-out both; animation-delay: var(--d, 0ms); }
@keyframes plpop { from { opacity: 0; transform: scale(.85); } }
.pl-reject { transform-box: fill-box; transform-origin: center; opacity: 1; animation: plreject 2.6s ease-in-out both; animation-delay: var(--d, 0ms); }
@keyframes plreject { 0%, 40% { opacity: 1; transform: none; } 52% { opacity: 1; transform: translateY(-16px) rotate(-8deg) scale(1.08); } 92% { opacity: 1; transform: translate(var(--bx), var(--by)) scale(.42) rotate(18deg); } 100% { opacity: .9; transform: translate(var(--bx), var(--by)) scale(.38) rotate(18deg); } }
.pl-bin-count { fill: #e11d48; font: 700 13px var(--font-body); }
.pl-reject .pl-bad-frame, .pl-reject .pl-bad-x { animation: plpop .4s ease-out both; animation-delay: var(--d, 0ms); }
.pl-tag { animation: pltag .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d, 0ms); transform-origin: center; }
@keyframes pltag { from { opacity: 0; transform: translateY(-8px) scale(.6); } }
.pl-move { transform: translate(var(--mx), var(--my)); animation: plmove 1s cubic-bezier(.3, .8, .3, 1) both; animation-delay: var(--d, 0ms); }
@keyframes plmove { from { transform: translate(0, 0); } }
.pl-edge { stroke-dasharray: 4 8; animation: plflow 1.2s linear infinite; animation-delay: var(--d, 0ms); }
@keyframes plflow { to { stroke-dashoffset: -24; } }
.pl-node { animation: plnode 1.6s ease-in-out infinite; animation-delay: var(--d, 0ms); }
@keyframes plnode { 50% { fill: #c4b5fd; stroke: #ec4899; } }
.pl-loss { stroke-dasharray: 260; stroke-dashoffset: 0; animation: pldraw 4.5s ease-out both; }
@keyframes pldraw { from { stroke-dashoffset: 260; } }
.pl-draw { stroke-dashoffset: 0; animation: pldraw2 1.4s ease-out both; animation-delay: var(--d, 0ms); }
@keyframes pldraw2 { from { opacity: 0; } }
.pl-test { animation: plpop .5s ease-out both; animation-delay: var(--d, 0ms); }
.pl-test .pl-verdict { animation: plpop .4s ease-out both; animation-delay: calc(var(--d, 0ms) + 400ms); }
.pl-param { animation: plnode 2s ease-in-out infinite; animation-delay: var(--d, 0ms); }
.pl-typing { animation: plpop .3s both, plhide .1s 1.7s forwards; }
@keyframes plhide { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pipeline .pl-scene *, .pl-progress i { animation: none !important; }
  .pl-typing { opacity: 0; }
}

/* Proudění dat do neuronové sítě */
.nf-wrap { position: relative; display: block; }
.nf-wrap img { display: block; width: 100%; height: auto; }
.nf-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.nf-streams use { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 3.5; stroke-dasharray: 3 16; stroke-linecap: round; animation: nfflow 1.1s linear infinite; }
@keyframes nfflow { to { stroke-dashoffset: -32; } }
.nf-dot { filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor); }
.nf-core { fill: rgba(255, 255, 255, .35); filter: blur(10px); animation: nfcore 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nfcore { 50% { transform: scale(1.5); fill: rgba(191, 219, 254, .6); } }
@media (prefers-reduced-motion: reduce) { .nf-overlay { display: none; } }

/* Tlačítko „Vyzkoušet s AI“ a modální okno s chatem */
.prompt-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.try-btn { font: 700 .82rem var(--font-body); color: #fff; background: var(--f-violet); border: 0; border-radius: 999px; padding: 7px 13px; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 16px rgba(139, 92, 246, .35); }
.try-btn:hover { filter: brightness(1.1); }
.prompt-mini .try-btn { align-self: flex-start; margin-top: 4px; }
.ai-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7, 11, 36, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ai-modal[hidden] { display: none; }
.ai-modal-box { width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 28px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: plpop .25s ease-out; }
.ai-modal-head { display: flex; align-items: center; gap: 10px; }
.ai-modal-head b { font-family: var(--font-display); font-size: 1.15rem; }
.ai-modal-model { color: var(--muted); font-size: .85rem; }
.ai-modal-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--chip); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ai-modal-log { flex: 1; min-height: 240px; max-height: 60vh; overflow-y: auto; }
.ai-modal-note { font-size: .8rem; color: var(--muted); text-align: center; }
.ai-modal-open, .ai-modal-open body { overflow: hidden; }

/* Odborné publikace */
.pub { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: var(--text); padding: 18px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 20px var(--shadow); transition: border-color .2s; }
.pub:hover { border-color: var(--acc-violet); }
.pub-year { flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--acc-violet); }
.pub-body { display: flex; flex-direction: column; gap: 4px; }
.pub-body b { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; }
.pub-body span { color: var(--body); font-size: .95rem; }
.pub-body small { color: var(--muted); font-size: .82rem; }

/* Pipeline: pulzující aktivní krok, postupně vypisovaný popis */
.pl-steps button[aria-selected="true"] span { animation: plpulse 1.6s ease-in-out infinite; }
@keyframes plpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55); } 50% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); } }
.pl-caption { min-height: 9.5em; display: flex; flex-direction: column; justify-content: center; }
.pl-caption > div { display: flex; flex-direction: column; gap: 8px; }
.pl-caption p { min-height: 0; }
.pl-see { font-size: .95rem; color: var(--acc-violet) !important; font-weight: 500; }
.pl-typed .w { opacity: 0; transition: opacity .25s ease; }
.pl-typed .w.on { opacity: 1; }
.pl-svg.is-waiting .pl-scene, .pl-svg.is-waiting .pl-scene * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .pl-steps button[aria-selected="true"] span { animation: none; } .pl-typed .w { opacity: 1; transition: none; } }
.pl-caption > div[hidden] { display: none; }

/* Pipeline – živější scény */
.pl-ok circle { fill: #059669; }
.pl-ok path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pl-ok { animation: plpop .35s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: var(--d, 0ms); }
.pl-scanner rect { fill: rgba(56, 214, 255, .55); filter: drop-shadow(0 0 10px rgba(56, 214, 255, .9)); }
.pl-scanner { transform: translateX(640px); animation: plscan 2.7s linear .2s both; }
@keyframes plscan { 0% { transform: translateX(30px); opacity: 1; } 88% { transform: translateX(560px); opacity: 1; } 100% { transform: translateX(570px); opacity: 0; } }
.pl-bin { animation: plpop .4s ease-out both; animation-delay: 200ms; }
.pl-pen { animation-name: plpen; animation-timing-function: ease-in-out; animation-fill-mode: both; }
.pl-pen text { font-size: 22px; }
.pl-guess rect { stroke: none; }
.pl-guess text { font: 700 13px var(--font-body); fill: #fff; }
.pl-guess-bad rect { fill: #e11d48; } .pl-guess-good rect { fill: #059669; }
/* výraznější přehrávač */
.pl-controls { flex-wrap: wrap; gap: 10px; }
.pl-btn { width: auto; height: 44px; padding: 0 18px; border-radius: 999px; font: 700 .92rem var(--font-body); display: inline-flex; align-items: center; gap: 8px; }
.pl-btn:hover { border-color: var(--acc-violet); }
.pl-play { background: var(--f-main); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(139, 92, 246, .35); min-width: 150px; justify-content: center; }
.pl-counter { font-weight: 700; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.pl-progress { display: block; width: 100%; height: 6px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .pl-reject { opacity: .15; transform: none; } .pl-scanner, .pl-pen, .pl-feed, .pl-guess-bad { display: none; } .pl-guess-good { opacity: 1; } }

/* Trénování: obrázky jeden po druhém vjíždějí do sítě */
.pl-feed, .pl-guess { opacity: 0; animation: plfeed 7.2s ease-in-out infinite; animation-delay: var(--d, 0ms); }
.pl-guess { animation-name: plguess; }
@keyframes plfeed { 0% { opacity: 0; transform: translateX(-60px); } 4% { opacity: 1; transform: translateX(0); } 18% { opacity: 1; transform: translateX(0); } 24% { opacity: 0; transform: translateX(70px) scale(.5); } 100% { opacity: 0; } }
@keyframes plguess { 0%, 12% { opacity: 0; transform: translateY(6px); } 15%, 24% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; } }
.pl-truth { fill: #6d2fe0; }
.pl-truth-text { font: 700 11px var(--font-body); fill: #fff; }
.pl-fix { font: 700 13px var(--font-body); fill: #e11d48; }
@media (prefers-reduced-motion: reduce) { .pl-feed:last-of-type, .pl-guess-good:last-of-type { opacity: 1; } }

/* Pipeline – AI robot jako model */
.pl-r-head { fill: #eef1ff; stroke: #8b5cf6; stroke-width: 3; }
.pl-r-visor { fill: #101a3f; }
.pl-r-eye { fill: #38d6ff; filter: drop-shadow(0 0 6px #38d6ff); }
.pl-r-mouth { fill: #8b5cf6; }
.pl-r-ear { fill: #c4b5fd; }
.pl-r-line { stroke: #8b5cf6; stroke-width: 3; }
.pl-r-ant { fill: #ec4899; }
.pl-r-body { fill: #e0e7ff; stroke: #8b5cf6; stroke-width: 3; }
.pl-r-core { fill: #8b5cf6; }
.pl-robot-think .pl-r-eye { animation: pleye 1.4s ease-in-out 1s 4; }
.pl-robot-think .pl-r-ant { animation: plant 1.4s ease-in-out 1s 4; }
@keyframes pleye { 0%, 40%, 100% { fill: #38d6ff; } 55%, 75% { fill: #ffe066; filter: drop-shadow(0 0 12px #ffe066); } }
@keyframes plant { 50% { fill: #ffe066; } }
.pl-robot-glow .pl-r-core { animation: plnode 1.6s ease-in-out infinite; }
.pl-robot-glow .pl-r-eye { animation: pleye 2.4s ease-in-out infinite; }
.pl-runner { opacity: 0; animation: plrun 1.2s ease-in both; animation-delay: var(--d, 0ms); }
@keyframes plrun { 0% { opacity: 1; transform: translate(0, 0); } 20% { transform: translate(0, -10px); } 75% { opacity: 1; transform: translate(var(--rx), var(--ry)) scale(.8); } 100% { opacity: 0; transform: translate(var(--rx), var(--ry)) scale(.2); } }
.pl-result { animation: plpop .4s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d, 0ms); }
.pl-arrow-solid { stroke: var(--pl-muted); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .pl-runner { display: none; } }
.pl-chip { fill: #6d2fe0; }
.pl-chip-text { font: 700 11.5px var(--font-body); fill: #fff; }

/* Pipeline – textová animace a přepínač */
.pl-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pl-switch .chip { font-size: .95rem; padding: 10px 18px; }
.pipeline[hidden] { display: none; }
.pl-mask { fill: #101a3f; }
.pl-sentence { font: 700 34px var(--font-display); fill: var(--pl-text); }
.pl-sentence-sm { font-size: 26px; }
.pl-token { animation: plsplit .6s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: var(--d, 0ms); }
@keyframes plsplit { from { opacity: 0; transform: translateY(-50px) scale(.7); } }
.pl-token-text { font: 700 18px var(--font-body); fill: #fff; }
.pl-token-id { font: 700 14px var(--font-body); fill: var(--pl-muted); }
.pl-blank { fill: none; stroke: #8b5cf6; stroke-width: 2.5; stroke-dasharray: 6 5; animation: plnode 1.2s ease-in-out infinite; }
.pl-answer-word { fill: #059669; animation: plpop .5s ease-out both; animation-delay: 2300ms; }
.pl-cand { font: 600 14px var(--font-body); fill: var(--pl-text); }
.pl-bar-bg { fill: var(--pl-tray); stroke: var(--pl-line); }
.pl-bar { fill: #a78bfa; transform-box: fill-box; transform-origin: left center; animation: plgrow .8s ease-out both; animation-delay: var(--d, 0ms); }
.pl-bar.is-top { fill: #059669; }
@keyframes plgrow { from { transform: scaleX(0); } }
.pl-q { font: 700 15px var(--font-body); fill: #101a3f; }
.pl-answer-card { fill: var(--pl-card); stroke: var(--pl-line); stroke-width: 1.5; }
.pl-ans { font: 500 13px var(--font-body); fill: var(--pl-text); }
.pl-vote { animation: pltag .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d, 0ms); }
.pl-vote-good { fill: rgba(5, 150, 105, .18); stroke: #059669; stroke-width: 2; }
.pl-vote-bad { fill: rgba(225, 29, 72, .15); stroke: #e11d48; stroke-width: 2; }
.pl-qchip { fill: var(--pl-card); stroke: #8b5cf6; stroke-width: 2; }
.pl-qtext { font: 600 12.5px var(--font-body); fill: var(--pl-text); }
.pl-bubble-user + .pl-qtext, .pl-scene .pl-bubble-user ~ .pl-qtext { fill: #101a3f; }
.pl-word { opacity: 0; animation: plword .2s ease-out forwards; animation-delay: var(--d, 0ms); }
@keyframes plword { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pl-word { opacity: 1; } }

/* Nenápadné odkazy v patičce: šedé jako text, zvýrazní se až po najetí */
.site-footer .footer-meta a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer .footer-meta a:hover, .site-footer .footer-meta a:focus-visible { color: #7fe3ff; text-decoration: underline; text-underline-offset: .2em; }

/* Experiment: kognitivní offloading */
.offl { margin: 8px 0 32px; padding: clamp(20px, 3vw, 36px); border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 50px var(--shadow); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.offl::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--glow-violet), transparent 65%); pointer-events: none; }
.offl-head { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; position: relative; }
.offl-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.offl-head p { max-width: 72ch; color: var(--body); }
.offl-form { display: flex; flex-direction: column; gap: 12px; position: relative; }
.offl-form textarea { width: 100%; font: inherit; color: var(--text); padding: 14px 18px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface-solid); resize: vertical; min-height: 90px; }
.offl-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--glow-violet); }
.offl-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.offl-examples .chip { font-size: .82rem; text-align: left; white-space: normal; }
.offl-form .btn { align-self: center; }
.offl-loading { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.offl-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: blink 1s infinite; }
.offl-loading span:nth-child(2) { animation-delay: .2s; } .offl-loading span:nth-child(3) { animation-delay: .4s; }
.offl-card { display: flex; flex-direction: column; gap: 18px; animation: plpop .4s ease-out; }
.offl-top { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 24px; align-items: center; }
@media (max-width: 700px) { .offl-top { grid-template-columns: 1fr; } }
.offl-gauge { position: relative; text-align: center; }
.offl-gauge svg { width: 100%; height: auto; }
.offl-g-bg { fill: none; stroke: var(--chip); stroke-width: 16; stroke-linecap: round; }
.offl-g-val { fill: none; stroke: var(--offl-color, #8b5cf6); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s cubic-bezier(.2, .8, .2, 1), stroke .4s; }
.offl-score { position: absolute; left: 0; right: 0; top: 46%; display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.offl-score b { font: 700 2.6rem var(--font-display); color: var(--text); }
.offl-score span { color: var(--muted); font-weight: 600; }
.offl-level { font-weight: 700; margin-top: 4px; color: var(--offl-color, #8b5cf6); }
.offl-meta { display: flex; flex-direction: column; gap: 12px; }
.offl-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.offl-badge { font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--text); }
.offl-meta p { color: var(--body); }
.offl-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.offl-split > div { padding: 12px 14px; border-radius: 16px; background: var(--chip); }
.offl-split small { font-weight: 700; color: var(--muted); }
.offl-bloom h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 10px; }
.offl-bloom ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.offl-bloom li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-solid); font-weight: 600; font-size: .9rem; }
.who { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.who-clovek { background: #047857; } .who-ai { background: #be123c; } .who-spolecne { background: #b45309; } .who-nic { background: #64748b; }
.offl-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Menší počítadlo (poloviční velikost) */
.counter { gap: 8px; padding: 16px 24px; border-radius: 20px; font-size: .9rem; }
.counter-digits { gap: 4px; }
.counter-digits span { width: 28px; height: 36px; border-radius: 9px; font-size: 1.4rem; }
.counter-digits .sep { width: 4px; }
@media (max-width: 480px) { .counter-digits span { width: 26px; height: 34px; font-size: 1.3rem; } }
/* Skrývání částí experimentu */
.offl-loading[hidden], .offl-card[hidden], .offl-result[hidden] { display: none; }

.cite-all { columns: 2 280px; column-gap: 28px; }
.cite-all li { break-inside: avoid; margin-bottom: 4px; }
.cite-url { word-break: break-all; }

/* Tlačítka v tmavých sekcích nesmí převzít barvu běžných odkazů */
.section-night a.btn-primary, .page-hero-night a.btn-primary, .site-footer a.btn-primary, .help-box a.btn-primary, .banner a.btn-primary { color: #fff; }
.section-night a.btn-white, .page-hero-night a.btn-white, .site-footer a.btn-white, .help-box a.btn-white, .banner a.btn-white { color: #101a3f; }
.section-night a.btn-ghost, .page-hero-night a.btn-ghost { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.section-night a.btn-dark, .page-hero-night a.btn-dark { background: #fff; color: #101a3f; }
.section-night .study-links a.btn-white { color: #101a3f; }

/* Případ z poradny */
.case-box { padding: 18px 20px; border-radius: 20px; border-left: 5px solid #e11d48; background: rgba(225, 29, 72, .07); display: flex; flex-direction: column; gap: 6px; }
.case-box > b { font-family: var(--font-display); color: #be123c; }
:root[data-theme="dark"] .case-box > b { color: #fda4af; }
.case-box p { color: var(--body); }
.case-box img { width: 100%; height: auto; border-radius: 14px; margin-top: 8px; }

/* Pipeline: ovládání nahoře, barevný popis kroku */
.pl-stage > .pl-controls { order: 0; }
.pl-stage > .pl-progress { order: 1; }
.pl-stage > .pl-caption { order: 2; }
.pl-stage > .pl-svg { order: 3; }
.pl-btn:not(.pl-play) { background: var(--surface-solid); border: 2px solid var(--acc-violet); color: var(--text); box-shadow: 0 6px 16px rgba(139, 92, 246, .18); }
.pl-btn:not(.pl-play):hover { background: var(--f-violet); color: #fff; border-color: transparent; }
.pl-counter { color: var(--text); }
.pl-caption { background: var(--f-main); border-radius: 22px; padding: 22px 26px; box-shadow: 0 14px 34px rgba(76, 61, 200, .28); }
.pl-caption p { color: #fff !important; }
.pl-caption p b { color: #fff; }
.pl-caption .pl-see { color: #e0f2ff !important; font-weight: 600; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 8px; }
@media (max-width: 600px) { .pl-caption { padding: 16px 16px; border-radius: 18px; } }

/* Graf chybovosti v kroku Trénování */
.pl-axis { fill: none; stroke: var(--pl-muted); stroke-width: 1.5; opacity: .6; }
.pl-axis-label { fill: var(--pl-muted); font: 600 11px var(--font-body); }
.pl-err { fill: #e11d48; font: 800 14px var(--font-display); }
.pl-chart .pl-loss { animation: none; stroke-dasharray: none; }
.pl-loss-dot { fill: #ec4899; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(236, 72, 153, .8)); }
/* Výsledek testování */
.pl-result-pill { fill: #059669; }
.pl-result-text { fill: #fff; font: 700 13px var(--font-body); }
.pl-tag { animation-duration: .6s; }
.pl-scene .pl-robot { transform-box: view-box; transform-origin: 0 0; }
/* Robot jako obrázek */
.pl-robot-img { animation: plfloat 3.2s ease-in-out infinite; }
@keyframes plfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pl-robot-glow .pl-robot-img { filter: drop-shadow(0 0 14px rgba(56, 189, 248, .55)); }
.pl-robot-think .pl-robot-img { animation-duration: 1.6s; }
@media (prefers-reduced-motion: reduce) { .pl-robot-img { animation: none; } }
.h2-sub { display: inline-block; font-size: .6em; font-weight: 600; opacity: .75; margin-top: 6px; }
/* Sbalitelný seznam zdrojů */
.cite-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cite-fold > summary::-webkit-details-marker { display: none; }
.cite-fold > summary h3 { margin: 0; }
.cite-toggle { font: 700 .9rem var(--font-body); color: #fff; background: var(--f-main); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.cite-toggle::before { content: "▸ "; display: inline-block; transition: transform .2s; }
.cite-fold[open] .cite-toggle::before { transform: rotate(90deg); }
.cite-fold[open] .cite-toggle { font-size: 0; }
.cite-fold[open] .cite-toggle::after { content: "Skrýt seznam"; font-size: .9rem; }
.cite-fold[open] .cite-toggle::before { font-size: .9rem; }
.cite-fold > summary:focus-visible { outline: 3px solid var(--acc-violet); outline-offset: 4px; border-radius: 12px; }
.cite-toggle::before { margin-right: .35em; }

/* Lišta souhlasu s cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 860px; margin: 0 auto; display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(10, 14, 40, .35); }
.consent[hidden] { display: none; }
.consent-text { flex: 1; }
.consent-text b#consent-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.consent-text p { margin: 4px 0 0; font-size: .92rem; color: var(--body); }
.consent-btns { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 680px) { .consent { flex-direction: column; align-items: stretch; } .consent-btns { justify-content: flex-end; } }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; opacity: inherit; }
.site-footer .footer-link-btn:hover, .site-footer .footer-link-btn:focus-visible { color: #7fe3ff; text-decoration: underline; text-underline-offset: .2em; }
