:root {
  --paper: #f6f2ea;
  --paper-2: #ece5d8;
  --ink: #14110f;
  --ink-soft: #4a443d;
  --muted: #6b6258;
  --muted-dark: #9c9387;
  --line: #d9d0c1;
  --accent: #ff5a1f;
  --accent-ink: #c43c0a;
  --accent-text: #ef5018; /* oranžový velký text na světlém pozadí — kontrast 3,23 : 1 */
  --accent-btn: #cf410d; /* tlačítka s bílým textem — kontrast 4,76 : 1 */
  --dark: #14110f;
  --dark-2: #221d19;
  --dark-line: #3a332c;
  --on-dark: #f6f2ea;
  --on-dark-soft: #b9b0a3;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* natočený běžící pás a skvrny v hero nesmí rozšířit stránku */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; }
em { font-style: italic; color: var(--accent-text); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .9rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid var(--accent-btn);
  background: var(--accent-btn); color: #fff; font-weight: 700; text-decoration: none;
  font-family: var(--sans); font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.logo__mark {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9px; overflow: hidden;
  background: var(--ink); color: var(--accent); font-family: var(--serif); font-weight: 700;
}
.logo__mark img { width: 36px; height: 36px; margin: -3px 0 -9px; }
.logo__mark span { font-size: .62rem; line-height: 1; letter-spacing: .02em; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero__facts strong { display: block; font-family: var(--serif); font-size: 1.45rem; }
.hero__facts li > span { color: var(--muted); font-size: .9rem; }

.hero__visual { position: relative; height: 420px; }
/* Ukázka v hero: kód se píše a vedle se skládá web */
.editor {
  position: absolute; left: 0; top: 0; width: 84%; border-radius: 12px; overflow: hidden;
  background: #1b1714; border: 1px solid var(--dark-line);
  box-shadow: 0 30px 60px -25px rgba(20, 17, 15, .55); transform: rotate(-2deg);
}
.editor__bar, .preview__bar { height: 28px; display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.editor__bar { background: var(--dark-2); }
.editor__bar i, .preview__bar i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .35; }
.editor__bar { color: #fff; }
.editor__file, .preview__url {
  margin-left: 10px; font: 600 .7rem/1 var(--sans); padding: .25rem .6rem; border-radius: 6px;
}
.editor__file { color: var(--on-dark-soft); background: rgba(255, 255, 255, .06); }
.editor__code {
  margin: 0; padding: 16px 18px 22px; min-height: 262px; overflow: hidden;
  font: 400 .95rem/1.8 Consolas, "Cascadia Mono", "Courier New", monospace; color: #d8cfc2; white-space: pre;
}
.editor__code .ln { display: inline-block; width: 1.6em; color: #5c534a; user-select: none; }
.editor__code .tg { color: #ff8a5c; }
.editor__code .at { color: #ffb23f; }
.editor__code .st { color: #7ddc9a; }
.editor__code .cm { color: #8a7f73; font-style: italic; }
.editor__code .caret {
  display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--accent);
  animation: caret 1s steps(1) infinite;
}

.preview {
  position: absolute; right: 0; bottom: 0; width: 62%; border-radius: 12px; overflow: hidden;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(20, 17, 15, .5); transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}
.preview__bar { background: var(--paper-2); color: var(--ink); }
.preview__url { color: var(--muted); background: rgba(255, 255, 255, .7); }
.preview__body { padding: 0 0 20px; min-height: 210px; }
.preview__band { height: 54px; background: var(--band, linear-gradient(135deg, var(--accent), #ffb23f)); transition: background .6s; margin-bottom: 14px; }
.preview__h1, .preview__p, .preview__btn { margin: 0 18px; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
.preview__h1 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; margin-bottom: .4rem; }
.preview__p { font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.preview__btn {
  display: inline-block; background: var(--accent-btn); color: #fff; font-weight: 700; font-size: .8rem;
  padding: .5rem 1rem; border-radius: 999px;
}
.preview .is-shown { opacity: 1; transform: none; }

.badge {
  position: absolute; left: 30%; top: 54%; z-index: 3;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: .35rem .9rem; font-weight: 700; font-size: .85rem; transform: rotate(-6deg);
}
@keyframes float { 50% { transform: rotate(2deg) translateY(-10px); } }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--accent); }
.section__intro { color: var(--ink-soft); max-width: 40em; font-size: 1.08rem; }
.section--dark .section__intro { color: var(--on-dark-soft); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(20,17,15,.35); }
.service--accent { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.service__num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; display: block; margin-bottom: 1.2rem; }
.service--accent .service__num { color: var(--ink); }
.service p { color: var(--ink-soft); }
.service--accent p { color: #fff3ec; }
.service ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.service li { padding: .45rem 0 .45rem 1.6rem; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.service--accent li { border-color: rgba(255,255,255,.3); }
.service li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--accent); }
.service--accent li::before { color: var(--ink); }

/* Pricing */
.tabs { display: inline-flex; gap: 4px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 999px; padding: 5px; margin: 1.8rem 0 2.2rem; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; color: var(--on-dark-soft); font: 600 .98rem var(--sans);
  padding: .65rem 1.4rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s;
}
.tab:hover { color: var(--on-dark); }
.tab.is-active { background: var(--on-dark); color: var(--ink); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.pricing[hidden] { display: none; }
.pricing.is-active { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.plan--featured { border: 2px solid var(--accent); }
.plan__tag {
  position: absolute; top: -13px; left: 1.8rem; background: var(--accent-btn); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 999px;
}
.plan__desc { color: var(--on-dark-soft); font-size: .95rem; min-height: 4.8em; }
.plan__price { margin: .4rem 0 0; font-size: 1.05rem; color: var(--on-dark-soft); }
.plan__price span { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--on-dark); }
.plan__market { margin: .1rem 0 1.2rem; font-size: .85rem; color: var(--muted-dark); text-decoration: line-through; text-decoration-color: var(--accent); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.plan li { padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid var(--dark-line); position: relative; font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; margin-top: 2.2rem; }
.extras div { background: var(--dark); padding: 1.2rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; }
.extras span { color: var(--on-dark-soft); font-size: .9rem; }
.extras strong { font-family: var(--serif); font-size: 1.3rem; }
.note { color: var(--muted-dark); font-size: .9rem; margin-top: 1.2rem; }

/* References */
/* Pás referencí: plynule jede zleva doprava, při najetí myší se zastaví, jde přetáhnout */
.refs {
  margin-top: 2.5rem; padding: .6rem 0 1.6rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.refs__track { --gap: 1.6rem; display: flex; gap: var(--gap); width: max-content; padding-right: var(--gap); }
/* Pás posouvá JS; jde chytit myší i prstem a přetáhnout */
.refs.is-looping { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.refs.is-looping .refs__track { will-change: transform; }
.refs.is-dragging { cursor: grabbing; }
.refs.is-dragging .ref { pointer-events: none; }
.refs.is-looping img { -webkit-user-drag: none; }
.refs__track .ref { width: 360px; flex: none; }
.ref {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ref:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(20,17,15,.35); }
.ref__thumb { height: 220px; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.ref__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ref:hover .ref__thumb img { transform: scale(1.04); }
.ref__body { padding: 1.6rem 1.8rem 1.8rem; }
.ref__type { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; }
.ref__body p:not(.ref__type) { color: var(--ink-soft); margin: 0 0 1rem; }
.ref__link { font-weight: 700; color: var(--accent-ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--accent-ink); display: block; margin-bottom: .6rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; color: var(--ink-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__list li { padding: 1rem 0; border-top: 1px solid var(--dark-line); display: flex; flex-direction: column; }
.contact__list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-soft); }
.contact__list a { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; color: var(--on-dark); word-break: break-all; }
.contact__list a:hover { color: var(--accent); }

.form { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--on-dark-soft); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--sans); color: var(--on-dark); background: var(--dark);
  border: 1px solid var(--dark-line); border-radius: 10px; padding: .8rem .9rem; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .is-invalid { border-color: var(--accent); }
.form__hint { margin: 0; font-size: .82rem; color: var(--muted-dark); }
.form__hint a { color: var(--on-dark-soft); }
.form__hint a:hover { color: var(--accent); }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark-soft); border-top: 1px solid var(--dark-line); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 360px; max-width: 520px; width: 100%; margin-inline: auto; }
  .services, .pricing { grid-template-columns: 1fr; max-width: 560px; }
  .plan__desc { min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 16px 1.2rem;
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 1rem; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .extras { grid-template-columns: 1fr; }
  .refs__track .ref { width: 280px; }
  .ref__thumb { height: 175px; }
  .steps { grid-template-columns: 1fr; }
  .hero__visual { height: 300px; }
  .hero__facts { gap: 1.4rem; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: .6rem .5rem; }
  .form { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.plan__market--plain { text-decoration: none; }

/* ---------- Dynamika ---------- */

/* Ukazatel scrollu */
.progress {
  position: fixed; top: 0; left: 0; z-index: 50; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), #ffb23f);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Hero — plovoucí barevné skvrny */
.hero { position: relative; }
.hero__grid { position: relative; z-index: 1; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none;
}
.hero__blob--1 { width: 420px; height: 420px; background: #ffb23f; top: -120px; right: -80px; animation: blob 14s ease-in-out infinite; }
.hero__blob--2 { width: 340px; height: 340px; background: var(--accent); bottom: -160px; left: 30%; opacity: .25; animation: blob 18s ease-in-out infinite reverse; }
@keyframes blob {
  33% { transform: translate(-60px, 40px) scale(1.1); }
  66% { transform: translate(40px, -30px) scale(.92); }
}

/* Měnící se slovo v nadpisu */
.rotator { display: inline-block; white-space: nowrap; }
.rotator::after {
  content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 4px;
  background: var(--accent); vertical-align: -0.05em; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Úvodní animace hero */
.hero .eyebrow, .hero h1, .hero .lead, .hero__cta, .hero__facts, .hero__visual {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .16s; }
.hero__cta { animation-delay: .24s; }
.hero__facts { animation-delay: .32s; }
.hero__visual { animation-delay: .2s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Parallax vrstvy v hero (posouvá JS přes --mx/--my) */
.hero__visual { --mx: 0; --my: 0; }
.editor { translate: calc(var(--mx) * -14px) calc(var(--my) * -10px); transition: translate .3s ease-out; }
.preview { translate: calc(var(--mx) * 18px) calc(var(--my) * 14px); transition: translate .3s ease-out; }
.badge { translate: calc(var(--mx) * 8px) calc(var(--my) * 8px); transition: translate .3s ease-out; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 90, 31, .18); } }

/* Běžící pás */
.ticker { background: var(--accent); color: #fff; overflow: hidden; padding: .95rem 0; transform: rotate(-1.2deg); margin: -.6rem -10px 0; position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; white-space: nowrap; padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem; }
.ticker span::after { content: "✦"; font-size: .9rem; color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Postupné najíždění s odstupem */
.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
h2.reveal { transform: translateY(24px); }

/* Tlačítka — přejetí lesku */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }

/* Náklon karet — transform nastavuje JS inline */
.tilt { will-change: transform; }

/* Cena „naskočí“ při přepnutí záložky */
.plan__price span { display: inline-block; }
.pricing.is-active .plan__price span { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* Kroky postupu — čára se vykreslí */
.steps li { border-top-color: transparent; position: relative; }
.steps li::after {
  content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 150ms + .1s);
}
.steps li.is-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .hero__blob, .badge, .rotator::after { animation: none !important; }
  .steps li::after { transform: scaleX(1); }
  .progress { display: none; }
}

/* Formulář — skryté pole proti spamu a stav odeslání */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #7ddc9a; }
.form__status.is-error { color: #ff8a5c; }
.form__status a { color: inherit; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Plovoucí tlačítko Zavolat (jen mobil) */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: none; align-items: center; gap: .5rem;
  background: var(--accent-btn); color: #fff; text-decoration: none; font-weight: 700;
  padding: .85rem 1.15rem; border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(196, 60, 10, .6);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.call-fab svg { width: 20px; height: 20px; flex: none; }
.call-fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) { .call-fab { display: inline-flex; } }

/* Podstránky (ochrana údajů, 404) */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--accent-ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound__code { font-family: var(--serif); font-size: clamp(6rem, 22vw, 12rem); font-weight: 700; line-height: 1; color: var(--accent); margin: 0; }
.notfound .lead { margin: 1rem auto 2rem; }

/* O mně */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.about__photo { margin: 0; position: sticky; top: 96px; }
.about__photo > img, .about__monogram {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; display: block;
}
.about__monogram {
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--dark); color: var(--accent);
  font-family: var(--serif); font-weight: 700; font-size: clamp(5rem, 12vw, 9rem); letter-spacing: -.02em;
  position: relative; overflow: hidden;
}
.about__monogram::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .35), transparent 70%); filter: blur(30px);
  animation: blob 12s ease-in-out infinite;
}
.about__monogram img { position: relative; width: 78%; height: auto; margin-bottom: -10%; }
.about__monogram span { position: relative; line-height: 1; font-size: clamp(3.5rem, 8vw, 6rem); }
.about__photo figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem .2rem 0; border-bottom: 2px solid var(--ink); padding-bottom: .8rem;
}
.about__photo figcaption strong { font-family: var(--serif); font-size: 1.3rem; }
.about__photo figcaption span { color: var(--muted); font-size: .9rem; }
.about__text > p:not(.eyebrow):not(.lead):not(.about__certs) { color: var(--ink-soft); }
.about__why { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about__why li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem;
  font-size: .95rem; color: var(--ink-soft);
}
.about__why strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: .3rem; }
.about__stats { list-style: none; padding: 1.5rem 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.4rem; border-top: 1px solid var(--line); }
.about__stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--accent-ink); }
.about__stats li > span { color: var(--muted); font-size: .9rem; }
.about__certs { margin: 1.6rem 0 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__photo { position: static; max-width: 380px; }
}
@media (max-width: 560px) {
  .about__why { grid-template-columns: 1fr; }
  .about__stats { gap: 1.6rem; }
}

/* Formulář — vzorový text a potvrzení zpracování údajů */
.form ::placeholder { color: var(--muted-dark); opacity: 1; } /* kontrast 6,2 : 1 */
.consent { display: flex !important; grid-template-columns: none; gap: .7rem; align-items: flex-start; font-weight: 500 !important; font-size: .88rem !important; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px !important; height: 20px; flex: none; margin: .1rem 0 0; padding: 0; accent-color: var(--accent-btn); cursor: pointer; }
.consent a { color: var(--on-dark); }
.consent a:hover { color: var(--accent); }
.consent.is-invalid span { color: #ff8a5c; }
.legal-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent-btn); border-radius: 8px; padding: 1rem 1.3rem; margin: 1.2rem 0; }
.legal-box p { margin: .3rem 0; }
.faq details a { color: var(--accent-ink); }

@media (max-width: 760px) {
  .hero__visual { height: 430px; }
  .editor { width: 92%; }
  .editor__code { font-size: .68rem; min-height: 180px; padding: 10px 12px 14px; }
  .preview { width: 68%; }
  .preview__body { min-height: 150px; }
  .preview__h1 { font-size: 1.15rem; }
  .badge { left: 4%; top: auto; bottom: 14%; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .refs { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 16px; }
}

/* ---------- Školení ---------- */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.topic { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; transition: transform .2s, box-shadow .2s; }
.topic:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(20,17,15,.35); }
.topic__icon { width: 30px; height: 30px; color: var(--accent-ink); }
.topic h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.topic p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.offer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { border: 1.5px solid var(--ink); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; font-weight: 600; background: var(--paper); }
.chips li::before { content: "✓ "; color: var(--accent-ink); font-weight: 800; }

/* ---------- IT servis ---------- */
.servis { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
.tasks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; }
.task { display: flex; gap: 1rem; align-items: flex-start; background: var(--dark); padding: 1.4rem 1.3rem; transition: background .2s; }
.task:hover { background: var(--dark-2); }
.task .topic__icon { color: var(--accent); flex: none; margin-top: .15rem; }
.task h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.task p { margin: 0; color: var(--on-dark-soft); font-size: .92rem; }
.servis__box { background: var(--dark-2); border: 2px solid var(--accent-btn); border-radius: var(--radius); padding: 1.8rem 1.6rem; position: sticky; top: 96px; }
.servis__box h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.servis__box ol { list-style: none; padding: 0; margin: 0 0 1.4rem; counter-reset: krok; }
.servis__box ol li { counter-increment: krok; position: relative; padding: 0 0 1rem 2.6rem; color: var(--on-dark-soft); font-size: .95rem; }
.servis__box ol li::before {
  content: counter(krok); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--accent-btn); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.servis__box ol b { color: var(--on-dark); }
.chips--dark { margin-bottom: 1.4rem; }
.chips--dark li { background: transparent; border-color: var(--dark-line); color: var(--on-dark); font-size: .8rem; }
.chips--dark li::before { color: var(--accent); }
.servis__box .btn { width: 100%; }

@media (max-width: 960px) {
  .topics { grid-template-columns: 1fr 1fr; }
  .servis { grid-template-columns: 1fr; }
  .servis__box { position: static; }
}
@media (max-width: 640px) {
  .topics, .tasks { grid-template-columns: 1fr; }
  .offer-bar .btn { width: 100%; }
}
.topic__tags { display: flex; gap: .4rem; margin: 1rem 0 0 !important; }
.topic__tags span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--paper-2); color: var(--ink-soft); }
.topic { display: flex; flex-direction: column; }
.topic > p:not(.topic__tags) { flex: 1; }
.sablony {
  display: inline-block; margin: .4rem 0 0; padding: .7rem 1rem; border-left: 4px solid var(--accent-btn);
  background: #fff; border-radius: 0 10px 10px 0; color: var(--ink-soft); font-size: .98rem; max-width: 46em;
}
.sablony strong { color: var(--ink); }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.legal .toc { margin: 1.2rem 0 0; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; }
.legal .toc a { font-weight: 600; text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

/* =========================================================
   Rozcestník (index.html): dlaždice oblastí
   ========================================================= */
.hub { padding-bottom: clamp(4rem, 8vw, 6rem); }
.hub__intro { max-width: 760px; position: relative; z-index: 1; }
.hub__intro h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; margin-top: 2.6rem; position: relative; z-index: 1; }
.tile {
  --t-accent: var(--accent); --t-ink: var(--accent-ink); --t-btn: var(--accent-btn); --t-soft: #ffe2d4;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 50px -32px rgba(20,17,15,.45);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(20,17,15,.5); border-color: var(--t-accent); }
.tile--skoleni { --t-accent: #0e8a82; --t-ink: #0b6e68; --t-btn: #0b6e68; --t-soft: #d4f1ee; }
.tile__art { height: 190px; display: grid; place-items: center; background: linear-gradient(135deg, var(--t-soft), #fff 70%); border-bottom: 1px solid var(--line); overflow: hidden; }
.tile__body { padding: 1.7rem 1.8rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.tile__kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--t-ink); margin: 0 0 .5rem; }
.tile h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .6rem; }
.tile p { color: var(--ink-soft); margin: 0 0 1rem; }
.tile ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; }
.tile li { position: relative; padding-left: 1.6rem; font-weight: 600; font-size: .96rem; }
.tile li::before { content: "\2713"; position: absolute; left: 0; color: var(--t-ink); font-weight: 800; }
.tile__cta { margin-top: auto; align-self: flex-start; background: var(--t-btn); color: #fff; font-weight: 700; padding: .8rem 1.3rem; border-radius: 999px; transition: gap .2s; display: inline-flex; gap: .5rem; }
.tile:hover .tile__cta { gap: .9rem; }

/* malé ilustrace v dlaždicích */
.mini-browser { width: 74%; background: var(--dark); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 30px -18px rgba(20,17,15,.6); transform: rotate(-3deg); transition: transform .4s; }
.tile:hover .mini-browser { transform: rotate(0) scale(1.03); }
.mini-browser__bar { height: 18px; background: var(--dark-2); display: flex; gap: 5px; align-items: center; padding: 0 9px; }
.mini-browser__bar i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .3; }
.mini-browser__hero { height: 58px; margin: 10px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #ffb23f); }
.mini-browser__line { height: 7px; margin: 0 10px 6px; width: 60%; border-radius: 4px; background: var(--dark-line); }
.mini-browser__line.short { width: 38%; }
.mini-browser__cards { display: flex; gap: 6px; margin: 10px; }
.mini-browser__cards span { flex: 1; height: 26px; border-radius: 4px; background: var(--dark-2); border: 1px solid var(--dark-line); }
.mini-cert { width: 66%; background: #fff; border-radius: 8px; padding: 14px 16px 16px; border: 1px solid var(--line); border-top: 5px solid #0e8a82; box-shadow: 0 18px 30px -18px rgba(20,17,15,.5); transform: rotate(3deg); transition: transform .4s; }
.tile:hover .mini-cert { transform: rotate(0) scale(1.03); }
.mini-cert__top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mini-cert__top span { width: 22px; height: 22px; border-radius: 5px; background: var(--dark) url(../img/fenix.png) center/120% no-repeat; }
.mini-cert__top b { font-family: var(--serif); letter-spacing: .12em; font-size: .9rem; }
.mini-cert__line { height: 8px; border-radius: 4px; background: #d9e9e7; margin-bottom: 7px; width: 80%; }
.mini-cert__line.short { width: 55%; }
.mini-cert__sign { width: 40%; margin: 14px 0 0 auto; border-top: 2px solid var(--ink); }

/* =========================================================
   Stránka Školení: tyrkysové ladění se stejnými prvky
   ========================================================= */
.theme-skoleni {
  --accent: #0e8a82;      /* dekor a velký text: 3,78 : 1 na papíře */
  --accent-ink: #0b6e68;  /* malý text na světlém: 5,46 : 1 */
  --accent-text: #0e8a82;
  --accent-btn: #0b6e68;  /* bílý text na tlačítku: 6,10 : 1 */
}
.theme-skoleni .section--dark .eyebrow { color: #2cc4b8; } /* 8,68 : 1 na tmavé */
.theme-skoleni .hero__blob--1 { background: #8fdcd3; }
.theme-skoleni .progress { background: linear-gradient(90deg, var(--accent), #8fdcd3); }
.theme-skoleni .badge { animation-name: pulse-sk; }
@keyframes pulse-sk { 50% { box-shadow: 0 0 0 8px rgba(14, 138, 130, .18); } }
.theme-skoleni .call-fab { box-shadow: 0 12px 28px -8px rgba(11, 110, 104, .6); }
.theme-skoleni .ticker { background: var(--accent-btn); }

/* ukázka v úvodu školení: otevřená kniha, stránky se otáčejí, vpravo se vypisuje osnova */
.book-visual { display: grid; place-items: center; }
.book {
  position: relative; width: min(100%, 560px); aspect-ratio: 1.55; perspective: 1800px;
  transform: rotate(-2deg);
  translate: calc(var(--mx) * 12px) calc(var(--my) * 10px); transition: translate .3s ease-out;
}
.book__cover {
  position: absolute; inset: -12px -14px -16px; border-radius: 14px;
  background: linear-gradient(135deg, #0e5f5a, #0a4642); box-shadow: 0 34px 60px -26px rgba(20, 17, 15, .55);
}
.book__cover::after { /* hřbet */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.08), rgba(0,0,0,.25));
}
.book__page {
  position: absolute; top: 0; bottom: 0; width: 50%; padding: 26px 26px 30px; overflow: hidden;
  background: #fffdf7; color: var(--ink);
}
.book__page--left { left: 0; border-radius: 8px 0 0 8px; background: linear-gradient(270deg, rgba(20,17,15,.10), rgba(20,17,15,0) 14%), #fffdf7; }
.book__page--right { right: 0; border-radius: 0 8px 8px 0; background: linear-gradient(90deg, rgba(20,17,15,.10), rgba(20,17,15,0) 14%), repeating-linear-gradient(#fffdf7 0 27px, #e9f3f1 27px 28px); }
.book__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .6rem; }
.book__title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.12; margin: 0 0 .5rem; }
.book__meta { font-size: .82rem; color: var(--muted); margin: 0; }
.book__mark { position: absolute; left: 26px; bottom: 26px; width: 44px; height: 44px; border-radius: 10px; background: var(--dark); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.book__mark img { width: 36px; height: 36px; margin: -3px 0 -9px; }
.book__mark span { font-family: var(--serif); font-weight: 700; color: #ff5a1f; font-size: .6rem; }
.book__num { position: absolute; bottom: 10px; font-size: .7rem; color: var(--muted); }
.book__page--left .book__num { left: 26px; bottom: 8px; display: none; }
.book__page--right .book__num { right: 22px; }
.book__list { list-style: none; padding: 0; margin: 0; counter-reset: b; }
.book__list li {
  counter-increment: b; display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  font-size: .86rem; line-height: 28px; height: 28px; white-space: nowrap; overflow: hidden;
  opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s;
}
.book__list li.is-shown { opacity: 1; transform: none; }
.book__list li span { overflow: hidden; text-overflow: ellipsis; }
.book__list li span::before { content: counter(b) ". "; color: var(--accent-ink); font-weight: 800; }
.book__list li em { font-style: normal; color: var(--muted); font-size: .76rem; }

/* otáčená stránka */
.book__flip {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 50%; transform-origin: left center;
  transform-style: preserve-3d; z-index: 3; pointer-events: none; visibility: hidden;
}
.book.is-flipping .book__flip { visibility: visible; animation: book-flip .9s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes book-flip { from { transform: rotateY(0deg); } to { transform: rotateY(-180deg); } }
.book__flip-face { position: absolute; inset: 0; backface-visibility: hidden; background: #fffdf7; border-radius: 0 8px 8px 0; }
.book__flip-face--front { background: linear-gradient(90deg, rgba(20,17,15,.12), rgba(20,17,15,0) 20%), repeating-linear-gradient(#fffdf7 0 27px, #e9f3f1 27px 28px); }
.book__flip-face--back { transform: rotateY(180deg); border-radius: 8px 0 0 8px; background: linear-gradient(270deg, rgba(20,17,15,.12), rgba(20,17,15,0) 20%), #fffdf7; }
.book__page--left .book__title, .book__page--left .book__meta, .book__page--left .book__kicker { transition: opacity .25s; }
.book.is-swapping .book__page--left > *:not(.book__mark) { opacity: 0; }

/* přetáčení slova v nadpisu (místo psacího stroje) */
.rotator--roll { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.rotator--roll::after { display: none; }
.rotator--roll > span { grid-area: 1 / 1; transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .3s; transform: translateY(140%); opacity: 0; }
.rotator--roll > span.is-active { transform: none; opacity: 1; }
.rotator--roll > span.is-leaving { transform: translateY(-140%); opacity: 0; }

.theme-skoleni .book-visual .badge { left: 2%; top: auto; bottom: 2%; }

@media (max-width: 760px) {
  .theme-skoleni .book-visual { height: auto; padding: 14px 0 46px; }
  .theme-skoleni .book-visual .badge { bottom: 0; }
  .book { aspect-ratio: 1.35; }
  .book__page { padding: 16px 14px 20px; }
  .book__title { font-size: 1.05rem; }
  .book__meta { font-size: .72rem; }
  .book__list li { font-size: .7rem; line-height: 22px; height: 22px; }
  .book__page--right { background: linear-gradient(90deg, rgba(20,17,15,.10), rgba(20,17,15,0) 14%), repeating-linear-gradient(#fffdf7 0 21px, #e9f3f1 21px 22px); }
  .book__list li em { display: none; }
  .book__mark { width: 32px; height: 32px; left: 14px; bottom: 16px; }
  .book__mark img { width: 26px; height: 26px; margin: -2px 0 -7px; }
}

/* osnova u každého tématu */
.osnova { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.osnova summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--accent-ink); list-style: none; display: flex; align-items: center; gap: .4rem; }
.osnova summary::-webkit-details-marker { display: none; }
.osnova summary::after { content: "+"; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.osnova[open] summary::after { transform: rotate(45deg); }
.osnova ol { list-style: none; padding: 0; margin: .7rem 0 .5rem; counter-reset: o; }
.osnova li { counter-increment: o; display: flex; justify-content: space-between; gap: .6rem; padding: .32rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.osnova li span::before { content: counter(o) ". "; color: var(--accent-ink); font-weight: 700; }
.osnova li em { font-style: normal; color: var(--muted); white-space: nowrap; font-size: .85rem; }
.topic .osnova__delka { font-size: .85rem; color: var(--muted); margin: .4rem 0 .5rem; flex: none; }
.osnova__pdf { font-size: .88rem; font-weight: 700; color: var(--accent-ink); }
.osnova__pdf::before { content: "\2193  "; }

/* kdo školí */
.lektor { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: center; }
.lektor__mark { width: 220px; aspect-ratio: 1; border-radius: var(--radius); background: var(--dark); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.lektor__mark img { width: 78%; height: auto; margin-bottom: -10%; }
.lektor__mark span { font-family: var(--serif); font-weight: 700; color: #ff5a1f; font-size: 2.6rem; }
.lektor__certs { color: var(--muted); font-size: .9rem; margin: 0 0 1.4rem; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile__art { height: 150px; }
  .lektor { grid-template-columns: 1fr; gap: 1.5rem; }
  .lektor__mark { width: 140px; }
}

.theme-skoleni .topics { align-items: start; }

/* Dlaždice Školení: kartotéka, ze šuplíku vylétají složky, papíry, tužka, kružítko a pravítko */
.cabinet-scene { position: relative; width: 100%; height: 100%; container-type: inline-size; }
.cabinet { position: absolute; left: 9%; bottom: 14px; height: 78%; width: auto; overflow: visible; filter: drop-shadow(0 14px 14px rgba(20,17,15,.25)); z-index: 2; }
.cabinet__drawer--move { animation: drawer 6s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes drawer {
  0%, 12% { transform: translateX(0); }
  20%, 82% { transform: translateX(26px); }
  92%, 100% { transform: translateX(0); }
}
.fly {
  position: absolute; z-index: 1; left: calc(9% + 60px); top: 30%;
  width: 40px; display: block; opacity: 0;
  animation: fly 6s cubic-bezier(.3, .6, .4, 1) infinite;
  animation-delay: calc(var(--i) * .2s);
}
.fly svg { display: block; width: 100%; height: auto; }
@keyframes fly {
  0%, 18% { transform: translate(0, 0) rotate(0) scale(.35); opacity: 0; }
  22% { opacity: 1; }
  40% { transform: translate(calc(var(--dx) * .55), var(--dy)) rotate(calc(var(--r) * .6)) scale(1); opacity: 1; }
  58% { transform: translate(var(--dx), calc(var(--dy) * .2 + 30px)) rotate(var(--r)) scale(.95); opacity: 0; }
  100% { transform: translate(var(--dx), calc(var(--dy) * .2 + 30px)) rotate(var(--r)); opacity: 0; }
}
.tile:hover .cabinet__drawer--move, .tile:hover .fly { animation-duration: 4.5s; }
@media (max-width: 760px) {
  .fly { width: 30px; left: calc(9% + 46px); }
}
@media (prefers-reduced-motion: reduce) {
  .cabinet__drawer--move { transform: translateX(26px); }
  .fly { opacity: 1; transform: translate(calc(var(--dx) * .55), var(--dy)) rotate(calc(var(--r) * .6)); }
}

/* Dlaždice Weby: člověk u počítače, pohled se přiblíží na monitor s kódem */
.coder { width: 100%; height: 100%; display: block; }
.coder-world { transform-box: view-box; transform-origin: 240px 69px; animation: coder-zoom 11s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes coder-zoom {
  0%, 14% { transform: scale(1); }
  26%, 74% { transform: scale(2.25); }
  86%, 100% { transform: scale(1); }
}
.coder-hand { transform-box: fill-box; animation: coder-type .22s ease-in-out infinite alternate; }
@keyframes coder-type { to { transform: translateY(-1.4px); } }
.coder-code .tg { fill: #ff8a5c; }
.coder-code .at { fill: #ffb23f; }
.coder-code .st { fill: #7ddc9a; }
.coder-code .tx { fill: #d8cfc2; }
.coder-code .cr { fill: #ff5a1f; }
.tile:hover .coder-world { animation-duration: 8s; }
@media (prefers-reduced-motion: reduce) {
  .coder-world { transform: scale(2.25); }
}
.coder-code text { white-space: pre; }
