/* Mobilní opravy podle AGENTS.md. Desktopové styly zůstávají beze změny. */
@media (max-width:767px){
  /* 1. Hlavička a ovládání menu. */
  body .site-header.orveka-global-header{height:64px;min-height:64px;padding:8px 16px;gap:8px}
  body .site-header.orveka-global-header .logo{flex:1 1 0;max-width:190px;height:44px;min-width:0}
  body .site-header.orveka-global-header .orveka-nav-toggle{flex:0 0 44px;width:44px;height:44px;padding:10px}
  body .site-header.orveka-global-header .orveka-order-cta{min-height:44px;padding:10px 12px;font-size:16px;line-height:1.4}
  body .site-header.orveka-global-header .main-nav{max-height:calc(100svh - 64px);gap:8px;padding:12px 16px 16px}
  body .site-header.orveka-global-header .main-nav a{min-height:48px;padding:10px 8px;display:flex;align-items:center;white-space:normal}
  body.orveka-mobile-menu-open{position:fixed;top:var(--orveka-menu-offset,0);width:100%}
  :where(main,section,[id]){scroll-margin-top:72px}
}
@media (max-width:767px){
  /* 2. Základ, čitelnost a formuláře. Žádné maskování přesahu stránky. */
  *,*::before,*::after{box-sizing:border-box}
  html{-webkit-text-size-adjust:100%;overflow-x:visible}
  body,body[class]{margin:0;overflow-x:visible;overflow-wrap:anywhere}
  img,video{max-width:100%;display:block}
  iframe{max-width:100%}
  :is(main,section,article,form,fieldset,[class$="-grid"],[class$="-layout"])>*{min-width:0}
  :is(h1,h2,h3,h4){word-break:normal;overflow-wrap:normal;hyphens:none}
  body .orveka-mobile-small-copy{font-size:14px!important;line-height:1.5!important}
  body :is(input,select,textarea){font-size:16px!important;max-width:100%;min-width:0}
  body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:44px;width:100%}
  body :is(a[href],button,summary):not(.skip-link){min-height:44px;min-width:44px}
  body a[href]:not(.skip-link){display:inline-flex;align-items:center}
  body button,body summary{touch-action:manipulation}
  body summary{padding-block:10px}
  body form :is(button[type=submit],.ct-submit,.vet-form-submit,.owner-form-submit){width:100%;justify-content:center;white-space:normal;line-height:1.5}
  body :is(.ct-field-grid,.vet-form-two,.owner-form-two,.oc-grid,.oc-business-ids){grid-template-columns:minmax(0,1fr)!important}
  body :is(.ct-field,.oc-field,.vet-dialog label,.owner-dialog label){gap:8px}
  body :is(.ct-submit-row,.owner-dialog,.vet-dialog){max-width:100%}
  body #ct-files{position:static;width:100%;height:auto;min-height:44px;opacity:1;padding:10px 0}
  body .ct-honeypot{left:0;clip-path:inset(50%);overflow:clip}
  body #ct-files-list li{flex-wrap:wrap}
  body #ct-files-list button{margin-left:auto}
  body :is(.orveka-admin-dialog,.owner-dialog,.vet-dialog){width:calc(100% - 32px);max-width:500px;max-height:calc(100svh - 32px);overflow-y:auto;padding:20px}
  body .orveka-admin-close{display:grid;place-items:center;padding:8px;top:4px;right:4px}
  body .table-wrap{max-width:100%;overflow-x:auto}
  body .ct-field-hint{line-height:1.55}
  body #oc-app :is(.oc-hint,.oc-muted,.oc-question,.oc-checkline){line-height:1.55}
  body #oc-app :is(.oc-choices,.oc-kinds,.oc-construction-options){gap:8px}
  body #oc-app :is(.oc-choices label,.oc-checkline){min-height:44px}
  body #oc-app :is(.oc-mainbtn,.oc-secondary,.oc-calculation-jump){min-height:44px;white-space:normal;line-height:1.5}
  body .oc-mobile-price{padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:8px;align-items:center}
  body .oc-mobile-price-copy{flex:1 1 0;min-width:0}
  body .oc-mobile-price button{max-width:40%;min-height:44px;white-space:normal}
  body.order-page{padding-bottom:calc(var(--orveka-price-bar-height,150px) + 16px)}
  body .oc-sidebar{max-height:none}
  body :is(.owner-dialog,.vet-dialog,.orveka-admin-dialog){scroll-padding-bottom:20px}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
@media (max-width:767px){
  /* 3. Patička a právní dokumenty: stejné informace, větší cíle pro dotyk. */
  body .orveka-footer.footer-compact .footer-main{grid-template-columns:minmax(0,1fr);gap:24px}
  body .orveka-footer.footer-compact .footer-brand,
  body .orveka-footer.footer-compact .footer-contact{grid-column:auto;grid-row:auto}
  body .orveka-footer.footer-compact .footer-document-links{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:8px}
  body .orveka-footer.footer-compact .footer-document-links a{width:100%;min-height:44px;padding-block:10px;font-size:14px;line-height:1.5}
  body .orveka-footer.footer-compact .footer-column{gap:8px;width:100%}
  body .orveka-footer.footer-compact .footer-admin-button{min-height:44px;padding:10px 16px;font-size:14px}
  body .orveka-footer.footer-compact .footer-social{gap:8px;flex-wrap:wrap}
  body .orveka-footer.footer-compact .footer-social :is(a,span){display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;font-size:18px}
  body .orveka-footer.footer-compact .footer-bottom{flex-wrap:wrap;line-height:1.5;font-size:14px}
  body nav.top{padding:8px 16px;gap:8px;flex-wrap:nowrap;min-height:64px}
  body nav.top>a:first-child{flex:1 1 0;min-width:0}
  body nav.top img{max-width:150px;max-height:44px;width:100%;height:auto;object-fit:contain}
  body .all-links{grid-template-columns:minmax(0,1fr);gap:8px}
  body .all-links a{min-height:44px;padding:12px;line-height:1.5}
  body .page{max-width:100%;margin:16px;padding:24px 16px}
  body .page h1{font-size:clamp(28px,7vw,36px);line-height:1.2;letter-spacing:-.5px}
  body .page h2{line-height:1.3}
  body .doc{font-size:16px;line-height:1.6}
  body>header:not(.site-header){padding:8px 16px;min-height:64px}
  body>header:not(.site-header) .shell{gap:12px}
  body>header:not(.site-header) img{max-width:140px;max-height:44px;height:auto}
  body>header:not(.site-header) a{font-size:14px;line-height:1.4}
  body>header:not(.site-header) a:first-child{min-width:0;flex:1 1 0}
}
@media (max-width:767px){
  /* 4. Sekce a karty se skládají do jedné čitelné kolony. */
  body :is(.product-grid,.situations .cards,.process-grid,.collaboration-grid,
    .orth-grid,.prot-grid,.prot-guide-feature,.wheel-case,.shop-products,.shop-other-grid,
    .ct-pathways,.about-hero-layout,.about-story-path-layout,.about-mission-layout,
    .owner-hero-layout,.owner-adaptation-layout,.owner-price-layout,.owner-journey-list,.owner-situation-grid,
    .vet-hero-layout,.vet-training-main,.vet-training-grid,.vet-steps,.vet-role-grid,.vet-benefit-grid,
    .impact-two,.impact-how,.impact-entry-grid){grid-template-columns:minmax(0,1fr)!important}
  body :is(.wrap,.products-wrap,.process-wrap,.stories-wrap,.collaboration-wrap,.orth-shell,.prot-shell,.wheel-shell,.shop-shell,.ct-shell,.about-container,.owner-container,.vet-container,.impact-container){max-width:100%;padding-inline:20px}
  body :is(.orth-shell,.prot-shell,.wheel-shell,.shop-shell,.ct-shell){width:100%}
  body :is(.situations,.products,.process,.stories,.collaboration,.owner-section,.vet-section,.about-story-path,.about-mission,.about-cta,.impact-section,.shop-section,.shop-other){padding-block:48px}
  body :is(.product-heading,.situations .card-head,.step-copy){height:auto;min-height:0}
  body :is(.product-heading,.situations .card-head){padding-block:16px}
  body :is(.product-content>p,.orth-indication,.prot-indication){min-height:0}
  body :is(.product-content,.orth-card-content,.prot-card-content){padding:20px 16px}
  body .owner-hero{padding-block:24px}
  body .owner-hero-copy>p{font-size:18px;line-height:1.55}
  body :is(.ct-lead,.vet-hero-lead,.about-hero-lead){font-size:18px;line-height:1.55}
  body .hero{min-height:0;padding-bottom:200px}
  body .hero-inner{width:100%;padding:24px 16px 20px}
  body .hero .eyebrow{font-size:14px;line-height:1.5;letter-spacing:1.5px;margin-bottom:16px}
  body .hero h1{font-size:clamp(28px,8vw,36px);line-height:1.15;letter-spacing:-1.2px;white-space:normal;margin-bottom:16px}
  body .hero .intro{font-size:16px;line-height:1.55;margin-bottom:16px}
  body .hero .veterinary-note{width:100%;padding:14px;gap:12px;margin-bottom:16px}
  body .hero .veterinary-note svg{width:44px;min-width:44px}
  body .hero .veterinary-note :is(strong,p){font-size:16px;line-height:1.5}
  body .hero .audience-actions{width:100%;grid-template-columns:minmax(0,1fr);gap:12px}
  body .hero .audience-btn{height:auto;min-height:56px;padding:12px 14px;font-size:16px;line-height:1.4;white-space:normal}
  body .hero .audience-btn :is(svg,img){width:36px;height:36px}
  body .hero .audience small{white-space:normal;line-height:1.5;padding-top:6px}
  body .hero::before{background-attachment:scroll;background-size:auto 280px;background-position:right bottom}
  body :is(.process-actions,.orth-outro-links,.prot-outro-links,.owner-contact-actions,.about-cta-actions,.vet-partner-actions,.impact-cta-actions,.story-marquee-actions){display:flex;flex-direction:column;align-items:stretch;gap:8px}
  body :is(.process-actions,.orth-outro-links,.prot-outro-links,.about-cta-actions,.vet-partner-actions)>:is(a,button){width:100%;min-width:0;justify-content:center;white-space:normal;line-height:1.5}
  body .process-actions :is(.process-owner,.process-clinic){font-size:16px;min-height:56px}
  body .products-more{margin-inline:0}
  body .products-more a{width:100%;min-width:0;justify-content:center;white-space:normal;text-align:center;padding:14px 16px;font-size:16px}
  body .products-more .rule{display:none}
  body .owner-contact-art{clip-path:inset(0)}
  body .owner-contact-inner{overflow:clip}
  body :is(.story-loop-kind,.story-loop-description,.story-loop-watch-label){line-height:1.5}
  body :is(.shop-product-actions,.oc-bottom-actions,.oc-review-actions){gap:8px;flex-wrap:wrap}
  body input::file-selector-button{font:inherit;min-height:44px;padding:10px 12px;margin-right:8px}
  body .orveka-mobile-contrast{color:var(--orveka-mobile-contrast-ink,#061d47)!important}
}
@media (max-width:767px){body .hero::before{background-image:url('assets/mobile/home-hero.webp')}}
@media (max-width:767px){
  html body [class].orveka-mobile-small-copy{font-size:14px!important;line-height:1.5!important}
  body.contacts-page #ct-files{position:static;width:100%;height:auto;min-height:44px;opacity:1;padding:10px 0}
  body .hero .audience-btn{width:100%}
}
@media (max-width:767px){body.contacts-page .ct-honeypot{left:0;clip-path:inset(50%);overflow:clip}}
@media (max-width:767px){
  /* Explicit type rules cover the first paint; the small-copy helper covers CMS additions. */
  body :is(small,figcaption,.ct-eyebrow,.ct-path-kicker,.ct-direct-kicker,.ct-field-hint,.about-kicker,
    .orth-eyebrow,.orth-location,.orth-media-note,.prot-eyebrow,.prot-location,.prot-media-note,
    .wheel-eyebrow,.wheel-category,.wheel-image-note,.shop-eyebrow,.shop-other-eyebrow,
    .shop-price-label,.shop-product-tag,.shop-help,.shop-image-caption,.shop-optional,.shop-test-chip,
    .story-loop-kind,.story-loop-number,.story-loop-watch-label,.story-loop-description,.story-loop-expand,
    .vet-role-label,.mark,.tag){font-size:14px!important;line-height:1.5!important}
  body #oc-app :is(.oc-overline,.oc-kicker,.oc-hint,.oc-muted,.oc-question,.oc-spec-row,.oc-price-row,.oc-spec-head>span){font-size:14px!important;line-height:1.5!important}
}
@media (max-width:767px){
  body.otheraids-page .shop-product-main>.shop-detail{font-size:14px!important;line-height:1.5!important}
  body #oc-wrapper .orveka-cast-order{border-color:var(--oc-soft-border)}
  body #oc-wrapper .orveka-cast-play{background:var(--oc-action);color:#fff}
}
@media (max-width:767px){
  /* Blue gradient actions keep their colours and use the large-text contrast threshold. */
  body .hero .audience-btn.clinic,
  body .process-actions .process-clinic,
  body .products-more a{font-size:18px;font-weight:700}
  body.otheraids-page .shop-product-main>.shop-detail{color:#526f85!important}
  html body [class].orveka-mobile-contrast{color:var(--orveka-mobile-contrast-ink,#061d47)!important}
}
@media (max-width:767px){
  body .collab-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
  body .collab-copy{width:100%;min-width:0}
  body .collab-label{white-space:normal;line-height:1.5}
  body .collab-copy h3{font-size:28px;line-height:1.15}
  body .story-marquee-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  body .story-marquee-actions :is(.story-marquee-prev,.story-marquee-next){width:100%;min-height:44px}
  body .story-marquee-actions .story-marquee-toggle{grid-column:1/-1;width:100%;justify-content:center}
  body #oc-app :is(.oc-choices,.oc-kinds,.oc-phone-row){grid-template-columns:minmax(0,1fr)}
}
@media (max-width:767px){body img{aspect-ratio:var(--orveka-image-ratio,auto)}}
@media (max-width:767px){
  /* Schváleno: hlavní cesty před dlouhou poznámkou, pouze na telefonu. */
  body .hero-inner{display:flex;flex-direction:column;align-items:stretch}
  body .hero .audience-actions{order:1;margin-bottom:16px}
  body .hero .veterinary-note{order:2}
}
@media (max-width:767px){body .orveka-cast-play,body .orveka-cast-play span{color:#fff!important}}
@media (min-width:768px) and (max-width:1024px){
  /* Tabletová kontrolní šířka: stejné rozložení, čitelné pomocné texty a dotykové cíle. */
  html body [class].orveka-mobile-small-copy{font-size:14px!important;line-height:1.5!important}
  body.otheraids-page .shop-product-main>.shop-detail{font-size:14px!important;line-height:1.5!important}
  body :is(input,select,textarea){font-size:16px!important;min-height:44px;max-width:100%}
  body :is(a[href],button,summary):not(.skip-link){min-height:44px;min-width:44px}
  body a[href]:not(.skip-link){display:inline-flex;align-items:center}
  body .footer-social :is(a,span){min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
}
@media (min-width:768px) and (max-width:1024px){
  body :is(input,select,textarea){min-height:44px!important}
  body.contacts-page #ct-files{position:static!important;width:100%!important;height:auto!important;opacity:1!important;padding:8px;clip:auto!important;clip-path:none!important}
}

/* Společná schválená mobilní hlavička všech českých stránek. */
@media(max-width:767px){
 body .site-header.orveka-global-header{position:sticky;top:0;z-index:1000;height:calc(66px + env(safe-area-inset-top));min-height:calc(66px + env(safe-area-inset-top));padding:calc(4px + env(safe-area-inset-top)) 12px 4px;gap:8px;background:#fff}
 body .site-header.orveka-global-header .logo{flex:1 1 0;min-width:0;max-width:258px;height:57.6px}
 body .site-header.orveka-global-header .logo img{width:100%;height:57.6px;max-height:none;object-fit:contain}
 body .site-header.orveka-global-header .main-nav{top:100%;max-height:calc(100svh - 66px - env(safe-area-inset-top));gap:8px}
 body .site-header.orveka-global-header .orveka-order-cta{box-sizing:border-box;width:64px;min-width:64px;min-height:44px;padding:8px 4px;font-size:14px;line-height:1.4;justify-content:center;color:#061d47!important}
 body .site-header.orveka-global-header :is(.orveka-nav-toggle,.orveka-order-cta){position:relative;isolation:isolate;height:44px;min-height:44px;background:transparent;border:0;box-shadow:none}
 body .site-header.orveka-global-header :is(.orveka-nav-toggle,.orveka-order-cta)::before{content:"";position:absolute;inset:6.6px 0;z-index:-1;box-sizing:border-box;border-radius:9px;pointer-events:none}
 body .site-header.orveka-global-header .orveka-nav-toggle::before{background:#f0f7fc;border:1px solid #c8dce9}
 body .site-header.orveka-global-header .orveka-order-cta::before{background:#70b437;box-shadow:0 3px 7px rgba(48,111,27,.12)}
 html{scroll-padding-top:calc(74px + env(safe-area-inset-top))}
 body :is(main>section,footer,[id]){scroll-margin-top:calc(74px + env(safe-area-inset-top))}
 body>div:first-child[style*="#fff0b3"]{display:none}
 body :is(.orth-card-number,.prot-card-number){display:none}
}
