/* 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.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-box .paragraph-2 { white-space: pre-line; }
.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; }

.swiper-container[hidden], .zadne-aktuality[hidden] { display: none; }
.zadne-aktuality { margin-left: 0; margin-right: 0; }

/* ---------- Nejčastější otázky ---------- */
.otazky-page { font-family: Geogtq Md, sans-serif; padding-bottom: 60px; }
.otazky-nouze { text-align: center; font-size: 18px; line-height: 28px; margin-bottom: 30px; }
.otazky-nouze a { color: #d90d2d; font-weight: bold; text-decoration: none; }
.otazky-list { max-width: 900px; margin: 0 auto; border-top: 1px solid #e4e4e4; }
.otazka { border-bottom: 1px solid #e4e4e4; }
.otazka summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 16px;
  border-left: 6px solid #1f3d8c;
  color: #1f3d8c;
  font-size: 20px;
  line-height: 28px;
}
.otazka summary::-webkit-details-marker { display: none; }
.otazka summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #d90d2d;
  font-size: 30px;
  line-height: 1;
}
.otazka[open] summary::after { content: "–"; }
.otazka summary:hover { background-color: #f7f8f9; }
.otazka summary:focus-visible { outline: 2px solid #1f3d8c; outline-offset: 2px; }
.otazka p { margin: 0; padding: 4px 44px 22px 22px; font-size: 18px; line-height: 28px; }
.otazka a, .otazky-kontakt a, .kontakt-otazky a { color: #d90d2d; }
.otazky-kontakt { max-width: 900px; margin: 30px auto 0; text-align: center; font-size: 18px; line-height: 28px; }
.kontakt-otazky { margin-top: 10px; }
@media screen and (max-width: 479px) {
  .otazka summary { font-size: 17px; line-height: 24px; padding: 14px 38px 14px 12px; }
  .otazka p { font-size: 16px; line-height: 25px; padding: 2px 12px 18px 18px; }
}

/* Užší notebooky: sedm položek menu se musí vejít vedle loga */
@media screen and (min-width: 992px) and (max-width: 1279px) {
  .logo-image { width: 160px; }
  .navigation-item.w-nav-link { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .button.cc-contact-us { margin-left: 8px; padding: 10px 16px; }
}
