/* Codex, 16. 10. 2026: homepage motion durations +20%; motto and start delays preserved. */
/* Confine the wider horizontal entrances to the visible page. */
html.homepage-motion #hlavni-obsah { overflow-x: clip; }
html.homepage-motion .hero-intro::before { animation-duration: 1.28s; animation-timing-function: cubic-bezier(.2,.57,.42,1); }
html.homepage-motion .guide-path .step-icon,
html.homepage-motion .guide-path li:not(:last-child)::before,
html.homepage-motion .guide-path li:last-child .step-icon::before,
html.homepage-motion .guide-path li:last-child .step-icon::after { animation-duration: 9s; }
html.homepage-motion .intent-icon::before { animation-duration: 7.44s; }
html.homepage-motion .intent-icon::after { transition-duration: .504s, .504s; }
html.homepage-motion #root::before { transition-duration: 240ms; }
html.homepage-motion .cfaq summary > svg { transition-duration: 600ms; }
html.homepage-motion :is(.cfaq, details.question) { --cfaq-answer-duration: 600ms; }
@supports (interpolate-size: allow-keywords) {
  html.homepage-motion :is(.cfaq details, details.question)::details-content {
    transition-timing-function: cubic-bezier(.17,.96,.28,1);
  }
  html.homepage-motion :is(.cfaq details, details.question)[open]::details-content {
    transition-duration: calc(var(--cfaq-answer-duration) * 1.18);
    transition-timing-function: cubic-bezier(.2,.57,.42,1);
  }
}
html.homepage-motion .cfaq .faq-answer[aria-hidden] {
  transition-timing-function: cubic-bezier(.17,.96,.28,1) !important;
}
html.homepage-motion .cfaq .faq-answer[aria-hidden="false"] {
  transition-duration: calc(var(--cfaq-answer-duration) * 1.18) !important;
  transition-timing-function: cubic-bezier(.2,.57,.42,1) !important;
}
html.homepage-motion :is(section#faq, section#otazky, section.faq-section) :is(.cfaq-tab, .faq-tab-label, [role="tab"], [data-faq-tab]) { transition-duration: 192ms, 192ms !important; }
html.homepage-motion :is(section#faq, section#otazky, section.faq-section) :is(summary, .faq-item > button[aria-expanded])::after { transition-duration: 240ms !important; }
html.homepage-motion.motion-paused :is(.cfaq, details.question) { --cfaq-answer-duration: 0ms; }
html.homepage-motion.motion-paused #root::before,
html.homepage-motion.motion-paused .intent-icon::after,
html.homepage-motion.motion-paused .cfaq summary > svg { transition: none; }
html.homepage-motion.motion-paused :is(section#faq, section#otazky, section.faq-section) :is(.cfaq-tab, .faq-tab-label, [role="tab"], [data-faq-tab], summary, .faq-item > button[aria-expanded]) { transition-duration: 0s !important; }
html.homepage-motion.motion-paused :is(section#faq, section#otazky, section.faq-section) :is(summary, .faq-item > button[aria-expanded])::after { transition: none !important; }

/* The FAQ entrances follow the motion on the B2B and B2C e-shop page. */
html.homepage-motion #faq {
  overflow-x: clip;
  --homepage-faq-entrance-easing: cubic-bezier(.22, 1, .36, 1);
}

#faq .cfaq-heading { --homepage-faq-entrance-x: -120px; }
#faq .homepage-faq-tabs { --homepage-faq-entrance-x: 120px; }

html.homepage-motion:not(.motion-paused) #faq :is(.cfaq-heading, .homepage-faq-tabs).homepage-faq-arrived {
  animation: homepage-faq-column-in 900ms var(--homepage-faq-entrance-easing) backwards;
}

html.homepage-motion:not(.motion-paused) #faq .homepage-faq-panel.homepage-faq-arrived:not([hidden]) {
  animation: homepage-faq-panel-in 380ms var(--homepage-faq-entrance-easing) backwards;
}

html.homepage-motion:not(.motion-paused) #faq .homepage-faq-panel.homepage-faq-arrived:not([hidden]) > details {
  animation: homepage-faq-question-in 340ms var(--homepage-faq-entrance-easing) var(--homepage-faq-question-delay, 0ms) backwards;
}

#faq .homepage-faq-panel > details:nth-of-type(2) { --homepage-faq-question-delay: 35ms; }
#faq .homepage-faq-panel > details:nth-of-type(3) { --homepage-faq-question-delay: 70ms; }
#faq .homepage-faq-panel > details:nth-of-type(4) { --homepage-faq-question-delay: 105ms; }
#faq .homepage-faq-panel > details:nth-of-type(5) { --homepage-faq-question-delay: 140ms; }

@keyframes homepage-faq-column-in {
  from { opacity: 0; transform: translateX(var(--homepage-faq-entrance-x)) scale(.94); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes homepage-faq-panel-in {
  from { opacity: .12; transform: translateY(12px) scale(.99); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes homepage-faq-question-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
