/* -------------------------------------------------------------------------
 * #NEDLUHŮM V10.0.6 — MOBILE & RESPONSIVE POLISH
 * - veřejný věk místo roku narození (PHP vrstva)
 * - kratší mobilní rytmus bez mrtvých ploch
 * - kompaktní FPPP live data a příběhy
 * - 2×2 QR částky, menší plovoucí WhatsApp
 * - české veřejné částky/data (PHP vrstva)
 * ------------------------------------------------------------------------- */

@media(max-width:900px){
  /* FPPP: kratší sekce, ale bez zásahu do desktopu/tabletu nad 900 px. */
  .nedv100-fppp-page :is(
    .nedv100-fppp-why,.nedv100-stories,.nedv100-how,.nedv100-finances,
    .nedv100-transparency,.nedv100-ledger-public,.nedv100-donate,
    .nedv100-selection,.nedv100-connection,.nedv100-faq,.nedv100-final
  ){padding-top:64px!important;padding-bottom:64px!important}

  .nedv100-section-head{gap:16px!important;margin-bottom:30px}
  .nedv100-section-head>p{font-size:16px;line-height:1.58;max-width:62ch}
  .nedv100-fppp-why-grid,.nedv100-selection-grid,.nedv100-connection-grid{gap:30px!important}

  /* Příběh klienta: tablet/mobile bez zbytečně vysokých bloků. */
  .nedv100-case-story,.nedv100-case-finance,.nedv100-case-timeline,.nedv100-case-privacy{
    padding-top:64px!important;padding-bottom:64px!important
  }
  .nedv100-case-story-grid,.nedv100-case-privacy-grid{gap:34px!important}
}

@media(max-width:680px){
  :root{
    --ned-header-height:80px;
    --ned-header-small:60px;
    --ned-gutter:18px;
    --ned-wa-size:48px;
    --ned-wa-gap:12px;
  }

  html{scroll-padding-top:calc(var(--ned-header-height) + var(--ned-admin-offset) + 12px)!important}
  .nedv4-main :where([id]){scroll-margin-top:calc(var(--ned-header-height) + var(--ned-admin-offset) + 12px)!important}
  #site-header .nedv4-header-inner{min-height:var(--ned-header-height)!important}
  #site-header.is-scrolled .nedv4-header-inner{min-height:var(--ned-header-small)!important}
  #site-header + #mobile-menu + .nedv4-main{padding-top:var(--ned-header-height)!important}

  /* Floating contact: useful, but not dominant over the content. */
  body .nedv4-whatsapp.nedv5-whatsapp.nedv600-whatsapp{
    width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
    right:max(10px,env(safe-area-inset-right))!important;
    bottom:max(10px,calc(env(safe-area-inset-bottom) + 8px))!important;
    border-radius:15px!important
  }
  body .nedv600-whatsapp .nedv600-wa-icon-wrap{width:29px!important;height:29px!important}

  /* FPPP hero: oba lidé zůstávají viditelní, ale mobil už nepřebírá desktopovou výšku. */
  .nedv105-fppp-hero{height:auto!important;min-height:0!important}
  .nedv105-fppp-hero-photo{
    height:260px!important;
    background-image:url('../images/fppp/fppp-people-mobile.webp')!important;
    background-size:cover!important;
    background-position:center 31%!important;
    filter:saturate(.72) contrast(1.04) brightness(.84)!important
  }
  .nedv105-fppp-hero:before{
    background:
      linear-gradient(180deg,rgba(5,6,7,.10) 0%,rgba(5,6,7,.27) 28%,rgba(5,6,7,.83) 58%,#050607 77%,#050607 100%)!important
  }
  .nedv105-fppp-hero-layout{
    width:calc(100% - 28px)!important;
    padding:176px 0 28px!important;
    height:auto!important;min-height:0!important
  }
  .nedv105-fppp-hero .nedv101-fppp-hero-copy{padding:28px 0 0!important}
  .nedv105-fppp-hero h1{
    font-size:clamp(44px,12.4vw,58px)!important;
    line-height:.93!important;
    margin-top:14px!important
  }
  .nedv105-fppp-hero .nedv101-fppp-promise{font-size:21px!important;margin-top:14px!important}
  .nedv105-fppp-hero .nedv101-fppp-lead{font-size:15px!important;line-height:1.52!important;margin-top:14px!important}
  .nedv105-fppp-hero .nedv101-fppp-principles{margin-top:14px!important}
  .nedv105-fppp-hero .nedv101-fppp-manifesto{margin-top:14px!important;padding-top:13px!important}
  .nedv105-fppp-handwriting{
    top:93px!important;right:1%!important;
    width:min(45vw,178px)!important;
    transform:none!important
  }
  .nedv105-fppp-hero .nedv100-fppp-hero-actions{
    margin-top:16px!important;display:grid!important;grid-template-columns:1fr 1fr!important
  }
  .nedv105-fppp-hero .nedv4-btn{min-height:44px!important;padding:11px 12px!important;font-size:14px!important}

  /* Live panel: hlavní zůstatek přes šířku, dvě čísla vedle sebe, účet přes šířku. */
  .nedv105-fppp-live-section{padding:12px 0 14px!important}
  .nedv105-fppp-livebar{grid-template-columns:1fr 1fr!important;border-radius:14px!important}
  .nedv105-fppp-livebar .nedv101-fppp-liveitem.is-balance,
  .nedv105-fppp-livebar .nedv101-fppp-account{grid-column:1/-1}
  .nedv105-fppp-livebar .nedv101-fppp-liveitem,
  .nedv105-fppp-livebar .nedv101-fppp-account{
    min-height:0!important;padding:13px 15px!important
  }
  .nedv105-fppp-livebar .nedv101-fppp-liveitem strong,
  .nedv105-fppp-livebar .nedv101-fppp-account strong{font-size:21px!important;margin-top:5px!important}
  .nedv105-fppp-livebar .nedv101-fppp-liveitem.is-balance strong{font-size:32px!important}
  .nedv105-fppp-livebar small{margin-top:4px!important;font-size:10px!important}

  /* HOME FPPP bridge: stejný mobilní asset, méně vertikálního prostoru. */
  .nedv101-home-fppp{padding:54px 0 60px!important}
  .nedv102-home-fppp-art span{
    background-image:
      linear-gradient(180deg,#050607 0%,rgba(5,6,7,.66) 34%,rgba(5,6,7,.55) 100%),
      url('../images/fppp/fppp-people-mobile.webp')!important;
    background-position:center 34%!important
  }
  .nedv101-home-copy h2{font-size:clamp(38px,10.7vw,46px)!important;line-height:.98!important}
  .nedv101-home-copy p{font-size:15px!important;line-height:1.55!important;margin-top:18px!important}
  .nedv101-home-principles{margin-top:16px!important}
  .nedv101-home-live{padding:20px!important;border-radius:16px!important}
  .nedv101-home-live>div>strong{font-size:36px!important}
  .nedv100-home-mini{grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:16px!important}
  .nedv100-home-mini span{padding:12px!important}

  /* Jednotný mobilní rytmus FPPP. */
  .nedv100-fppp-page :is(
    .nedv100-fppp-why,.nedv100-stories,.nedv100-how,.nedv100-finances,
    .nedv100-transparency,.nedv100-ledger-public,.nedv100-donate,
    .nedv100-selection,.nedv100-connection,.nedv100-faq,.nedv100-final
  ){padding-top:52px!important;padding-bottom:52px!important}

  .nedv100-section-head{gap:12px!important;margin-bottom:24px!important}
  .nedv100-section-head h2,.nedv100-fppp-why h2,
  .nedv100-selection h2,.nedv100-connection h2{
    font-size:clamp(34px,9.5vw,43px)!important;
    line-height:1.02!important
  }
  .nedv100-section-head>p,.nedv100-fppp-why-copy,.nedv100-selection p,.nedv100-connection-grid>div:last-child>p{
    font-size:15px!important;line-height:1.58!important
  }
  .nedv100-path{margin-top:26px!important}
  .nedv100-path article{padding:20px 0!important}
  .nedv100-how-grid article{padding:20px 0!important}
  .nedv100-how-grid h3{margin-top:14px!important;font-size:21px!important}
  .nedv100-how-grid p{margin-top:10px!important}

  /* Příběhové karty: méně "desktop v telefonu". */
  .nedv100-story-card{
    min-height:0!important;padding:22px 20px!important;border-radius:18px!important
  }
  .nedv100-story-body{margin-top:24px!important;gap:20px!important}
  .nedv100-story-copy h3,.nedv100-story-card:not(.is-full) .nedv100-story-copy h3{
    font-size:30px!important;line-height:1!important
  }
  .nedv100-story-copy h4,.nedv100-story-card:not(.is-full) .nedv100-story-copy h4{
    font-size:24px!important;line-height:1.08!important;margin-top:12px!important
  }
  .nedv100-story-copy p{font-size:15px!important;line-height:1.55!important;margin-top:16px!important}
  .nedv100-story-copy a{margin-top:18px!important}
  .nedv100-story-numbers{gap:8px!important}
  .nedv100-story-numbers div{padding:13px 12px!important}
  .nedv100-story-numbers strong{font-size:18px!important}

  /* Finance / transparentnost: kompaktní karty. */
  .nedv100-finance-columns{gap:12px!important}
  .nedv100-finance-columns article{padding:24px 20px!important;border-radius:16px!important}
  .nedv100-finance-columns h3{font-size:27px!important}
  .nedv100-finance-columns ul{margin:20px 0 16px!important;gap:9px!important}
  .nedv100-transparency-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .nedv100-transparency-grid article{padding:18px 16px!important;border-radius:14px!important}
  .nedv100-transparency-grid article:first-child{grid-column:1/-1}
  .nedv100-transparency-grid strong{font-size:32px!important;margin-top:7px!important}
  .nedv100-transparency-action{padding:18px!important;border-radius:14px!important;margin-top:10px!important}
  .nedv100-public-ledger article{padding:18px 0!important}

  /* QR příspěvky: 4 hlavní částky 2×2 místo dlouhého jednoho sloupce. */
  .nedv100-donate-main{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .nedv100-donate-main button{padding:17px 15px!important;border-radius:14px!important}
  .nedv100-donate-main strong{font-size:27px!important;margin-top:5px!important}
  .nedv100-donate-more{padding:0 16px!important}
  .nedv100-donate-more summary{padding:15px 0!important}
  .nedv100-donate-other{margin-top:18px!important;gap:10px!important}
  .nedv100-donate-rules{margin-top:26px!important;padding-top:22px!important;gap:12px!important}

  /* Šedý vstupní blok i závěr FPPP jsou na mobilu klidnější. */
  .nedv103-help{padding:50px 0!important}
  .nedv103-help-grid{gap:24px!important}
  .nedv103-help-copy h2{font-size:clamp(34px,9.5vw,43px)!important}
  .nedv103-help-copy>p{font-size:15px!important;line-height:1.56!important;margin-top:18px!important}
  .nedv103-help-actions{margin-top:22px!important;gap:10px!important}
  .nedv103-help-flow{padding:18px!important}
  .nedv103-help-flow li{padding:14px 0!important}

  .nedv100-final{text-align:left!important}
  .nedv100-final h2{
    font-size:clamp(38px,10vw,48px)!important;
    line-height:.98!important;margin-top:14px!important
  }
  .nedv100-final h2 strong{color:rgba(255,255,255,.58)!important}
  .nedv100-final p{font-size:15px!important;line-height:1.55!important;margin-top:18px!important}
  .nedv100-final>div>div{justify-content:flex-start!important;margin-top:22px!important}

  /* Detail veřejného případu. */
  .nedv100-case-hero{padding:26px 0 48px!important}
  .nedv100-case-back{margin-bottom:24px!important}
  .nedv100-case-hero h1{font-size:clamp(44px,12vw,54px)!important;line-height:.95!important}
  .nedv100-case-hero h2{font-size:27px!important;line-height:1.08!important}
  .nedv100-case-hero-grid>div>p{font-size:15px!important;line-height:1.55!important;margin-top:18px!important}
  .nedv100-case-status{padding-top:20px!important}
  .nedv100-case-status>strong{font-size:24px!important}
  .nedv100-case-status>div{margin-top:22px!important;padding-top:18px!important}
  .nedv100-case-status b{font-size:34px!important}
  .nedv100-case-metrics{grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:28px!important}
  .nedv100-case-metrics article{padding:14px 12px!important}
  .nedv100-case-metrics strong{font-size:19px!important}
  .nedv100-case-metrics span{font-size:9px!important}

  .nedv100-case-story,.nedv100-case-finance,.nedv100-case-timeline,.nedv100-case-privacy{
    padding-top:50px!important;padding-bottom:50px!important
  }
  .nedv100-case-story h2,.nedv100-case-privacy h2{font-size:38px!important}
  .nedv100-case-prose{font-size:16px!important;line-height:1.67!important;margin-top:22px!important}
  .nedv100-case-story aside{padding:22px 20px!important;border-radius:16px!important}
  .nedv100-case-story aside h3{font-size:26px!important}
  .nedv100-case-story aside>p{font-size:15px!important;line-height:1.58!important}
  .nedv100-case-method{margin-top:20px!important;padding-top:18px!important}

  .nedv100-case-expenses article{padding:18px!important}
  .nedv100-case-expenses strong{font-size:18px!important}
  .nedv100-case-expenses b{font-size:22px!important}
  .nedv100-case-timeline-list article{padding:20px 0!important}
  .nedv100-case-timeline-list strong{font-size:20px!important}
  .nedv100-case-timeline-list p{font-size:14px!important}
  .nedv100-case-privacy-grid{gap:20px!important}
  .nedv100-case-privacy-grid>div:last-child{font-size:15px!important;line-height:1.58!important}

  .nedv105-case-final{padding:42px 0!important}
  .nedv105-case-final>.nedv4-shell{padding:24px 20px!important;border-radius:16px!important}
  .nedv105-case-final h2{font-size:clamp(34px,9.3vw,44px)!important}
  .nedv105-case-final p{font-size:15px!important;line-height:1.55!important;margin-top:16px!important}
  .nedv105-case-final>.nedv4-shell>div{margin-top:20px!important}

  /* FAQ: jen lehce zhutnit, dotykové plochy zůstávají bezpečné. */
  .nedv100-faq .nedv4-faq-item button{padding-top:17px!important;padding-bottom:17px!important}

  /* Footer: kratší rozestupy, bez drobných klikacích terčů. */
  .nedv4-footer{padding-top:44px!important;padding-bottom:max(38px,calc(env(safe-area-inset-bottom) + 24px))!important}
  .nedv5-footer-topics{margin-top:24px!important}
  .nedv5-footer-topics>div{gap:9px 18px!important}
  .nedv4-footer-links{gap:12px 18px!important;margin-top:26px!important}
}
