/* ==========================================================================
   Saywebpage Akademie – animované ukázky (lekce 4 a 5)
   --------------------------------------------------------------------------
   Scény jsou v app/view/gl/snippet/academy/*.php. Všechny rozměry uvnitř
   scény jsou v cqw (procenta šířky scény), takže animace vypadá stejně
   na mobilu i na desktopu. Barvy se animují přes registrované vlastnosti
   (@property), v prohlížečích bez jejich podpory se přepnou skokem.
   Při prefers-reduced-motion se animace vypnou a zůstane výsledný stav.
   ========================================================================== */

@property --aa-bg   { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --aa-ink  { syntax: '<color>'; inherits: true; initial-value: #1e293b; }
@property --aa-acc  { syntax: '<color>'; inherits: true; initial-value: #0060ed; }
@property --aa-soft { syntax: '<color>'; inherits: true; initial-value: #e2e8f0; }
@property --aa-hue  { syntax: '<color>'; inherits: true; initial-value: #0066ff; }
@property --aa-txt  { syntax: '<color>'; inherits: true; initial-value: #1e293b; }
@property --aa-btn  { syntax: '<color>'; inherits: true; initial-value: #4338ca; }

/* ---------- Základ scény ---------- */

.aa-scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  background: #0e1624;
  color: #fff;
  container-type: inline-size;
  -webkit-user-select: none;
  user-select: none;
}
.aa-scene--wide { aspect-ratio: 20 / 11; }

.aa-scene *,
.aa-scene *::before,
.aa-scene *::after { box-sizing: border-box; }

.aa-stage {
  position: absolute;
  inset: 0;
  font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 3cqw;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(0, 96, 237, .16), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(84, 108, 160, .14), transparent 60%);
}
.aa-stage img { display: block; max-width: none; }

/* Okno prohlížeče s ukázkovým webem */
.aa-win {
  position: absolute;
  background: #fff;
  border-radius: 1.6cqw;
  overflow: hidden;
  box-shadow: 0 2.6cqw 6cqw -1.4cqw rgba(0, 0, 0, .6);
}
.aa-win__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4.4cqw;
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0 2cqw;
  background: #eef2f7;
  border-bottom: .25cqw solid #e2e8f0;
}
.aa-win__bar i { width: 1.25cqw; height: 1.25cqw; border-radius: 50%; background: #cbd5e1; }
.aa-win__body { position: absolute; inset: 4.4cqw 0 0 0; overflow: hidden; }

/* Výběrový rámeček editoru se štítkem */
.aa-sel {
  position: absolute;
  border: .4cqw solid #0060ed;
  border-radius: .5cqw;
  pointer-events: none;
}
.aa-tag {
  position: absolute;
  left: 2.4cqw;
  top: 100%;
  margin-top: -.1cqw;
  padding: .75cqw 1.6cqw .85cqw;
  border-radius: 0 0 .7cqw .7cqw;
  background: #0060ed;
  color: #fff;
  font-size: 2.1cqw;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Panel editoru */
.aa-panel {
  position: absolute;
  background: #fff;
  color: #1b2336;
  border-radius: 2.2cqw;
  box-shadow: 0 2.6cqw 6cqw -1cqw rgba(2, 8, 23, .65);
}
.aa-done {
  position: absolute;
  display: grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: #0060ed;
  box-shadow: 0 1cqw 2.4cqw rgba(0, 96, 237, .45);
}
.aa-done svg { width: 46%; height: 46%; }

/* Kurzor (ruka) – špička prstu je v bodě, kam se kurzor posouvá */
.aa-cur {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 50;
  width: 6.4cqw;
  height: 6.4cqw;
  margin: -.35cqw 0 0 -2.55cqw;
  pointer-events: none;
  will-change: transform;
}
.aa-cur img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 .5cqw .7cqw rgba(0, 0, 0, .4));
  transform-origin: 40% 0;
}
.aa-cur i {
  position: absolute;
  left: -1.05cqw;
  top: -3.15cqw;
  width: 7.2cqw;
  height: 7.2cqw;
  border-radius: 50%;
  background: rgba(37, 117, 252, .55);
  transform: scale(0);
  opacity: 0;
}

/* Odznak ✓ / ✗ */
.aa-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 7.2cqw;
  height: 7.2cqw;
  border-radius: 50%;
  box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .35);
}
.aa-badge svg { width: 48%; height: 48%; }
.aa-badge--bad { background: #ef4444; }
.aa-badge--good { background: #16a34a; }

/* Pozastavení mimo obrazovku (řídí skript v academy/scripts.php) */
.aa-scene.aa-paused *,
.aa-scene.aa-paused *::before,
.aa-scene.aa-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .aa-scene *,
  .aa-scene *::before,
  .aa-scene *::after { animation: none !important; transition: none !important; }
  .aa-scene .aa-cur { display: none; }
}

/* ==========================================================================
   L4 · úvod – paleta ve Vzhledu přebarví celý web (12 s)
   ========================================================================== */

.aa-l4h { --aa-d: 12s; }

.aa-l4h-web { left: 3.5cqw; top: 5cqw; width: 61cqw; height: 45cqw; }
.aa-l4h-web .aa-win__bar { height: 2.8cqw; padding: 0 1.4cqw; gap: .7cqw; }
.aa-l4h-web .aa-win__bar i { width: .85cqw; height: .85cqw; }

.aa-l4h-site {
  top: 2.8cqw;
  --aa-bg: #f6efe6; --aa-ink: #3b2a20; --aa-acc: #d4643b; --aa-soft: #ecdccb;
  background: var(--aa-bg);
  animation: aa-l4h-pal var(--aa-d) infinite;
}

.aa-l4h-nav { display: flex; align-items: center; gap: 1.2cqw; height: 5.4cqw; padding: 0 3cqw; }
.aa-l4h-logo { position: relative; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--aa-acc); }
.aa-l4h-logo::after { content: ""; position: absolute; left: 3cqw; top: .75cqw; width: 6cqw; height: .75cqw; border-radius: 1cqw; background: var(--aa-ink); }
.aa-l4h-menu { display: flex; gap: 1.6cqw; margin-left: auto; }
.aa-l4h-menu i { width: 3.6cqw; height: .7cqw; border-radius: 1cqw; background: var(--aa-ink); opacity: .5; }
.aa-l4h-navbtn { width: 6.5cqw; height: 2.4cqw; border-radius: 2cqw; background: var(--aa-acc); margin-left: .6cqw; }

.aa-l4h-hero { display: flex; gap: 3cqw; height: 21cqw; padding: 1.6cqw 3cqw 2cqw; }
.aa-l4h-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding-top: 1.2cqw; }
.aa-l4h-eyebrow { width: 5cqw; height: .7cqw; border-radius: 1cqw; background: var(--aa-acc); margin-bottom: 1.5cqw; }
.aa-l4h-h { width: 92%; height: 2.1cqw; border-radius: .6cqw; background: var(--aa-ink); margin-bottom: 1cqw; }
.aa-l4h-h--2 { width: 64%; margin-bottom: 1.8cqw; }
.aa-l4h-p { width: 96%; height: .8cqw; border-radius: 1cqw; background: var(--aa-ink); opacity: .28; margin-bottom: .9cqw; }
.aa-l4h-p--2 { width: 88%; }
.aa-l4h-p--3 { width: 56%; }
.aa-l4h-btns { display: flex; gap: 1.2cqw; margin-top: 1.2cqw; }
.aa-l4h-btn { width: 9cqw; height: 3cqw; border-radius: 2cqw; background: var(--aa-acc); box-shadow: 0 .8cqw 1.6cqw -.6cqw var(--aa-acc); }
.aa-l4h-btn2 { width: 8cqw; height: 3cqw; border-radius: 2cqw; border: .3cqw solid var(--aa-ink); opacity: .8; }
.aa-l4h-media { position: relative; width: 21cqw; flex: none; margin-top: .6cqw; }
.aa-l4h-shape { position: absolute; inset: 1.6cqw -1.2cqw -1.2cqw 1.6cqw; border-radius: 1.8cqw; background: var(--aa-soft); }
.aa-l4h-photo { position: relative; display: block; height: 16.6cqw; border-radius: 1.4cqw; overflow: hidden; }
.aa-l4h-photo img { width: 100%; height: 100%; object-fit: cover; }

.aa-l4h-cards { display: flex; gap: 1.6cqw; padding: 0 3cqw; }
.aa-l4h-card { flex: 1; height: 9cqw; padding: 1.4cqw; border-radius: 1.2cqw; background: var(--aa-soft); }
.aa-l4h-card i { display: block; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--aa-acc); margin-bottom: 1.3cqw; }
.aa-l4h-card span { display: block; width: 80%; height: .75cqw; border-radius: 1cqw; background: var(--aa-ink); opacity: .45; margin-bottom: .8cqw; }
.aa-l4h-card span + span { width: 55%; }

.aa-l4h-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 4.4cqw; display: flex; align-items: center; gap: 2cqw; padding: 0 3cqw; background: var(--aa-ink); }
.aa-l4h-foot span { width: 7cqw; height: .7cqw; border-radius: 1cqw; background: #fff; opacity: .35; }
.aa-l4h-foot span + span { width: 10cqw; }
.aa-l4h-foot i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--aa-acc); margin-left: auto; }

/* panel Vzhled */
.aa-l4h-panel { left: 68cqw; top: 5cqw; width: 28.5cqw; height: 45cqw; }
.aa-l4h-ptitle { position: absolute; left: 2.4cqw; top: 2.3cqw; font-size: 2cqw; font-weight: 700; }
.aa-l4h-plabel { position: absolute; left: 2.4cqw; top: 6.4cqw; font-size: 1.2cqw; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.aa-l4h-rows { position: absolute; left: 2.4cqw; right: 2.4cqw; top: 10cqw; }
.aa-l4h-row { display: grid; grid-template-columns: repeat(4, 1fr); height: 4cqw; margin-bottom: 1.5cqw; border-radius: .9cqw; overflow: hidden; box-shadow: inset 0 0 0 .15cqw rgba(15, 23, 42, .08); }
.aa-l4h-ring {
  position: absolute; left: -.6cqw; top: -.6cqw; width: calc(100% + 1.2cqw); height: 5.2cqw;
  border: .35cqw solid #0060ed; border-radius: 1.3cqw;
  animation: aa-l4h-ring var(--aa-d) infinite cubic-bezier(.5, 0, .2, 1);
}
.aa-l4h-ringcheck { position: absolute; right: -1.3cqw; top: -1.3cqw; display: grid; place-items: center; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #0060ed; }
.aa-l4h-ringcheck svg { width: 55%; height: 55%; }
.aa-l4h-pbtn {
  position: absolute; left: 2.4cqw; right: 2.4cqw; top: 38.4cqw; height: 3.8cqw;
  display: flex; align-items: center; justify-content: center; gap: .8cqw;
  border: .2cqw solid #dbe3ef; border-radius: 1cqw;
  color: #0060ed; font-size: 1.3cqw; font-weight: 600; white-space: nowrap;
}
.aa-l4h-pbtn svg { width: 1.5cqw; height: 1.5cqw; }

/* kurzor */
.aa-l4h-cur { transform: translate(90cqw, 19.5cqw); animation: aa-l4h-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l4h-cur img { animation: aa-l4h-press var(--aa-d) infinite; }
.aa-l4h-cur i { animation: aa-l4h-click var(--aa-d) infinite ease-out; }

@keyframes aa-l4h-pal {
  0%, 25%   { --aa-bg: #f6efe6; --aa-ink: #3b2a20; --aa-acc: #d4643b; --aa-soft: #ecdccb; }
  30%, 53%  { --aa-bg: #eef3ee; --aa-ink: #1f3a2e; --aa-acc: #e0a526; --aa-soft: #d6e4da; }
  58%, 81%  { --aa-bg: #f3f5fb; --aa-ink: #1c2541; --aa-acc: #ff6b57; --aa-soft: #dde3f3; }
  86%, 100% { --aa-bg: #f6efe6; --aa-ink: #3b2a20; --aa-acc: #d4643b; --aa-soft: #ecdccb; }
}
@keyframes aa-l4h-ring {
  0%, 24%   { transform: translateY(0); }
  27%, 52%  { transform: translateY(5.5cqw); }
  55%, 80%  { transform: translateY(11cqw); }
  83%, 100% { transform: translateY(0); }
}
@keyframes aa-l4h-cur {
  0%, 12%   { transform: translate(90cqw, 19.5cqw); }
  19%, 25%  { transform: translate(88cqw, 22.5cqw); }
  31%, 44%  { transform: translate(91cqw, 25.5cqw); }
  50%, 53%  { transform: translate(88cqw, 28cqw); }
  59%, 72%  { transform: translate(91cqw, 31cqw); }
  78%, 81%  { transform: translate(88cqw, 17cqw); }
  88%, 100% { transform: translate(90cqw, 19.5cqw); }
}
@keyframes aa-l4h-press {
  0%, 23%, 26%, 51%, 54%, 79%, 82%, 100% { transform: scale(1); }
  24.2%, 52.2%, 80.2% { transform: scale(.86); }
}
@keyframes aa-l4h-click {
  0%, 23.9%, 29.5%, 51.9%, 57.5%, 79.9%, 85.5%, 100% { transform: scale(0); opacity: 0; }
  24%, 52%, 80% { transform: scale(.25); opacity: .95; }
  29%, 57%, 85% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L4 · slide I – pravidlo 60 : 30 : 10 (10 s)
   ========================================================================== */

.aa-l4r { --aa-d: 10s; }

.aa-l4r-web { left: 7cqw; top: 6cqw; width: 86cqw; height: 84cqw; }
.aa-l4r-site {
  --aa-bg: #f4efe7; --aa-ink: #2e4a7d; --aa-acc: #f2994a;
  background: var(--aa-bg);
  animation: aa-l4r-bg var(--aa-d) infinite, aa-l4r-ink var(--aa-d) infinite, aa-l4r-acc var(--aa-d) infinite;
}

.aa-l4r-nav { display: flex; align-items: center; height: 9cqw; padding: 0 4.5cqw; background: var(--aa-ink); }
.aa-l4r-logo { position: relative; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: var(--aa-acc); }
.aa-l4r-logo::after { content: ""; position: absolute; left: 4.6cqw; top: 1.1cqw; width: 9cqw; height: 1.2cqw; border-radius: 1cqw; background: #fff; opacity: .85; }
.aa-l4r-menu { display: flex; gap: 2.4cqw; margin-left: auto; }
.aa-l4r-menu i { width: 5.4cqw; height: 1.05cqw; border-radius: 1cqw; background: #fff; opacity: .55; }

.aa-l4r-hero { display: flex; flex-direction: column; align-items: flex-start; padding: 6cqw 5cqw 5cqw; }
.aa-l4r-h { width: 82%; height: 3.6cqw; border-radius: 1cqw; background: var(--aa-ink); margin-bottom: 1.8cqw; }
.aa-l4r-h--2 { width: 56%; margin-bottom: 3.2cqw; }
.aa-l4r-p { width: 92%; height: 1.3cqw; border-radius: 1cqw; background: var(--aa-ink); opacity: .3; margin-bottom: 1.5cqw; }
.aa-l4r-p--2 { width: 85%; }
.aa-l4r-p--3 { width: 48%; }
.aa-l4r-cta { display: flex; align-items: center; gap: 3.6cqw; margin-top: 2.8cqw; }
.aa-l4r-btn {
  width: 22cqw; height: 6cqw; border-radius: 3cqw; background: var(--aa-acc);
  animation: aa-l4r-pulse var(--aa-d) infinite;
}
.aa-l4r-link { width: 12cqw; height: 1.3cqw; border-radius: 1cqw; background: var(--aa-acc); }

.aa-l4r-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; padding: 0 5cqw; }
.aa-l4r-card { height: 19cqw; padding: 3cqw; border-radius: 2cqw; background: #fff; box-shadow: 0 .6cqw 2cqw -1cqw rgba(15, 23, 42, .25); }
.aa-l4r-card i { display: block; width: 4.4cqw; height: 4.4cqw; border-radius: 1.2cqw; background: var(--aa-acc); margin-bottom: 2.4cqw; }
.aa-l4r-card span { display: block; width: 74%; height: 1.5cqw; border-radius: 1cqw; background: var(--aa-ink); margin-bottom: 1.5cqw; }
.aa-l4r-card span + span { width: 92%; height: 1.05cqw; opacity: .3; margin-bottom: 1.2cqw; }
.aa-l4r-card span + span + span { width: 60%; }

.aa-l4r-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 8.5cqw; display: flex; align-items: center; gap: 3cqw; padding: 0 5cqw; background: var(--aa-ink); }
.aa-l4r-foot span { width: 12cqw; height: 1.05cqw; border-radius: 1cqw; background: #fff; opacity: .4; }
.aa-l4r-foot span + span { width: 18cqw; }

.aa-l4r-bar { position: absolute; left: 7cqw; top: 97cqw; width: 86cqw; height: 5.6cqw; display: flex; border-radius: 3cqw; overflow: hidden; background: rgba(255, 255, 255, .07); }
.aa-l4r-seg { height: 100%; transform-origin: left center; }
.aa-l4r-seg--1 { flex: 0 0 60%; background: #f4efe7; animation: aa-l4r-s1 var(--aa-d) infinite cubic-bezier(.5, 0, .2, 1); }
.aa-l4r-seg--2 { flex: 0 0 30%; background: #4a6fae; animation: aa-l4r-s2 var(--aa-d) infinite cubic-bezier(.5, 0, .2, 1); }
.aa-l4r-seg--3 { flex: 0 0 10%; background: #f2994a; animation: aa-l4r-s3 var(--aa-d) infinite cubic-bezier(.5, 0, .2, 1); }

.aa-l4r-legend { position: absolute; left: 7cqw; top: 107cqw; width: 86cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.aa-l4r-leg { display: flex; flex-direction: column; gap: .6cqw; font-size: 2.6cqw; color: #94a3b8; }
.aa-l4r-leg b { display: flex; align-items: center; gap: 1.2cqw; font-size: 3.8cqw; font-weight: 700; color: #fff; }
.aa-l4r-leg b::before { content: ""; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; }
.aa-l4r-leg--1 b::before { background: #f4efe7; }
.aa-l4r-leg--2 b::before { background: #4a6fae; }
.aa-l4r-leg--3 b::before { background: #f2994a; }
.aa-l4r-leg--1 { animation: aa-l4r-l1 var(--aa-d) infinite; }
.aa-l4r-leg--2 { animation: aa-l4r-l2 var(--aa-d) infinite; }
.aa-l4r-leg--3 { animation: aa-l4r-l3 var(--aa-d) infinite; }

@keyframes aa-l4r-bg  { 0%, 8%  { --aa-bg: #e9ebef; }  15%, 86% { --aa-bg: #f4efe7; }  94%, 100% { --aa-bg: #e9ebef; } }
@keyframes aa-l4r-ink { 0%, 28% { --aa-ink: #a4abb8; } 35%, 86% { --aa-ink: #2e4a7d; } 94%, 100% { --aa-ink: #a4abb8; } }
@keyframes aa-l4r-acc { 0%, 48% { --aa-acc: #8a93a3; } 55%, 86% { --aa-acc: #f2994a; } 94%, 100% { --aa-acc: #8a93a3; } }
@keyframes aa-l4r-s1 { 0%, 8%  { transform: scaleX(0); } 16%, 86% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
@keyframes aa-l4r-s2 { 0%, 28% { transform: scaleX(0); } 36%, 86% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
@keyframes aa-l4r-s3 { 0%, 48% { transform: scaleX(0); } 56%, 86% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
@keyframes aa-l4r-l1 { 0%, 9%  { opacity: 0; transform: translateY(1.6cqw); } 16%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(1.6cqw); } }
@keyframes aa-l4r-l2 { 0%, 29% { opacity: 0; transform: translateY(1.6cqw); } 36%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(1.6cqw); } }
@keyframes aa-l4r-l3 { 0%, 49% { opacity: 0; transform: translateY(1.6cqw); } 56%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(1.6cqw); } }
@keyframes aa-l4r-pulse {
  0%, 55%, 70%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 153, 74, 0); }
  60% { transform: scale(1.06); box-shadow: 0 0 0 1.6cqw rgba(242, 153, 74, .28); }
  66% { transform: scale(1); box-shadow: 0 0 0 2.8cqw rgba(242, 153, 74, 0); }
}

/* ==========================================================================
   L4 · slide II – Upravit paletu (11 s)
   ========================================================================== */

.aa-l4e { --aa-d: 11s; }
.aa-l4e-vars {
  --aa-acc: #f2710c; --aa-hue: #ff6f00;
  animation: aa-l4e-acc var(--aa-d) infinite, aa-l4e-hue var(--aa-d) infinite;
}

.aa-l4e-web { left: 7cqw; top: 44cqw; width: 86cqw; height: 76cqw; }
.aa-l4e-site { background: #fff; }
.aa-l4e-nav { display: flex; align-items: center; gap: 2cqw; height: 8cqw; padding: 0 4.5cqw; border-bottom: .25cqw solid #f1f5f9; }
.aa-l4e-logo { position: relative; width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--aa-acc); }
.aa-l4e-logo::after { content: ""; position: absolute; left: 4cqw; top: .95cqw; width: 8cqw; height: 1.1cqw; border-radius: 1cqw; background: #1e293b; }
.aa-l4e-menu { display: flex; gap: 2cqw; margin-left: auto; }
.aa-l4e-menu i { width: 4.6cqw; height: 1cqw; border-radius: 1cqw; background: #cbd5e1; }
.aa-l4e-navbtn { width: 10cqw; height: 3.6cqw; border-radius: 2cqw; background: var(--aa-acc); }
.aa-l4e-hero { display: flex; flex-direction: column; align-items: flex-start; padding: 4cqw 5cqw 0; }
.aa-l4e-h { width: 78%; height: 3.3cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 1.5cqw; }
.aa-l4e-h--2 { width: 52%; margin-bottom: 2.6cqw; }
.aa-l4e-p { width: 88%; height: 1.2cqw; border-radius: 1cqw; background: #cbd5e1; margin-bottom: 1.3cqw; }
.aa-l4e-p--2 { width: 70%; }
.aa-l4e-btns { display: flex; gap: 2.4cqw; margin-top: 2cqw; }
.aa-l4e-btn { width: 20cqw; height: 5.4cqw; border-radius: 3cqw; background: var(--aa-acc); box-shadow: 0 1cqw 2cqw -1cqw var(--aa-acc); }
.aa-l4e-btn2 { width: 17cqw; height: 5.4cqw; border-radius: 3cqw; border: .45cqw solid var(--aa-acc); }
.aa-l4e-icons { display: flex; gap: 4cqw; padding: 3.6cqw 5cqw 0; }
.aa-l4e-icons span { display: flex; align-items: center; gap: 1.6cqw; }
.aa-l4e-icons i { width: 4cqw; height: 4cqw; border-radius: 1.2cqw; background: var(--aa-acc); opacity: .9; }
.aa-l4e-icons em { width: 10cqw; height: 1.1cqw; border-radius: 1cqw; background: #cbd5e1; }
.aa-l4e-sec { position: absolute; left: 0; right: 0; bottom: 0; height: 26cqw; padding: 4cqw 5cqw 0; background: #f1f5f9; }
.aa-l4e-sech { display: block; width: 40%; height: 2.4cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 3cqw; }
.aa-l4e-seccards { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.aa-l4e-seccards span { display: block; height: 15cqw; padding: 2.6cqw; border-radius: 1.6cqw; background: #fff; border-top: .7cqw solid var(--aa-acc); }
.aa-l4e-seccards b { display: block; width: 60%; height: 1.4cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 1.6cqw; }
.aa-l4e-seccards em { display: block; width: 90%; height: 1cqw; border-radius: 1cqw; background: #cbd5e1; margin-bottom: 1.1cqw; }
.aa-l4e-seccards em + em { width: 70%; }
.aa-l4e-seccards u { display: block; width: 34%; height: 1.2cqw; border-radius: 1cqw; background: var(--aa-acc); margin-top: 1.8cqw; }

.aa-l4e-panel { left: 7cqw; top: 5cqw; width: 86cqw; height: 33cqw; z-index: 2; }
.aa-l4e-title { position: absolute; left: 4.4cqw; top: 4.2cqw; font-size: 3.6cqw; font-weight: 700; }
.aa-l4e-done { right: -2.6cqw; top: -2.6cqw; animation: aa-l4e-done var(--aa-d) infinite; }
.aa-l4e-label { position: absolute; left: 4.4cqw; top: 11.2cqw; font-size: 2.4cqw; font-weight: 600; color: #64748b; }
.aa-l4e-strip { position: absolute; left: 4.4cqw; top: 16cqw; width: 77.2cqw; height: 11cqw; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 1.6cqw; }
.aa-l4e-sw { position: relative; }
.aa-l4e-sw:first-child { border-radius: 1.6cqw 0 0 1.6cqw; }
.aa-l4e-sw:nth-child(4) { border-radius: 0 1.6cqw 1.6cqw 0; }
.aa-l4e-sw--1 { background: var(--aa-acc); }
.aa-l4e-pick {
  position: absolute; left: 50%; bottom: -2.2cqw; display: grid; place-items: center;
  width: 4.6cqw; height: 4.6cqw; margin-left: -2.3cqw; border-radius: 1.1cqw;
  background: #fff; color: #334155; box-shadow: 0 .6cqw 1.6cqw rgba(15, 23, 42, .25);
  opacity: 0; animation: aa-l4e-pick var(--aa-d) infinite;
}
.aa-l4e-pick svg { width: 60%; height: 60%; }
.aa-l4e-swring {
  position: absolute; left: -.8cqw; top: -.8cqw; width: calc(25% + 1.6cqw); height: calc(100% + 1.6cqw);
  border: .45cqw solid #0060ed; border-radius: 2.2cqw; opacity: 0;
  animation: aa-l4e-swring var(--aa-d) infinite;
}

.aa-l4e-picker {
  position: absolute; z-index: 3; left: 11cqw; top: 35cqw; width: 62cqw; height: 32cqw;
  border-radius: 1.8cqw; background: #fff; box-shadow: 0 2.6cqw 6cqw -1cqw rgba(2, 8, 23, .55), 0 0 0 .25cqw #e2e8f0;
  transform-origin: 15% 0; opacity: 0; transform: translateY(-1.5cqw) scale(.94);
  animation: aa-l4e-picker var(--aa-d) infinite cubic-bezier(.3, 0, .2, 1);
}
.aa-l4e-sat {
  position: absolute; left: 2.4cqw; top: 2.4cqw; width: 57.2cqw; height: 17.6cqw; border-radius: 1.2cqw;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, var(--aa-hue));
}
.aa-l4e-sat i { position: absolute; left: 82%; top: 12%; width: 3.4cqw; height: 3.4cqw; margin: -1.7cqw 0 0 -1.7cqw; border-radius: 50%; border: .55cqw solid #fff; box-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .35); }
.aa-l4e-preview { position: absolute; left: 2.4cqw; top: 22.6cqw; width: 6.4cqw; height: 6.4cqw; border-radius: 50%; background: var(--aa-acc); box-shadow: inset 0 0 0 .25cqw rgba(0, 0, 0, .08); }
.aa-l4e-hue {
  position: absolute; left: 11.4cqw; top: 23.8cqw; width: 48.2cqw; height: 4cqw; border-radius: 2cqw;
  background: linear-gradient(to right, #f00 0%, #ff0 16.67%, #0f0 33.33%, #0ff 50%, #00f 66.67%, #f0f 83.33%, #f00 100%);
}
.aa-l4e-hue i {
  position: absolute; left: 0; top: 50%; width: 4.8cqw; height: 4.8cqw; margin: -2.4cqw 0 0 -2.4cqw;
  border-radius: 50%; background: var(--aa-hue); border: .6cqw solid #fff; box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .35);
  transform: translateX(3.47cqw);
  animation: aa-l4e-knob var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1);
}

.aa-l4e-cur { transform: translate(78cqw, 110cqw); animation: aa-l4e-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l4e-cur img { animation: aa-l4e-press var(--aa-d) infinite; }
.aa-l4e-cur i { animation: aa-l4e-click var(--aa-d) infinite ease-out; }

@keyframes aa-l4e-acc {
  0%, 27%   { --aa-acc: #0060ed; }
  39%, 43%  { --aa-acc: #12a150; }
  55%, 88%  { --aa-acc: #f2710c; }
  96%, 100% { --aa-acc: #0060ed; }
}
@keyframes aa-l4e-hue {
  0%, 27%   { --aa-hue: #0066ff; }
  39%, 43%  { --aa-hue: #00ff5e; }
  55%, 88%  { --aa-hue: #ff6f00; }
  96%, 100% { --aa-hue: #0066ff; }
}
@keyframes aa-l4e-knob {
  0%, 27%   { transform: translateX(28.92cqw); }
  39%, 43%  { transform: translateX(19.42cqw); }
  55%, 88%  { transform: translateX(3.47cqw); }
  96%, 100% { transform: translateX(28.92cqw); }
}
@keyframes aa-l4e-picker {
  0%, 13%   { opacity: 0; transform: translateY(-1.5cqw) scale(.94); }
  18%, 69%  { opacity: 1; transform: none; }
  73%, 100% { opacity: 0; transform: translateY(-1.5cqw) scale(.94); }
}
@keyframes aa-l4e-pick {
  0%, 9%    { opacity: 0; transform: translateY(1cqw); }
  12%, 70%  { opacity: 1; transform: none; }
  74%, 100% { opacity: 0; transform: translateY(1cqw); }
}
@keyframes aa-l4e-swring {
  0%, 12.5% { opacity: 0; }
  14%, 69%  { opacity: 1; }
  72%, 100% { opacity: 0; }
}
@keyframes aa-l4e-done {
  0%, 65%, 70%, 100% { transform: scale(1); }
  67.5% { transform: scale(.9); }
}
@keyframes aa-l4e-cur {
  0%, 4%    { transform: translate(78cqw, 110cqw); }
  11%, 15%  { transform: translate(21cqw, 26.5cqw); }
  23%, 27%  { transform: translate(51.3cqw, 60.8cqw); }
  39%, 43%  { transform: translate(41.8cqw, 60.8cqw); }
  55%, 57%  { transform: translate(25.9cqw, 60.8cqw); }
  64%, 69%  { transform: translate(92cqw, 6cqw); }
  78%, 88%  { transform: translate(23cqw, 81cqw); }
  96%, 100% { transform: translate(78cqw, 110cqw); }
}
@keyframes aa-l4e-press {
  0%, 12%, 14.5%, 25%, 56.5%, 66%, 69%, 100% { transform: scale(1); }
  13%, 26.5%, 55.5%, 67.5% { transform: scale(.86); }
}
@keyframes aa-l4e-click {
  0%, 12.9%, 18.5%, 66.9%, 72.5%, 100% { transform: scale(0); opacity: 0; }
  13%, 67% { transform: scale(.25); opacity: .95; }
  18%, 72% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L4 · slide III – kontrast textu (9 s)
   ========================================================================== */

.aa-l4c { --aa-d: 9s; }
.aa-l4c-vars {
  --aa-txt: #1e293b; --aa-btn: #4338ca;
  animation: aa-l4c-txt var(--aa-d) infinite, aa-l4c-btn var(--aa-d) infinite;
}

.aa-l4c-card {
  position: absolute; left: 8cqw; top: 7cqw; width: 84cqw; height: 70cqw;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 7cqw 6.5cqw; border-radius: 2.6cqw; background: #fff;
  box-shadow: 0 2.6cqw 6cqw -1.4cqw rgba(0, 0, 0, .6);
}
.aa-l4c-eyebrow { width: 11cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--aa-btn); margin-bottom: 4cqw; }
.aa-l4c-title { font-size: 7.4cqw; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--aa-txt); margin-bottom: 3.4cqw; }
.aa-l4c-text { font-size: 3.7cqw; line-height: 1.5; color: var(--aa-txt); max-width: 92%; margin-bottom: auto; }
.aa-l4c-btn { padding: 2.4cqw 6cqw; border-radius: 4cqw; background: var(--aa-btn); color: #fff; font-size: 3.4cqw; font-weight: 700; }

.aa-l4c-meter {
  position: absolute; left: 8cqw; top: 83cqw; width: 84cqw; height: 34cqw;
  border-radius: 2.6cqw; background: #fff; color: #1b2336;
  box-shadow: 0 2.6cqw 6cqw -1.4cqw rgba(0, 0, 0, .6);
}
.aa-l4c-label { position: absolute; left: 5cqw; top: 5cqw; font-size: 2.4cqw; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.aa-l4c-pill { position: absolute; right: 4.4cqw; top: 3.9cqw; padding: .9cqw 2.2cqw; border-radius: 3cqw; font-size: 2.4cqw; font-weight: 700; white-space: nowrap; }
.aa-l4c-pill--bad { background: #fee2e2; color: #b91c1c; opacity: 0; animation: aa-l4c-bad var(--aa-d) infinite; }
.aa-l4c-pill--good { background: #dcfce7; color: #15803d; animation: aa-l4c-good var(--aa-d) infinite; }
.aa-l4c-val { position: absolute; left: 5cqw; top: 10.5cqw; font-size: 9cqw; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.aa-l4c-val--bad { color: #dc2626; opacity: 0; animation: aa-l4c-bad var(--aa-d) infinite; }
.aa-l4c-val--good { color: #16a34a; animation: aa-l4c-good var(--aa-d) infinite; }
.aa-l4c-track { position: absolute; left: 5cqw; top: 24cqw; width: 74cqw; height: 3cqw; border-radius: 2cqw; background: #e2e8f0; overflow: hidden; }
.aa-l4c-track i { position: absolute; inset: 0; border-radius: 2cqw; transform-origin: left center; background: #16a34a; transform: scaleX(.88); animation: aa-l4c-fill var(--aa-d) infinite cubic-bezier(.5, 0, .2, 1); }
.aa-l4c-tick { position: absolute; left: calc(5cqw + 74cqw * .494); top: 22.6cqw; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); font-size: 2.3cqw; font-weight: 600; color: #475569; white-space: nowrap; }
.aa-l4c-tick b { width: .5cqw; height: 5.8cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 1cqw; }

@keyframes aa-l4c-txt { 0%, 28% { --aa-txt: #bcc3cd; } 42%, 84% { --aa-txt: #1e293b; } 95%, 100% { --aa-txt: #bcc3cd; } }
@keyframes aa-l4c-btn { 0%, 28% { --aa-btn: #c7d2fe; } 42%, 84% { --aa-btn: #4338ca; } 95%, 100% { --aa-btn: #c7d2fe; } }
@keyframes aa-l4c-fill {
  0%, 28%   { transform: scaleX(.193); background: #ef4444; }
  42%, 84%  { transform: scaleX(.88); background: #16a34a; }
  95%, 100% { transform: scaleX(.193); background: #ef4444; }
}
@keyframes aa-l4c-bad  { 0%, 31% { opacity: 1; } 36%, 87% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes aa-l4c-good { 0%, 32% { opacity: 0; } 37%, 86% { opacity: 1; } 91%, 100% { opacity: 0; } }

/* ==========================================================================
   L4 · slide IV – akcentní barva patří hlavní akci (10 s)
   ========================================================================== */

.aa-l4a { --aa-d: 10s; }

.aa-l4a-web { left: 6cqw; top: 6cqw; width: 88cqw; height: 113cqw; }
.aa-l4a-site { background: #fff; }

/* prvky, které se přepínají mezi „vše svítí“ a „klid“ */
.aa-l4a-sw {
  background-color: var(--calm, transparent);
  border: .45cqw solid var(--calm-bd, transparent);
  color: var(--calm-fg, #64748b);
  animation: aa-l4a-swap var(--aa-d) infinite;
}

.aa-l4a-nav { display: flex; align-items: center; gap: 2cqw; height: 9cqw; padding: 0 5cqw; border-bottom: .25cqw solid #f1f5f9; }
.aa-l4a-logo { position: relative; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #1e293b; }
.aa-l4a-logo::after { content: ""; position: absolute; left: 4.4cqw; top: 1cqw; width: 9cqw; height: 1.2cqw; border-radius: 1cqw; background: #1e293b; }
.aa-l4a-menu { display: flex; gap: 2.2cqw; margin-left: auto; }
.aa-l4a-menu i { width: 5cqw; height: 1.05cqw; border-radius: 1cqw; background: #cbd5e1; }
.aa-l4a-navbtn { width: 12cqw; height: 4.4cqw; border-radius: 3cqw; --chaos: #a855f7; --calm-bd: #e2e8f0; }

.aa-l4a-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 6cqw 5cqw 0; }
.aa-l4a-sticker {
  position: absolute; right: 7cqw; top: 6.5cqw; display: grid; place-items: center;
  width: 11cqw; height: 11cqw; border-radius: 50%; background: #ef4444; color: #fff;
  font-size: 5cqw; font-weight: 800; transform: rotate(-12deg) scale(.6); opacity: 0;
  animation: aa-l4a-sticker var(--aa-d) infinite;
}
.aa-l4a-h { position: relative; width: 70%; height: 4cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 2cqw; }
.aa-l4a-mark { position: absolute; left: 34%; top: -1.2cqw; width: 52%; height: 6.4cqw; border-radius: .6cqw; background: #fde047; mix-blend-mode: multiply; opacity: 0; animation: aa-l4a-mark var(--aa-d) infinite; }
.aa-l4a-h--2 { width: 50%; margin-bottom: 3.4cqw; border: 0; --chaos: #ef4444; --calm: #1e293b; }
.aa-l4a-p { width: 86%; height: 1.3cqw; border-radius: 1cqw; background: #cbd5e1; margin-bottom: 1.4cqw; }
.aa-l4a-p--2 { width: 66%; }
.aa-l4a-btns { display: flex; gap: 2.6cqw; margin-top: 2.4cqw; }
.aa-l4a-btns b { display: grid; place-items: center; height: 7.2cqw; padding: 0 4.6cqw; border-radius: 4cqw; font-size: 3.1cqw; font-weight: 700; white-space: nowrap; }
.aa-l4a-cta { --chaos: #22c55e; --calm: #4f46e5; --calm-bd: #4f46e5; --calm-fg: #fff; position: relative; }
.aa-l4a-cta::after {
  content: ""; position: absolute; inset: -.45cqw; border-radius: 4cqw;
  box-shadow: 0 0 0 0 rgba(79, 70, 229, .45);
  animation: aa-l4a-glow var(--aa-d) infinite;
}
.aa-l4a-more { --chaos: #f97316; --calm-bd: #e2e8f0; }

.aa-l4a-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding: 7.5cqw 5cqw 0; }
.aa-l4a-card { display: block; height: 30cqw; padding: 3cqw; border-radius: 2cqw; background: #f8fafc; border: .25cqw solid #eef2f7; }
.aa-l4a-card i { display: block; width: 5.4cqw; height: 5.4cqw; border-radius: 1.4cqw; border: 0; margin-bottom: 2.4cqw; --calm: #e0e7ff; }
.aa-l4a-card em { display: block; width: 90%; height: 1.1cqw; border-radius: 1cqw; background: #cbd5e1; margin-bottom: 1.2cqw; }
.aa-l4a-card em + em { width: 64%; }
.aa-l4a-card u { display: block; width: 72%; height: 4.6cqw; border-radius: 3cqw; margin-top: 5cqw; --calm-bd: #e2e8f0; }
.aa-l4a-card--1 i { --chaos: #ef4444; } .aa-l4a-card--1 u { --chaos: #ec4899; }
.aa-l4a-card--2 i { --chaos: #06b6d4; } .aa-l4a-card--2 u { --chaos: #22c55e; }
.aa-l4a-card--3 i { --chaos: #eab308; } .aa-l4a-card--3 u { --chaos: #a855f7; }

.aa-l4a-banner { position: absolute; left: 5cqw; right: 5cqw; bottom: 5cqw; height: 15cqw; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; padding: 0 5cqw; border-radius: 2cqw; border: 0; --chaos: #facc15; --calm: #f1f5f9; }
.aa-l4a-banner span { width: 52%; height: 1.6cqw; border-radius: 1cqw; background: #1e293b; opacity: .75; }
.aa-l4a-banner span + span { width: 36%; height: 1.1cqw; opacity: .35; }

/* „kam se dívá oko“ */
.aa-l4a-eye {
  position: absolute; left: 0; top: 0; width: 26cqw; height: 26cqw; margin: -13cqw 0 0 -13cqw; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, .55) 0%, rgba(250, 204, 21, .25) 40%, rgba(250, 204, 21, 0) 70%);
  mix-blend-mode: multiply; pointer-events: none;
  transform: translate(26cqw, 51.5cqw);
  animation: aa-l4a-eye var(--aa-d) infinite cubic-bezier(.6, 0, .3, 1);
}

.aa-l4a-bad, .aa-l4a-good { left: 85cqw; top: 2.4cqw; z-index: 5; }
.aa-l4a-bad { opacity: 0; animation: aa-l4a-bad var(--aa-d) infinite; }
.aa-l4a-good { animation: aa-l4a-good var(--aa-d) infinite; }

.aa-l4a-cur { transform: translate(26cqw, 52cqw); animation: aa-l4a-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l4a-cur img { animation: aa-l4a-press var(--aa-d) infinite; }
.aa-l4a-cur i { animation: aa-l4a-click var(--aa-d) infinite ease-out; }

@keyframes aa-l4a-swap {
  0%, 34%, 94%, 100% { background-color: var(--chaos); border-color: var(--chaos); color: #fff; }
  44%, 86% { background-color: var(--calm, transparent); border-color: var(--calm-bd, transparent); color: var(--calm-fg, #64748b); }
}
@keyframes aa-l4a-sticker { 0%, 34%, 94%, 100% { opacity: 1; transform: rotate(-12deg) scale(1); } 42%, 88% { opacity: 0; transform: rotate(-12deg) scale(.6); } }
@keyframes aa-l4a-mark    { 0%, 34%, 94%, 100% { opacity: 1; } 42%, 88% { opacity: 0; } }
@keyframes aa-l4a-glow {
  0%, 50%, 62%, 74%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
  51% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); }
  58%, 70% { box-shadow: 0 0 0 2.6cqw rgba(79, 70, 229, 0); }
  63% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); }
}
@keyframes aa-l4a-eye {
  0%, 3%    { transform: translate(80cqw, 15cqw); }
  5%, 8%    { transform: translate(78cqw, 30cqw); }
  10%, 13%  { transform: translate(49cqw, 89cqw); }
  15%, 18%  { transform: translate(40cqw, 106cqw); }
  20%, 23%  { transform: translate(17cqw, 69cqw); }
  25%, 28%  { transform: translate(48cqw, 51.5cqw); }
  30%, 34%  { transform: translate(77cqw, 89cqw); }
  46%, 92%  { transform: translate(26cqw, 51.5cqw); }
  97%, 100% { transform: translate(80cqw, 15cqw); }
}
@keyframes aa-l4a-bad  { 0%, 36%, 92%, 100% { opacity: 1; transform: scale(1); } 40%, 88% { opacity: 0; transform: scale(.6); } }
@keyframes aa-l4a-good { 0%, 40%, 94%, 100% { opacity: 0; transform: scale(.6); } 44%, 88% { opacity: 1; transform: scale(1); } }
@keyframes aa-l4a-cur {
  0%, 52%   { transform: translate(96cqw, 130cqw); }
  62%, 72%  { transform: translate(26cqw, 52cqw); }
  82%, 100% { transform: translate(96cqw, 130cqw); }
}
@keyframes aa-l4a-press { 0%, 64%, 67%, 100% { transform: scale(1); } 65.5% { transform: scale(.86); } }
@keyframes aa-l4a-click {
  0%, 65.4%, 71%, 100% { transform: scale(0); opacity: 0; }
  65.5% { transform: scale(.25); opacity: .95; }
  70.5% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L4 · slide V – barevné pozadí odděluje sekce (14 s)
   ========================================================================== */

.aa-l4s { --aa-d: 14s; }

.aa-l4s-web { left: 6cqw; top: 5cqw; width: 88cqw; height: 116cqw; }
.aa-l4s-page { position: absolute; left: 0; right: 0; top: 0; animation: aa-l4s-scroll var(--aa-d) infinite cubic-bezier(.55, 0, .3, 1); }
.aa-l4s-s { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 6cqw 6cqw 0; background: #fff; }
.aa-l4s-s1 { height: 36cqw; }
.aa-l4s-s2 { height: 30cqw; flex-direction: row; gap: 6cqw; padding-top: 7.5cqw; background: #eef2ff; animation: aa-l4s-tint var(--aa-d) infinite; }
.aa-l4s-s3 { height: 30cqw; }
.aa-l4s-s4 { height: 28cqw; align-items: center; padding-top: 6.5cqw; background: #1e293b; animation: aa-l4s-dark var(--aa-d) infinite; }
.aa-l4s-s5 { height: 20cqw; flex-direction: row; gap: 4cqw; padding-top: 7cqw; background: #0f172a; }
.aa-l4s-s5 span { width: 12cqw; height: 1.1cqw; border-radius: 1cqw; background: #fff; opacity: .3; }

.aa-l4s-h { width: 68%; height: 3.2cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 1.6cqw; }
.aa-l4s-h--2 { width: 46%; margin-bottom: 3cqw; }
.aa-l4s-h--sm { width: 36%; height: 2.4cqw; margin-bottom: 3cqw; }
.aa-l4s-h--c { width: 58%; height: 2.8cqw; background: #fff; animation: aa-l4s-ink var(--aa-d) infinite; }
.aa-l4s-h--c2 { width: 40%; height: 2.8cqw; background: #fff; margin-bottom: 3cqw; animation: aa-l4s-ink var(--aa-d) infinite; }
.aa-l4s-p { width: 76%; height: 1.15cqw; border-radius: 1cqw; background: #cbd5e1; margin-bottom: 1.3cqw; }
.aa-l4s-p--2 { width: 64%; }
.aa-l4s-btn { width: 22cqw; height: 5.4cqw; border-radius: 3cqw; background: #4f46e5; margin-top: 1.6cqw; }
.aa-l4s-btn--c { margin-top: 0; }
.aa-l4s-col { flex: 1; display: flex; flex-direction: column; }
.aa-l4s-col i { width: 6cqw; height: 6cqw; border-radius: 50%; background: #c7d2fe; margin-bottom: 2.6cqw; }
.aa-l4s-col em { width: 100%; height: 1.1cqw; border-radius: 1cqw; background: #94a3b8; opacity: .6; margin-bottom: 1.2cqw; }
.aa-l4s-col em + em { width: 70%; }
.aa-l4s-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; width: 100%; }
.aa-l4s-thumbs i { height: 15cqw; border-radius: 1.4cqw; background: linear-gradient(160deg, #e2e8f0, #cbd5e1); }

.aa-l4s-sel { left: .3cqw; right: .3cqw; top: 36cqw; height: 30cqw; opacity: 0; animation: aa-l4s-sel var(--aa-d) infinite, aa-l4s-selpos var(--aa-d) infinite cubic-bezier(.55, 0, .3, 1); }
.aa-l4s-sel .aa-tag { font-size: 2.3cqw; }

.aa-l4s-panel { left: 54cqw; top: 33cqw; width: 38cqw; height: 35cqw; z-index: 3; opacity: 0; animation: aa-l4s-panel var(--aa-d) infinite cubic-bezier(.3, 0, .2, 1); }
.aa-l4s-ptitle { position: absolute; left: 3.2cqw; top: 3.4cqw; right: 2cqw; font-size: 2.9cqw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-l4s-swatches { position: absolute; left: 3.2cqw; top: 10cqw; display: grid; grid-template-columns: repeat(3, 8.6cqw); gap: 2.4cqw; }
.aa-l4s-swatches i { width: 8.6cqw; height: 8.6cqw; border-radius: 50%; box-shadow: inset 0 0 0 .3cqw rgba(15, 23, 42, .12); }
.aa-l4s-ring {
  position: absolute; left: 11cqw; top: 0; width: 8.6cqw; height: 8.6cqw; border-radius: 50%;
  box-shadow: 0 0 0 .5cqw #fff, 0 0 0 1cqw #0060ed; opacity: 0;
  animation: aa-l4s-ring var(--aa-d) infinite cubic-bezier(.5, 0, .2, 1);
}

.aa-l4s-cur { transform: translate(86cqw, 114cqw); animation: aa-l4s-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l4s-cur img { animation: aa-l4s-press var(--aa-d) infinite; }
.aa-l4s-cur i { animation: aa-l4s-click var(--aa-d) infinite ease-out; }

@keyframes aa-l4s-scroll {
  0%, 29%   { transform: translateY(0); }
  37%, 56%  { transform: translateY(-24cqw); }
  66%, 70%  { transform: translateY(0); }
  79%, 86%  { transform: translateY(-32.4cqw); }
  94%, 100% { transform: translateY(0); }
}
@keyframes aa-l4s-tint { 0%, 22.5% { background-color: #fff; } 27%, 86% { background-color: #eef2ff; } 93%, 100% { background-color: #fff; } }
@keyframes aa-l4s-dark { 0%, 48.5% { background-color: #fff; } 53%, 86% { background-color: #1e293b; } 93%, 100% { background-color: #fff; } }
@keyframes aa-l4s-ink  { 0%, 48.5% { background-color: #1e293b; } 53%, 86% { background-color: #fff; } 93%, 100% { background-color: #1e293b; } }
@keyframes aa-l4s-sel  { 0%, 8.5% { opacity: 0; } 10.5%, 56% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes aa-l4s-selpos { 0%, 33% { top: 36cqw; height: 30cqw; } 38%, 100% { top: 96cqw; height: 28cqw; } }
@keyframes aa-l4s-panel {
  0%, 11%   { opacity: 0; transform: translateX(3cqw) scale(.96); }
  15%, 56%  { opacity: 1; transform: none; }
  60%, 100% { opacity: 0; transform: translateX(3cqw) scale(.96); }
}
@keyframes aa-l4s-ring {
  0%, 21.5% { opacity: 0; transform: translateY(0); }
  23%, 45%  { opacity: 1; transform: translateY(0); }
  48%, 56%  { opacity: 1; transform: translateY(11cqw); }
  59%, 100% { opacity: 0; transform: translateY(11cqw); }
}
@keyframes aa-l4s-cur {
  0%, 5%    { transform: translate(86cqw, 114cqw); }
  9.5%, 11% { transform: translate(30cqw, 61cqw); }
  19%, 23%  { transform: translate(72.5cqw, 47.3cqw); }
  30%, 34%  { transform: translate(40cqw, 78cqw); }
  39%, 41.5% { transform: translate(28cqw, 97cqw); }
  46%, 49%  { transform: translate(72.5cqw, 58.3cqw); }
  58%, 100% { transform: translate(86cqw, 114cqw); }
}
@keyframes aa-l4s-press { 0%, 9%, 11%, 21.5%, 23.5%, 40%, 42%, 47%, 49%, 100% { transform: scale(1); } 10%, 22.5%, 41%, 48% { transform: scale(.86); } }
@keyframes aa-l4s-click {
  0%, 9.9%, 14.5%, 22.4%, 27%, 40.9%, 45.5%, 47.9%, 52.5%, 100% { transform: scale(0); opacity: 0; }
  10%, 22.5%, 41%, 48% { transform: scale(.25); opacity: .95; }
  14%, 26.5%, 45%, 52% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L5 · úvod – filtry v Úpravě obrázku (14 s)
   ========================================================================== */

.aa-l5h { --aa-d: 14s; }

.aa-l5h-frame { position: absolute; left: 5cqw; top: 6cqw; width: 55cqw; height: 42cqw; }
.aa-l5h-photo { position: absolute; inset: 0; overflow: hidden; border-radius: .4cqw; background: #1e293b; }
.aa-l5h-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 55% 45%;
  filter: sepia(.2) saturate(1.35) brightness(1.05) contrast(1) grayscale(0);
  animation: aa-l5h-filter var(--aa-d) infinite, aa-l5h-zoom var(--aa-d) infinite ease-in-out;
}
.aa-l5h-tint { position: absolute; inset: 0; mix-blend-mode: soft-light; background: #f59e0b; opacity: .5; animation: aa-l5h-tint var(--aa-d) infinite; }
.aa-l5h-grid i { position: absolute; background: rgba(255, 255, 255, .55); }
.aa-l5h-grid i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: .16cqw; }
.aa-l5h-grid i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: .16cqw; }
.aa-l5h-grid i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: .16cqw; }
.aa-l5h-grid i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: .16cqw; }
.aa-l5h-corners i { position: absolute; width: 3cqw; height: 3cqw; border: 0 solid #fff; }
.aa-l5h-corners i:nth-child(1) { left: -.35cqw; top: -.35cqw; border-width: .6cqw 0 0 .6cqw; }
.aa-l5h-corners i:nth-child(2) { right: -.35cqw; top: -.35cqw; border-width: .6cqw .6cqw 0 0; }
.aa-l5h-corners i:nth-child(3) { left: -.35cqw; bottom: -.35cqw; border-width: 0 0 .6cqw .6cqw; }
.aa-l5h-corners i:nth-child(4) { right: -.35cqw; bottom: -.35cqw; border-width: 0 .6cqw .6cqw 0; }
.aa-l5h-sel { inset: -1.1cqw; border-width: .25cqw; }
.aa-l5h-sel .aa-tag { left: 1.6cqw; font-size: 1.25cqw; padding: .5cqw 1.1cqw .6cqw; border-radius: 0 0 .5cqw .5cqw; }

.aa-l5h-panel { left: 65cqw; top: 5cqw; width: 31cqw; height: 45cqw; }
.aa-l5h-title { position: absolute; left: 2.4cqw; top: 2.3cqw; font-size: 1.9cqw; font-weight: 700; white-space: nowrap; }
.aa-l5h-tools { position: absolute; left: 2.4cqw; right: 2.4cqw; top: 6.4cqw; display: flex; gap: .9cqw; }
.aa-l5h-chip, .aa-l5h-ico { display: inline-flex; align-items: center; justify-content: center; gap: .6cqw; height: 3.2cqw; border: .18cqw solid #dbe3ef; border-radius: .8cqw; color: #334155; font-size: 1.25cqw; font-weight: 600; }
.aa-l5h-chip { padding: 0 1.2cqw; }
.aa-l5h-ico { width: 3.2cqw; }
.aa-l5h-chip svg, .aa-l5h-ico svg { width: 1.5cqw; height: 1.5cqw; }
.aa-l5h-filters { position: absolute; left: 2.4cqw; top: 11.6cqw; width: 26.2cqw; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6cqw; row-gap: 1.4cqw; }
.aa-l5h-f { display: block; }
.aa-l5h-f i { position: relative; display: block; height: 8.4cqw; border-radius: .8cqw; overflow: hidden; }
.aa-l5h-f i::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0; }
.aa-l5h-f--warm i::after { background: #f59e0b; opacity: .5; }
.aa-l5h-f--cool i::after { background: #3b82f6; opacity: .8; }
.aa-l5h-f img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.aa-l5h-f b { display: block; margin-top: 1.1cqw; font-size: 1.2cqw; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-l5h-f--warm img { filter: sepia(.2) saturate(1.35) brightness(1.05); }
.aa-l5h-f--cool img { filter: saturate(.85) brightness(1.06); }
.aa-l5h-f--mute img { filter: sepia(.1) saturate(.5) brightness(1.1) contrast(.85); }
.aa-l5h-f--gray img { filter: brightness(1.04) contrast(1.1) grayscale(1); }
.aa-l5h-ring {
  position: absolute; left: -.5cqw; top: -.5cqw; width: calc(50% - .8cqw + 1cqw); height: 9.4cqw;
  border: .3cqw solid #0060ed; border-radius: 1.2cqw;
  animation: aa-l5h-ring var(--aa-d) infinite cubic-bezier(.5, 0, .2, 1);
}
.aa-l5h-done { position: absolute; left: 2.4cqw; right: 2.4cqw; bottom: 2.6cqw; height: 3.8cqw; display: grid; place-items: center; border-radius: 2cqw; background: #0060ed; color: #fff; font-size: 1.4cqw; font-weight: 700; }

.aa-l5h-cur { transform: translate(75cqw, 23cqw); animation: aa-l5h-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l5h-cur img { animation: aa-l5h-press var(--aa-d) infinite; }
.aa-l5h-cur i { animation: aa-l5h-click var(--aa-d) infinite ease-out; }

@keyframes aa-l5h-filter {
  0%, 20.5%  { filter: sepia(.2) saturate(1.35) brightness(1.05) contrast(1) grayscale(0); }
  24%, 40.5% { filter: sepia(0) saturate(.85) brightness(1.06) contrast(1) grayscale(0); }
  44%, 60.5% { filter: sepia(0) saturate(1) brightness(1.04) contrast(1.1) grayscale(1); }
  64%, 80.5% { filter: sepia(.1) saturate(.5) brightness(1.1) contrast(.85) grayscale(0); }
  84%, 100%  { filter: sepia(.2) saturate(1.35) brightness(1.05) contrast(1) grayscale(0); }
}
@keyframes aa-l5h-tint {
  0%, 20.5%  { background-color: #f59e0b; opacity: .5; }
  24%, 40.5% { background-color: #3b82f6; opacity: .8; }
  44%, 80.5% { background-color: #3b82f6; opacity: 0; }
  81%        { background-color: #f59e0b; opacity: 0; }
  84%, 100%  { background-color: #f59e0b; opacity: .5; }
}
@keyframes aa-l5h-zoom { 0%, 100% { transform: scale(1.02); } 50% { transform: scale(1.08); } }
@keyframes aa-l5h-ring {
  0%, 20%   { transform: translate(0, 0); }
  23%, 40%  { transform: translate(14.1cqw, 0); }
  43%, 60%  { transform: translate(14.1cqw, 12.4cqw); }
  63%, 80%  { transform: translate(0, 12.4cqw); }
  83%, 100% { transform: translate(0, 0); }
}
@keyframes aa-l5h-cur {
  0%, 11%   { transform: translate(75cqw, 23cqw); }
  16%, 21%  { transform: translate(88.5cqw, 21cqw); }
  27%, 33%  { transform: translate(91cqw, 25cqw); }
  37%, 41%  { transform: translate(88.5cqw, 33.2cqw); }
  47%, 53%  { transform: translate(91cqw, 38cqw); }
  57%, 61%  { transform: translate(74.4cqw, 33.2cqw); }
  67%, 73%  { transform: translate(77cqw, 38cqw); }
  77%, 81%  { transform: translate(74.4cqw, 21cqw); }
  87%, 100% { transform: translate(75cqw, 23cqw); }
}
@keyframes aa-l5h-press { 0%, 19%, 21.5%, 39%, 41.5%, 59%, 61.5%, 79%, 81.5%, 100% { transform: scale(1); } 20.2%, 40.2%, 60.2%, 80.2% { transform: scale(.86); } }
@keyframes aa-l5h-click {
  0%, 19.9%, 25%, 39.9%, 45%, 59.9%, 65%, 79.9%, 85%, 100% { transform: scale(0); opacity: 0; }
  20%, 40%, 60%, 80% { transform: scale(.25); opacity: .95; }
  24.5%, 44.5%, 64.5%, 84.5% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L5 · slide I – ostrá fotka místo rozpixelované (9 s)
   ========================================================================== */

.aa-l5q { --aa-d: 9s; }

.aa-l5q-web { left: 7cqw; top: 6cqw; width: 86cqw; height: 113cqw; }
.aa-l5q-site { background: #fff; }
.aa-l5q-nav { display: flex; align-items: center; height: 8.5cqw; padding: 0 5cqw; }
.aa-l5q-logo { position: relative; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #b45309; }
.aa-l5q-logo::after { content: ""; position: absolute; left: 4.4cqw; top: 1cqw; width: 10cqw; height: 1.2cqw; border-radius: 1cqw; background: #1e293b; }
.aa-l5q-menu { display: flex; gap: 2.2cqw; margin-left: auto; }
.aa-l5q-menu i { width: 5cqw; height: 1.05cqw; border-radius: 1cqw; background: #cbd5e1; }

.aa-l5q-photo { position: absolute; left: 5cqw; right: 5cqw; top: 9cqw; height: 62cqw; border-radius: 1.4cqw; background: #7c4a2d; }
.aa-l5q-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1.4cqw; }
.aa-l5q-low { image-rendering: pixelated; }
.aa-l5q-high { animation: aa-l5q-reveal var(--aa-d) infinite cubic-bezier(.5, 0, .3, 1); }
.aa-l5q-sweep {
  position: absolute; top: 0; bottom: 0; left: 0; width: 1cqw; margin-left: -.5cqw; opacity: 0;
  background: #fff; box-shadow: 0 0 3cqw 1.4cqw rgba(255, 255, 255, .65);
  animation: aa-l5q-sweep var(--aa-d) infinite cubic-bezier(.5, 0, .3, 1);
}
.aa-l5q-pill { position: absolute; left: 3cqw; top: 3cqw; padding: 1.1cqw 2.2cqw; border-radius: 3cqw; color: #fff; font-size: 2.7cqw; font-weight: 700; white-space: nowrap; box-shadow: 0 .8cqw 2cqw rgba(0, 0, 0, .3); }
.aa-l5q-pill--bad { background: #ef4444; opacity: 0; animation: aa-l5q-bad var(--aa-d) infinite; }
.aa-l5q-pill--good { background: #16a34a; animation: aa-l5q-good var(--aa-d) infinite; }
.aa-l5q-sel { inset: -1cqw; opacity: 0; animation: aa-l5q-ui var(--aa-d) infinite; }
.aa-l5q-change {
  position: absolute; right: 3cqw; bottom: 3cqw; display: inline-flex; align-items: center; gap: 1.2cqw;
  padding: 1.6cqw 2.6cqw; border-radius: 1.4cqw; background: #fff; color: #1b2336;
  font-size: 2.6cqw; font-weight: 600; white-space: nowrap; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .35);
  opacity: 0; animation: aa-l5q-ui var(--aa-d) infinite;
}
.aa-l5q-change svg { width: 3cqw; height: 3cqw; color: #0060ed; }

.aa-l5q-copy { position: absolute; left: 5cqw; right: 5cqw; top: 77cqw; display: flex; flex-direction: column; align-items: flex-start; }
.aa-l5q-h { width: 74%; height: 3.4cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 1.6cqw; }
.aa-l5q-h--2 { width: 48%; margin-bottom: 3cqw; }
.aa-l5q-p { width: 94%; height: 1.2cqw; border-radius: 1cqw; background: #cbd5e1; margin-bottom: 1.4cqw; }
.aa-l5q-p--2 { width: 86%; }
.aa-l5q-p--3 { width: 52%; }
.aa-l5q-btn { width: 24cqw; height: 6cqw; border-radius: 3cqw; background: #b45309; margin-top: 2cqw; }

/* tlačítko „Změnit obrázek“: střed cca 70 × 75 cqw */
.aa-l5q-cur { transform: translate(98cqw, 130cqw); animation: aa-l5q-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l5q-cur img { animation: aa-l5q-press var(--aa-d) infinite; }
.aa-l5q-cur i { animation: aa-l5q-click var(--aa-d) infinite ease-out; }

@keyframes aa-l5q-reveal {
  0%, 30%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  45%, 86%  { clip-path: inset(0 0 0 0); opacity: 1; }
  94%       { clip-path: inset(0 0 0 0); opacity: 0; }
  95%, 100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}
@keyframes aa-l5q-sweep {
  0%, 29%   { left: 0; opacity: 0; }
  31%       { left: 0; opacity: 1; }
  44%       { left: 100%; opacity: 1; }
  46%, 100% { left: 100%; opacity: 0; }
}
@keyframes aa-l5q-bad  { 0%, 43%, 92%, 100% { opacity: 1; transform: none; } 46%, 89% { opacity: 0; transform: scale(.85); } }
@keyframes aa-l5q-good { 0%, 45%, 91%, 100% { opacity: 0; transform: scale(.85); } 48%, 88% { opacity: 1; transform: none; } }
@keyframes aa-l5q-ui   { 0%, 6% { opacity: 0; } 10%, 50% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes aa-l5q-cur {
  0%, 12%   { transform: translate(98cqw, 130cqw); }
  22%, 28%  { transform: translate(70cqw, 75.5cqw); }
  38%, 100% { transform: translate(98cqw, 130cqw); }
}
@keyframes aa-l5q-press { 0%, 24%, 26.5%, 100% { transform: scale(1); } 25.2% { transform: scale(.86); } }
@keyframes aa-l5q-click {
  0%, 25.1%, 30.5%, 100% { transform: scale(0); opacity: 0; }
  25.2% { transform: scale(.25); opacity: .95; }
  30% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L5 · slide II – ořez a kompozice (11 s)
   Fotka 760 × 997 se vejde do plochy 78 × 92 cqw → 70,13 × 92 cqw.
   Ořez 4:3 v plné šířce má výšku 52,6 cqw (spodní okraj se posune o 39,4 cqw).
   ========================================================================== */

.aa-l5c { --aa-d: 11s; }

.aa-l5c-panel { left: 6cqw; top: 5cqw; width: 88cqw; height: 115cqw; }
.aa-l5c-title { position: absolute; left: 5cqw; top: 4.4cqw; font-size: 3.4cqw; font-weight: 700; white-space: nowrap; }
.aa-l5c-done { right: -2.8cqw; top: -2.8cqw; animation: aa-l5c-done var(--aa-d) infinite; }
.aa-l5c-tools { position: absolute; left: 5cqw; top: 11cqw; display: flex; gap: 1.6cqw; }
.aa-l5c-chip, .aa-l5c-ico { display: inline-flex; align-items: center; justify-content: center; gap: 1.2cqw; height: 6cqw; border: .3cqw solid #dbe3ef; border-radius: 1.4cqw; color: #334155; font-size: 2.5cqw; font-weight: 600; }
.aa-l5c-chip { padding: 0 2.4cqw; }
.aa-l5c-ico { width: 6cqw; }
.aa-l5c-chip svg, .aa-l5c-ico svg { width: 2.8cqw; height: 2.8cqw; }
.aa-l5c-ratio { position: relative; display: inline-grid; }
.aa-l5c-ratio b { grid-area: 1 / 1; font-weight: 600; white-space: nowrap; }
.aa-l5c-r1 { opacity: 0; animation: aa-l5c-r1 var(--aa-d) infinite; }
.aa-l5c-r2 { animation: aa-l5c-r2 var(--aa-d) infinite; }

.aa-l5c-stage { position: absolute; left: 5cqw; top: 20.5cqw; width: 78cqw; height: 92cqw; border-radius: 1.6cqw; overflow: hidden; background: #e8edf3; }
.aa-l5c-img { position: absolute; left: 3.94cqw; top: 0; width: 70.13cqw; height: 92cqw; }
.aa-l5c-box {
  position: absolute; left: 3.94cqw; right: 3.94cqw; top: 0; bottom: 39.4cqw;
  border: .4cqw solid #fff;
  box-shadow: 0 0 0 120cqw rgba(232, 237, 243, .82);
  animation: aa-l5c-box var(--aa-d) infinite cubic-bezier(.55, 0, .25, 1), aa-l5c-shade var(--aa-d) infinite;
}
.aa-l5c-box i { position: absolute; background: rgba(255, 255, 255, .6); opacity: 0; animation: aa-l5c-grid var(--aa-d) infinite; }
.aa-l5c-g1 { left: 33.33%; top: 0; bottom: 0; width: .25cqw; }
.aa-l5c-g2 { left: 66.66%; top: 0; bottom: 0; width: .25cqw; }
.aa-l5c-g3 { top: 33.33%; left: 0; right: 0; height: .25cqw; }
.aa-l5c-g4 { top: 66.66%; left: 0; right: 0; height: .25cqw; }
.aa-l5c-box em { position: absolute; width: 5cqw; height: 5cqw; border: 0 solid #fff; }
.aa-l5c-c1 { left: -1.1cqw; top: -1.1cqw; border-width: 1cqw 0 0 1cqw !important; }
.aa-l5c-c2 { right: -1.1cqw; top: -1.1cqw; border-width: 1cqw 1cqw 0 0 !important; }
.aa-l5c-c3 { left: -1.1cqw; bottom: -1.1cqw; border-width: 0 0 1cqw 1cqw !important; }
.aa-l5c-c4 { right: -1.1cqw; bottom: -1.1cqw; border-width: 0 1cqw 1cqw 0 !important; }

/* čip poměru stran ≈ 21 × 19,5 cqw, potvrzení ≈ 93 × 5,7 cqw */
.aa-l5c-cur { transform: translate(72cqw, 116cqw); animation: aa-l5c-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l5c-cur img { animation: aa-l5c-press var(--aa-d) infinite; }
.aa-l5c-cur i { animation: aa-l5c-click var(--aa-d) infinite ease-out; }

@keyframes aa-l5c-box   { 0%, 17%, 96%, 100% { bottom: 0; } 31%, 86% { bottom: 39.4cqw; } }
@keyframes aa-l5c-shade {
  0%, 17%, 96%, 100% { box-shadow: 0 0 0 120cqw rgba(14, 22, 36, .45); }
  31%, 60%  { box-shadow: 0 0 0 120cqw rgba(14, 22, 36, .55); }
  66%, 86%  { box-shadow: 0 0 0 120cqw rgba(232, 237, 243, .92); }
}
@keyframes aa-l5c-grid  { 0%, 17% { opacity: 0; } 22%, 58% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes aa-l5c-r1    { 0%, 15% { opacity: 1; } 17.5%, 92% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes aa-l5c-r2    { 0%, 15.5% { opacity: 0; } 18%, 91.5% { opacity: 1; } 94.5%, 100% { opacity: 0; } }
@keyframes aa-l5c-done  { 0%, 56%, 60%, 100% { transform: scale(1); } 58% { transform: scale(.9); } }
@keyframes aa-l5c-cur {
  0%, 5%    { transform: translate(72cqw, 116cqw); }
  12%, 16%  { transform: translate(20cqw, 19.5cqw); }
  26%, 38%  { transform: translate(44cqw, 48cqw); }
  50%, 59%  { transform: translate(93cqw, 5.8cqw); }
  70%, 86%  { transform: translate(98cqw, 40cqw); }
  95%, 100% { transform: translate(72cqw, 116cqw); }
}
@keyframes aa-l5c-press { 0%, 14%, 16.5%, 56.5%, 59%, 100% { transform: scale(1); } 15.2%, 57.8% { transform: scale(.86); } }
@keyframes aa-l5c-click {
  0%, 15.1%, 20.5%, 57.7%, 63%, 100% { transform: scale(0); opacity: 0; }
  15.2%, 57.8% { transform: scale(.25); opacity: .95; }
  20%, 62.5%  { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L5 · slide III – jednotný styl fotek (10 s)
   ========================================================================== */

.aa-l5s { --aa-d: 10s; }

.aa-l5s-web { left: 6cqw; top: 5cqw; width: 88cqw; height: 83cqw; }
.aa-l5s-site { background: #fff; padding: 5.5cqw 5cqw 0; }
.aa-l5s-h { display: block; width: 46%; height: 3.2cqw; border-radius: 1cqw; background: #1e293b; margin-bottom: 1.8cqw; }
.aa-l5s-p { display: block; width: 70%; height: 1.2cqw; border-radius: 1cqw; background: #cbd5e1; margin-bottom: 4cqw; }
.aa-l5s-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2cqw; height: 58cqw; }
.aa-l5s-ph { position: relative; display: block; overflow: hidden; border-radius: 1.4cqw; background: #1e293b; }
.aa-l5s-ph--1 { grid-row: span 2; }
.aa-l5s-ph img { width: 100%; height: 100%; object-fit: cover; }
.aa-l5s-ph--1 img { object-position: 40% 15%; }
.aa-l5s-ph--3 img { object-position: 30% 40%; }
.aa-l5s-ph i { position: absolute; inset: 0; mix-blend-mode: soft-light; background: #f59e0b; opacity: .5; }

/* výchozí stav = sjednoceno filtrem Oteplit */
.aa-l5s-ph img { filter: sepia(.2) saturate(1.35) brightness(1.05) contrast(1) grayscale(0); }
.aa-l5s-ph--1 img { animation: aa-l5s-f1 var(--aa-d) infinite; }
.aa-l5s-ph--2 img { animation: aa-l5s-f2 var(--aa-d) infinite; }
.aa-l5s-ph--3 img { animation: aa-l5s-f3 var(--aa-d) infinite; }
.aa-l5s-ph--1 i { animation: aa-l5s-t1 var(--aa-d) infinite; }
.aa-l5s-ph--2 i, .aa-l5s-ph--3 i { animation: aa-l5s-t2 var(--aa-d) infinite; }

.aa-l5s-bad, .aa-l5s-good { left: 85cqw; top: 1.6cqw; z-index: 5; }
.aa-l5s-bad { opacity: 0; animation: aa-l5s-bad var(--aa-d) infinite; }
.aa-l5s-good { animation: aa-l5s-good var(--aa-d) infinite; }

.aa-l5s-panel { left: 6cqw; top: 92cqw; width: 88cqw; height: 29cqw; }
.aa-l5s-ptitle { position: absolute; left: 4cqw; top: 3.4cqw; font-size: 2.6cqw; font-weight: 700; }
.aa-l5s-filters { position: absolute; left: 4cqw; right: 4cqw; top: 9cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4cqw; }
.aa-l5s-f { display: block; }
.aa-l5s-f i { position: relative; display: block; height: 11.5cqw; border-radius: 1.2cqw; overflow: hidden; }
.aa-l5s-f i::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0; }
.aa-l5s-f img { width: 100%; height: 100%; object-fit: cover; }
.aa-l5s-f b { display: block; margin-top: 1.2cqw; font-size: 2.1cqw; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-l5s-f--darken img { filter: brightness(.7) contrast(1.05); }
.aa-l5s-f--warm img { filter: sepia(.2) saturate(1.35) brightness(1.05); }
.aa-l5s-f--warm i::after { background: #f59e0b; opacity: .5; }
.aa-l5s-f--cool img { filter: saturate(.85) brightness(1.06); }
.aa-l5s-f--cool i::after { background: #3b82f6; opacity: .8; }
.aa-l5s-f--mute img { filter: sepia(.1) saturate(.5) brightness(1.1) contrast(.85); }
.aa-l5s-ring {
  position: absolute; top: -.7cqw; left: calc((100% - 7.2cqw) / 4 + 2.4cqw - .7cqw); width: calc((100% - 7.2cqw) / 4 + 1.4cqw); height: 12.9cqw;
  border: .45cqw solid #0060ed; border-radius: 1.7cqw; opacity: 0;
  animation: aa-l5s-ring var(--aa-d) infinite;
}

/* náhled „Oteplit“ ≈ 39,7 × 105,8 cqw */
.aa-l5s-cur { transform: translate(98cqw, 132cqw); animation: aa-l5s-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l5s-cur img { animation: aa-l5s-press var(--aa-d) infinite; }
.aa-l5s-cur i { animation: aa-l5s-click var(--aa-d) infinite ease-out; }

@keyframes aa-l5s-f1 {
  0%, 26%, 96%, 100% { filter: sepia(0) saturate(.85) brightness(1.06) contrast(1) grayscale(0); }
  38%, 86% { filter: sepia(.2) saturate(1.35) brightness(1.05) contrast(1) grayscale(0); }
}
@keyframes aa-l5s-f2 {
  0%, 26%, 96%, 100% { filter: sepia(0) saturate(2) brightness(1.05) contrast(1.25) grayscale(0); }
  38%, 86% { filter: sepia(.2) saturate(1.35) brightness(1.05) contrast(1) grayscale(0); }
}
@keyframes aa-l5s-f3 {
  0%, 26%, 96%, 100% { filter: sepia(0) saturate(1) brightness(1.18) contrast(.8) grayscale(.85); }
  38%, 86% { filter: sepia(.2) saturate(1.35) brightness(1.05) contrast(1) grayscale(0); }
}
@keyframes aa-l5s-t1 {
  0%, 26%, 96%, 100% { background-color: #3b82f6; opacity: .85; }
  32% { background-color: #9aa3b5; opacity: .3; }
  38%, 86% { background-color: #f59e0b; opacity: .5; }
}
@keyframes aa-l5s-t2 { 0%, 26%, 96%, 100% { opacity: 0; } 38%, 86% { opacity: .5; } }
@keyframes aa-l5s-ring { 0%, 24.5% { opacity: 0; } 26%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes aa-l5s-bad  { 0%, 30%, 94%, 100% { opacity: 1; transform: none; } 34%, 90% { opacity: 0; transform: scale(.6); } }
@keyframes aa-l5s-good { 0%, 34%, 95%, 100% { opacity: 0; transform: scale(.6); } 38%, 90% { opacity: 1; transform: none; } }
@keyframes aa-l5s-cur {
  0%, 10%   { transform: translate(98cqw, 132cqw); }
  20%, 27%  { transform: translate(39.7cqw, 105.5cqw); }
  38%, 100% { transform: translate(98cqw, 132cqw); }
}
@keyframes aa-l5s-press { 0%, 24%, 26.5%, 100% { transform: scale(1); } 25.2% { transform: scale(.86); } }
@keyframes aa-l5s-click {
  0%, 25.1%, 30.5%, 100% { transform: scale(0); opacity: 0; }
  25.2% { transform: scale(.25); opacity: .95; }
  30% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   L5 · slide IV – text na fotografii (9 s)
   Posuvník překrytí: 14 → 50 cqw (60 %), osa y ≈ 107,4 cqw.
   ========================================================================== */

.aa-l5o { --aa-d: 9s; }

.aa-l5o-web { left: 6cqw; top: 5cqw; width: 88cqw; height: 84cqw; }
.aa-l5o-hero { background: #6fa8dc; }
.aa-l5o-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0%; }
.aa-l5o-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 25, .72) 0%, rgba(8, 13, 25, .45) 55%, rgba(8, 13, 25, .62) 100%);
  animation: aa-l5o-shade var(--aa-d) infinite;
}
.aa-l5o-nav { position: relative; display: flex; align-items: center; height: 9cqw; padding: 0 5cqw; }
.aa-l5o-logo { position: relative; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #fff; }
.aa-l5o-logo::after { content: ""; position: absolute; left: 4.4cqw; top: 1cqw; width: 9cqw; height: 1.2cqw; border-radius: 1cqw; background: #fff; }
.aa-l5o-menu { display: flex; gap: 2.2cqw; margin-left: auto; }
.aa-l5o-menu i { width: 5cqw; height: 1.05cqw; border-radius: 1cqw; background: #fff; opacity: .9; }
.aa-l5o-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 6cqw 6cqw 0; }
.aa-l5o-title { max-width: 86%; font-size: 7.6cqw; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 2.6cqw; }
.aa-l5o-text { max-width: 80%; font-size: 3.6cqw; line-height: 1.4; color: #fff; margin-bottom: 4.6cqw; }
.aa-l5o-btn { padding: 2.2cqw 5cqw; border-radius: 4cqw; background: #fff; color: #0f172a; font-size: 3.1cqw; font-weight: 700; white-space: nowrap; }

.aa-l5o-bad, .aa-l5o-good { left: 85cqw; top: 1.6cqw; z-index: 5; }
.aa-l5o-bad { opacity: 0; animation: aa-l5o-bad var(--aa-d) infinite; }
.aa-l5o-good { animation: aa-l5o-good var(--aa-d) infinite; }

.aa-l5o-panel { left: 6cqw; top: 94cqw; width: 88cqw; height: 26cqw; }
.aa-l5o-label { position: absolute; left: 5cqw; top: 4.4cqw; font-size: 2.8cqw; font-weight: 700; }
.aa-l5o-swatch { position: absolute; right: 5cqw; top: 3.6cqw; width: 5cqw; height: 5cqw; border-radius: 1.2cqw; background: #080d19; box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .2), 0 0 0 .25cqw #e2e8f0; }
.aa-l5o-track { position: absolute; left: 8cqw; top: 12.6cqw; width: 60cqw; height: 1.6cqw; border-radius: 1cqw; background: #e2e8f0; }
.aa-l5o-track b { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 1cqw; background: #0060ed; transform-origin: left center; transform: scaleX(.6); animation: aa-l5o-fill var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l5o-track i {
  position: absolute; left: 0; top: 50%; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw; border-radius: 50%;
  background: #fff; border: .6cqw solid #0060ed; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .25);
  transform: translateX(36cqw); animation: aa-l5o-knob var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1);
}
.aa-l5o-val { position: absolute; right: 5cqw; top: 11.2cqw; display: inline-grid; font-size: 3cqw; font-weight: 700; color: #1b2336; }
.aa-l5o-val em { grid-area: 1 / 1; font-style: normal; text-align: right; }
.aa-l5o-v0 { opacity: 0; animation: aa-l5o-v0 var(--aa-d) infinite; }
.aa-l5o-v1 { animation: aa-l5o-v1 var(--aa-d) infinite; }

.aa-l5o-cur { transform: translate(98cqw, 132cqw); animation: aa-l5o-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l5o-cur img { animation: aa-l5o-press var(--aa-d) infinite; }

@keyframes aa-l5o-shade { 0%, 24%, 96%, 100% { opacity: 0; } 42%, 86% { opacity: 1; } }
@keyframes aa-l5o-fill  { 0%, 24%, 96%, 100% { transform: scaleX(0); } 42%, 86% { transform: scaleX(.6); } }
@keyframes aa-l5o-knob  { 0%, 24%, 96%, 100% { transform: translateX(0); } 42%, 86% { transform: translateX(36cqw); } }
@keyframes aa-l5o-v0    { 0%, 30%, 92%, 100% { opacity: 1; } 33%, 89% { opacity: 0; } }
@keyframes aa-l5o-v1    { 0%, 31%, 91%, 100% { opacity: 0; } 34%, 88% { opacity: 1; } }
@keyframes aa-l5o-bad   { 0%, 34%, 94%, 100% { opacity: 1; transform: none; } 38%, 90% { opacity: 0; transform: scale(.6); } }
@keyframes aa-l5o-good  { 0%, 38%, 95%, 100% { opacity: 0; transform: scale(.6); } 42%, 90% { opacity: 1; transform: none; } }
@keyframes aa-l5o-cur {
  0%, 8%    { transform: translate(98cqw, 132cqw); }
  18%, 24%  { transform: translate(14cqw, 107.4cqw); }
  42%, 46%  { transform: translate(50cqw, 107.4cqw); }
  56%, 100% { transform: translate(98cqw, 132cqw); }
}
@keyframes aa-l5o-press { 0%, 20%, 45%, 100% { transform: scale(1); } 22%, 43% { transform: scale(.86); } }

/* ==========================================================================
   L5 · slide V – popis obrázku (11 s)
   Pole pro popis: střed ≈ 40 × 77 cqw.
   ========================================================================== */

.aa-l5a { --aa-d: 11s; }

.aa-l5a-web { left: 8cqw; top: 5cqw; width: 84cqw; height: 54cqw; }
.aa-l5a-site { background: #fff; }
.aa-l5a-photo { position: absolute; left: 5cqw; right: 5cqw; top: 5cqw; height: 31cqw; border-radius: 1.2cqw; overflow: hidden; }
.aa-l5a-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.aa-l5a-h { position: absolute; left: 5cqw; top: 39.5cqw; width: 52%; height: 2.6cqw; border-radius: 1cqw; background: #1e293b; }
.aa-l5a-p { position: absolute; left: 5cqw; top: 44.6cqw; width: 72%; height: 1.15cqw; border-radius: 1cqw; background: #cbd5e1; }
.aa-l5a-sel { left: 4cqw; right: 4cqw; top: 4cqw; height: 33cqw; }

.aa-l5a-panel { left: 8cqw; top: 64cqw; width: 84cqw; height: 22cqw; }
.aa-l5a-label { position: absolute; left: 5cqw; top: 3.8cqw; font-size: 2.8cqw; font-weight: 700; }
.aa-l5a-help { position: absolute; right: 5cqw; top: 3.4cqw; display: grid; place-items: center; width: 4cqw; height: 4cqw; border-radius: 50%; background: #e2e8f0; color: #475569; font-size: 2.4cqw; font-weight: 700; }
.aa-l5a-input {
  position: absolute; left: 5cqw; right: 5cqw; top: 9.6cqw; height: 8.6cqw;
  display: flex; align-items: center; padding: 0 2.4cqw;
  border: .35cqw solid #0060ed; border-radius: 1.4cqw; background: #fff;
  font-size: 3.2cqw; font-weight: 500; color: #1b2336;
  animation: aa-l5a-focus var(--aa-d) infinite;
}
.aa-l5a-typed { display: inline-block; max-width: 70cqw; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: aa-l5a-type var(--aa-d) infinite; }
.aa-l5a-caret { display: inline-block; width: .35cqw; height: 4.2cqw; margin-left: .3cqw; background: #0060ed; visibility: hidden; animation: aa-l5a-caret var(--aa-d) infinite step-end, aa-l5a-blink 1s infinite step-end; }

.aa-l5a-search {
  position: absolute; left: 8cqw; top: 91cqw; width: 84cqw; height: 28cqw; padding: 4cqw 5cqw;
  border-radius: 2.2cqw; background: #fff; color: #1b2336;
  box-shadow: 0 2.6cqw 6cqw -1cqw rgba(2, 8, 23, .65);
}
.aa-l5a-slabel { display: flex; align-items: center; gap: 1.4cqw; font-size: 2.3cqw; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #64748b; white-space: nowrap; }
.aa-l5a-slabel svg { width: 3cqw; height: 3cqw; color: #0060ed; }
.aa-l5a-result { display: flex; align-items: center; gap: 3cqw; margin-top: 3cqw; }
.aa-l5a-thumb { flex: none; width: 15cqw; height: 11cqw; border-radius: 1.2cqw; overflow: hidden; }
.aa-l5a-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aa-l5a-rtext { flex: 1; min-width: 0; display: grid; }
.aa-l5a-v { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2cqw; }
.aa-l5a-v b { font-size: 3cqw; line-height: 1.3; font-weight: 700; }
.aa-l5a-v em { padding: .4cqw 1.4cqw; border-radius: 2cqw; font-size: 2.1cqw; font-weight: 700; font-style: normal; white-space: nowrap; }
.aa-l5a-v--bad b { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 500; color: #64748b; }
.aa-l5a-v--bad em { background: #fee2e2; color: #b91c1c; }
.aa-l5a-v--good em { background: #e0ecff; color: #0060ed; }
.aa-l5a-v--bad { opacity: 0; animation: aa-l5a-bad var(--aa-d) infinite; }
.aa-l5a-v--good { animation: aa-l5a-good var(--aa-d) infinite; }
.aa-l5a-ok { flex: none; position: relative; width: 6cqw; height: 6cqw; }
.aa-l5a-ok i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; }
.aa-l5a-ok svg { width: 50%; height: 50%; }
.aa-l5a-ok--bad { background: #ef4444; opacity: 0; animation: aa-l5a-bad var(--aa-d) infinite; }
.aa-l5a-ok--good { background: #16a34a; animation: aa-l5a-good var(--aa-d) infinite; }

.aa-l5a-sel { animation: aa-l5a-sel var(--aa-d) infinite; }

.aa-l5a-cur { transform: translate(98cqw, 132cqw); animation: aa-l5a-cur var(--aa-d) infinite cubic-bezier(.45, 0, .25, 1); }
.aa-l5a-cur img { animation: aa-l5a-press var(--aa-d) infinite; }
.aa-l5a-cur i { animation: aa-l5a-click var(--aa-d) infinite ease-out; }

@keyframes aa-l5a-focus  { 0%, 12.5%, 92%, 100% { border-color: #cbd5e1; } 13.5%, 90% { border-color: #0060ed; } }
@keyframes aa-l5a-type   { 0%, 16% { max-width: 0; animation-timing-function: steps(26, end); } 46%, 90% { max-width: 70cqw; } 92%, 100% { max-width: 0; } }
@keyframes aa-l5a-caret  { 0%, 13% { visibility: hidden; } 13.5%, 52% { visibility: visible; } 53%, 100% { visibility: hidden; } }
@keyframes aa-l5a-blink  { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes aa-l5a-bad  { 0%, 47%, 94%, 100% { opacity: 1; transform: none; } 51%, 90% { opacity: 0; transform: translateY(-1.5cqw); } }
@keyframes aa-l5a-good { 0%, 49%, 92%, 100% { opacity: 0; transform: translateY(1.5cqw); } 53%, 89% { opacity: 1; transform: none; } }
@keyframes aa-l5a-sel    { 0%, 2% { opacity: 0; } 6%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes aa-l5a-cur {
  0%, 4%    { transform: translate(98cqw, 132cqw); }
  10%, 14%  { transform: translate(40cqw, 78cqw); }
  24%, 100% { transform: translate(98cqw, 132cqw); }
}
@keyframes aa-l5a-press { 0%, 11.5%, 13.5%, 100% { transform: scale(1); } 12.5% { transform: scale(.86); } }
@keyframes aa-l5a-click {
  0%, 12.4%, 17.5%, 100% { transform: scale(0); opacity: 0; }
  12.5% { transform: scale(.25); opacity: .95; }
  17% { transform: scale(1.35); opacity: 0; }
}
