/* Foldable / tablet band — unfolded "iPhone Fold" (~7.8" near-square inner display), iPad mini/Air, small landscape tablets.
   Linked LAST (inserted by _build/foldable.py). Everything sits inside min-width:640px media queries that stop at 1100px,
   so 390 (phones) and 1440 (desktop) render exactly as before. Safari-safe: grid/flex, transforms, no new effects.
   Bands:  A 640–768  = the phone layout is used here; widen it into a tablet layout (2-col pricing, inline CTAs, 3-step row…)
           B 769–1100 = the desktop layout is used here; fix the parts that get cramped (KSeF diagram, tap targets). */

/* ---------- A: 640–768 ---------- */
@media (min-width:640px) and (max-width:768px){
  .wrap{width:calc(100% - 56px)}
  /* hero: CTAs side by side instead of two 660px-wide bars; standalone mockup card centred at a sensible width */
  .hero-v3 .hero-actions{flex-direction:row;flex-wrap:wrap}
  .hero-v3 .hero-actions .btn{width:auto;flex:0 0 auto;min-width:210px;padding-left:28px;padding-right:28px}
  .igm-hero-mob{max-width:600px;margin-left:auto;margin-right:auto}
  .igm-inv-mob{height:360px}
  /* steps: back to the 3-in-a-row track */
  .sl-track{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
  .sl-track::before{left:28px;right:28px;top:27px;bottom:auto;width:auto;height:2px;background:linear-gradient(90deg,#13B8EE,#68E2B4,#FFA04F)}
  .sl-track li{display:block}
  .sl-track li .sl-dot{margin:0 0 18px}
  .sl-track h3{margin-top:0}
  /* pricing: 2×2 grid, no side-scrolling carousel and no 340px left-pinned cards */
  .ig-switch{max-width:600px}
  .ig-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;scroll-snap-type:none;
    width:auto;margin:0 0 32px;padding:10px 0 0;gap:16px}
  .ig-card{flex:none;max-width:none;width:auto;scroll-snap-align:none}
  /* CTA: buttons inline */
  .cc-actions{flex-direction:row;justify-content:center;align-items:center}
  .cc-actions .btn{min-width:210px}
  /* app section: centred block */
  .as-copy{text-align:center;max-width:600px;margin:0 auto}
  .as-copy .kicker{justify-content:center}
  .as-copy .store-badges{justify-content:center}
  /* footer bottom row on one line again */
  .b-fbottom{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}
}

@media (min-width:769px) and (max-width:1023px){
  .ct-meta a{min-height:44px;display:inline-flex;align-items:center}
}
/* landscape fold (short and wide, e.g. 920×700 / 880×740): keep the hero mockup from towering over the fold */
@media (min-width:769px) and (max-width:1100px) and (max-height:780px) and (orientation:landscape){
  .hero-v3 .hero-visual{max-width:680px;margin-left:auto;margin-right:auto}
}

/* ---------- KSeF, whole band 640–1100: simplified status card (as on phones, a bit richer) ----------
   The full Klient → Faktura → KSeF diagram is hidden; the KSeF card shows the same texts (KSeF, "Wysłanie, przyjęcie i urzędowe
   poświadczenie odbioru.", Wysłano / Przyjęto / UPO) with the three statuses as a horizontal stepper: Lucide icons (send,
   circle-check, stamp — ISC, inlined as data-URI SVG), connecting lines with a light running along them, a gentle pulse per step.
   640–859: copy on top, wide card below.  860–1100: copy left, card right. */
@media (min-width:640px) and (max-width:1100px){
  .ig-ksef-inner{grid-template-columns:minmax(0,1fr);gap:26px;padding:4px 0}
  .ig-ksef-inner::before{display:none}
  .ig-ksef-visual{min-height:0;width:100%;max-width:none;margin:0;padding:0;display:block;position:relative}
  .ig-kf-cli,.ig-kf-inv,.ig-kf-card.ig-kf-cli,.ig-kf-card.ig-kf-inv,.ig-ksef-line,.ig-kf-step,.ig-ksef-dot{display:none!important;animation:none!important}
  .ig-kf-mid,.ig-kf-card.ig-kf-mid{position:relative;left:auto;right:auto;top:auto;bottom:auto;transform:none;margin:0;animation:none;
    display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:8px 22px;width:100%!important;max-width:none!important;
    padding:26px 26px 24px;border-radius:24px;overflow:hidden;
    background:radial-gradient(120% 90% at 100% 0%,rgba(19,184,238,.14),transparent 60%),radial-gradient(90% 80% at 0% 100%,rgba(104,226,180,.08),transparent 60%),linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),#0E1E2A;
    border:1px solid rgba(19,184,238,.32);box-shadow:0 18px 40px rgba(0,0,0,.28)}
  .ig-kf-mid::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#13B8EE,#FFA04F,#68E2B4)}
  .ig-kf-mid-title{grid-column:1;grid-row:1;font-size:36px;letter-spacing:-.04em;line-height:1}
  .ig-kf-mid::after{content:"Wysłanie, przyjęcie i urzędowe poświadczenie odbioru.";grid-column:1;grid-row:2;margin:0;
    font-size:15.5px;line-height:1.45;font-weight:500;color:var(--b-muted,#C9D6DE);letter-spacing:-.01em}
  /* stepper */
  .ig-kf-mid .ig-chips{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:18px;flex-wrap:nowrap;
    padding:18px 6px 4px;border-top:1px solid rgba(255,255,255,.08)}
  .ig-kf-mid .ig-chips i{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:0;border:0;background:none;
    font-size:13.5px;font-weight:750;letter-spacing:.01em;color:#fff;text-align:center}
  .ig-kf-mid .ig-chips i::before{content:"";position:relative;z-index:1;width:50px;height:50px;border-radius:50%;
    background-color:#0F2230;background-image:var(--kf-ic);background-repeat:no-repeat;background-position:center;background-size:22px 22px;
    border:1.5px solid var(--kf-bd);box-shadow:0 0 0 0 transparent;animation:kfStep 4.8s ease-in-out infinite;animation-delay:var(--kf-d)}
  .ig-kf-mid .ig-chips i:nth-child(1){--kf-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313B8EE' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E");--kf-bd:rgba(19,184,238,.55);--kf-d:0s}
  .ig-kf-mid .ig-chips i:nth-child(2){--kf-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFA04F' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m16 9-5.5 5.5L8 12'/%3E%3C/svg%3E");--kf-bd:rgba(255,160,79,.55);--kf-d:1.6s}
  .ig-kf-mid .ig-chips i:nth-child(3){--kf-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368E2B4' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13'/%3E%3Cpath d='M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z'/%3E%3Cpath d='M5 22h14'/%3E%3C/svg%3E");--kf-bd:rgba(104,226,180,.6);--kf-d:3.2s}
  .ig-kf-mid .ig-chips i:not(:last-child)::after{content:"";position:absolute;top:24px;left:calc(50% + 34px);right:calc(-50% + 34px);height:2px;border-radius:2px;
    background-image:linear-gradient(90deg,transparent 0,rgba(255,255,255,.85) 50%,transparent 100%),linear-gradient(90deg,var(--kf-a),var(--kf-b));
    background-size:40% 100%,100% 100%;background-repeat:no-repeat;background-position:-60% 0,0 0;animation:kfFlow 4.8s ease-in-out infinite;animation-delay:var(--kf-d);opacity:.9}
  .ig-kf-mid .ig-chips i:nth-child(1)::after{--kf-a:#13B8EE;--kf-b:#FFA04F}
  .ig-kf-mid .ig-chips i:nth-child(2)::after{--kf-a:#FFA04F;--kf-b:#68E2B4}
}
@media (min-width:640px) and (max-width:859px){
  /* wide card: title and description side by side */
  .ig-kf-mid,.ig-kf-card.ig-kf-mid{grid-template-columns:auto minmax(0,1fr)}
  .ig-kf-mid::after{grid-column:2;grid-row:1;max-width:30em}
  .ig-kf-mid-title{padding-right:20px;border-right:1px solid rgba(255,255,255,.1)}
}
@media (min-width:860px) and (max-width:1100px){
  .ig-ksef-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
}
@keyframes kfStep{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,255,255,0)}12%{transform:scale(1.07);box-shadow:0 0 0 7px rgba(255,255,255,.06)}28%{transform:scale(1);box-shadow:0 0 0 0 rgba(255,255,255,0)}}
@keyframes kfFlow{0%{background-position:-60% 0,0 0}35%,100%{background-position:160% 0,0 0}}
@media (min-width:640px) and (max-width:1100px) and (prefers-reduced-motion:reduce){
  .ig-kf-mid .ig-chips i::before,.ig-kf-mid .ig-chips i:not(:last-child)::after{animation:none}
}

/* ---------- Zespół (team) section, whole band 640–1100 ----------
   ≤900 the page stacks the four role rows into one full-width list (short text, then empty stretched bars); 901–1100 the
   floating desktop cards overlap the phone placeholder. In the band: the phone and connector lines are hidden and the roles
   become a grid of compact centred glass cards (avatar on top, name, access chips).  640–859: copy on top, 4 cards in a row.
   860–1100: copy left, 2×2 grid right. Selectors: .ig-emp, .ig-emp-visual, .ig-emp-cards, .ig-team-card (reusable pattern
   "copy + role/feature cards" for other pages' team sections). */
@media (min-width:640px) and (max-width:1100px){
  .ig-emp{grid-template-columns:minmax(0,1fr);gap:30px;align-items:center}
  .ig-emp-visual{min-height:0;display:block;position:relative}
  .ig-emp-line,.ig-emp .ig-phone{display:none}
  .ig-emp-cards{position:static;inset:auto;pointer-events:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;
    padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  .ig-team-card,.ig-team-owner,.ig-team-worker,.ig-team-acc,.ig-team-add{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:auto;min-width:0;
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;text-align:center;
    padding:22px 14px 20px;border-radius:20px;transform:none;animation:igTeamFloat 6.4s ease-in-out infinite;
    background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),rgba(14,30,42,.72);
    border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 28px rgba(0,0,0,.22)}
  .ig-team-owner{animation-delay:0s}.ig-team-worker{animation-delay:-1.6s}.ig-team-acc{animation-delay:-3.2s}
  .ig-team-add{animation-delay:-4.8s;border-style:dashed;border-color:rgba(104,226,180,.4);background:rgba(104,226,180,.04)}
  .ig-team-card .ig-ava{width:48px;height:48px;font-size:15px}
  .ig-team-meta{align-items:center;gap:8px}
  .ig-team-meta b{font-size:15px}
  .ig-team-meta .ig-chips{justify-content:center;gap:6px}
  .ig-team-meta .ig-chips i{font-size:11.5px;padding:3px 9px}
  .ig-free{font-size:12.5px}
}
@media (min-width:860px) and (max-width:1100px){
  .ig-emp{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}
  .ig-emp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:640px) and (max-width:1100px) and (prefers-reduced-motion:reduce){
  .ig-team-card{animation:none}
}

/* ---------- Menu on foldables / small tablets (640–900, the burger range): right side sheet instead of a full-screen list ----------
   Full-screen, the right-aligned 40px list left most of a near-square screen empty. Now: a 460px glass sheet slides in from the
   right (same clip-path reveal + brand prism, confined to the sheet), the page stays visible behind a dimmed, blurred backdrop
   (tap it to close — tiny companion script added by _build/foldable.py). Inside the sheet the content is left-aligned and fills
   the width (labels, then numbers on the right edge); Produkty / Rozwiązania open as full-width glass rows with their icons. Menu JS unchanged. */
@media (min-width:640px) and (max-width:900px){
  .mn-bg{background:rgba(3,10,15,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:pointer}
  .mn-prism,.mn-sheet{left:auto;right:0;width:min(460px,100%)}
  /* the brand-colour sweep travels far past its box (keyframe ends at -100% - 320px): clip it to the sheet so it never spills over the page */
  .mn-prism{overflow:hidden;-webkit-clip-path:inset(0);clip-path:inset(0)}
  .mn-sheet{background:radial-gradient(420px 360px at 100% 0%,rgba(19,184,238,.26),transparent 65%),radial-gradient(380px 320px at 0% 100%,rgba(255,160,79,.16),transparent 65%),
      linear-gradient(180deg,#071722 0%,#06121A 60%,#050F16 100%);
    box-shadow:-24px 0 60px rgba(0,0,0,.45),inset 1px 0 0 rgba(255,255,255,.08)}
  .mn-scroll{padding-left:24px;padding-right:24px}
  .mn-link{font-size:34px}
  /* inside the sheet everything reads left → right and fills the width (on phones the menu stays right-aligned) */
  .mn-scroll{text-align:left}
  .mn-link{justify-content:flex-start;align-items:center;gap:12px}
  .mn-link .mn-num{margin-left:auto;transform:none}
  .mn-link::after{transform-origin:0 50%;background:linear-gradient(90deg,#13B8EE,#68E2B4 55%,#FFA04F)}
  .mn-link .mn-label{order:1}.mn-link .mn-plus{order:2;margin:0 0 0 2px}.mn-link .mn-num{order:3}   /* label (+) ········ 02 */
  /* Produkty / Rozwiązania: full-width glass rows, icon left, title + subtitle */
  .mn-acc-inner{display:flex;flex-direction:column;gap:6px}
  .mn-acc.open .mn-acc-inner{padding-bottom:6px}
  .mn-ph{margin:14px 2px 2px}
  .mn-pi{flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:14px;min-height:56px;padding:9px 12px;border-radius:16px;text-align:left;
    background:linear-gradient(160deg,rgba(255,255,255,.055),rgba(255,255,255,.015));box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);transition:background .2s,box-shadow .2s}
  .mn-pi:hover,.mn-pi:active{background:rgba(19,184,238,.1);box-shadow:inset 0 0 0 1px rgba(19,184,238,.35)}
  .mn-pi.is-current{box-shadow:inset 0 0 0 1.5px rgba(19,184,238,.55);background:rgba(19,184,238,.07)}
  .mn-pt{align-items:flex-start}
  .mn-pt b{font-size:15.5px;line-height:1.25}
  .mn-pt small{font-size:12.5px;line-height:1.3}
  .mn-all{min-height:44px;align-items:center;margin:6px 2px 4px}
  .mn-all span{display:inline-block;transform:scaleX(-1)}     /* "←" points into the sheet → */
  /* trial card + actions + languages: left-aligned too */
  .mn-card{text-align:left;background:radial-gradient(120% 100% at 0% 0%,rgba(19,184,238,.28),transparent 60%),radial-gradient(90% 90% at 100% 100%,rgba(255,160,79,.20),transparent 60%),#0C2130}
  .mn-apps,.mn-acts,.mn-langs{justify-content:flex-start}
}

/* invisible 44px hit area for contact links, all widths, no visual change */
.ct-meta a{position:relative}
.ct-meta a::after{content:"";position:absolute;left:-8px;right:-8px;top:50%;height:44px;transform:translateY(-50%)}

/* ============================================================================================================
   ROLLOUT to the other pages (consultations, chat-consultations, task-company, task-accountant, documents-online,
   financial-statement, employee, cloud-mcg, ai-assistant). Everything below is scoped to 640–1100 (or a sub-band)
   and to page/section classes, so 1440 and 390 are untouched.
   ============================================================================================================ */

/* ---- Zalety tiles (.kl-zal, shared by 7 pages; 5–7 tiles). 769–1100 squeezed them into 4 narrow columns
   (titles broke into 1–2 words per line); 640–768 left an orphan pinned left. Now: 2 columns (640–900) /
   3 columns (901–1100), the last incomplete row centred. Grid is doubled (4 / 6 tracks) so a tile can sit
   between two columns. */
@media (min-width:640px) and (max-width:900px){
  section.kl-zal .zt-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  section.kl-zal .zt-grid > .zt,section.kl-zal .zt-grid > .zt:nth-child(n){grid-column:span 2}
  section.kl-zal .zt-grid > .zt:nth-child(odd):last-child{grid-column:2/span 2}
}
@media (min-width:901px) and (max-width:1100px){
  section.kl-zal .zt-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  section.kl-zal .zt-grid > .zt,section.kl-zal .zt-grid > .zt:nth-child(n){grid-column:span 2}
  section.kl-zal .zt-grid > .zt:nth-child(3n+1):last-child{grid-column:3/span 2}
  section.kl-zal .zt-grid > .zt:nth-child(3n+1):nth-last-child(2){grid-column:2/span 2}
}

/* ---- Zespół with three role cards (chat-consultations, task-company): the invoice rule above lays out 4 columns,
   so 3 cards left a hole on the right (640–859) or an orphan pinned left (860–1100). Column count now follows the
   number of cards; a 3rd card in the 2×2 variant is centred. */
@media (min-width:640px) and (max-width:859px){
  .ig-emp-cards{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
}
@media (min-width:860px) and (max-width:1100px){
  .ig-emp-cards > .ig-team-card:nth-child(3):last-child{grid-column:1/-1;justify-self:center;width:calc(50% - 7px)}
}

/* ---- Konsultacje pricing (3 cards, .kl-stairs without .ch-stairs), 640–768: the phone carousel was pinned left
   with a cut-off second card. Now a centred slider: one 340px card in the middle with both neighbours peeking,
   snap to centre, dots stay (kl.js now picks the card closest to the centre). */
@media (min-width:640px) and (max-width:768px){
  .kl-stairs:not(.ch-stairs){scroll-padding:0;padding-left:calc(50% - 170px);padding-right:calc(50% - 170px)}
  .kl-stairs:not(.ch-stairs) .kl-card,.kl-stairs:not(.ch-stairs) .kl-card.c1,.kl-stairs:not(.ch-stairs) .kl-card.c2,.kl-stairs:not(.ch-stairs) .kl-card.c3{
    flex:0 0 340px;max-width:340px;scroll-snap-align:center}
}
/* ---- Chat pricing (4 cards), 640–768: 2×2 grid like 769–1100 instead of the left-pinned phone carousel */
@media (min-width:640px) and (max-width:768px){
  .ch-stairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;overflow:visible;width:auto;margin:0 0 8px;padding:8px 0 0}
  .ch-stairs .ch-card,.ch-stairs .ch-card.c1,.ch-stairs .ch-card.c2,.ch-stairs .ch-card.c3,.ch-stairs .ch-card.c4{flex:none;max-width:none;width:auto}
  .ch-pricing .ch-dots,.ch-pricing .kl-dots{display:none}
}

/* ---- Konsultacje "W biurze" (901–1100): copy column too narrow, the 3 price chips wrapped 2+1 → one row of three */
@media (min-width:901px) and (max-width:1100px){
  .kl-office-grid{gap:36px}
  .kl-office-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .kl-office-prices span{padding:10px 12px}
  .kl-office-prices b{font-size:17px}
}

/* ---- Two-plan pricing with a phone switch (task-accountant Faktury M|L, ai-assistant Basic|PRO), 640–768:
   both cards fit side by side, so the switch is hidden and both plans show (ta.js / ai.js now only switch ≤639). */
@media (min-width:640px) and (max-width:768px){
  .ta-switch,.ai-switch{display:none}
  .ta-pkgs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:none}
  .ta-pkgs .ta-card,.ta-pkgs .ta-card.is-feat{grid-area:auto;opacity:1;visibility:visible;transform:none;padding:20px 16px 16px}
  .ai-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:none}
  .ai-plans .ai-plan,.ai-plans .ai-plan:not(.is-on){display:flex;animation:none;padding:20px 16px 18px}
  .ai-plan-price{font-size:36px}
}

/* ---- Task-accountant "Dla kogo" (3 cards): ≤900 they were full-width bars with short text → 3 columns */
@media (min-width:640px) and (max-width:900px){
  .ta-who-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .ta-wc{padding:20px 16px}
}

/* ---- Single-offer pricing (employee .em-offer, financial-statement .fs-offer), 640–900: the phone stack (460px card,
   facts below) → the desktop split again: offer left, facts right. */
@media (min-width:640px) and (max-width:900px){
  .em-offer,.fs-offer{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);max-width:none;width:100%}
  .em-facts,.fs-facts{border-top:0;border-left:1px solid rgba(255,255,255,.08);padding:18px 14px;justify-content:center}
}


/* ---- Cloud MCG "Jak uzyskać dostęp" (4 steps), 640–768: 3-in-a-row left the 4th step alone → 2×2, connector hidden */
@media (min-width:640px) and (max-width:768px){
  .cm-steps .sl-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 28px}
  .cm-steps .sl-track::before{display:none}
}

/* ---- AI cases (9 tiles), 640–900: 2 columns left the 9th pinned left → 3 columns */
@media (min-width:640px) and (max-width:900px){
  .ai-case-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .ai-case{padding:18px 16px}
}

/* ---- Tematy topic network (consultations, chat-consultations; 9 topics), 640–1000 = 2 columns: 9th topic was pinned left → centred */
@media (min-width:640px) and (max-width:1000px){
  .kl-net > article.kl-tc:last-of-type:nth-of-type(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 13px)}
}
/* AI plans side by side (640–768): plan name + limit badge did not fit one row (name broke into 3 lines) → badge on its own row under the name */
@media (min-width:640px) and (max-width:768px){
  .ai-plan-top{flex-wrap:wrap;row-gap:8px}
  .ai-plan-top .ai-plan-name{flex:1 1 calc(100% - 58px)}
  .ai-plan-top .ai-badge{margin-left:58px}
}

/* ---- Konsultacje: booking drawer (.klb) on foldables 640–900. On phones it is a full-width bottom sheet; at 690–900 that made a
   690–900px-wide slab with short rows and big empty right halves. Same bottom sheet (style, slide-up, drag handle, blades)
   but centred and capped at 600px, rounded top corners, a soft edge on both sides, page dimmed + blurred behind it.
   Centred with left/right:0 + margin:auto (not transform: kl-booking.js drags the sheet via an inline transform).
   901–1100 keeps the desktop 460px right side panel. */
@media (min-width:640px) and (max-width:900px){
  .klb-backdrop{background:rgba(3,10,15,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
  .klb{left:0;right:0;margin:0 auto;width:min(600px,calc(100% - 48px));height:min(92svh,880px);border-radius:26px 26px 0 0;
    border:1px solid rgba(255,255,255,.12);border-bottom:0;
    box-shadow:0 -24px 60px rgba(0,0,0,.5),0 0 0 1px rgba(19,184,238,.08)}
  .klb-top{padding:0 22px}
  .klb-picks{margin:12px -22px 0;padding:0 22px 2px}
  .klb-scroll{padding:20px 22px 22px}
  .klb-days{margin:0 -22px 18px;padding:2px 22px 6px;scroll-padding-left:22px}
  .klb-foot{padding:12px 22px calc(14px + env(safe-area-inset-bottom))}
  .klb-bar{right:16px}
}

/* ---- E-Dokumenty pricing (documents-online), 640–1000. Before: one column of long stretched rows (name on the left,
   price + button far on the right) and the package card as another long block under them. Now: the documents are compact
   cards in a grid — 2×2 for the 4 "urzędowe", 3 in a row for the 3 "biznesowe" — and the package is one wide card split in two
   (name, price, button | what it contains). 1001–1100 keeps the desktop list + package side by side. Same texts and prices. */
@media (min-width:640px) and (max-width:1000px){
  .do-panels{width:100%;max-width:none}
  .do-panel{grid-template-columns:minmax(0,1fr);gap:18px}
  .do-docs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
  .do-docs > .do-doc{grid-column:span 3}
  .do-docs > .do-doc:first-child:nth-last-child(3),.do-docs > .do-doc:first-child:nth-last-child(3) ~ .do-doc{grid-column:span 2}
  .do-doc{grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto 1fr auto;column-gap:14px;row-gap:14px;align-items:start;
    padding:18px 18px 16px;border-radius:22px;box-shadow:0 12px 28px rgba(0,0,0,.24),inset 0 3px 0 var(--acc)}
  .do-doc-ic{grid-column:1;grid-row:1;width:44px;height:44px;border-radius:14px}
  .do-doc-tx{grid-column:2;grid-row:1/3;align-self:center}
  .do-doc-tx h3{font-size:16px}
  .do-doc-tx p{font-size:13px}
  .do-doc-price{grid-column:1/-1;grid-row:3;align-self:center;text-align:left;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
  .do-doc-price b{font-size:22px}
  .do-doc-btn{grid-column:2;grid-row:3;justify-self:end;align-self:end;min-height:40px;padding:0 16px;font-size:14px}
  /* the package: one wide card, left = name/price/button, right = contents */
  .do-pack,.kl-card.do-pack{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"top top" "price lab" "price list" "btn list";
    column-gap:28px;row-gap:0;align-items:start;width:100%;max-width:none;justify-self:stretch;padding:22px 24px 22px;border-radius:24px}
  .do-panel > .do-pack{max-width:none}
  .do-pack .kl-card-top{grid-area:top;margin-bottom:14px}
  .do-pack .kl-price{grid-area:price;margin:0}
  .do-pack .kl-price .now{font-size:46px}
  .do-pack-l{grid-area:lab;margin:0;padding:4px 0 10px 22px;border-left:1px solid rgba(255,255,255,.1)}
  .do-pack-list{grid-area:list;margin:0;padding-left:22px;border-left:1px solid rgba(255,255,255,.1);gap:8px}
  .do-pack .btn-primary{grid-area:btn;align-self:end;margin-top:16px;min-height:48px}
}
@media (min-width:640px) and (max-width:768px){
  .do-docs{gap:12px}
  .do-doc{padding:16px 14px 14px;column-gap:12px}
  .do-doc-ic{width:40px;height:40px}
  .do-doc-btn{padding:0 12px}
}

/* ---- Konsultacje "W biurze" (640–900): the phone stack put a huge photo under small price tiles →
   left/right like desktop: photo (stretched to the copy height) | copy with the 3 prices stacked as rows */
@media (min-width:640px) and (max-width:900px){
  .kl-office-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:stretch}
  .kl-office-copy{order:0;align-self:center}
  .kl-office-visual{display:flex;flex-direction:column;gap:12px;min-height:0}
  .kl-office-photo{flex:1 1 auto;min-height:220px;position:relative}
  .kl-office-photo img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
  .kl-addr{margin-top:0}
  .kl-office-copy h2{font-size:clamp(24px,3.6vw,30px);margin:0 0 10px}
  .kl-office-copy p{font-size:15px;margin:0 0 18px}
  .kl-office-prices{grid-template-columns:minmax(0,1fr);gap:8px;margin:0 0 20px}
  .kl-office-prices span{flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;font-size:13px;
    box-shadow:none;border-left-width:3px}
  .kl-office-prices span:nth-child(1){border-left-color:#13B8EE}
  .kl-office-prices span:nth-child(2){border-left-color:#68E2B4}
  .kl-office-prices span:nth-child(3){border-left-color:#FFA04F}
  .kl-office-prices b{font-size:17px}
}
@media (min-width:640px) and (max-width:768px){
  .kl-office-grid{gap:20px}
  .kl-addr{padding:10px 12px 10px 10px;gap:10px}
  .kl-addr .kl-node-meta b{font-size:13px}
}
