/* Agentsify-Mobile: phone and tablet layout (iPhone 390/430, iPad 820 portrait, 1180 landscape). Loaded last; every rule sits in a
   media block under 1100 px, so desktop (the reference) is untouched. Content and copy are the desktop's; only the layout changes. */

/* M1 hero: phones get the desktop's illustrated city (html.art, 3d/final/art-hero.js) instead of the old 3D city. The headline on top,
   the picture full-bleed under it (a little wider than the screen, so the buildings read), then the lead, the story line and the seven
   firm tiles with their thumbnails, all on the first screen. Portrait only: a phone held sideways is L1-L3. */
@media(max-width:700px) and (orientation:portrait){
 html.art #experience{--art-top:134px;--art-w:116%}
 html.art #experience:not(.art-firm){height:max(calc(100svh - 68px),calc(var(--art-top) + 100vw * 1.16 * 804 / 1440 + 360px))!important;min-height:0!important}
 html.art #experience.art-firm{height:calc(100svh - 68px)!important;min-height:0!important}
 html.art #experience .art-box{left:50%!important;right:auto!important;translate:-50% 0;width:var(--art-w)!important;height:auto!important}
 html.art #experience:not(.focused) .intro{top:16px;left:20px;right:20px;width:auto;max-width:none}
 html.art #experience:not(.focused) .intro h1{min-height:102px;margin:0}
 html.art #experience:not(.focused) .intro .eyebrow{display:none}
 html.art #experience:not(.focused) .intro:before{display:none}
 html.art #experience:not(.focused) .intro p#description{max-width:none;margin-top:calc(var(--art-top) - 118px + 100vw * 1.16 * 804 / 1440 + 10px);font-size:15px;line-height:1.5}
 html.art #experience:not(.focused) .city-story{margin-top:10px;min-height:0}
 html.art #experience:not(.focused) .intro h1 span{color:#b94623}
 html.art .art-loading{left:50%;top:calc(var(--art-top) + 30vw)}
 /* the seven firm tiles carry their thumbnails, as on desktop: 4 + 3, each a 44 px+ target */
 html.art #experience:not(.focused) #companies{padding:8px 12px 10px;gap:6px;min-height:0}
 html.art #experience:not(.focused) #companies .pick-head{display:none}
 html.art #experience:not(.focused) #companies .company{display:flex;flex-direction:column;gap:3px;padding:5px 5px 7px;overflow:hidden;min-height:44px}
 html.art #experience:not(.focused) #companies .company-thumb{display:block;height:40px;border-radius:3px;overflow:hidden;background:#f3d9b4;flex:none}
 html.art #experience:not(.focused) #companies .company-thumb img{display:block;width:100%;height:100%;object-fit:cover}
}

/* M1 firm view on phones (art-firm.js): the drawing fills the screen above a one-row strip of firm names (as desktop's compact strip),
   the stop card is a sheet just above the tour bar, the back link and the Bez AI / Z AI pill sit in the top corners. */
@media(max-width:700px) and (orientation:portrait){
 html.art #experience.art-firm #companies{display:flex!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:6px;padding:8px 12px 10px!important;min-height:0!important}
 html.art #experience.art-firm #companies::-webkit-scrollbar{display:none}
 html.art #experience.art-firm #companies:before{display:none}
 html.art #experience.art-firm #companies .pick-head,html.art #experience.art-firm #companies .company-thumb,html.art #experience.art-firm #companies .company-num,html.art #experience.art-firm #companies .company:after{display:none!important}
 html.art #experience.art-firm #companies .company{flex:none;flex-direction:row;align-items:center;min-height:44px!important;padding:0 14px!important}
 html.art #experience.art-firm #companies .company-short{font-size:14px}
 html.art #experience .art-firm-back{left:12px;top:12px;min-height:44px;display:flex;align-items:center}
 html.art #experience .art-firm-pill{right:12px;top:18px}
 html.art #experience.art-firm{--jb-bottom:calc(var(--art-rail) + 10px)}
 html.art #experience.art-firm #journey-bar{left:12px;right:12px;max-width:none}
 html.art #experience.art-firm #task-card{left:12px;right:12px;top:auto;width:auto;bottom:calc(var(--art-rail) + 78px);max-height:calc(100% - var(--art-rail) - 150px);overflow:auto;padding:14px 16px 12px;font-size:14px}
 html.art #experience.art-firm #task-card h2{font-size:20px;line-height:1.2;margin:2px 0 6px}
}

/* M2 story chapters on phones: the words keep a 20 px margin on both sides (they ran 24 px past the right edge), chapter 3's closing
   line follows its three areas instead of sitting on them, and the "example scenario" note never runs into Pomiń. */
@media(max-width:760px){
 #narrative.narrative-live .narrative-copy{left:20px!important;right:20px!important;width:auto!important;max-width:none!important}
 #narrative.narrative-live.narrative-lite .story-wide .narrative-decision{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;margin:14px 0 0!important;padding:0!important;text-align:left!important;font-size:14px!important;line-height:1.5}
 #narrative.narrative-live .story-wide .narrative-decision .story-offer-link{display:inline;padding:14px 0;margin-left:0}
 #narrative.narrative-live .narrative-copy{top:calc(var(--story-top,0px) + 44px)!important}
 #narrative.narrative-live .narrative-areas{gap:8px}
 #narrative .narrative-foot>span:first-child{max-width:calc(100% - 160px)}
}

/* M3 contact on touch screens: the address and its copy button are full 44 px targets */
@media(max-width:1099px),(max-width:1366px) and (pointer:coarse){
 #kontakt .mail a{display:inline-block;padding:12px 0}
 #kontakt #copy-email{min-height:44px}
}

/* M4 pricing on phones and tablets: the building card desktop shows beside the heading sits above it, full width (it was hidden under 1100 px) */
@media(max-width:1099px){
 #cena .cena-art{display:block;width:min(100%,460px);margin:18px 0 22px;padding:12px;border-radius:12px;box-shadow:0 24px 50px -30px #000c}
 #cena .cena-art img{display:block;width:100%;height:auto}
}

/* T1 iPad portrait hero: desktop's side-by-side hero left a narrow text column and a small city with a blank band under it. On a tall
   tablet it stacks like the phone, at tablet scale: headline, counter line, the city across the screen, then the lead and the story line
   pinned just above the firm tiles (which keep their desktop thumbnails). */
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait){
 html.art #experience{--art-top:262px;--art-w:92%;height:calc(100svh - 68px)!important;min-height:860px!important}
 html.art #experience .art-box{left:50%!important;right:auto!important;translate:-50% 0;width:var(--art-w)!important;height:auto!important;transform:none!important}
 html.art #experience:not(.focused) .intro{top:36px;left:48px;right:48px;bottom:calc(var(--art-rail,var(--d2-rail)) + 22px);height:auto;width:auto;max-width:none;display:flex;flex-direction:column;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;box-shadow:none;padding:0;pointer-events:none}
 html.art #experience:not(.focused) .intro>*{pointer-events:auto}
 html.art #experience:not(.focused) .intro:before{display:none}   /* desktop's legibility glow behind the text column would wash out the stacked picture */
 html.art #experience:not(.focused) .intro h1{font-size:56px;line-height:1.03;letter-spacing:-.045em;margin:12px 0 0;font-weight:500;color:#26301f}
 html.art #experience:not(.focused) .intro h1 span{color:#b94623}
 html.art #experience:not(.focused) .intro p#description{max-width:620px;margin-top:auto;font-size:17px;line-height:1.5}
 html.art #experience:not(.focused) .city-story{margin-top:12px}
 html.art .art-loading{left:50%;top:calc(var(--art-top) + 25vw)}
}

/* T2 header on tablets: the section links are 44 px tall touch targets (they were 19 px) */
@media(min-width:701px) and (max-width:1099px),(min-width:701px) and (max-width:1366px) and (pointer:coarse){
 .site-header nav a:not(.nav-cta){display:inline-flex;align-items:center;min-height:44px}
}

/* T3 firm view on tablets 701-860 px (desktop's own rules start at 861): the seven tiles shrink to the compact strip of names and the stop
   card has desktop's readable width, so the drawing and its tour get the screen. */
@media(min-width:701px) and (max-width:860px){
 html.art #experience.art-firm #companies{min-height:0!important;grid-template-rows:auto!important;padding-top:10px!important;padding-bottom:12px!important;row-gap:0}
 html.art #experience.art-firm #companies .pick-head,html.art #experience.art-firm #companies .company-thumb,html.art #experience.art-firm #companies .company:after,html.art #experience.art-firm #companies:before{display:none!important}
 html.art #experience.art-firm #companies .company{min-height:44px!important;padding:8px 10px!important;gap:2px}
 html.art #experience.art-firm #task-card{width:340px;max-height:calc(100% - var(--art-rail,0px) - 200px);overflow:auto}
}

/* T4 story on a portrait tablet: stacked like the phone (narrative.js place() puts the picture under the words), the words across the
   screen at a readable measure. */
@media(min-width:761px) and (max-width:1099px) and (orientation:portrait){
 #narrative.narrative-live .narrative-copy:not(.story-wide){left:48px!important;right:48px!important;width:auto!important;max-width:680px!important}
 #narrative.narrative-live .narrative-copy p{max-width:34em}
 /* the wide cut-away ("Trzy obszary") stacks as on the phone: its three areas as a list under the heading, the picture below */
 #narrative.narrative-live.narrative-lite .narrative-copy.story-wide{left:48px!important;right:48px!important;bottom:auto!important;top:calc(var(--story-top,0px) + 44px)!important;width:auto!important;max-width:680px!important;text-align:left}
 #narrative.narrative-live.narrative-lite .story-wide .eyebrow{margin-top:0}
 #narrative.narrative-live.narrative-lite .story-wide h2{white-space:normal}
 #narrative.narrative-live.narrative-lite .story-wide .story-map{position:static!important;width:auto!important;height:auto!important}
 #narrative .story-wide .narrative-areas{position:static!important;display:grid!important;gap:12px;margin:24px 0 0!important}
 #narrative .story-wide .narrative-areas li{position:static!important;height:auto!important;width:auto!important;border-left:2px solid #e2552a!important;padding-left:14px!important}
 #narrative .story-wide .narrative-areas li:nth-child(2){border-color:#4d7b56!important}#narrative .story-wide .narrative-areas li:nth-child(3){border-color:#303b32!important}
 #narrative .story-wide .narrative-areas li:before,#narrative .story-wide .narrative-areas li:after{display:none!important}
 #narrative .story-wide .narrative-areas li b,#narrative .story-wide .narrative-areas li span{position:static!important;width:auto!important;background:none!important;border:0!important;padding:0!important;top:auto!important}
 #narrative.narrative-live.narrative-lite .story-wide .narrative-decision{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;margin:20px 0 0!important;padding:0!important;text-align:left!important}
}
/* T5 iPad landscape (touch, 1100-1366): the story's words stop before the picture, which starts at 35% of the width */
@media(min-width:761px) and (max-width:1099px) and (min-height:661px) and (orientation:landscape) and (pointer:coarse){
 #narrative.narrative-live .narrative-copy:not(.story-wide):not(.story-flip){max-width:calc(35vw - 4.6vw - 24px)!important}
 #narrative.narrative-live .narrative-copy p{max-width:calc(35vw - 4.6vw - 24px)}
 #narrative.narrative-live.narrative-lite .story-wide .narrative-decision{width:max-content!important;max-width:calc(100% - 80px);padding:6px 14px!important;border-radius:8px;background:#fbf7f0eb}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 #narrative.narrative-live .narrative-copy p{max-width:calc(35vw - 4.6vw - 24px)}
 /* on an 820 px tall screen the cut-away reaches its closing line: it gets the page colour behind it */
 #narrative.narrative-live.narrative-lite .story-wide .narrative-decision{width:max-content!important;max-width:calc(100% - 80px);padding:6px 14px!important;border-radius:8px;background:#fbf7f0eb}
}

/* M5 the sticky booking bar (52 px, 14 px above the bottom, phones only) never keeps a section's last line under it: Cztery kroki ends
   with room for the bar's band before the next section starts (CO-CEO phone audit, 27 Oct) */
@media(max-width:760px){
 #top>#jak,#top>#pytania{padding-bottom:92px!important}
}

/* M6 Cztery kroki on phones: each step is one row (its picture left, number, title and line right), so all four fit on about one screen
   and the step that is playing stays in view; desktop's four columns are untouched */
@media(max-width:560px){
 #jak .jak-steps{gap:12px}
 #jak .jak-steps button{grid-template-columns:40% 26px minmax(0,1fr);column-gap:10px;row-gap:4px;align-items:start}
 #jak .jak-steps .jak-pic{grid-column:1;grid-row:1 / span 3;margin:0;aspect-ratio:1500 / 1050!important}
 #jak .jak-steps .jak-pic img{width:100%;height:100%;object-fit:cover}
 #jak .jak-steps .story-num{grid-column:2;grid-row:1;margin-top:1px}
 #jak .jak-steps b{grid-column:3;grid-row:1;align-self:start;font-size:16px;line-height:1.25}
 #jak .jak-steps .story-line{grid-column:2 / -1;grid-row:2;font-size:13.5px;line-height:1.45}
}

/* T6 contact on a portrait tablet: the three steps read as rows, as on the phone (three 90 px columns broke every line after one or two words) */
@media(min-width:701px) and (max-width:1099px){
 #kontakt .final-copy .final-steps{display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin-top:28px}
 #kontakt .final-steps li{padding:16px 0!important;border-top:1px solid #ffffff1f}
}

/* M7 booking: the sticky bar slides away (in time, 0.25 s) while an in-page "Umów 30 minut rozmowy" is on screen (home.js), so two booking
   buttons never stack (CO-CEO 16:50) */
@media(max-width:760px){
 body>.sticky{transition:opacity .25s ease,transform .25s ease}
 body.cta-in-view>.sticky{opacity:0;transform:translateY(18px);pointer-events:none}
}
/* M8 pricing figures on phones: both prices start on the same left edge (the second kept desktop's 20 px divider inset) and "od" reads at a
   legible size */
@media(max-width:760px){
 #cena .offer-figures .fig+.fig{padding-left:0;margin-top:18px;padding-top:18px}
 #cena .fig strong i{font-size:15px;margin-right:4px}
 #cena .offer .fig+.fig:before{left:0}
}

/* M9 phone menu: the open menu covers the whole screen under the header (the firm tiles showed through below it) */
@media(max-width:760px){
 #navigation.open{min-height:calc(100dvh - var(--header-height,68px));background:#fbf7f0;z-index:70}
 .site-header:has(#navigation.open){z-index:80}
}

/* L1 phone held sideways (e.g. 844x390): the hero keeps desktop's side-by-side rhythm at phone scale: words in the left 40%, the city in the
   right 56% (it ran under the headline), the firm tiles as one row of names so the first screen is not all tiles */
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 html.art #experience{--art-top:10px;height:max(calc(100svh - 56px),calc(56vw * 804 / 1440 + 72px))!important;min-height:0!important}
 html.art #experience .art-box{left:auto!important;right:0!important;width:56vw!important;height:auto!important;transform:none!important}
 html.art #experience:not(.focused) .intro{top:18px;left:24px;width:38vw;max-width:none}
 html.art #experience:not(.focused) .intro .eyebrow{display:none}
 html.art #experience:not(.focused) .intro h1{font-size:clamp(26px,3.6vw,34px);line-height:1.05;margin:0 0 10px}
 html.art #experience:not(.focused) .intro h1 span{color:#b94623}
 html.art #experience:not(.focused) .intro p#description{font-size:14px;line-height:1.45;max-width:none;margin-top:0!important}
 html.art #experience:not(.focused) .intro{height:auto!important;bottom:auto!important}
 html.art #experience:not(.focused) .intro:before{display:none}
 html.art #experience #companies{display:flex!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:6px;padding:8px 12px!important;min-height:0!important}
 html.art #experience #companies:before,html.art #experience #companies .pick-head,html.art #experience #companies .company-thumb,html.art #experience #companies .company-num,html.art #experience #companies .company:after,html.art #experience #companies .company-short+*{display:none!important}
 html.art #experience #companies .company{flex:none;flex-direction:row;align-items:center;min-height:44px!important;padding:0 14px!important}
}
/* L2 the story on a phone held sideways (static chapters, 390 px tall): words in the left half, the chapter's picture in the right half at a
   readable size (it was 225x180 in a corner); "Trzy obszary" lists its three areas beside its picture (its labelled map shrank to 19 px) */
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 #narrative:not(.narrative-live) .narrative-step{min-height:0!important;height:auto!important;padding:24px 0!important}
 #narrative:not(.narrative-live) .narrative-step:not(#co-robimy) .narrative-copy{padding-right:50%!important;min-height:min(320px,80svh)!important;justify-content:center}
 #narrative:not(.narrative-live) .narrative-step:not(#co-robimy) img.narrative-still{position:absolute!important;left:auto!important;right:0!important;top:50%!important;bottom:auto!important;width:46%!important;height:auto!important;max-height:none!important;transform:translateY(-50%)}
 #narrative:not(.narrative-live) #co-robimy .story-wide{align-items:flex-start!important;text-align:left!important}
 #narrative:not(.narrative-live) #co-robimy .story-wide .story-map{position:static!important;display:grid!important;grid-template-columns:1fr 1fr;gap:28px;align-items:center;width:100%!important;aspect-ratio:auto!important;margin:12px 0 0!important;opacity:1!important}
 #narrative:not(.narrative-live) #co-robimy .story-map img.narrative-still{position:static!important;width:100%!important;height:auto!important;inset:auto!important}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas{position:static!important;display:grid!important;gap:10px;margin:0!important}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas li{position:static!important;height:auto!important;width:auto!important;border-left:2px solid #e2552a!important;padding-left:12px!important}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas li:nth-child(2){border-color:#4d7b56!important}#narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas li:nth-child(3){border-color:#303b32!important}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas li:before,#narrative #co-robimy .story-wide .narrative-areas li:after{display:none!important}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas li b,#narrative #co-robimy .story-wide .narrative-areas li span{position:static!important;width:auto!important;background:none!important;border:0!important;padding:0!important;top:auto!important;opacity:1!important;font-size:14px!important}
 #narrative:not(.narrative-live) #co-robimy .story-wide .narrative-areas li b{font-size:16px!important}
}
/* L3 a firm on a phone held sideways: the drawing takes the screen (no firm strip), the stop card is the left column between the back link and
   the bottom edge (it ran off screen under the tour bar), the tour bar sits at the bottom right beside it */
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 html.art #experience.art-firm #companies{display:none!important}
 html.art #experience .art-firm-back{left:12px;top:10px;min-height:44px;display:flex;align-items:center}
 html.art #experience .art-firm-pill{right:12px;top:14px}
 html.art #experience.art-firm{--jb-bottom:10px}
 html.art #experience.art-firm #journey-bar{left:calc(44% + 24px)!important;right:12px!important;max-width:none!important}
 html.art #experience.art-firm #task-card{left:12px!important;top:62px!important;bottom:10px!important;width:44%!important;max-height:none!important;overflow:auto!important;padding:12px 16px!important;font-size:14px}
 html.art #experience.art-firm #task-card h2{font-size:18px;line-height:1.2;margin:0 0 6px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 .site-header{height:56px!important;--header-height:56px}
 html.art #experience.art-firm{height:calc(100svh - 56px)!important}
}

/* M6 a stop's drawn close-up (stop-panel.js) on phones, as on desktop: the panel fills the band between the back link and the stop card */
@media(max-width:700px) and (orientation:portrait){
 html.art #experience.art-firm .art-stop-canvas{top:0;height:46%!important}
}

/* E1 the English page (en.html, same CSS; English runs longer): phone tiles keep names only (en.html's inline i18n style re-showed each
   tile's line and the rail grew over the lead); the picker label is English; header links never wrap or drop under 44 px on touch tablets;
   the story's words on a touch iPad stop before the picture whatever the language */
@media(max-width:1099px){
 html.art #experience:not(.focused) #companies .company:after{display:none!important}
}
@media(max-width:700px){
 html[lang=en] #experience:not(.focused) #companies:before{content:'Choose a business'}
}
@media(min-width:701px) and (max-width:1099px),(min-width:701px) and (max-width:1366px) and (pointer:coarse){
 .site-header nav a:not(.nav-cta){min-width:44px;justify-content:center;white-space:nowrap}
 .site-header .nav-cta{white-space:nowrap}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 .site-header .brand-name{display:none}
 #narrative.narrative-live .narrative-copy:not(.story-wide):not(.story-flip){max-width:calc(35vw - 4.6vw - 24px)!important}
}
/* E2 the English headline is two lines where the Polish one is three: the city moves up to keep the same gap under it */
@media(max-width:700px) and (orientation:portrait){
 html[lang=en].art #experience{--art-top:104px}
 html[lang=en].art #experience:not(.focused) .intro h1{min-height:0}
}
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait){
 html[lang=en].art #experience{--art-top:200px}
}

/* M7 the owner's morning review on phones: the open decision reads as one tight chain (data, AI proposal, your decision) instead of three
   loose boxes nested in a phone frame, and the two closed items sit side by side; the card is about two thirds of its old height */
@media(max-width:560px){
 #ai-co-ceo .cc-screen{padding:14px 12px 16px!important}
 #ai-co-ceo.cc-live .cc-tip.open .cc-head b{font-size:21px}
 #ai-co-ceo .cc-head small{font-size:13px}
 #ai-co-ceo .cc-body{padding:2px 12px 14px}
 #ai-co-ceo .cc-rows{gap:14px}
 #ai-co-ceo .cc-rows>div{padding:10px 12px 11px}
 #ai-co-ceo .cc-rows>div:not(:last-child):after{bottom:-11px;width:8px;height:8px;margin-left:-4px;border-width:2px}
 #ai-co-ceo .cc-rows dt{font-size:13px;margin-bottom:3px}
 #ai-co-ceo .cc-rows dd{font-size:15px;line-height:1.4}
 #ai-co-ceo.cc-live .cc-act{margin-top:14px}
 #ai-co-ceo .cc-act button{min-height:46px;padding:0 26px;font-size:16px}
 #ai-co-ceo.cc-live .cc-list{grid-template-columns:1fr 1fr;gap:8px}
 #ai-co-ceo .cc-tip:not(.open) .cc-head{padding:10px 12px}
 #ai-co-ceo .cc-tip:not(.open) .cc-head b{font-size:15px;line-height:1.25}
}

/* M8 tour bar on phones: the stop label wraps to two lines instead of being cut ("Dokumen..."), centred under the dots */
@media(max-width:700px){
 #experience #journey-bar .jb-label{white-space:normal;overflow:visible;text-overflow:clip;font-size:11.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}

/* M9 tours on short screens (phone held sideways; iPhone SE upright): the stop label wraps instead of being cut, and the stop card is set
   tighter so the whole stop reads with little or no scrolling inside the card (verify-tours-mobile.mjs) */
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 #experience #journey-bar .jb-label{white-space:normal;overflow:visible;text-overflow:clip;font-size:11.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px),(max-width:700px) and (max-height:700px){
 html.art #experience.art-firm #task-card{padding:10px 14px!important}
 html.art #experience.art-firm #task-card h2{font-size:17px!important;margin:0 0 4px!important}
 #experience.journey-on #task-card #card-more dl dd{margin:0 0 6px;padding:7px 10px;font-size:13px!important;line-height:1.4!important}
 #experience.journey-on #task-card #card-more dl dt{font-size:11px;margin:0 0 2px}
 #experience.journey-on #task-card #card-you{font-size:13px;padding:6px 10px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px),(max-width:700px) and (max-height:700px){
 #experience.journey-on #task-card #card-more{margin-top:8px}
 #experience.journey-on #task-card #card-more #card-feel{margin:0 0 8px;font-size:13.5px;line-height:1.35}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 html.art #experience.art-firm #task-card{width:48%!important}
 html.art #experience.art-firm #journey-bar{left:calc(48% + 24px)!important}
 html.art #experience.art-firm #journey-bar .jb-pause{padding:0 10px}
}

/* M10 pricing: the "/ mies." unit beside the monthly price reads at 13 px on phones (it was 11.4 px) */
@media(max-width:760px){
 #cena .fig strong em{font-size:13px}
}

/* T7 (Codex unit T, judged on shots): iPad portrait shows AI Co-CEO as two columns (intro and office left, the morning review as a phone right); on a touch iPad landscape Cztery kroki is a 2x2 grid of full pictures. */
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait){
 html.art #experience:not(.art-firm){height:calc(100svh - 148px)!important;min-height:900px!important}
 html.art #experience:not(.focused) .intro h1{text-wrap:balance}
 #top>#ai-co-ceo .cc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"intro card" "art card";gap:24px 28px;align-items:center}
 #ai-co-ceo .cc-left{display:contents}
 #ai-co-ceo .cc-intro{grid-area:intro;align-self:end}
 #top>#ai-co-ceo .cc-left>.cc-diagram{grid-area:art;align-self:start;margin:0;transform:none}
 #ai-co-ceo .cc-phone-wrap{grid-area:card;min-width:0}
 #top>#ai-co-ceo .cc-phone{position:relative;width:100%;box-sizing:border-box;padding:10px;border:0;border-radius:54px;background:#1c1d1a;box-shadow:0 0 0 1px #4a4c46,0 40px 70px -30px #3a251480}
 #top>#ai-co-ceo .cc-phone:before{content:"";position:absolute;top:20px;left:50%;width:104px;height:28px;transform:translateX(-50%);border-radius:16px;background:#000;z-index:2}
 #top>#ai-co-ceo .cc-screen{border-radius:44px;background:#fbf7f0;padding:52px 16px 18px;overflow:hidden}
 #top>#ai-co-ceo.cc-live .cc-list{grid-template-columns:1fr;gap:8px}
 #top>#ai-co-ceo .cc-rows{grid-template-columns:1fr;gap:14px}
 #top>#ai-co-ceo .cc-rows>div{padding:8px 12px 9px}
 #top>#ai-co-ceo .cc-rows>div:not(:last-child):after{right:auto;left:50%;top:auto;bottom:-12px;width:8px;height:8px;margin:0 0 0 -4px;border-width:2px;transform:rotate(135deg)}
 #top>#ai-co-ceo .cc-rows dt{font-size:13px;margin-bottom:3px}
 #top>#ai-co-ceo .cc-rows dd{font-size:15px;line-height:1.4}
 #top>#ai-co-ceo .cc-tip.open .cc-body{padding-left:0;padding-right:0}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 #jak .jak-steps,#jak .jak-steps:has(li.is-on){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px;transition:none}
 #jak .jak-steps li:is(.is-on, :not(.is-on)) .jak-pic{height:auto;aspect-ratio:1500 / 840}
 #jak .jak-steps li:nth-child(2)::before{display:none}
}
/* M11 (Codex unit R) phone tours: tighter card spacing gives the close-up more room while keeping the stop hierarchy readable. */
@media(max-width:700px) and (orientation:portrait){
 html.art #experience.art-firm #task-card{padding:12px 14px 11px}
 html.art #experience.art-firm #task-card h2{margin:0 0 5px;font-size:19px}
 #experience.journey-on #task-card #card-more{margin-top:7px}
 #experience.journey-on #task-card #card-more #card-feel{margin:0 0 7px;font-size:14px;line-height:1.3}
 #experience.journey-on #task-card #card-more dl dt{margin:0 0 3px}
 #experience.journey-on #task-card #card-more dl dd{margin:0 0 7px;padding:7px 10px;font-size:13.5px!important;line-height:1.4!important}
 #experience.journey-on #task-card #card-you{margin-top:7px;padding:6px 10px;line-height:1.35}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 #experience.journey-on #task-card #card-more #card-feel{margin-bottom:5px;line-height:1.25}
 #experience.journey-on #task-card #card-more dl dt{margin-bottom:2px}
 #experience.journey-on #task-card #card-more dl dd{margin-bottom:4px;padding:5px 9px;line-height:1.3!important}
 #experience.journey-on #task-card #card-you{margin-top:5px;padding:5px 9px;line-height:1.3}
}
/* L4 (Codex unit L) lower sections: align prices and controls and give touch layouts a steadier reading rhythm. */
@media(max-width:1099px){
 #cena h2,#pytania h2,#kontakt h2{ text-wrap:balance }
 #cena .vs-row{row-gap:12px}
}
@media(min-width:701px) and (max-width:1099px){
 #cena .offer-figures{column-gap:24px}
 #cena .offer .fig+.fig{padding-left:0}
 #cena .offer .fig+.fig:before{left:0}
 #cena .calc-field .calc-ctl{width:min(100%,280px)}
 #pytania .faq{max-width:650px}
 #kontakt .final-side{align-self:end}
}
@media(min-width:701px) and (max-width:860px){
 #cena .calc .calc-field{display:grid;grid-template-columns:minmax(0,1fr) 240px;column-gap:24px;align-items:center}
 #cena .calc .calc-field label{grid-column:1}
 #cena .calc .calc-field .calc-hint{grid-column:1;grid-row:2}
 #cena .calc .calc-field .calc-ctl{grid-column:2;grid-row:1 / span 2;width:100%}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 #cena .offer-figures{column-gap:24px}
 #cena .offer .fig+.fig{padding-left:0}
 #cena .calc .calc-field{grid-template-columns:minmax(0,1fr) minmax(180px,230px)}
 #cena .calc .calc-field .calc-ctl{width:100%}
 #cena .vs-row{column-gap:24px}
 #cena h2,#pytania h2,#kontakt h2{text-wrap:balance}
}
@media(max-width:700px){
 .site-foot .foot-base{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;align-items:center}
 .site-foot .foot-base>span{grid-column:1 / -1;text-align:left}
 .site-foot .foot-base .foot-write{margin:0}
 .site-foot .foot-base>a:last-child{justify-self:end}
}
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){
 #cena>.wrap{display:flex;flex-direction:column;align-items:flex-start}
 #cena .cena-art{order:1}
 #cena .offer{order:2;align-self:stretch}
}
/* E3 English touch layouts keep longer labels and shorter headlines in a balanced reading rhythm. */
@media(max-width:1099px){
 html[lang=en] #narrative .narrative-copy h2,html[lang=en] #ai-co-ceo .cc-intro h2{text-wrap:balance}
 html[lang=en] #cena .offer .fig strong{letter-spacing:-.025em}
 html[lang=en] #cena .calc-field label,html[lang=en] #cena .calc-hint{text-wrap:pretty}
}
@media(max-width:700px) and (orientation:portrait){
 html[lang=en].art #experience:not(.focused) #companies .company-short{font-size:10px;letter-spacing:-.02em;white-space:nowrap}
}
@media(min-width:701px) and (max-width:1099px){
 html[lang=en].art #experience:not(.focused) #companies .company-name{text-wrap:balance}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 html[lang=en].art #experience:not(.focused) .intro h1{font-size:clamp(38px,3.7vw,46px)}
 html[lang=en] #cena .offer .fig strong{letter-spacing:-.025em}
 html[lang=en] #ai-co-ceo .cc-intro h2,html[lang=en] #narrative .narrative-copy h2{text-wrap:balance}
 html[lang=en] #cena .calc-field label,html[lang=en] #cena .calc-hint{text-wrap:pretty}
}
/* T8 tablet tours: give the close-up a clear frame and keep each stop readable beside its controls. */
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait){
 html.art #experience.art-firm.journey-on .art-stop-canvas{height:58%!important}
 html.art #experience.art-firm.journey-on #task-card{left:20px;right:20px;top:auto;bottom:calc(var(--jb-bottom,100px) + 72px);width:auto;max-height:calc(100% - var(--jb-bottom,100px) - 180px);overflow:auto;padding:16px 20px}
 html.art #experience.art-firm.journey-on #task-card h2{font-size:22px;line-height:1.2;margin:0 0 6px}
 html.art #experience.art-firm.journey-on #journey-bar{left:20px;right:20px;max-width:none}
}
@media(min-width:701px) and (max-width:1099px),(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 #experience.journey-on #task-card #card-more{margin-top:8px}
 #experience.journey-on #task-card #card-more #card-feel{margin:0 0 8px;font-size:15px;line-height:1.35}
 #experience.journey-on #task-card #card-more dl dt{margin:0 0 3px}
 #experience.journey-on #task-card #card-more dl dd{margin:0 0 8px;padding:8px 10px;font-size:14px!important;line-height:1.4!important}
 #experience.journey-on #task-card #card-you{margin-top:8px;padding:7px 10px;line-height:1.4}
 #experience #journey-bar .jb-label{white-space:normal;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.3}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 html.art #experience.art-firm.journey-on #task-card{width:34%;padding:18px 20px;max-height:calc(100% - var(--art-rail,0px) - 100px);overflow:auto}
 html.art #experience.art-firm.journey-on #task-card #task-title{font-size:23px;margin-bottom:8px}
 html.art #experience.art-firm.journey-on #task-card #card-more dl dd:nth-of-type(2){padding:8px 10px;font-size:15px!important;line-height:1.4!important}
 html.art #experience.art-firm.journey-on #task-card #card-you{margin-top:8px;padding-top:8px!important}
 html.art #experience.art-firm #journey-bar{left:calc(34% + 48px);right:24px;max-width:none}
}
/* E4 touch iPad landscape, English: the text column is wide enough for "We build and run its AI." on one line (it left "AI." alone) */
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 html[lang=en].art #experience:not(.focused) .intro{width:min(560px,47%);max-width:none}
 html[lang=en].art #experience:not(.focused) .intro h1{font-size:42px!important}
}

/* M12 static story on phones (a phone's visible height is under 820 px, so it gets the static, scrolled story): chapter 2 shows only the
   Z AI picture. Its Bez AI layer is the same picture chapter 1 shows just above, so on a phone it read as a duplicate (Stan 28.10). */
@media(max-width:760px),(max-height:520px) and (pointer:coarse){   /* (+ phones in landscape: verify-mobile iphone-land) */
 #narrative:not(.narrative-live) .narrative-still-bez{display:none!important}
 #narrative.story-reveal:not(.narrative-live) .narrative-still-z{clip-path:none!important;animation:none!important}
}

/* M13 the seven firm tiles on phones are all the same size: four on the first row, three centred under them (the seventh, Biuro, was double
   width and broke the rhythm, Stan 28.10). An 8-column grid: each tile spans two, the second row starts half a tile in. */
@media(max-width:700px) and (orientation:portrait){
 html.art #experience:not(.focused) #companies{grid-template-columns:repeat(8,minmax(0,1fr))!important}
 html.art #experience:not(.focused) #companies .company{grid-column:span 2!important}
 html.art #experience:not(.focused) #companies .company[data-company="4"]{grid-column:2 / span 2!important}
 html.art #experience:not(.focused) #companies .company:last-child{border-right:1px solid #e4dac8}
}

/* M14 static story on phones: each chapter flows after the last one instead of being centred in a full-screen box (on a 664 px tall phone
   that left a 200 px empty band above every chapter heading) */
@media(max-width:760px){
 #narrative:not(.narrative-live) .narrative-step{min-height:0!important;align-items:flex-start!important;padding-top:56px!important;padding-bottom:40px!important}
 #narrative:not(.narrative-live) .narrative-step:not(#jak) .narrative-copy{min-height:0!important;justify-content:flex-start!important}
}

/* M15 the real AI Co-CEO app on phones and tablets (co-ceo.js mounts it at every width now; Stan 28.10: "on mobile we don't see the app").
   It sits in a phone frame one screen tall, centred; the mockup stays until the app has loaded, then gives way. */
@media(max-width:1099px){
 html.cc-app-reserved #top>#ai-co-ceo .cc-phone-wrap{width:100%;justify-self:stretch;align-self:auto}
 html.cc-app-reserved #top>#ai-co-ceo .cc-phone{position:relative;width:100%;max-width:360px;height:min(800px,calc(100svh - 92px));margin:0 auto;box-sizing:border-box;padding:0;border:0;border-radius:50px;background:#1c1d1a;box-shadow:0 0 0 1px #4a4c46,0 40px 70px -30px #3a251480}
 /* English retains the interactive mockup, so longer cards must stay reachable. */
 html[lang=en].cc-app-reserved #top>#ai-co-ceo .cc-screen{box-sizing:border-box;max-height:100%;overflow-y:auto;overscroll-behavior:contain}
 #top>#ai-co-ceo .cc-phone .cc-app{position:absolute;z-index:1;inset:9px;width:calc(100% - 18px);height:calc(100% - 18px);border:0;border-top:40px solid #f6f5ef;border-radius:42px;box-sizing:border-box;background:#f6f5ef;opacity:0;transition:opacity .6s ease;color-scheme:light}
 #top>#ai-co-ceo.cc-app-on .cc-phone .cc-app{opacity:1}
 #top>#ai-co-ceo.cc-app-on .cc-phone .cc-screen{display:none}
 #top>#ai-co-ceo.cc-app-on .cc-phone:before{content:"";position:absolute;z-index:2;top:17px;left:50%;width:96px;height:26px;transform:translateX(-50%);border-radius:14px;background:#000}
}

/* M16 the same two fixes for a phone held sideways (wider than 760, so M12 missed it): chapter 2 shows only its Z AI picture, and the
   chapter words keep to the left half so long English lines never run under the picture */
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 #narrative:not(.narrative-live) .narrative-still-bez{display:none!important}
 #narrative.story-reveal:not(.narrative-live) .narrative-still-z{clip-path:none!important;animation:none!important}
 #narrative:not(.narrative-live) .narrative-step:not(#co-robimy) .narrative-copy>:not(img){max-width:calc(50vw - 40px)}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 #narrative:not(.narrative-live) .narrative-step:not(#co-robimy){padding-left:24px!important;padding-right:24px!important}
 #narrative:not(.narrative-live) .narrative-step:not(#co-robimy) .narrative-copy{position:relative!important;min-height:min(320px,80svh)!important;justify-content:center!important}
}
/* E5 keeps longer English tour text readable within phone cards and controls. */
@media(max-width:700px), (orientation:landscape) and (max-height:500px) and (max-width:950px){
 html[lang=en] #experience #journey-bar{gap:3px}
 html[lang=en] #experience #journey-bar button{padding-left:6px;padding-right:6px}
 html[lang=en] #experience #journey-bar .jb-mid{padding:0}
 html[lang=en] #experience #journey-bar .jb-label{font-size:10.5px;line-height:1.2;display:block;overflow:visible;word-break:normal;overflow-wrap:normal;hyphens:none}
 html[lang=en].art #experience.art-firm.journey-on #task-card{padding:9px 12px!important;word-break:normal;overflow-wrap:normal;hyphens:none}
 html[lang=en].art #experience.art-firm.journey-on #task-card #task-title{font-size:17px!important;line-height:1.15;margin:0 0 4px!important}
 html[lang=en] #experience.journey-on #task-card #card-more{margin-top:4px}
 html[lang=en] #experience.journey-on #task-card #card-more #card-feel{font-size:13px;line-height:1.2;margin:0 0 4px;padding:0 0 0 8px}
 html[lang=en] #experience.journey-on #task-card #card-more dl dt{margin:0 0 2px}
 html[lang=en] #experience.journey-on #task-card #card-more dl dd{font-size:13px!important;line-height:1.25!important;margin:0 0 4px;padding:4px 8px}
 html[lang=en] #experience.journey-on #task-card #card-you{font-size:13px;line-height:1.25;margin-top:4px;padding:4px 8px}
}

/* M18 (Stan 28.10, his iPhone) a firm on a phone or tablet is full screen, as on desktop: the firm strip and the site header stay hidden while
   the tour plays; a swipe up slides both in for 2.5 s (home.js peek). The tour's own back link stays. At the end of the tour the picture
   is framed above the closing card instead of under it. */
@media(max-width:1100px){
 html.art #experience.art-firm{--art-rail:0px!important}
 html.art #experience.art-firm #companies{display:flex!important;position:absolute;left:0;right:0;bottom:0;z-index:9;transform:translateY(100%);opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .25s ease;background:#fbf7f0;box-shadow:0 -12px 30px -18px #3a251440}
 html.art #experience.art-firm.rail-peek #companies{transform:none;opacity:1;pointer-events:auto}
 html.in-firm .site-header{position:fixed;left:0;right:0;top:0;z-index:60;transform:translateY(-100%);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
 html.in-firm body:has(#experience.rail-peek) .site-header{transform:none}
 html.art.in-firm #experience.art-firm{height:100svh!important;min-height:0!important}
}
/* The fixed firm header occupies no layout space in the 3D phone view either. */
@media(max-width:760px){
 html.in-firm:not(.art) #experience{height:100svh; height:100dvh;min-height:0}
}
@media(max-width:700px) and (orientation:portrait){
 html.art #experience.art-firm.journey-end .art-firm-canvas{height:calc(100% - 248px)!important}
 html.art #experience.art-firm .art-box{visibility:hidden}
}
@media(prefers-reduced-motion:reduce){html.in-firm .site-header{transition:none}}
/* M19 (Stan 28.10) "Trzy obszary" on phones: the closing sentence stands alone and reads as the point (the link to pricing went; pricing follows two sections later) */
@media(max-width:760px){
 #narrative .story-wide .narrative-decision .story-offer-link{display:none!important}
 html #narrative#narrative .story-wide p.narrative-decision{font:600 19px/1.4 "Space Grotesk",Inter,sans-serif!important;color:#26301f!important;border-top:0!important;padding:14px 0 0 14px!important;border-left:3px solid #e2552a!important}
}
/* T9 keeps the hero and app frame within the shorter viewport left by tablet browser bars. */
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait) and (max-height:1100px){
 html.art #experience:not(.art-firm){--art-top:250px;--art-w:76%}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse) and (max-height:780px){
 html.cc-app-reserved #top>#ai-co-ceo .cc-phone{height:calc(100svh - 110px);box-sizing:border-box}
}
/* L5 keeps the lower sections readable and accessible on a short landscape screen. */
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){
 html.cc-app-reserved #top>#ai-co-ceo .cc-phone{height:calc(100svh - 56px);width:calc((100svh - 56px) * 9 / 19);max-width:none;border-radius:24px}
 #top>#ai-co-ceo.cc-app-on .cc-phone:before{top:10px;width:48px;height:14px}
 #top>#ai-co-ceo .cc-phone .cc-app{inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);border-top-width:22px;border-radius:19px}
 #jak .jak-steps,#jak .jak-steps:has(li.is-on){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px;transition:none}
 #jak .jak-steps button{min-height:44px}
 #cena .offer-figures{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 #cena .offer .fig+.fig{border-top:0;padding-left:0}
 #cena .offer .fig strong{font-size:clamp(32px,5vw,46px)}
 #top>#cena .offer .fig strong i{font-size:15px}
 #top>#cena .offer .fig strong em{font-size:13px}
 #cena .calc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:0 24px;align-items:start}
 #cena .calc>h3,#cena .calc>.calc-lead,#cena .calc>.calc-example,#cena .calc>.calc-grid{grid-column:1}
 #cena .calc .calc-field{display:flex;flex-direction:column;align-items:stretch}
 #cena .calc .calc-field .calc-ctl{width:100%}
 #cena .calc>.calc-out{grid-column:2;grid-row:1 / span 5;margin-top:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
 #pytania summary{min-height:44px}
 #kontakt .final-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px!important;align-items:center!important}
 #kontakt .final-side{min-width:0}
 #kontakt .final-art{display:block;width:100%;height:auto}
 #kontakt .mail a,#pytania .faq-more a{display:inline-flex;align-items:center;min-height:44px}
 footer.site-foot{padding-bottom:80px}
}
/* E6 balances English tablet copy and keeps longer labels and prices together. */
@media(min-width:701px) and (max-width:1099px){
 html[lang=en].art #experience:not(.focused) #companies .company-name{font-size:12px;line-height:1.3;text-wrap:balance}
 html[lang=en] #kontakt .final-copy .lead{font-size:18px;text-wrap:pretty}
 html[lang=en] #cena .offer .fig strong{font-size:clamp(42px,5.4vw,56px)}
 html[lang=en] #cena .offer-foot .btn,html[lang=en] #kontakt .cta .btn{white-space:nowrap}
 html[lang=en] #pytania summary,html[lang=en] #kontakt h2{text-wrap:balance}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 html[lang=en].art #experience:not(.focused) #companies .company-name{text-wrap:balance}
 html[lang=en] #cena .offer .fig strong{font-size:clamp(46px,4.4vw,60px)}
 html[lang=en] #cena .offer-foot .btn,html[lang=en] #kontakt .cta .btn{white-space:nowrap}
 html[lang=en] #pytania summary,html[lang=en] #kontakt h2,html[lang=en] #kontakt .final-copy .lead{text-wrap:balance}
}

/* M20 the hero booking button on phones (desktop got one hero call to action, 28.10): under the lead, full width, the "more" link beside it
   on wider phones; the hero grows by the button's height so the firm tiles stay on the first screen's edge. The logo C reads at 40 px. */
@media(max-width:700px) and (orientation:portrait){
 html.art #experience:not(.focused):not(.art-firm) .intro .hero-cta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:14px;pointer-events:auto}
 html.art #experience:not(.focused):not(.art-firm) .intro .hero-cta .hero-book{flex:1 1 100%;min-height:52px;justify-content:center;font-size:16px}
 html.art #experience:not(.focused):not(.art-firm) .intro .hero-cta .hero-more{display:inline-flex;align-items:center;min-height:44px;font-size:15px}
 html.art #experience:not(.art-firm){height:max(calc(100svh - 68px),calc(var(--art-top) + 100vw * 1.16 * 804 / 1440 + 470px))!important}
 .site-header .brand.brand-c .brand-logo{height:40px}
}
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait){
 html.art #experience:not(.focused):not(.art-firm) .intro .hero-cta{display:flex;align-items:center;gap:22px;margin-top:18px;pointer-events:auto}
 html.art #experience:not(.focused):not(.art-firm) .intro .hero-cta .hero-book{min-height:54px;padding:0 28px;font-size:16px}
 html.art #experience:not(.focused):not(.art-firm) .intro .hero-cta .hero-more{display:inline-flex;align-items:center;min-height:44px}
}

/* M21 the proposal form on phones (proposal-form.js, preview ?form=1): the consent row is a 44 px target with a 24 px box, the submit
   label stays on one line, and the sticky booking bar steps aside while the form is on screen (home.js) so it never sits under it */
@media(max-width:760px){
 form.pform label.pf-consent{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
 form.pform label.pf-consent input{width:24px;height:24px;flex:none;margin:0}
 form.pform button.pf-btn{min-height:54px;padding:0 18px;font-size:16px;white-space:nowrap;justify-content:center;gap:10px}
}
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait){
 /* with the booking button under the lead the stack is taller: the city a little smaller and the hero at least 1000 px, so the lead never sits on the city */
 html.art #experience:not(.art-firm){--art-top:230px;--art-w:84%;min-height:1000px!important}
}
/* T10 gives tablet tour pictures and cards separate space at Safari viewport heights. */
@media(min-width:701px) and (max-width:1099px) and (orientation:portrait){
 html.art #experience.art-firm.journey-on #task-card{max-height:none;overflow:visible}
 html.art #experience.art-firm.journey-end .art-firm-canvas{height:calc(100% - 248px)!important}
 html.art #experience.art-firm .art-box{visibility:hidden}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 html.art #experience.art-firm{--art-rail:0px!important;--jb-bottom:10px}
 html.art #experience.art-firm #companies{display:flex!important;position:absolute;left:0;right:0;bottom:0;z-index:9;transform:translateY(100%);opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .25s ease;background:#fbf7f0;box-shadow:0 -12px 30px -18px #3a251440}
 html.art #experience.art-firm.rail-peek #companies{transform:none;opacity:1;pointer-events:auto}
 html.in-firm .site-header{position:fixed;left:0;right:0;top:0;z-index:60;transform:translateY(-100%);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
 html.in-firm body:has(#experience.rail-peek) .site-header{transform:none}
 html.art.in-firm #experience.art-firm{height:100svh!important;min-height:0!important}
 html.art #experience.art-firm.journey-on .art-stop-canvas{left:36%;width:64%;height:100%!important}
 html.art #experience.art-firm.journey-on #task-card{max-height:none;overflow:visible}
 html.art #experience.art-firm.journey-end .art-firm-canvas{left:36%;width:64%;height:100%!important}
 html.art #experience.art-firm .art-box{visibility:hidden}
}
/* F2 keeps pricing and proposal forms composed on touch screens. */
@media(min-width:701px) and (max-width:1099px), (min-width:1100px) and (max-width:1366px) and (pointer:coarse), (orientation:landscape) and (max-height:500px) and (max-width:950px){
 form.pform{box-sizing:border-box;width:100%}
 form.pform .pf-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 form.pform .pf-field{min-width:0}
 form.pform input[type=text],form.pform input[type=email]{box-sizing:border-box;width:100%;min-height:44px;font-size:16px}
 form.pform label.pf-consent{display:flex;align-items:center;gap:12px;min-height:44px}
 form.pform label.pf-consent input{width:24px;height:24px;flex:none;margin:0}
 form.pform button.pf-btn{width:100%;min-height:54px;justify-content:center;font-size:16px}
 #top>#cena .offer-figures{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:24px}
 #top>#cena .offer .fig,#top>#cena .offer .fig+.fig{display:grid;grid-template-rows:auto auto 1fr;align-content:start;min-width:0;margin:0;padding-left:0}
 #top>#cena .offer .fig>span{white-space:normal;max-width:25ch;line-height:1.5;text-wrap:balance}
 #top>#cena .offer-vs .vs-note{font-size:16px;line-height:1.6;color:#d9c9b2!important}
}
@media(min-width:1100px) and (max-width:1366px) and (pointer:coarse){
 #top>#cena .offer .fig strong{font-size:clamp(38px,3.6vw,49px)}
 #top>#cena .offer .fig strong i,#top>#cena .offer .fig strong em{font-size:15px}
}

/* M22 (Stan 28.10: "the top nav bar should disappear for the iPhone section, so the iPhone can be as tall as possible"): while the AI Co-CEO
   phone fills most of the screen the header slides up out of the way (home.js toggles html.phone-focus) and the phone takes the whole height */
@media(max-width:1099px),(max-width:1366px) and (pointer:coarse){
 .site-header{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
 html.phone-focus .site-header{transform:translateY(-100%)}
}
@media(max-width:700px) and (orientation:portrait){
 /* Stan 29.10 14:09: "a bit taller on mobile, filling the space": the phone takes the whole screen less an 8 px frame */
 html.cc-app-reserved #top>#ai-co-ceo .cc-phone{height:calc(100svh - 16px)!important;width:calc(100vw - 16px)!important;max-width:none!important;margin-left:calc(50% - 50vw + 8px)!important}
 #ai-co-ceo .cc-phone-wrap{scroll-margin-top:8px}
}
@media(prefers-reduced-motion:reduce){.site-header{transition:none}}
/* E7 gives longer English calls to action, prices and form text room on touch screens. */
@media(max-width:1099px){
 html[lang=en] #experience .intro .hero-cta .hero-book,html[lang=en] #experience .intro .hero-cta .hero-more{white-space:nowrap}
 html[lang=en] #top>#cena .offer .fig strong{white-space:nowrap;flex-wrap:nowrap;font-size:clamp(34px,5.4vw,52px)}
 html[lang=en] #top>#cena .offer .fig>span{text-wrap:pretty}
 html[lang=en] form.pform .pf-field label{line-height:1.35}
 html[lang=en] form.pform .pf-consent{font-size:13px;line-height:1.4}
 html[lang=en] form.pform .pf-btn{white-space:nowrap}
}
@media(max-width:700px){
 html[lang=en].art #experience:not(.focused) .intro p#description{font-size:14px;line-height:1.4}
 html[lang=en] #top>#cena .offer .fig strong{font-size:clamp(34px,12vw,48px)}
}

/* Keep the tablet navigation inside the viewport and preserve touch targets. */
@media(min-width:761px) and (max-width:860px){
 .site-header{padding-left:22px!important;padding-right:22px!important}
 .site-header nav{gap:8px}
 .site-header .nav-cta{min-height:44px;align-items:center}
}
@media(max-width:1099px),(max-width:1366px) and (pointer:coarse){
 #pytania .faq-more a{display:inline-flex;align-items:center;min-height:44px}
}

/* Keep the demo and app in the same reserved phone, including during card changes. */
@media(min-width:1100px){
 /* Production's initial Polish mockup measures 771.61px including the frame. */
 html.cc-app-reserved #top>#ai-co-ceo .cc-phone{height:771.609375px;box-sizing:border-box}
 html[lang=en].cc-app-reserved #top>#ai-co-ceo .cc-phone{height:860px}
}
html.cc-app-reserved #top>#ai-co-ceo .cc-screen{box-sizing:border-box;height:100%;display:flex;flex-direction:column;overflow:hidden;background:#fbf7f0}
@media(max-width:1099px){html.cc-app-reserved #top>#ai-co-ceo.cc-app-on .cc-screen{display:none}}
html.cc-app-reserved #top>#ai-co-ceo .cc-list{position:relative;display:block;flex:1;min-height:0}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip{position:absolute;top:0;left:0;width:100%;height:calc(100% - 150px);box-sizing:border-box;transition:transform .5s,opacity .5s,background .3s,box-shadow .2s}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip.open{overflow-y:auto;transform:translateY(0)}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip:not(.open){--slot:0;overflow:hidden;clip-path:inset(0 0 calc(100% - 70px) 0 round 10px);transform:translateY(calc(100% + var(--slot) * 75px))}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip:nth-child(3):not(.open),
html.cc-app-reserved #top>#ai-co-ceo .cc-tip:nth-child(2):not(.open):has(~ .cc-tip.open){--slot:1}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip:not(.open) .cc-body{display:none}
html.cc-app-reserved #top>#ai-co-ceo.cc-anim .cc-tip:not(.on){opacity:0}
html.cc-app-reserved #top>#ai-co-ceo.cc-anim .cc-tip.on{opacity:1}

/* Keep card headings and controls geometrically identical in each state. */
html.cc-app-reserved #top>#ai-co-ceo .cc-tip{border-left-width:4px;padding-top:0}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip .cc-head{padding:10px 12px}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip .cc-head b{font-size:19px;line-height:1.25}
html.cc-app-reserved #top>#ai-co-ceo .cc-tip .cc-head b::after{position:absolute;right:16px;top:12px;margin:0}
html.cc-app-reserved #top>#ai-co-ceo.cc-live .cc-act button{width:200px;max-width:100%}
@media(max-width:700px){html.cc-app-reserved #top>#ai-co-ceo .cc-tip .cc-head b{font-size:15px}}

html.cc-app-reserved #top>#ai-co-ceo .cc-tip .cc-chev{display:block}
html.cc-app-reserved #top>#ai-co-ceo.cc-live .cc-tip.open .cc-chev{display:block;visibility:hidden}

/* English glyphs need a little more room in the mockup heading. */
@media(max-width:1099px){
 html[lang=en].cc-app-reserved #top>#ai-co-ceo .cc-screen h3{line-height:1.3;flex-shrink:0}
}
/* The landscape tablet phone is too narrow for three text columns. */
@media(min-width:861px) and (max-width:1099px) and (orientation:landscape){
 html[lang=en] #top>#ai-co-ceo .cc-rows{grid-template-columns:1fr;gap:14px}
 html[lang=en] #top>#ai-co-ceo .cc-rows>div{padding:8px 12px 9px}
 html[lang=en] #top>#ai-co-ceo .cc-rows>div:not(:last-child):after{right:auto;left:50%;top:auto;bottom:-12px;width:8px;height:8px;margin:0 0 0 -4px;border-width:2px;transform:rotate(135deg)}
 html[lang=en] #top>#ai-co-ceo .cc-rows dt{font-size:13px;margin-bottom:3px}
 html[lang=en] #top>#ai-co-ceo .cc-rows dd{font-size:15px;line-height:1.4}
}

/* Short landscape tours: keep the complete final stop in the available card. */
@media(orientation:landscape) and (max-height:430px) and (max-width:950px){
 html.art #experience.art-firm.journey-on #task-card:has(.more-src:not([hidden])){padding:7px 10px!important}
 html.art #experience.art-firm.journey-on #task-card:has(.more-src:not([hidden])) h2{font-size:16px!important;line-height:1.1;margin:0 0 2px!important}
 #experience.journey-on #task-card:has(.more-src:not([hidden])) #card-more{margin-top:3px}
 #experience.journey-on #task-card #card-more .more-src:not([hidden]){margin:0 0 3px;padding:0;font-size:14px;line-height:1.2}
 #experience.journey-on #task-card:has(.more-src:not([hidden])) #card-more #card-feel{margin:0 0 3px;padding:0 0 0 8px;font-size:14px;line-height:1.2}
 #experience.journey-on #task-card:has(.more-src:not([hidden])) #card-more dl dt{margin:0 0 2px}
 #experience.journey-on #task-card:has(.more-src:not([hidden])) #card-more dl dd{margin:0 0 3px;padding:4px 8px;font-size:14px!important;line-height:1.2!important}
 #experience.journey-on #task-card:has(.more-src:not([hidden])) #card-you{margin:3px 0 0;padding:4px 8px;font-size:14px;line-height:1.2}
 #experience.journey-on #task-card.case-finale #case-actions.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #experience.journey-on #task-card.case-finale #case-actions.two button{min-height:44px;font-size:14px}
}
