/* Doplňky k site.css: věci, které na původních webech obstarával Webflow skript
   (okna, mobilní menu, běžící pruhy). */

html { scroll-behavior: smooth; }

/* ---------- Mobilní menu ---------- */
.w-nav-button { background: none; border: 0; color: #1f3d8c; line-height: 1; }
.w-nav-button .icon { display: block; }
@media screen and (max-width: 991px) {
  .navbar.is-open .w-nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 15px;
  }
  .navbar.is-open .w-nav-menu .navigation-item { width: 100%; }
}

/* ---------- Okna (úvodní okno + detail aktuality) ---------- */
.pp-overlay {
  z-index: 1000;
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #fff9;
}
.pp-overlay--clear { background-color: transparent; }
.pp-overlay.is-open { display: flex; }
.pp-box {
  position: relative;
  width: 80%;
  max-height: 85vh;
  overflow: auto;
  padding: 5%;
  background-color: #fff;
  box-shadow: 3px 3px 30px -10px #0003;
  animation: pp-in .3s ease;
}
.pp-box .heading-popup-aktualita { display: block; margin-top: 0; padding: 0 40px; }
.pp-close {
  z-index: 2;
  position: absolute;
  top: 30px;
  right: 30px;
  width: 25px;
  cursor: pointer;
}
@keyframes pp-in { from { opacity: 0; transform: translateY(10px); } }
@media screen and (max-width: 479px) {
  .pp-box { width: 100%; padding: 60px 20px 30px; }
  .pp-box .heading-popup-aktualita { padding: 0; }
  .pp-box .paragraph-2 { font-size: 17px; line-height: 25px; }
  .pp-close { width: 20px; top: 20px; right: 20px; }
}

/* ---------- Běžící pruh s logy pojišťoven ---------- */
.logo-roll { width: max-content; animation: roll 60s linear infinite; }
.logo-bar-forever:hover .logo-roll { animation-play-state: paused; }

/* ---------- Běžící pruh nad menu (zapíná se třídou "is-on") ---------- */
.up-bar-forever.is-on { display: flex; align-items: center; }
.up-bar-roll { display: flex; width: max-content; animation: roll 90s linear infinite; }
.up-bar-roll .text-block-10 { flex: none; white-space: pre; }
.up-bar-roll .text-block-10::after { content: "    ︱    "; }

/* JS obsah pruhu zduplikuje (data-copies), posun o jednu kopii = plynulá smyčka */
@keyframes roll { to { transform: translateX(calc(-100% / var(--copies, 6))); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-roll, .up-bar-roll, .pp-box { animation: none; }
}

/* Aktuality: stejně vysoké karty */
.swiper-slide { height: auto !important; }
