/* Calculators section "Kalkulatory elektroniczne" (by WebFlyer+CLD, 2026-12-04). Approved preview design.
   Loaded only on information/calculator pages (controller addStyle). */
.kc{--kc-blue:#077DDD;--kc-blue-soft:#EAF4FD;--kc-ink:#1c1c28;--kc-muted:#5b6472;--kc-line:#e3e8f0;--kc-radius:14px;color:var(--kc-ink);font-size:15px;line-height:1.6;margin-bottom:32px}
.kc *{box-sizing:border-box}

/* hub hero: full-width photo, text on the light left part */
.kc-hero{position:relative;border-radius:20px;overflow:hidden;min-height:320px;aspect-ratio:2.6/1;background-position:right 35%;background-size:cover;background-repeat:no-repeat;margin-bottom:28px}
.kc-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.85) 38%,rgba(255,255,255,0) 62%)}
.kc-hero-text{position:relative;max-width:540px;height:100%;padding:36px;display:flex;flex-direction:column;justify-content:center}
.kc-hero h1{font-size:34px;line-height:1.2;font-weight:800;margin:0 0 12px}
.kc-hero p{font-size:16px;color:#4a5361;margin:0 0 18px}
.kc-chips{display:flex;flex-wrap:wrap;gap:8px}
.kc-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--kc-line);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}
.kc-chip i{font-style:normal;color:var(--kc-blue)}

/* hub cards */
.kc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.kc-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--kc-line);border-radius:var(--kc-radius);overflow:hidden;color:inherit;text-decoration:none;transition:transform .15s,box-shadow .15s}
.kc-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(28,28,40,.10);color:inherit;text-decoration:none}
.kc-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.kc-card-body{padding:18px 18px 20px;display:flex;flex-direction:column;flex:1}
.kc-card-tag{font-size:12px;font-weight:700;color:var(--kc-blue);text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.kc-card h2{font-size:19px;font-weight:700;margin:0 0 8px}
.kc-card p{color:var(--kc-muted);margin:0 0 16px;flex:1}
.kc-card-cta{font-weight:700;color:var(--kc-blue)}

/* tool page */
.kc-tool-head{display:grid;grid-template-columns:1fr 260px;gap:24px;align-items:center;margin-bottom:20px}
.kc-tool-head h1{font-size:30px;font-weight:800;line-height:1.2;margin:0 0 8px}
.kc-tool-head p{color:var(--kc-muted);margin:0}
.kc-tool-head img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:12px}
.kc-grid{display:grid;grid-template-columns:7fr 5fr;gap:20px;align-items:start}
.kc-panel{background:#fff;border:1px solid var(--kc-line);border-radius:var(--kc-radius);padding:22px}
.kc-panel-title{font-size:17px;font-weight:700;margin:0 0 14px}
.kc-sticky{position:sticky;top:16px}
.kc-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.kc-field label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.kc-input{position:relative}
.kc-input input{width:100%;height:48px;border:1.5px solid #cfd8e5;border-radius:10px;padding:0 60px 0 14px;font-size:18px;font-weight:600;background:#fbfcfe;transition:border-color .15s,box-shadow .15s}
.kc-input input:focus{outline:none;border-color:var(--kc-blue);box-shadow:0 0 0 4px rgba(7,125,221,.15);background:#fff}
.kc-input input.is-invalid{border-color:#c0392b}
.kc-input span{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-weight:700;color:var(--kc-muted);background:#eef2f7;border-radius:6px;padding:2px 8px;font-size:13px}
.kc-error{color:#c0392b;font-size:12px;margin-top:4px;min-height:0}
.kc-hint{font-size:13px;color:var(--kc-muted);margin-top:12px}
.kc-hint.is-warn{color:#c0392b;font-weight:600}
.kc-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.kc-btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:10px;border:1.5px solid var(--kc-blue);background:#fff;color:var(--kc-blue);font-weight:700;font-size:15px;cursor:pointer}
.kc-btn:hover{background:var(--kc-blue-soft)}
.kc-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}
.kc-tiles-3{grid-template-columns:repeat(3,1fr)}
.kc-tile{background:#f6f8fb;border:1px solid var(--kc-line);border-radius:12px;padding:12px;min-width:0}
.kc-tile small{display:block;font-size:12px;font-weight:700;color:var(--kc-muted)}
.kc-tile b{display:block;font-size:22px;font-weight:800;line-height:1.2;margin-top:2px;overflow-wrap:anywhere}
.kc-tile.is-result{background:var(--kc-blue);border-color:var(--kc-blue);color:#fff}
.kc-tile.is-result small{color:rgba(255,255,255,.8)}
.kc-tile.is-ok{background:#e7f6ec;border-color:#bfe5cb}
.kc-tile.is-mid{background:#fff4e0;border-color:#f3d9a6}
.kc-tile.is-bad{background:#fdecea;border-color:#f5c2bd}
.kc-steps{margin-top:14px;background:var(--kc-blue-soft);border-radius:10px;padding:12px 14px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;white-space:pre-line}
.kc-steps:empty{display:none}
.kc-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;align-items:center;font-size:13px;color:var(--kc-muted)}
.kc-pill{display:inline-flex;align-items:center;border:1px solid var(--kc-line);border-radius:999px;padding:6px 12px;font-weight:600;color:var(--kc-ink);background:#fff}
.kc-pill:hover{border-color:var(--kc-blue);color:var(--kc-blue);text-decoration:none}
.kc-svg{width:100%;height:auto;display:block}
.kc-svg .lbl{font:700 13px system-ui,sans-serif;fill:#5b6472}
.kc-svg .val{font:700 15px system-ui,sans-serif;fill:#077DDD}
.kc-svg .seg{font:800 26px ui-monospace,Menlo,Consolas,monospace}
.kc-legend{font-size:13px;color:var(--kc-muted);margin-top:10px}

/* products (selector) */
.kc-products-box{margin-top:28px}
.kc-products-box .kc-more{margin-top:12px;font-weight:700}
.kc-note{font-size:13px;color:var(--kc-muted);margin-top:12px}

/* text content from the language files */
.kc-content{margin-top:12px}
.kc-content h2{font-size:24px;font-weight:800;margin:36px 0 14px}
.kc-content p{margin:0 0 12px}
.kc-formulas{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.kc-formula{background:#fff;border:1px solid var(--kc-line);border-radius:12px;padding:14px;text-align:center}
.kc-formula b{display:block;font-size:20px;font-weight:800;color:var(--kc-blue)}
.kc-formula span{display:block;font-size:13px;color:var(--kc-muted);margin-top:4px}
.kc-example{display:flex;gap:14px;background:#fffbea;border:1px solid #f3e3a1;border-radius:12px;padding:16px}
.kc-example i{font-style:normal;font-size:22px;color:#c9a227;line-height:1.2}
.kc-content .cat-faq__item{border:1px solid var(--kc-line);border-radius:12px;background:#fff;margin:0 0 10px;overflow:hidden}
.kc-content .cat-faq__q{list-style:none;cursor:pointer;padding:16px 56px 16px 18px;font-weight:700;position:relative;line-height:1.4}
.kc-content .cat-faq__q::-webkit-details-marker{display:none}
.kc-content .cat-faq__q:after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;background:var(--kc-blue-soft);color:var(--kc-blue);text-align:center;line-height:26px;font-size:18px}
.kc-content .cat-faq__item[open] .cat-faq__q{color:var(--kc-blue)}
.kc-content .cat-faq__item[open] .cat-faq__q:after{content:"\2212"}
.kc-content .cat-faq__q:focus-visible{outline:2px solid var(--kc-blue);outline-offset:-2px}
.kc-content .cat-faq__a{padding:0 18px 16px;color:#384148;line-height:1.65}
.kc-content .cat-faq__a p{margin:0 0 10px}
.kc-content .cat-faq__a p:last-child{margin:0}
.kc-back{margin-top:24px}

@media (max-width:991px){
 .kc-hero{aspect-ratio:auto;min-height:0;background-position:70% center}
 .kc-hero:before{background:rgba(255,255,255,.86)}
 .kc-hero-text{padding:24px}
 .kc-hero h1{font-size:26px}
 .kc-cards{grid-template-columns:1fr}
 .kc-tool-head{grid-template-columns:1fr}
 .kc-tool-head img{display:none}
 .kc-tool-head h1{font-size:24px}
 .kc-grid{grid-template-columns:1fr}
 .kc-sticky{position:static}
 .kc-formulas{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:575px){
 .kc-fields{grid-template-columns:1fr}
 .kc-tiles,.kc-tiles-3{grid-template-columns:repeat(2,1fr)}
 .kc-formulas{grid-template-columns:1fr}
}
@media print{
 .kc-products-box,.kc-pills,.kc-actions{display:none!important}
 .kc-hero:before{display:none}
}
