/* Dynamická vrstva dema strednipolabi.vytvoraplikaci.cz – animace, interakce. Respektuje prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  .rv.in { opacity: 1; transform: none; }
  .kb { animation: kb 26s ease-in-out infinite alternate; }
  .pulse { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(175,203,8,0); }
    50% { transform: scale(1.05); box-shadow: 0 14px 34px rgba(0,0,0,.25), 0 0 34px rgba(175,203,8,.55), 0 0 0 2px rgba(175,203,8,.9); }
  }
  .numbox.pulse { animation-name: pulseBox; }
  @keyframes pulseBox {
    0%, 100% { transform: scale(1); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); box-shadow: 0 0 0 0 rgba(175,203,8,0); }
    50% { transform: scale(1.06); background: rgba(255,255,255,.16); border-color: rgba(175,203,8,.95); box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 36px rgba(175,203,8,.6); }
  }
  .tile.pulse { animation-name: pulseTile; }
  @keyframes pulseTile {
    0%, 100% { transform: scale(1); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: 0 0 0 0 rgba(175,203,8,0); }
    50% { transform: scale(1.035); background: rgba(255,255,255,.15); border-color: rgba(175,203,8,.65); box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 0 22px rgba(175,203,8,.35); }
  }
  .pulse-ring { animation: ring 2s ease-out infinite; }
  @keyframes ring {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(175,203,8,.85), 0 6px 18px rgba(18,55,42,.25); }
    30% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(175,203,8,.35), 0 10px 26px rgba(18,55,42,.3); }
    70% { transform: scale(1); box-shadow: 0 0 0 18px rgba(175,203,8,0), 0 6px 18px rgba(18,55,42,.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(175,203,8,0), 0 6px 18px rgba(18,55,42,.2); }
  }
  .pulse-ring:hover { animation-play-state: paused; transform: translateY(-1px); }
  .pulse:hover, .tile.pulse:hover, .numbox.pulse:hover { animation-play-state: paused; }
  @keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
}
.hero-bg { position: absolute; inset: 0; background-size: cover; will-change: transform; }
.hero-clip { position: absolute; inset: 0; overflow: hidden; }
a, .card, .vrow, .who, .tile, .aud { transition: color .2s, background-color .2s, border-color .2s, transform .25s, box-shadow .25s, filter .2s; }
.card:hover, .vrow:hover, .who:hover, .aud:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,55,42,.12); }
.rv.in.card:hover, .rv.in.vrow:hover, .rv.in.who:hover, .rv.in.aud:hover { transform: translateY(-3px); }
a[style*="background: #1E5B41"]:hover, a[style*="background: #AFCB08"]:hover, a[style*="background: #D19460"]:hover, button.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 8px 20px rgba(18,55,42,.18); }
.nav a { position: relative; }
.hdr-sticky { position: sticky; top: 0; z-index: 60; transition: box-shadow .25s; }
.hdr-sticky.scrolled { box-shadow: 0 6px 20px rgba(18,55,42,.10); }

/* bloky čísel (směr A) */
.numbox { padding: 22px 24px 20px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.numbox .h { font-size: 46px !important; letter-spacing: -.5px; white-space: nowrap; }
.numbox.m { padding: 16px 14px 14px; }
.numbox.m .h { font-size: 32px !important; }

/* FAQ */
.faq { cursor: pointer; flex-direction: column !important; align-items: stretch !important; }
.faq .q { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq .q svg { flex: none; transition: transform .25s; }
.faq.open .q svg { transform: rotate(45deg); }
.faq .ans { overflow: hidden; max-height: 0; transition: max-height .4s ease; font-size: 15px; line-height: 1.6; color: #3B463F; }
.faq .ans > div { padding-top: 10px; }
.faq.open .ans { max-height: 320px; }

/* filtr výzev */
.chip { cursor: pointer; user-select: none; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #1E5B41; }
.vrow.hide { display: none !important; }
.empty { padding: 28px; text-align: center; color: #5A665F; background: #fff; border: 1px dashed #D5DAD3; border-radius: 10px; font-size: 15px; }
.count { font-size: 13px; color: #5A665F; margin: -14px 0 14px; }

/* formuláře */
input.f, textarea.f { width: 100%; background: #fff; border: 1px solid #C9CFC8; border-radius: 6px; padding: 12px 14px; font: 14px 'Public Sans', 'Segoe UI', sans-serif; color: #16211B; outline: none; transition: border-color .2s, box-shadow .2s; }
input.f:focus, textarea.f:focus { border-color: #1E5B41; box-shadow: 0 0 0 3px rgba(30,91,65,.15); }
input.f.err, textarea.f.err { border-color: #C13A5E; box-shadow: 0 0 0 3px rgba(193,58,94,.12); }
button.btn { border: 0; cursor: pointer; font-family: 'Public Sans', 'Segoe UI', sans-serif; }
.ok { background: #EEF5D6; color: #3F4D00; border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.msg { font-size: 13px; color: #C13A5E; margin-top: 8px; }
label.chk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5A665F; cursor: pointer; }
label.chk input { width: 18px; height: 18px; accent-color: #1E5B41; }

/* nahoru */
.totop { position: fixed; right: 14px; bottom: 64px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid #E2E6E1; box-shadow: 0 6px 16px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; color: #1E5B41; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 98; cursor: pointer; transform: translateY(8px); }
.totop.show { opacity: 1; pointer-events: auto; transform: none; }

/* mobilní menu */
.mmenu { position: fixed; inset: 0; background: #12372A; color: #fff; z-index: 200; padding: 16px 20px 24px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; }
.mmenu.open { transform: none; }
.mmenu .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mmenu .close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; font-size: 24px; cursor: pointer; }
.mmenu a { color: #fff; font: 700 22px 'Manrope', 'Segoe UI', sans-serif; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; }
.mmenu a.sm { font: 500 15px 'Public Sans', sans-serif; color: rgba(255,255,255,.8); padding: 10px 0; border: 0; }
.mmenu .cta { margin-top: auto; background: #AFCB08; color: #12372A; text-align: center; border-radius: 6px; padding: 14px; font: 700 15px 'Public Sans', sans-serif; border: 0; }
body.noscroll { overflow: hidden; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 70px; transform: translate(-50%, 20px); background: #12372A; color: #fff; padding: 12px 18px; border-radius: 8px; font: 500 14px 'Public Sans', sans-serif; opacity: 0; transition: opacity .3s, transform .3s; z-index: 300; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
