/* KASA PLUS · mobilní vzhled (1.22.18, inc/mobile.php). Vše platí jen pro telefony do 767 px; počítač a tablet zůstávají beze změny.
   Třídy kp-m-* přidává assets/js/mobile.js, jen když je obrazovka úzká. Vypínač: KASA PLUS → Hlavička a patička → Vzhled na telefonu. */
.kp-m-only{display:none}

@media (max-width:767px){
/* ---------- základ: méně vzduchu, menší nadpisy ---------- */
.kp-section{padding-block:36px}
.kp-section.is-spacing-compact{padding-block:18px}
.kp-section-heading{margin-bottom:18px}
.kp-section-heading h2,.kp-section h2{font-size:25px;line-height:1.18;letter-spacing:-.01em}
.kp-section-heading .kp-eyebrow,.kp-eyebrow{margin-bottom:6px}
.kp-section-heading p{font-size:15px;line-height:1.55}
h1,.kp-hero h1,.kp-hh-title{font-size:31px;line-height:1.1}

/* ---------- společné prvky ---------- */
.kp-m-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--kp-m-lines,3);overflow:hidden}
.kp-m-clamp.is-open{display:block;-webkit-line-clamp:unset;overflow:visible}
.kp-m-more{display:inline-flex;align-items:center;gap:4px;margin:4px 0 0;padding:6px 0;border:0;background:none;color:var(--kp-primary);font:700 14px/1.2 var(--kp-font);cursor:pointer}
.kp-cta .kp-m-more,.kp-hotline .kp-m-more,.kp-homeeet .kp-m-more,.kp-b2b .kp-m-more,.kp-hk-box .kp-m-more{color:#fff;text-decoration:underline;text-underline-offset:3px}
.kp-section-heading .kp-m-more{margin-top:0}
.kp-section-heading[style*="center"] .kp-m-more,.kp-section-heading.is-center .kp-m-more{justify-content:center}

/* karty vedle sebe – posun prstem */
.kp-m-rail{display:flex!important;justify-content:flex-start!important;align-items:stretch!important;grid-template-columns:none!important;flex-wrap:nowrap!important;gap:12px!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none;margin-inline:-22px!important;padding:16px 22px 10px!important;scroll-padding-inline:22px}
.kp-m-rail::-webkit-scrollbar{display:none}
.kp-m-rail>*{flex:0 0 84%!important;max-width:84%!important;width:auto!important;min-width:0;scroll-snap-align:start;margin:0!important}
.kp-m-rail.kp-m-rail-2>*{flex-basis:88%!important;max-width:88%!important}
.kp-pricing-grid.kp-m-rail,.kp-applan-grid.kp-m-rail,.kp-hc-plan-grid.kp-m-rail{align-items:flex-start!important}
.kp-m-rail-nav{display:flex;align-items:center;gap:10px;margin:2px 0 4px;min-height:24px}
.kp-m-dots{display:flex;gap:6px}
.kp-m-dots button{width:8px;height:8px;padding:0;border:0;border-radius:99px;background:#cfc8e6;cursor:pointer;transition:width .2s,background .2s}
.kp-m-dots button.is-active{width:22px;background:var(--kp-primary)}
.kp-m-count{font:700 12px/1 var(--kp-font);color:var(--kp-muted)}
.kp-m-hint{margin-left:auto;font:600 12px/1 var(--kp-font);color:var(--kp-muted);transition:opacity .3s}
.kp-m-rail-nav.is-touched .kp-m-hint{opacity:0}
.kp-hk-box .kp-m-dots button,.kp-homecontrol .kp-m-dots button{background:rgba(255,255,255,.35)}
.kp-hk-box .kp-m-dots button.is-active{background:#fff}
.kp-hk-box .kp-m-count,.kp-hk-box .kp-m-hint{color:rgba(255,255,255,.8)}

/* sbalené velké bloky */
.kp-m-fold{position:relative;max-height:var(--kp-m-fold,520px);overflow:hidden}
.kp-m-fold::after{content:"";position:absolute;inset:auto 0 0;height:110px;background:linear-gradient(rgba(250,248,255,0),var(--kp-bg) 85%);pointer-events:none}
.kp-m-fold.is-open{max-height:none;overflow:visible}
.kp-m-fold.is-open::after{display:none}
.kp-m-fold-btn,.kp-m-list-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin:10px 0 0;padding:12px 16px;border:1px solid var(--kp-line);border-radius:14px;background:#fff;color:var(--kp-primary);font:700 14px/1.2 var(--kp-font);cursor:pointer}
.kp-m-fold-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
:not(.is-open)>.kp-m-extra{display:none!important}
.kp-m-list-more{width:auto;margin:8px 0 0;padding:8px 14px;border-radius:99px;font-size:13px}
.kp-m-list-more.is-faq{width:100%;padding:12px 16px;border-radius:14px;font-size:14px}

/* ---------- hlavička ---------- */
.kp-topbar{transition:max-height .25s ease,opacity .2s;max-height:40px;overflow:hidden}
.kp-topbar-text{display:none}
.kp-topbar .kp-container{justify-content:space-between}
body.kp-m-scrolled .kp-topbar{max-height:0;opacity:0}
.kp-header-row{min-height:58px;padding-block:8px}
.kp-header-trial{padding:8px 14px;font-size:13px;min-height:36px}

/* ---------- úvod stránky (hero) ---------- */
.kp-hero{padding-top:6px;padding-bottom:30px}
.kp-hero-topline{padding-block:6px 4px;gap:6px}
.kp-hero-notes{display:none}
.kp-hero-grid{gap:20px!important}
.kp-hero-copy .kp-hero-pill{margin-bottom:10px}
.kp-hero-copy h1{margin-bottom:12px}
.kp-hero-copy .kp-lead{font-size:16px;line-height:1.5;margin-bottom:0}
.kp-hero-actions{margin-top:16px;gap:10px}
.kp-hero-actions .kp-button{min-height:48px}
.kp-hero-photo{aspect-ratio:16/10;max-height:230px;overflow:hidden;border-radius:20px}
.kp-hero-photo picture,.kp-hero-photo img{width:100%;height:100%;object-fit:cover}
.kp-hero-photo .kp-photo-badge{transform:scale(.88);transform-origin:left top}
.kp-hero-photo .kp-photo-badge.is-top-right{transform-origin:right top}
.kp-intro{padding-block:24px 8px}

/* ---------- hlavní strana ---------- */
.kp-homehero{padding-top:14px;padding-bottom:28px}
.kp-hh-grid{gap:22px!important}
.kp-hh-badge-top{margin-bottom:10px}
.kp-hh-kicker{flex-wrap:nowrap;gap:10px;margin-bottom:10px}
.kp-hh-kicker .kp-hh-badge-top{flex:none;margin:0;font-size:11.5px;padding:6px 11px;gap:7px}
.kp-hh-copy .kp-hh-kicker .kp-eyebrow{min-width:0;margin:0;font-size:10.5px;line-height:13px;letter-spacing:.06em}
.kp-hh-title{margin:6px 0 10px}
.kp-hh-sub{font-size:16px;margin-bottom:14px}
.kp-hh-offer{padding:14px 16px;margin-bottom:14px}
.kp-hh-offer+.kp-hh-offer-alt{margin:-4px 0 14px;font-size:13.5px}
.kp-hh-checks{display:flex!important;flex-wrap:wrap;gap:6px 14px!important;margin-bottom:16px}
.kp-hh-checks li{font-size:13px}
.kp-hh-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important}
.kp-hh-actions .kp-button{width:100%;min-height:48px;padding-inline:8px;font-size:14px;justify-content:center;white-space:nowrap}
.kp-hh-actions .kp-button svg{display:none}
/* slider zařízení: přepínač nahoru, kratší karta */
.kp-hh-slider{display:flex;flex-direction:column}
.kp-hh-thumbs{order:-1;margin:0 0 12px!important}
.kp-hh-thumb{min-height:0;padding:6px 4px!important}
.kp-hh-bar{margin-top:8px!important}
.kp-hh-arrow{display:none!important}
.kp-hh-slide{gap:0!important}
.kp-hh-visual{height:170px!important;min-height:0!important;order:-1}
.kp-hh-visual img{max-height:160px;width:auto}
.kp-hh-slide-copy{padding:18px 18px 20px!important}
.kp-hh-slide-title{font-size:24px!important;margin:8px 0 10px!important}
.kp-hh-slide-title br{display:none}
.kp-hh-slide-checks{gap:4px!important;margin-bottom:10px}
.kp-hh-slide-checks li{font-size:13.5px}
.kp-hh-slide-note{font-size:12px;margin-bottom:10px}
.kp-hh-price{padding:10px 12px!important;margin-bottom:12px}
.kp-hh-slide-actions{grid-template-columns:1fr 1fr!important;gap:8px!important}
.kp-hh-slide-actions .kp-button{min-height:44px;font-size:13.5px;padding-inline:8px}
/* EET pruh */
.kp-homeeet{padding-block:26px}
.kp-he-in{gap:12px!important}
.kp-he-date{padding:10px 14px}
.kp-he-title{font-size:20px!important}
/* Proč KASA PLUS – obory jako dlaždice 2×2 */
.kp-hc-grid{gap:26px!important}
.kp-hc-plans{min-width:0} /* 1.22.40: řada karet tarifů (kp-m-rail, okraje -22 px) roztahovala položku mřížky o 22 px → stránka byla na telefonu širší než obrazovka */
.kp-hc-sectors{grid-template-columns:1fr 1fr!important;gap:10px!important}
.kp-hc-sector{flex-direction:column;align-items:flex-start!important;gap:10px!important;padding:14px!important;min-height:0}
.kp-hc-sector p{display:none}
.kp-hc-sector h3{font-size:15px;line-height:1.25;margin:0}
.kp-hc-go{display:none}
.kp-hc-plans-title{font-size:23px!important;margin-bottom:0!important}
.kp-hc-plan{padding:20px 18px!important}
.kp-hc-plan-checks{gap:2px!important}
.kp-hc-plan-checks li{padding-block:5px!important;font-size:14px}
/* kontrola tržeb – tmavý box */
.kp-homecontrol{padding-block:20px}
.kp-hk-box{padding:28px 18px 22px!important;border-radius:24px}
.kp-hk-head{margin-bottom:6px}
.kp-hk-head h2{font-size:26px!important}
.kp-hk-card{padding:18px!important}
.kp-hk-more{margin-top:10px}
/* start + hardware */
.kp-hst-grid{gap:30px!important}
.kp-hst-steps li{font-size:13px}
.kp-hst-product{grid-template-columns:96px 1fr!important}
/* časté dotazy + závěr */
.kp-hf-grid{gap:16px!important}
.kp-hf-intro .kp-button{min-height:42px}
.kp-hcta-box{padding:26px 20px!important;gap:16px!important}
.kp-hcta-title{font-size:25px!important}

/* ---------- karty funkcí ---------- */
.kp-feature-card{padding:18px!important;gap:14px!important}
.kp-feature-card h3{font-size:17px;margin-bottom:4px}
.kp-feature-card p{font-size:14px;line-height:1.5}

/* ---------- obrázek + text ---------- */
.kp-split-grid{display:flex!important;flex-direction:column;gap:18px!important}
.kp-split-media{order:-1;aspect-ratio:16/9;max-height:215px;overflow:hidden;border-radius:18px;margin:0}
.kp-split-media img{width:100%;height:100%;object-fit:cover}
.kp-split-copy h2{font-size:25px!important;margin-bottom:10px}
.kp-split-copy>p{font-size:15px;line-height:1.55;margin-bottom:0}
.kp-split-items{margin-top:14px!important;gap:0!important}
.kp-split-items.is-boxes li,.kp-split-items li{padding:9px 0!important;background:none!important;border:0!important;border-bottom:1px solid var(--kp-line)!important;border-radius:0!important;box-shadow:none!important;font-size:14px;line-height:1.45}
.kp-split-items li:last-child{border-bottom:0!important}
.kp-m-split-fold:not(.is-open)>.kp-split-items{display:none!important}
.kp-m-split-fold.is-open>.kp-m-more{order:9}
.kp-m-split-fold{display:flex;flex-direction:column;align-items:flex-start}
.kp-m-split-fold>*{max-width:100%}
.kp-m-split-fold>p,.kp-m-split-fold>.kp-split-items,.kp-m-split-fold>h2{align-self:stretch}

/* ---------- ceníky ---------- */
.kp-pricing-sub p{font-size:15px}
.kp-price-card,.kp-applan{padding:22px 18px!important}
.kp-price-card ul li,.kp-applan ul li{padding-block:3px;font-size:14px}
.kp-applan-how{padding:18px!important}

/* ---------- formulář: krátká karta, formulář po klepnutí ---------- */
.kp-ask-order{padding:20px!important;gap:12px!important}
.kp-ask-order-title{font-size:22px!important}
.kp-ask-order-note{font-size:12.5px}
.kp-ask-or{margin-block:14px!important}
.kp-form-card,.kp-ask-card{padding:22px 18px!important}
.kp-m-form .kp-section-heading{margin-bottom:14px}
.kp-m-form:not(.is-open) form{display:none}
.kp-m-form.is-open .kp-m-form-open{display:none}
.kp-m-form-open{display:flex;width:100%;justify-content:center;min-height:50px}

/* ---------- časté dotazy ---------- */
.kp-faq-list{gap:8px!important}
.kp-faq-list summary,.kp-hf-item summary{padding-block:14px!important;font-size:15px}

/* ---------- závěrečná výzva ---------- */
.kp-cta .kp-container{gap:16px!important}
.kp-cta-actions{display:grid!important;grid-template-columns:1fr;gap:10px!important}
.kp-cta-actions .kp-button{width:100%;justify-content:center}

/* ---------- schéma více provozoven ---------- */
.kp-net-note{font-size:13px}

/* ---------- dlouhé texty: kapitoly k rozbalení ---------- */
.kp-m-acc .kp-m-acc-body:not(.kp-m-acc-open){display:none}
.kp-m-acc .kp-m-acc-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0!important;padding:16px 0!important;border-top:1px solid var(--kp-line);font-size:18px!important;line-height:1.3;cursor:pointer}
.kp-m-acc .kp-m-acc-head:first-child{border-top:0}
.kp-m-acc .kp-m-acc-open{margin-top:0}
.kp-m-acc .kp-m-acc-head+.kp-m-acc-open{margin-top:2px}
.kp-m-acc-chev{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:99px;background:var(--kp-tint);color:var(--kp-primary);transition:transform .2s}
.is-open>.kp-m-acc-chev{transform:rotate(180deg)}
.kp-page-content{padding-block:8px 24px}
.kp-entry-content.kp-m-acc{padding:6px 18px 10px!important}
.kp-m-acc .kp-m-acc-open:last-of-type{margin-bottom:12px}

/* ---------- stránka Funkce ---------- */
.kp-m-fxg .kp-fx-group-head{cursor:pointer}
.kp-m-fxg:not(.kp-m-open) .kp-fx-table,.kp-m-fxg:not(.kp-m-open) .kp-fx-more{display:none!important}
.kp-m-fxg.kp-m-open .kp-fx-group-head .kp-m-acc-chev{transform:rotate(180deg)}
.kp-m-fxg .kp-fx-count{margin-left:auto}
.kp-fx-group{margin-bottom:10px!important}
.kp-fx-heading{margin-bottom:12px}

/* ---------- e-shop ---------- */
.kp-shop-layout{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
.kp-shop-layout>*{min-width:0;max-width:100%}
.kp-shop-head{padding-block:18px 14px}
.kp-shop-head-grid{gap:12px!important}
.kp-shop-head h1{font-size:28px;margin-bottom:8px}
.kp-shop-head-grid>*{min-width:0;max-width:100%}
.kp-shop-badges{flex-wrap:nowrap!important;overflow-x:auto;gap:8px!important;align-self:stretch;min-width:0;max-width:none!important;width:auto;margin-inline:-22px;padding:2px 22px!important;scrollbar-width:none}
.kp-shop-badges::-webkit-scrollbar{display:none}
.kp-shop-badges li{flex:none;white-space:nowrap;font-size:13px}
.kp-m-filters{padding:0!important;overflow:hidden}
.kp-m-filters .kp-filters-head{margin:0!important;padding:14px 16px!important;cursor:pointer;justify-content:space-between}
.kp-m-filters:not(.is-open)>*:not(.kp-filters-head){display:none!important}
.kp-m-filters.is-open{padding-bottom:16px!important}
.kp-m-filters.is-open>*:not(.kp-filters-head){margin-inline:16px}
.kp-m-filters.is-open .kp-m-acc-chev{transform:rotate(180deg)}
.kp-shop-toolbar{flex-wrap:wrap;gap:8px!important;padding-bottom:8px}
.kp-shop-toolbar .kp-shop-sort-label,.kp-view-switch{display:none!important}
.kp-product-grid:not(.kp-container){grid-template-columns:1fr 1fr!important;gap:10px!important}
.kp-product-card.is-shop{padding:10px!important;gap:6px!important;border-radius:16px}
.kp-product-card.is-shop .kp-product-top{flex-wrap:wrap;gap:4px;min-height:0}
.kp-product-card.is-shop .kp-product-top>*{font-size:10px;padding:3px 6px}
.kp-product-card.is-shop .kp-product-photo{aspect-ratio:1/1;height:auto!important}
.kp-product-card.is-shop h2,.kp-product-card.is-shop h3{font-size:14px!important;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:2px 0}
.kp-product-card.is-shop p:not([class*=price]){display:none}
.kp-product-card.is-shop ul{display:none}
.kp-product-card.is-shop{min-width:0}
.kp-product-card.is-shop>*{min-width:0}
.kp-product-card.is-shop .kp-product-copy h3{min-height:0}
.kp-product-card.is-shop .kp-product-bottom{padding-top:6px!important;gap:8px!important;margin-top:auto}
.kp-product-card.is-shop .kp-price-pair{display:flex!important;flex-wrap:wrap;gap:0 4px!important}
.kp-product-card.is-shop .kp-price-pair strong{font-size:18px!important;line-height:1.2}
.kp-product-card.is-shop .kp-price-pair small,.kp-product-card.is-shop .kp-price-pair>span{font-size:11px!important}
.kp-product-card.is-shop .kp-price-pair>span{flex-basis:100%}
.kp-product-card.is-shop .kp-button{min-height:40px;padding:8px 6px!important;font-size:12.5px!important;width:100%;justify-content:center;gap:6px;white-space:nowrap}
.kp-product-card.is-shop .kp-button svg{width:15px;height:15px}
.kp-product-card.is-shop .kp-button[href*="product/"] svg{display:none}
.kp-product-card.is-shop .kp-pill.is-mini{max-width:100%;white-space:normal;line-height:1.25}
.woocommerce-pagination,.kp-shop-main nav{max-width:100%;overflow-x:auto}
.kp-shop-main ul.page-numbers{flex-wrap:wrap}
.kp-b2b-panel{padding:24px 20px!important}
.kp-b2b-copy h2{font-size:23px!important}

/* ---------- detail produktu ---------- */
.kp-product-grid.kp-container{gap:18px!important}
.kp-trust-tiles{grid-template-columns:1fr 1fr!important;gap:8px!important}
.kp-trust-tiles li{padding:10px!important;font-size:12.5px}
.kp-product-summary{padding:18px!important}
.kp-m-fold.kp-product-short::after{background:linear-gradient(rgba(255,255,255,0),#fff 85%)}
.kp-upsells-head{gap:6px!important}
/* 1.22.34: krátký rámeček nad fotkou (pole „Krátce nahoře na telefonu“, inc/mobile.php) */
.kp-m-intro.kp-m-only{display:block;margin-top:14px}
.kp-m-intro+.kp-product-grid{padding-top:14px!important}
.kp-m-intro-card{background:#fff;border-radius:20px;padding:16px 16px 14px;box-shadow:0 1px 2px #131b2e09;border:1px solid var(--kp-soft)}
.kp-m-intro-title{margin:0 0 10px;font-family:var(--kp-heading);font-size:18px;font-weight:800;line-height:1.25;color:var(--kp-ink)}
.kp-m-intro-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:7px}
.kp-m-intro-list li{display:grid;grid-template-columns:20px 1fr;gap:8px;align-items:start;font-size:14px;line-height:1.42;color:var(--kp-ink)}
.kp-m-intro-list svg{width:20px;height:20px;margin-top:1px;color:var(--kp-green)}
.kp-m-intro-list strong{font-weight:700}
.kp-m-intro-link{display:flex;width:100%;justify-content:center;gap:8px;min-height:44px}
.kp-m-intro-link svg{width:18px;height:18px}
.kp-m-intro-note{margin:7px 0 0;font-size:12.5px;line-height:1.4;color:var(--kp-muted);text-align:center}

/* ---------- sestavy, zařízení, kontakt ---------- */
.kp-tset-row{padding:16px!important}
.kp-tset-media{max-height:220px;overflow:hidden}
.kp-tset-copy h3{font-size:21px}
.kp-dev-head .kp-lead{font-size:15px}
.kp-team-card{flex-direction:column!important;align-items:flex-start!important}
.kp-hotline-panel{padding:24px 20px!important;gap:18px!important}
.kp-hotline-copy h2{font-size:25px!important}
.kp-contact-card-big{padding:20px!important}

/* ---------- interaktivní ukázka aplikace ---------- */
.kp-m-fold.kp-appdemo-panel::after{background:linear-gradient(rgba(255,255,255,0),#fff 85%)}

/* ---------- patička ---------- */
.kp-footer{padding-top:30px}
.kp-footer-grid{gap:22px 16px!important}
.kp-footer-brand p{font-size:13px}
.kp-footer h2{margin-bottom:8px!important}
.kp-footer-bottom{padding-block:16px!important;gap:10px!important}
.kp-footer-links{gap:6px 14px!important;font-size:12.5px}
}

@media (max-width:767px) and (prefers-reduced-motion:reduce){
.kp-m-rail{scroll-behavior:auto}
.kp-topbar,.kp-m-dots button,.kp-m-acc-chev{transition:none}
}
