/* Doplňky k Webflow: jemné animace a drobné opravy. Animace používají samostatné vlastnosti translate/scale,
   aby se nepraly s inline transform, který nastavují animace Webflow. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

/* Hero: notebook se pomalu vznáší */
@keyframes acc-float { 50% { translate: 0 -12px; } }
.hero_image { animation: acc-float 6s ease-in-out 1.2s infinite; }

/* Fotky: při najetí do obrazu se jemně odzoomují */
.fifty_fifty_img_wr, .two_column-thumb_wr { overflow: hidden; }
.acc-js .image_fit, .acc-js .aspect-ratio-large { scale: 1.08; transition: scale 1.4s var(--ease-out); }
.acc-js .image_fit.is-in, .acc-js .aspect-ratio-large.is-in { scale: 1; }

/* Jednotné vyjetí prvků při rolování (třídu rv dává js/animace.js) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.hero_image.rv { transform: translateY(28px) scale(.96); }
.hero_image.rv.is-in { transform: none; }

/* Karty služeb: nadzvednutí a stín */
.detail_card { position: relative; transition: translate .25s var(--ease-out); }
.detail_card.rv { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), translate .25s var(--ease-out); }
.detail_card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 18px 40px -18px rgba(9, 59, 85, .35); opacity: 0; transition: opacity .25s var(--ease-out); pointer-events: none; }
.detail_card .icon_60 { transition: scale .25s var(--ease-out); }

/* Tlačítka: krátké zmáčknutí */
.button { transition-property: border-color, color, background-color, scale; transition-duration: 400ms, 400ms, 400ms, 140ms; transition-timing-function: ease, ease, ease, var(--ease-out); }
.button:active { scale: .97; }

@media (hover: hover) and (pointer: fine) {
  .detail_card:hover { translate: 0 -6px; }
  .detail_card:hover::after { opacity: 1; }
  .detail_card:hover .icon_60 { scale: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  .hero_image { animation: none; }
  .acc-js .image_fit, .acc-js .aspect-ratio-large { scale: 1; transition: none; }
  .rv, .hero_image.rv { transform: none; transition: opacity .4s ease; }
  .detail_card:hover { translate: 0 0; }
}

/* Oprava: nadpis sekce nesmí být širší než obsah (max 1340 px) */
.counters > .heading { max-width: 67.25rem; margin-inline: auto; }
/* Oprava: hero obrázek má rozměry kvůli poskakování při načtení, výška ale zůstává automatická */
.hero_image { height: auto; }

/* Stránka Zásady ochrany osobních údajů */
.zasady_hero { padding-bottom: 4rem; }
.zasady_hero .heading-style-h1 { margin-top: .75rem; margin-bottom: 0; }
.zasady { background-color: #fff; color: var(--zc-base-color-brand--zc-yankees-blue); }
.zasady_text { max-width: 46rem; }
.zasady_text h2 { margin: 2.5rem 0 .75rem; font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.zasady_text h2:first-child { margin-top: 0; }
.zasady_text p, .zasady_text li { font-size: 1rem; line-height: 1.65; }
.zasady_text p { margin-bottom: .75rem; }
.zasady_text ul { padding-left: 1.25rem; margin-bottom: .75rem; }
.zasady_text li { margin-bottom: .5rem; }
.zasady_text a { color: inherit; text-decoration: underline; }
.zasady_datum { margin-top: 2.5rem; opacity: .7; }

/* Intro s logem při načtení a clona s logem při kliknutí v menu (js/intro.js) */
:root { --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }
.intro, .prechod { position: fixed; inset: 0; z-index: 10000; display: none; place-items: center; background: #093b55; pointer-events: none; }
.intro .acc-logo { width: min(72vw, 440px); overflow: visible; }
.prechod .acc-logo { width: min(56vw, 300px); overflow: visible; }
.acc-logo rect, .acc-logo > g:last-of-type > *, .acc-logo > g:first-of-type > g > *, .acc-logo > g:first-of-type > :not(g) { transform-box: fill-box; transform-origin: 50% 100%; }
html { scrollbar-gutter: stable; }
.acc-js.intro-zamek { overflow: hidden; }
.acc-js.intro-bezi .intro { display: grid; }
.intro-bezi .intro rect { animation: acc-ctverec .6s var(--ease-out) both; transform-origin: 50% 50%; }
.intro-bezi .intro .acc-logo > g:last-of-type > * { animation: acc-nahoru .55s var(--ease-out) both; animation-delay: calc(.25s + var(--i) * 60ms); }
.intro-bezi .intro .acc-logo > g:first-of-type > g > * { animation: acc-nahoru .6s var(--ease-out) both; animation-delay: calc(.5s + var(--i) * 45ms); }
.intro-bezi .intro .acc-logo > g:first-of-type > :not(g) { animation: acc-nahoru .6s var(--ease-out) both; animation-delay: .95s; }
.intro.odjizdi { animation: acc-odjezd .75s var(--ease-in-out) forwards; }
@keyframes acc-ctverec { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes acc-nahoru { from { opacity: 0; transform: translateY(60%); } }
@keyframes acc-odjezd { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }

.prechod { display: grid; clip-path: inset(100% 0 0 0); }
.prechod.zakryje { animation: acc-zakryti .45s var(--ease-in-out) forwards; }
.prechod.odkryje { clip-path: inset(0 0 0 0); animation: acc-odjezd .55s var(--ease-in-out) .15s forwards; }
.prechod.zakryje rect { animation: acc-ctverec .4s var(--ease-out) .2s both; transform-origin: 50% 50%; }
.prechod.zakryje .acc-logo > g:last-of-type > *, .prechod.zakryje .acc-logo > g:first-of-type > * { animation: acc-nahoru .4s var(--ease-out) both; animation-delay: .3s; }
@keyframes acc-zakryti { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .acc-js.intro-bezi .intro { display: none; }
  .acc-js.intro-zamek { overflow: auto; }
}
