@charset "UTF-8";
/* ==========================================================================
   FYZIKUS — dizajnový systém
   Autor obsahu: Mgr. Martin Bačiak
   Čistý CSS, bez frameworkov. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Premenné a témy
   -------------------------------------------------------------------------- */
:root {
  /* Plocha */
  --bg:            #f6f7fb;
  --bg-2:          #ffffff;
  --bg-3:          #eef1f8;
  --surface:       rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --line:          rgba(15, 23, 42, .10);
  --line-strong:   rgba(15, 23, 42, .18);

  /* Text */
  --ink:      #0f172a;
  --ink-2:    #3f4a63;
  --ink-3:    #6b7690;
  --ink-inv:  #f8fafc;

  /* Značka */
  --brand:      #4f46e5;
  --brand-2:    #7c3aed;
  --brand-soft: rgba(79, 70, 229, .10);

  /* Sémantika */
  --ok:        #059669;
  --ok-soft:   rgba(5, 150, 105, .12);
  --bad:       #dc2626;
  --bad-soft:  rgba(220, 38, 38, .12);
  --warn:      #d97706;
  --warn-soft: rgba(217, 119, 6, .12);

  /* Akcent ročníka — prepisuje ho .r6…​.r9 */
  --acc:      #4f46e5;
  --acc-2:    #7c3aed;
  --acc-soft: rgba(79, 70, 229, .12);
  --acc-ink:  #ffffff;

  /* Tvar */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Tiene */
  --sh-1: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --sh-2: 0 4px 12px rgba(15, 23, 42, .07), 0 2px 4px rgba(15, 23, 42, .04);
  --sh-3: 0 18px 40px -12px rgba(15, 23, 42, .20), 0 4px 12px rgba(15, 23, 42, .06);
  --sh-glow: 0 0 0 1px var(--acc-soft), 0 20px 50px -20px var(--acc);

  /* Rytmus */
  --pad: clamp(1rem, 4vw, 2rem);
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  --maxw: 1240px;
  --maxw-text: 74ch;
  --nav-h: 68px;

  /* Písmo */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:            #070a14;
  --bg-2:          #0d1220;
  --bg-3:          #131a2c;
  --surface:       rgba(19, 26, 44, .70);
  --surface-solid: #131a2c;
  --line:          rgba(148, 163, 184, .14);
  --line-strong:   rgba(148, 163, 184, .26);

  --ink:     #e9edf7;
  --ink-2:   #b3bdd4;
  --ink-3:   #7d89a5;
  --ink-inv: #070a14;

  --brand:      #818cf8;
  --brand-2:    #a78bfa;
  --brand-soft: rgba(129, 140, 248, .14);

  --ok:        #34d399;
  --ok-soft:   rgba(52, 211, 153, .14);
  --bad:       #f87171;
  --bad-soft:  rgba(248, 113, 113, .14);
  --warn:      #fbbf24;
  --warn-soft: rgba(251, 191, 36, .14);

  --acc:      #818cf8;
  --acc-2:    #a78bfa;
  --acc-soft: rgba(129, 140, 248, .16);
  --acc-ink:  #070a14;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .40);
  --sh-2: 0 4px 14px rgba(0, 0, 0, .45);
  --sh-3: 0 20px 50px -16px rgba(0, 0, 0, .70);

  color-scheme: dark;
}

/* Akcenty ročníkov */
.r6 { --acc:#06b6d4; --acc-2:#22d3ee; --acc-soft:rgba(6,182,212,.14);  --acc-ink:#04212b; }
.r7 { --acc:#f97316; --acc-2:#fb923c; --acc-soft:rgba(249,115,22,.14); --acc-ink:#2a1206; }
.r8 { --acc:#8b5cf6; --acc-2:#a78bfa; --acc-soft:rgba(139,92,246,.14); --acc-ink:#1c0f3d; }
.r9 { --acc:#10b981; --acc-2:#34d399; --acc-soft:rgba(16,185,129,.14); --acc-ink:#03251a; }

[data-theme="dark"] .r6 { --acc:#22d3ee; --acc-2:#67e8f9; --acc-ink:#04212b; }
[data-theme="dark"] .r7 { --acc:#fb923c; --acc-2:#fdba74; --acc-ink:#2a1206; }
[data-theme="dark"] .r8 { --acc:#a78bfa; --acc-2:#c4b5fd; --acc-ink:#1c0f3d; }
[data-theme="dark"] .r9 { --acc:#34d399; --acc-2:#6ee7b7; --acc-ink:#03251a; }

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.25rem);
  /* clip (nie hidden) — nevytvára scroll kontajner, takže position:fixed
     a sticky fungujú ďalej; zabráni vodorovnému posunu od zasunutého menu */
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}

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

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

button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

a { color: var(--acc); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--acc); color: var(--acc-ink); }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg); }

/* --------------------------------------------------------------------------
   3. Pomocné triedy
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2 * var(--pad), 900px); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--acc); color: var(--acc-ink);
  padding: .75rem 1.25rem; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.stack > * + * { margin-top: var(--flow, 1rem); }

/* --------------------------------------------------------------------------
   4. Efekty — roll-on-page (opacity) a parallax
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .75s var(--ease),
    transform .75s var(--ease),
    filter .75s var(--ease);
  filter: blur(6px);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
[data-reveal="left"]  { transform: translate3d(-36px, 0, 0); }
[data-reveal="right"] { transform: translate3d(36px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal="fade"]  { transform: none; }

/* Kaskádové oneskorenie pre skupiny */
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .parallax { transform: none !important; }
}

/* --------------------------------------------------------------------------
   5. Navigácia
   -------------------------------------------------------------------------- */
.progress-bar {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.nav__inner {
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
}

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.03em; color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 18px -6px var(--brand);
}
.logo__mark svg { width: 20px; height: 20px; }
.logo em { font-style: normal; color: var(--ink-3); font-weight: 500; }

.nav__links {
  display: none;
  margin-left: auto;
  align-items: center; gap: .15rem;
  list-style: none; padding: 0;
}
.nav__links a {
  display: block; padding: .5rem .8rem;
  border-radius: var(--r-full);
  color: var(--ink-2); text-decoration: none;
  font-size: .93rem; font-weight: 550;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); background: var(--brand-soft); }
.nav__links a[aria-current] { color: var(--acc); background: var(--acc-soft); }

.nav__tools { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
@media (min-width: 1000px) { .nav__tools { margin-left: .5rem; } }

.icon-btn {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }

@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* Mobilné menu */
.drawer {
  position: fixed; inset: 0; z-index: 110;
  visibility: hidden;
}
.drawer[data-open="true"] { visibility: visible; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(7, 10, 20, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(88vw, 380px);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 1.25rem var(--pad) 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  display: flex; flex-direction: column; gap: .35rem;
}
.drawer[data-open="true"] .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer__panel a {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem .9rem; border-radius: var(--r);
  color: var(--ink); text-decoration: none; font-weight: 560;
  transition: background .2s;
}
.drawer__panel a:hover { background: var(--bg-3); }
.drawer__panel a[aria-current] { background: var(--acc-soft); color: var(--acc); }
.drawer__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .6; flex: 0 0 9px; }
.drawer__sep { height: 1px; background: var(--line); margin: .75rem 0; }
.drawer__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; padding: .25rem .9rem; }

/* --------------------------------------------------------------------------
   6. Hero + parallax scéna
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -12% -5%;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 18% 12%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 62%),
    radial-gradient(55% 50% at 88% 24%, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 60%),
    radial-gradient(70% 60% at 50% 108%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 65%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 20%, transparent 78%);
}
.hero__orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  opacity: .16; filter: blur(2px);
}
.orb--1 { width: 340px; height: 340px; top: 6%;  left: -8%; }
.orb--2 { width: 210px; height: 210px; top: 58%; right: -4%; opacity: .12; }
.orb--3 { width: 120px; height: 120px; top: 22%; right: 16%; opacity: .20; }
.orb--4 { width: 74px;  height: 74px;  bottom: 16%; left: 14%; opacity: .22; }

.hero__inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .95rem .4rem .5rem;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  letter-spacing: .01em;
  box-shadow: var(--sh-1);
}
.eyebrow b {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; padding: .16rem .6rem; border-radius: var(--r-full);
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 5.6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 1.5rem 0 0;
}
.grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 45%, var(--acc) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.3rem);
  color: var(--ink-2);
  max-width: 60ch; margin: 1.5rem auto 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.25rem; }

.scroll-hint {
  position: absolute; bottom: 1.75rem; left: 50%; translate: -50% 0;
  display: grid; place-items: center; gap: .5rem;
  color: var(--ink-3); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  z-index: 1;
}
.scroll-hint span { display: block; width: 1px; height: 34px; background: linear-gradient(var(--ink-3), transparent); animation: drop 2.2s var(--ease-io) infinite; }
@keyframes drop { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* --------------------------------------------------------------------------
   7. Tlačidlá
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 620; font-size: .95rem; letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background .22s, color .22s, border-color .22s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn:active { transform: translateY(1px) scale(.985); }

.btn--primary {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
  box-shadow: 0 10px 26px -10px var(--acc);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px var(--acc); }

.btn--ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--acc); color: var(--acc); box-shadow: var(--sh-2); }

.btn--soft { background: var(--acc-soft); color: var(--acc); }
.btn--soft:hover { background: color-mix(in srgb, var(--acc) 22%, transparent); }

.btn--sm { padding: .55rem 1rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   8. Sekcie a hlavičky
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--tint { background: var(--bg-2); }
.section--edge { border-block: 1px solid var(--line); }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem);
  letter-spacing: -.035em;
}
.sec-head p { color: var(--ink-2); margin-top: .9rem; font-size: 1.06rem; }

.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc); margin-bottom: .85rem;
}

/* --------------------------------------------------------------------------
   9. Karty ročníkov
   -------------------------------------------------------------------------- */
.grades {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
}

.gcard {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  overflow: hidden;
  min-height: 290px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.gcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 0%, var(--acc-soft), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gcard::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--acc-soft); }
.gcard:hover::before { opacity: 1; }
.gcard:hover::after { transform: none; }

.gcard__num {
  font-family: var(--font-display);
  font-size: 3.4rem; font-weight: 700; line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gcard__ico { position: absolute; top: 1.25rem; right: 1.25rem; width: 54px; height: 54px; opacity: .28; color: var(--acc); }
.gcard h3 { font-size: 1.3rem; margin-top: .5rem; }
.gcard__alt { font-size: .84rem; color: var(--ink-3); margin-top: .3rem; }
.gcard p { color: var(--ink-2); font-size: .94rem; margin-top: .85rem; flex: 1; }
.gcard__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.gcard__go {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem; font-weight: 640; font-size: .92rem; color: var(--acc);
}
.gcard__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.gcard:hover .gcard__go svg { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem; border-radius: var(--r-full);
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--ink-2);
}
.pill--acc { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.pill svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   10. Funkcie / features
   -------------------------------------------------------------------------- */
.features { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.feat {
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.feat__ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc);
  margin-bottom: 1rem;
}
.feat__ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.08rem; }
.feat p { color: var(--ink-2); font-size: .92rem; margin-top: .5rem; }

/* Štatistiky */
.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); text-align: center; }
.stat__n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__l { color: var(--ink-3); font-size: .88rem; margin-top: .4rem; }

/* --------------------------------------------------------------------------
   11. Hlavička ročníka / témy
   -------------------------------------------------------------------------- */
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
}
.phead__bg {
  position: absolute; inset: -20% -10% auto; height: 130%; z-index: -2;
  background:
    radial-gradient(50% 60% at 15% 0%, var(--acc-soft), transparent 60%),
    radial-gradient(45% 55% at 85% 10%, color-mix(in srgb, var(--acc-2) 18%, transparent), transparent 60%);
}
.phead__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .4;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.phead h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); margin-top: .75rem; }
.phead__lead { color: var(--ink-2); max-width: 62ch; margin-top: 1rem; font-size: 1.06rem; }
.phead__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--acc); }
.crumbs svg { width: 13px; height: 13px; opacity: .55; }

/* --------------------------------------------------------------------------
   12. Zoznam tém a lekcií
   -------------------------------------------------------------------------- */
.topics { display: grid; gap: var(--gap); }

.topic {
  border-radius: var(--r-lg);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.topic__head {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--acc-soft), transparent);
}
.topic__idx {
  flex: 0 0 auto;
  min-width: 42px; height: 42px; padding-inline: .6rem;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: var(--acc-ink); font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 6px 16px -8px var(--acc);
}
.topic__head h2 { font-size: 1.28rem; }
.topic__head p { color: var(--ink-2); font-size: .93rem; margin-top: .35rem; }

.lessons { list-style: none; padding: .5rem; margin: 0; display: grid; gap: 2px; }
.lesson {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem 1rem;
  border-radius: var(--r);
  text-decoration: none; color: inherit;
  transition: background .2s, transform .2s var(--ease);
}
.lesson:hover { background: var(--bg-3); transform: translateX(4px); }
.lesson__n {
  flex: 0 0 30px; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--acc-soft); color: var(--acc);
  font-size: .82rem; font-weight: 700; font-family: var(--font-mono);
}
.lesson__t { flex: 1; font-weight: 550; font-size: .96rem; }
.lesson__tags { display: flex; gap: .3rem; flex-shrink: 0; }
.tag-ico {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 7px; background: var(--bg-3); color: var(--ink-3);
}
.tag-ico svg { width: 13px; height: 13px; }
.tag-ico--v { background: var(--bad-soft); color: var(--bad); }
.tag-ico--d { background: var(--ok-soft); color: var(--ok); }
.tag-ico--l { background: var(--warn-soft); color: var(--warn); }
.lesson__done { color: var(--ok); flex-shrink: 0; }
.lesson__done svg { width: 18px; height: 18px; }
.lesson:not([data-done="1"]) .lesson__done { display: none; }

.topic__foot { padding: 1rem 1.5rem 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.topic__foot .label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-right: .3rem; }

/* --------------------------------------------------------------------------
   13. Lekcia — obsah
   -------------------------------------------------------------------------- */
.lesson-body { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1080px) {
  .lesson-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .lesson-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

.prose { max-width: var(--maxw-text); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.75rem; letter-spacing: -.03em; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.35rem; color: var(--ink-2); }
.prose li + li { margin-top: .45rem; }
.prose ::marker { color: var(--acc); }

.callout {
  padding: 1.15rem 1.35rem;
  border-radius: var(--r);
  background: var(--acc-soft);
  border-left: 3px solid var(--acc);
  color: var(--ink-2);
}
.callout b, .callout strong { color: var(--ink); }
.callout--def { background: var(--ok-soft); border-left-color: var(--ok); }
.callout--tip { background: var(--warn-soft); border-left-color: var(--warn); }

.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
}
.formula b { font-size: 1.25rem; color: var(--acc); font-weight: 700; }
.formula span { color: var(--ink-3); font-size: .85rem; font-family: var(--font); }

.qlist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.qlist li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .9rem 1.1rem;
  border-radius: var(--r);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink-2); font-size: .95rem;
}
.qlist li::before {
  content: "?";
  flex: 0 0 24px; width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px; background: var(--acc); color: var(--acc-ink);
  font-weight: 800; font-size: .8rem; margin-top: .05rem;
}

/* Video s facade (lazy) */
.videos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r); overflow: hidden;
  background: #000 center/cover no-repeat;
  border: 1px solid var(--line);
  cursor: pointer; width: 100%; padding: 0;
  box-shadow: var(--sh-1);
}
.video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45));
  transition: background .3s;
}
.video:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.video__play {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; z-index: 2;
  width: 62px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(220, 38, 38, .95);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .3s var(--ease), background .3s;
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.12); background: #dc2626; }
.video__play svg { width: 20px; height: 20px; color: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-live::after, .video.is-live .video__play { display: none; }

.reslist { display: grid; gap: .55rem; }
.res {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1rem;
  border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.res:hover { border-color: var(--acc); transform: translateX(3px); box-shadow: var(--sh-1); }
.res__ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.res__ico svg { width: 17px; height: 17px; }
.res__ico--doc { background: var(--ok-soft); color: var(--ok); }
.res__ico--link { background: var(--warn-soft); color: var(--warn); }
.res__ico--pres { background: var(--brand-soft); color: var(--brand); }
.res__ico--foto { background: var(--acc-soft); color: var(--acc); }
.res__t { flex: 1; min-width: 0; }
.res__t b { display: block; font-weight: 600; font-size: .93rem; }
.res__t small { color: var(--ink-3); font-size: .78rem; word-break: break-all; }
.res__go { color: var(--ink-3); flex-shrink: 0; }
.res__go svg { width: 15px; height: 15px; }

/* Bočný panel */
.aside-card {
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.aside-card + .aside-card { margin-top: 1rem; }
.aside-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: .9rem; }
.toc { list-style: none; padding: 0; display: grid; gap: 1px; }
.toc a {
  display: block; padding: .5rem .7rem; border-radius: 9px;
  color: var(--ink-2); text-decoration: none; font-size: .89rem;
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.toc a:hover { background: var(--bg-3); color: var(--ink); }
.toc a.is-active { color: var(--acc); border-left-color: var(--acc); background: var(--acc-soft); }

/* Predošlá / ďalšia */
.pager { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s var(--ease);
}
.pager a:hover { border-color: var(--acc); transform: translateY(-2px); }
.pager small { color: var(--ink-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.pager b { font-weight: 600; font-size: .97rem; }
.pager .next { text-align: right; }

/* --------------------------------------------------------------------------
   14. MODULY AKTÍVNEHO UČENIA
   -------------------------------------------------------------------------- */
.learn {
  border-radius: var(--r-xl);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.learn__head {
  padding: 1.5rem var(--pad) 0;
  background: linear-gradient(180deg, var(--acc-soft), transparent);
}
.learn__title { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.learn__title h2 { font-size: 1.4rem; }
.learn__title p { color: var(--ink-2); font-size: .92rem; width: 100%; margin-top: .3rem; }

.tabs { display: flex; gap: .3rem; margin-top: 1.25rem; overflow-x: auto; padding-bottom: 2px; }
.tab {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: var(--r) var(--r) 0 0;
  color: var(--ink-3); font-weight: 600; font-size: .92rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); background: var(--bg-3); }
.tab[aria-selected="true"] { color: var(--acc); border-bottom-color: var(--acc); background: var(--acc-soft); }

.panel { padding: clamp(1.25rem, 3vw, 2rem) var(--pad) clamp(1.5rem, 3vw, 2.25rem); }
.panel[hidden] { display: none; }

/* --- 14a. Kartičky ------------------------------------------------------- */
.fc-stage { display: grid; place-items: center; gap: 1.25rem; }
.flashcard {
  width: min(100%, 540px);
  aspect-ratio: 8 / 5;
  perspective: 1600px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.flashcard__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .68s var(--ease);
  border-radius: var(--r-lg);
}
.flashcard.is-flipped .flashcard__inner { transform: rotateY(180deg); }
.flashcard__face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--r-lg);
  display: grid; place-content: center; align-content: center; gap: .85rem;
  padding: 1.75rem; text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.flashcard__face--front {
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: var(--acc-ink);
}
.flashcard__face--front::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 20% 10%, rgba(255,255,255,.28), transparent 60%);
}
.flashcard__face--back {
  background: var(--bg-3); color: var(--ink);
  transform: rotateY(180deg);
  overflow-y: auto;
}
.fc-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .72; font-weight: 700; }
.fc-term { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; position: relative; }
.fc-def { font-size: clamp(.95rem, .9rem + .3vw, 1.08rem); line-height: 1.55; color: var(--ink-2); }
.fc-hint { position: absolute; bottom: .9rem; left: 50%; translate: -50% 0; font-size: .74rem; opacity: .6; display: flex; align-items: center; gap: .35rem; }
.fc-hint svg { width: 13px; height: 13px; }

.fc-bar { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.fc-count { font-family: var(--font-mono); font-size: .88rem; color: var(--ink-3); min-width: 76px; text-align: center; }
.fc-known { display: flex; gap: .5rem; }

/* --- 14b. Kvíz ----------------------------------------------------------- */
.quiz { max-width: 760px; margin-inline: auto; }
.quiz__bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.qprogress { flex: 1; height: 7px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.qprogress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transition: width .45s var(--ease); }
.qmeta { font-family: var(--font-mono); font-size: .86rem; color: var(--ink-3); white-space: nowrap; }
.qscore { font-weight: 700; color: var(--ok); }

.qquestion { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .9vw, 1.55rem); line-height: 1.3; letter-spacing: -.02em; margin-bottom: 1.35rem; }

.qopts { display: grid; gap: .65rem; }
.qopt {
  display: flex; align-items: center; gap: .85rem;
  width: 100%; text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: var(--surface-solid);
  border: 2px solid var(--line);
  color: var(--ink); font-size: .98rem; font-weight: 500;
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.qopt:hover:not(:disabled) { border-color: var(--acc); transform: translateX(4px); box-shadow: var(--sh-1); }
.qopt:disabled { cursor: default; }
.qopt__k {
  flex: 0 0 30px; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--bg-3); color: var(--ink-3);
  font-weight: 700; font-size: .86rem; font-family: var(--font-mono);
  transition: background .2s, color .2s;
}
.qopt__t { flex: 1; }
.qopt__s { flex: 0 0 auto; opacity: 0; transition: opacity .25s; }
.qopt__s svg { width: 20px; height: 20px; }

.qopt.is-correct {
  border-color: var(--ok); background: var(--ok-soft);
  animation: pop .35s var(--ease);
}
.qopt.is-correct .qopt__k { background: var(--ok); color: #fff; }
.qopt.is-correct .qopt__s { opacity: 1; color: var(--ok); }
.qopt.is-wrong {
  border-color: var(--bad); background: var(--bad-soft);
  animation: shake .4s var(--ease-io);
}
.qopt.is-wrong .qopt__k { background: var(--bad); color: #fff; }
.qopt.is-wrong .qopt__s { opacity: 1; color: var(--bad); }
.qopt.is-muted { opacity: .5; }

@keyframes pop { 0% { transform: scale(1) } 45% { transform: scale(1.025) } 100% { transform: scale(1) } }
@keyframes shake { 0%,100% { transform: translateX(0) } 20% { transform: translateX(-7px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-4px) } 80% { transform: translateX(4px) } }

.qfeedback {
  margin-top: 1.15rem; padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border-left: 3px solid;
  animation: slideUp .4s var(--ease);
}
.qfeedback--ok  { background: var(--ok-soft);  border-left-color: var(--ok); }
.qfeedback--bad { background: var(--bad-soft); border-left-color: var(--bad); }
.qfeedback b { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.qfeedback b svg { width: 18px; height: 18px; }
.qfeedback--ok b  { color: var(--ok); }
.qfeedback--bad b { color: var(--bad); }
.qfeedback p { margin-top: .5rem; color: var(--ink-2); font-size: .93rem; }
.qfeedback .qanswer { margin-top: .55rem; font-size: .93rem; color: var(--ink); }
.qfeedback .qanswer b { display: inline; color: var(--ink); font-weight: 700; }

@keyframes slideUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.qactions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.35rem; flex-wrap: wrap; }

/* Výsledok */
.qresult { text-align: center; padding: 1.5rem 0; animation: slideUp .5s var(--ease); }
.ring { width: 190px; height: 190px; margin: 0 auto 1.5rem; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .ring__bg { stroke: var(--bg-3); }
.ring .ring__fg { stroke: url(#ringGrad); transition: stroke-dashoffset 1.4s var(--ease); }
.ring__pct {
  position: absolute; inset: 0; display: grid; place-content: center; align-content: center;
  font-family: var(--font-display); line-height: 1;
}
.ring__pct b { font-size: 2.9rem; letter-spacing: -.04em; }
.ring__pct small { font-size: .78rem; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; margin-top: .35rem; }
.qresult h3 { font-size: 1.5rem; }
.qresult > p { color: var(--ink-2); margin-top: .6rem; max-width: 46ch; margin-inline: auto; }
.qresult .qactions { justify-content: center; margin-top: 1.75rem; }

.qbreak { display: flex; justify-content: center; gap: 1.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.qbreak div { text-align: center; }
.qbreak b { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.qbreak small { color: var(--ink-3); font-size: .8rem; }
.qbreak .ok b { color: var(--ok); }
.qbreak .bad b { color: var(--bad); }

/* --- 14c. Skladačka poučiek (drag & drop) -------------------------------- */
.dnd { max-width: 800px; margin-inline: auto; }
.dnd__prompt { color: var(--ink-2); font-size: .95rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dnd__prompt .pill { flex-shrink: 0; }

.dnd__slot {
  min-height: 86px;
  display: flex; flex-wrap: wrap; gap: .5rem; align-content: flex-start;
  padding: 1rem;
  border-radius: var(--r);
  background: var(--bg-3);
  border: 2px dashed var(--line-strong);
  transition: border-color .25s, background .25s;
}
.dnd__slot.is-over { border-color: var(--acc); background: var(--acc-soft); }
.dnd__slot.is-correct { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.dnd__slot.is-wrong { border-style: solid; border-color: var(--bad); background: var(--bad-soft); }

.dnd__bank {
  min-height: 70px;
  display: flex; flex-wrap: wrap; gap: .5rem; align-content: flex-start;
  padding: 1rem;
  border-radius: var(--r);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  margin-top: 1rem;
  transition: border-color .25s;
}
.dnd__bank.is-over { border-color: var(--acc); }
.dnd__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; margin-bottom: .55rem; }

.word {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  font-size: .95rem; font-weight: 550;
  cursor: grab; user-select: none;
  box-shadow: var(--sh-1);
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s, background .18s;
  touch-action: none;
}
.word:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--acc); }
.word:active, .word.is-dragging { cursor: grabbing; }
.word.is-dragging { opacity: .35; transform: scale(.96); }
.word.is-ghost {
  position: fixed; z-index: 999; pointer-events: none;
  box-shadow: var(--sh-3); transform: scale(1.06) rotate(-1.5deg);
  border-color: var(--acc); background: var(--acc-soft);
}
.dnd__slot .word { background: var(--surface-solid); }
.dnd__slot.is-correct .word { border-color: var(--ok); }
.dnd__slot.is-wrong .word.is-bad { border-color: var(--bad); background: var(--bad-soft); }
.word__i { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }

.drop-line { width: 3px; align-self: stretch; min-height: 34px; border-radius: 2px; background: var(--acc); animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

.dnd__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.dnd__result { margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   15. Nástroje — vzorcovník, prevodník, slovník
   -------------------------------------------------------------------------- */
.searchbox {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.15rem;
  border-radius: var(--r-full);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-1);
  transition: border-color .2s, box-shadow .2s;
  max-width: 560px;
}
.searchbox:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.searchbox svg { width: 19px; height: 19px; color: var(--ink-3); flex-shrink: 0; }
.searchbox input { flex: 1; border: 0; background: none; outline: none; font-size: 1rem; min-width: 0; }
.searchbox input::placeholder { color: var(--ink-3); }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--sh-1); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .93rem; }
thead th {
  text-align: left; padding: .95rem 1.15rem;
  background: var(--bg-3);
  font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); font-weight: 700;
  position: sticky; top: 0; z-index: 1;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: .95rem 1.15rem; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: var(--acc-soft); }
tbody tr[hidden] { display: none; }
td.f-name { color: var(--ink); font-weight: 600; white-space: nowrap; }
td.f-formula { font-family: var(--font-mono); color: var(--acc); font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
td.f-unit { font-family: var(--font-mono); white-space: nowrap; }

.conv { display: grid; gap: 1rem; }
@media (min-width: 720px) { .conv { grid-template-columns: 1fr auto 1fr; align-items: end; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.field input, .field select {
  padding: .8rem 1rem; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface-solid);
  outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.conv__swap { display: grid; place-items: center; padding-bottom: .3rem; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .45rem .95rem; border-radius: var(--r-full);
  border: 1px solid var(--line-strong); background: var(--surface-solid);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  transition: all .2s;
}
.chip:hover { border-color: var(--acc); color: var(--acc); }
.chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }

/* --------------------------------------------------------------------------
   16. Pokrok
   -------------------------------------------------------------------------- */
.prog-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.35rem; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line); }
.prog-ring { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.prog-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.prog-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.prog-ring .bg { stroke: var(--bg-3); }
.prog-ring .fg { stroke: var(--acc); transition: stroke-dashoffset .9s var(--ease); }
.prog-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-family: var(--font-mono); font-weight: 700; }
.prog-card__t b { display: block; font-size: .98rem; }
.prog-card__t small { color: var(--ink-3); font-size: .84rem; }

/* --------------------------------------------------------------------------
   17. Pätička
   -------------------------------------------------------------------------- */
.footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 1rem; font-family: var(--font); font-weight: 750; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: var(--acc); }
.footer__about p { color: var(--ink-3); font-size: .9rem; margin-top: .9rem; max-width: 38ch; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  color: var(--ink-3); font-size: .85rem;
}

/* --------------------------------------------------------------------------
   18. Rôzne
   -------------------------------------------------------------------------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 1rem; opacity: .4; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 200;
  padding: .8rem 1.35rem; border-radius: var(--r-full);
  background: var(--ink); color: var(--bg);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: clamp(2rem, 5vw, 4rem) 0; }

.top-btn {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acc); color: var(--acc-ink);
  box-shadow: 0 10px 26px -8px var(--acc);
  opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9);
  transition: all .32s var(--ease);
}
.top-btn.is-on { opacity: 1; pointer-events: auto; transform: none; }
.top-btn:hover { transform: translateY(-3px); }
.top-btn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   19. Tlač
   -------------------------------------------------------------------------- */
@media print {
  .nav, .drawer, .progress-bar, .top-btn, .learn, .scroll-hint, .footer__grid,
  .hero__orbs, .hero__bg, .hero__grid, .video__play, .pager { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .phead { min-height: auto; padding: 1rem 0; }
  a { color: #000; text-decoration: underline; }
  .res::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .topic, .aside-card, .prose { break-inside: avoid; box-shadow: none; border-color: #ccc; }
}
