/* Approved AG Studio signature. Reserve its size before the asset loads. */
.hero .brand,.footer-brand{display:inline-flex;align-items:center;flex-shrink:0;line-height:0}
.site-logo{display:block;width:128px;height:auto;aspect-ratio:1593/987;object-fit:contain}
.footer-brand .site-logo{width:152px;filter:brightness(0) invert(1)}
@media(max-width:800px){
 .hero .site-logo{width:88px}
 .footer-brand .site-logo{width:132px}
}
/* A keyboard user can see focus on disclosure and form controls too. */
summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #2458f5;outline-offset:4px}
.skip-link{position:fixed;top:12px;left:12px;z-index:1000;padding:12px 18px;border-radius:8px;background:#2458f5;color:#fff;transform:translateY(-160%)}
.skip-link:focus{transform:none}
#main-content:focus{outline:none}

/* Service heading, supporting copy below it and contact action alongside. */
html[data-design=contrast] #uslugi .services-header{display:flex;align-items:flex-end;margin-bottom:40px}
#uslugi .services-heading{max-width:820px}
html[data-design=contrast] #uslugi .services-header h2{font-size:clamp(34px,3.75vw,54px);line-height:1.15;letter-spacing:-.04em;text-wrap:balance}
@media(max-width:800px){
 html[data-design=contrast] #uslugi .services-header{display:block;margin-bottom:30px}
 html[data-design=contrast] #uslugi .services-header h2{font-size:clamp(30px,6vw,42px);line-height:1.15;text-wrap:pretty}
}

/* More readable contact form, with a clear invitation to get in touch. */
#kontakt .contact-form label{font-size:14px;line-height:1.5}
#kontakt .contact-form :is(input,select,textarea){font-size:18px;line-height:1.55}
#kontakt .contact-form-note,#kontakt .contact-form-status{font-size:14px;line-height:1.6}
#kontakt .contact-form .cta.primary{font-size:16px}
#kontakt .contact-form-bottom{flex-wrap:wrap}
@media(max-width:800px){
 #kontakt .contact-form :is(input,select,textarea){font-size:17px}
 #kontakt .contact-form-bottom{flex-direction:column;align-items:stretch;gap:18px}
 #kontakt .contact-form-note{max-width:none}
 #kontakt .contact-form .cta.primary{width:100%;min-height:56px;font-size:16px}
}

/* Keep the service introduction directly beneath its heading. */
#uslugi .services-heading .services-lead{max-width:660px;margin:22px 0 0;color:#b6bdca;font:350 18px/1.65 Inter,sans-serif;letter-spacing:-.015em;text-align:left}
@media(max-width:800px){#uslugi .services-heading .services-lead{margin-top:18px;font-size:16px;line-height:1.6}}

#uslugi .services-contact{flex-shrink:0}
@media(max-width:800px){#uslugi .services-contact{margin-top:24px}}

/* Explicit, unchecked consent; keep the entire label comfortable to tap. */
#kontakt .contact-form .contact-form-consent{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:12px;flex:0 0 100%;width:100%;min-height:44px;margin:0;color:#c0cde3;font-size:14px;font-weight:350;line-height:1.6;cursor:pointer}
#kontakt .contact-form .contact-form-consent input{appearance:auto;display:block;width:22px;height:22px;min-width:22px;margin:2px 0 0;padding:0;border:0;box-shadow:none;accent-color:var(--brand-accent,#2458f5);cursor:pointer}
#kontakt .contact-form-consent a{color:#fff;text-decoration:underline;text-underline-offset:3px}
#kontakt .contact-form-bottom>.cta{margin-left:0;margin-right:auto}
@media(max-width:800px){#kontakt .contact-form .contact-form-consent{flex-basis:auto}}

/* Review polish: shorter narrative and context-first project stories. */
#podejscie{height:110svh;min-height:540px}
#podejscie .reading-inner{min-height:65svh;padding-top:100px;padding-bottom:70px}
#cytat-zalozyciela{min-height:0;padding-top:80px;padding-bottom:80px}
.founder-contact{margin-top:30px}
#realizacje[data-case-layout=editorial] .cases-stage{gap:28px}
#realizacje[data-case-layout=editorial] .case-card{grid-template-columns:1.05fr 1fr;gap:clamp(24px,5vw,72px);padding:36px;border:1px solid #ffffff20;border-radius:26px;background:#11151e;align-items:center}
#realizacje[data-case-layout=editorial] .case-card .case-copy{grid-column:1;grid-row:1;padding:0;max-width:480px}
#realizacje[data-case-layout=editorial] .case-card .case-results{grid-column:2;grid-row:1;min-height:310px;padding:30px}
#realizacje[data-case-layout=editorial] .case-kind{margin-bottom:20px;text-transform:none;letter-spacing:0}
#realizacje[data-case-layout=editorial] .case-description{font-size:16px;line-height:1.65;margin:0 0 26px}
#realizacje[data-case-layout=editorial] h3{margin:0 0 20px;font-size:clamp(27px,2.8vw,40px)}
#realizacje[data-case-layout=editorial] .case-metric{font-size:clamp(64px,7vw,100px);margin-top:0}
#realizacje[data-case-layout=editorial] .case-metric-range{font-size:clamp(40px,4.7vw,68px);white-space:nowrap}
.case-metric-range>span{font-weight:300;opacity:.65}
#realizacje[data-case-layout=editorial] .case-metric-caption{font-size:16px;margin-bottom:24px}
#realizacje[data-case-layout=editorial] .case-results-label{margin-bottom:20px}
.case-detail-contact .cta{white-space:normal;text-align:center;min-height:48px;height:auto;padding:14px 22px;border:1px solid #fff;border-radius:999px;color:#fff;background:transparent;font:400 16px/1.4 Inter,sans-serif}
.case-detail-contact .cta:hover{background:#ffffff14}
@media(max-width:800px){
 #podejscie{height:auto;min-height:0}
 #podejscie .reading-inner{position:relative;min-height:0;padding:100px 6% 64px}
 #podejscie .reading-copy{font-size:26px;line-height:1.42}
 #horyzont-marki .brand-interlude{height:640px;min-height:640px}
 #cytat-zalozyciela{min-height:0;padding:56px 6% 64px}
 #cytat-zalozyciela .founder-quote blockquote p{font-size:20px;line-height:1.55}
}
@media(max-width:1000px){
 #realizacje[data-case-layout=editorial] .case-card{padding:24px;gap:26px}
 #realizacje[data-case-layout=editorial] .case-card .case-results{padding:24px}
}
@media(max-width:650px){
 #realizacje[data-case-layout=editorial] .case-card{grid-template-columns:minmax(0,1fr);gap:26px;padding:24px 20px;border-radius:22px}
 #realizacje[data-case-layout=editorial] .case-card .case-copy{grid-column:1;grid-row:1}
 #realizacje[data-case-layout=editorial] .case-card .case-results{grid-column:1;grid-row:2;min-height:0;padding:24px 20px}
 #realizacje[data-case-layout=editorial] .case-kind{font-size:14px;padding:0;margin-bottom:16px}
 #realizacje[data-case-layout=editorial] h3{font-size:29px}
 #realizacje[data-case-layout=editorial] .case-description{font-size:16px;margin-bottom:22px}
 #realizacje[data-case-layout=editorial] .case-metric{font-size:64px}
 #realizacje[data-case-layout=editorial] .case-metric-range{font-size:clamp(33px,9.5vw,52px)}
 #realizacje[data-case-layout=editorial] .case-metric-caption{font-size:14px;margin-bottom:18px}
 #realizacje[data-case-layout=editorial] .case-result-pair strong{font-size:24px}
 #realizacje[data-case-layout=editorial] .case-result-pair span{font-size:14px}
 #realizacje[data-case-layout=editorial] .case-card > .secondary{grid-column:1;grid-row:3;width:100%;white-space:normal;text-align:center;height:auto;min-height:48px;padding:12px 16px;font-size:14px;line-height:1.4}
 .founder-contact{max-width:100%;white-space:normal;text-align:center;height:auto;min-height:48px;padding:12px 20px;line-height:1.4}
}
@media(prefers-reduced-motion:reduce){#podejscie{height:auto;min-height:0}}
#realizacje[data-case-layout=gallery] .case-metric-range{font-size:clamp(30px,3.1vw,44px)}
#realizacje[data-case-layout=stack] .case-metric-range{font-size:clamp(30px,4.5vw,60px)}
@media(max-width:650px){
 #realizacje[data-case-layout=stack] .case-copy .secondary{width:100%;height:auto;min-height:48px;white-space:normal;text-align:center;padding:12px;line-height:1.4}
}
html[data-design=contrast] #cytat-zalozyciela .founder-contact{color:#fff;border:1px solid #fff;background:transparent}
html[data-design=contrast] #cytat-zalozyciela .founder-contact:is(:hover,:focus-visible){background:#ffffff14}

/* Light entrance: animate only opacity and transforms; retain the horizon artwork. */
@media(prefers-reduced-motion:no-preference){
 .story--horyzont .horizon-sky{animation:none}
 .story--horyzont .sphere-canvas{animation:horizon-intro 950ms 60ms cubic-bezier(.22,1,.36,1) both}
 .horizon-content .eyebrow{animation:hero-intro 480ms cubic-bezier(.22,1,.36,1) both}
 .horizon-content h1{animation:hero-intro 600ms 40ms cubic-bezier(.22,1,.36,1) both}
 .horizon-content .description{animation:hero-intro 600ms 100ms cubic-bezier(.22,1,.36,1) both}
 .horizon-content .actions{animation:hero-intro 600ms 170ms cubic-bezier(.22,1,.36,1) both}
 @keyframes hero-intro{from{opacity:0;transform:translate3d(0,10px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
 @keyframes horizon-intro{from{opacity:.15;transform:translate3d(0,24px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
}

/* FAQ answers keep the same white surface when expanded. */
html[data-design=contrast] #faq .faq-list details,html[data-design=contrast] #faq .faq-list details[open]{background:#fff}

/* Mobile case actions follow every result, with a generous tap target. */
@media(max-width:650px){
 #realizacje .case-card > [data-case-open]{width:100%;height:auto;min-height:48px;white-space:normal;text-align:center;justify-content:center;padding:12px 16px;font-size:14px;line-height:1.4;align-self:start}
 #realizacje[data-case-layout=gallery] .case-card > [data-case-open]{width:calc(100% - 52px);margin:0 26px 26px}
 #realizacje[data-case-layout=editorial] .case-description{margin-bottom:0}
}

/* Service illustrations: a shared, muted blue surface and a concrete customer journey. */
html[data-design=contrast] #uslugi[data-services-layout=bento] .bento-service .offer-demo{
 position:relative;inset:auto;width:100%;height:auto;min-height:245px;max-width:none;margin:0;padding:20px;
 display:flex;align-items:center;justify-content:center;border:1px solid #c0d5f21c;border-radius:16px;
 background:radial-gradient(ellipse at 85% 95%,#34568b33,transparent 75%),#222e42;
 box-shadow:none;transform:none;opacity:1;pointer-events:none;
}
html[data-design=contrast] #uslugi[data-services-layout=bento] .bento-0 .offer-demo{min-height:320px;align-self:stretch}
#uslugi .customer-journey{width:100%;max-width:330px;display:grid;gap:26px;position:relative}
#uslugi .journey-step{position:relative;display:flex;align-items:center;gap:10px;min-width:0;padding:14px 10px;border:1px solid #c0d5f22b;border-radius:12px;background:#2b3b53}
#uslugi .journey-step:not(:last-child):after{content:'';position:absolute;left:25px;top:100%;width:1px;height:27px;background:#bacdea42}
#uslugi .journey-step>div{min-width:0;flex:1}
#uslugi .journey-step b,#uslugi .journey-step>div>span{display:block;font:400 14px/1.45 Inter,sans-serif;color:#f2f5fb}
#uslugi .journey-step>div>span{margin-top:4px;font-weight:350;color:#c0cce0}
#uslugi .journey-icon{display:grid;place-items:center;flex:0 0 30px;height:32px;border-radius:8px;background:var(--brand-accent);color:#fff;font:400 14px Inter,sans-serif}
#uslugi .journey-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}
#uslugi .journey-status{font:400 14px Inter,sans-serif;color:#e2ebff}
#uslugi .shop-product,#uslugi .company-node{background:#2b3b53;border-color:#c0d5f22b;color:#f2f5fb}
#uslugi .shop-product b{color:#f2f5fb}
#uslugi .shop-product small{color:#c0cce0}
#uslugi .product-visual,#uslugi .shop-ai{background:#344965;border-color:#c0d5f22b;color:#e2ebff}
#uslugi .product-visual svg,#uslugi .company-node svg{color:#d5e2f6;stroke:currentColor}
#uslugi .shop-question{background:#344965;color:#f2f5fb}
html[data-design=contrast] #uslugi[data-services-layout=bento] .shop-answer,
html[data-design=contrast] #uslugi[data-services-layout=bento] .company-result{color:#c0cce0}
#uslugi .company-routes{stroke:#8297b6}
#uslugi .company-signal{stroke:var(--brand-accent)}
@media(prefers-reduced-motion:no-preference){
 #uslugi .journey-step{animation:journey-highlight 8s ease-in-out infinite;animation-delay:calc(var(--step)*1.5s)}
 #uslugi .journey-status{animation:journey-confirm 8s ease-in-out infinite;animation-delay:calc(var(--step)*1.5s)}
 @keyframes journey-highlight{0%,40%,100%{border-color:#c0d5f22b;background:#2b3b53}12%,26%{border-color:#809dce;background:#354d70}}
 @keyframes journey-confirm{0%,7%,72%,100%{opacity:.2}17%,57%{opacity:1}}
}
@media(max-width:800px){
 html[data-design=contrast] #uslugi[data-services-layout=bento] .bento-service .offer-demo{min-height:235px;padding:20px}
 html[data-design=contrast] #uslugi[data-services-layout=bento] .bento-0 .offer-demo{min-height:310px}
}
@media(max-width:360px){
 html[data-design=contrast] #uslugi[data-services-layout=bento] .bento-service .offer-demo{padding:12px}
 #uslugi .journey-step{gap:8px;padding:12px 8px}
}

/* Keep the contact action readable on narrow screens. */
.contact-cta-label{font:inherit;font-style:normal}
.contact-cta-break{display:none}
@media(max-width:800px){.contact-cta-break{display:block}#kontakt .contact-cta-label{line-height:1.3;text-align:center}}
