/* Mobile layout overrides shared by both languages and all page types. */
@media(max-width:850px){
 html{scroll-padding-top:128px}
 body{min-width:0}
 body>.header #navigation{max-height:calc(100dvh - 145px);overflow-y:auto;overscroll-behavior:contain;backdrop-filter:none;-webkit-backdrop-filter:none}
 body>.header #navigation .nav-products{position:relative}
 body>.header #navigation .nav-products>a.nav-products-trigger{padding-right:58px;justify-content:flex-start}
 body>.header #navigation .nav-products>a.nav-products-trigger>.nav-chevron{display:none}
 .mobile-category-toggle{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#f3f3f3;color:#222;cursor:pointer}
 .mobile-category-toggle svg{width:16px;height:16px;transition:transform .25s}
 .nav-products.is-open .mobile-category-toggle svg{transform:rotate(180deg)}
 body>.header #navigation .product-submenu{margin:0 0 10px;padding:8px;background:#f1f1f1;border-radius:12px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 body>.header #navigation .product-submenu a{min-height:66px;padding:8px;gap:12px;color:#222;text-shadow:none}
 body>.header #navigation .product-submenu .product-menu-copy{color:#222;text-shadow:none;min-width:0}
 body>.header #navigation .product-submenu small{color:#666}
 body>.header #navigation .product-submenu img{width:56px;height:46px;object-fit:cover}
 body>.header #navigation .product-menu-arrow{width:18px;height:18px;flex:0 0 18px;color:#555}
 .site-footer .footer-links{position:static;inset:auto;max-height:none;overflow:visible}
}
@media(min-width:851px){.mobile-category-toggle{display:none}}
@media(max-width:760px){
 :root{--page-content-gutter:20px}
 body>.header .wrap.nav,html[lang=en] body>.header .wrap.nav{width:calc(100% - 40px);height:112px;align-items:flex-start;gap:10px}
 body>.header .brand,html[lang=en] body>.header .brand{width:158px;height:62px;margin:0;padding:0;display:flex;align-items:center}
 body>.header .header-tools{padding-top:10px;gap:8px;margin-left:auto;flex:1;justify-content:flex-end}
 body>.header .language-toggle,body>.header .menu{width:40px;height:40px;flex:0 0 40px;margin:0;display:grid;place-items:center}
 body>.header .menu{margin-top:10px;font-size:20px}
 body>.header .site-search,body>.header .site-search:focus-within{position:absolute;top:64px;left:0;right:0;width:100%;height:38px;min-width:0}
 body>.header .site-search input{font-size:16px}
 body>.header #navigation{top:112px;left:-20px;right:-20px;padding:10px 20px 20px}
 .header-service{height:27px;font-size:10px}
 .header-service-inner{width:calc(100% - 40px);gap:8px;justify-content:space-between}
 .header-service-inner>span{font-size:9px;white-space:nowrap}
 .header-service-inner>div{gap:12px;white-space:nowrap}
 .header-service-inner>div>a:first-child{display:block}
 .header-service-inner>div>a:not(:first-child){display:none}
 .home-page .aiweb-content .site-shell>.hero{height:max(640px,calc(100svh - var(--opening-header-height)));min-height:640px}
 .home-page .aiweb-content .hero__title-wrap{top:44px}
 .aiweb-content .hero h1{font-size:clamp(32px,8.5vw,48px);line-height:1.16;max-width:100%;overflow-wrap:break-word}
 .aiweb-content .hero p.hero__eyebrow{font-size:10px;line-height:1.7;letter-spacing:.06em;max-width:85%}
 .aiweb-content .hero__tags{bottom:174px;display:flex;flex-wrap:wrap;max-width:none;gap:7px}
 .aiweb-content .hero__tags button{min-height:36px;padding:8px 11px;font-size:11px}
 .home-page .aiweb-content .hero-stories{bottom:22px;max-width:none;gap:8px}
 .aiweb-content .hero-stories .story-card,.aiweb-content .hero-stories .story-card.is-active{display:flex;flex:1 1 0;min-height:128px;padding:8px;gap:8px;min-width:0}
 .aiweb-content .story-card img{height:48px;max-width:100%;object-fit:cover}
 .aiweb-content .story-card strong{font-size:11px;line-height:1.4;overflow-wrap:break-word}
 .aiweb-content .story-card small{display:none}
 .aiweb-content .about{display:grid;grid-template-columns:1fr;gap:28px;min-height:0;padding-top:64px;padding-bottom:54px}
 .aiweb-content .about__left{display:block}
 .aiweb-content .about__left p,.aiweb-content .work__intro{padding-left:0;max-width:none;text-align:left}
 .aiweb-content .about__right h2,.aiweb-content .work__header h2{font-size:clamp(29px,7.6vw,38px);line-height:1.4}
 .aiweb-content .expertise{margin-top:20px;padding-top:35px;padding-bottom:26px}
 .aiweb-content .expertise__top{display:grid;grid-template-columns:1fr;gap:26px}
 .aiweb-content .expertise__top h2{font-size:31px;line-height:1.35}
 .aiweb-content .expertise__categories{display:flex;flex-direction:row;flex-wrap:nowrap;gap:18px;max-width:100%;overflow-x:auto;padding:0 0 10px;scrollbar-width:thin}
 .aiweb-content .expertise__categories button{flex:0 0 auto;white-space:nowrap;font-size:14px;min-height:44px}
 .aiweb-content .expertise__gallery{display:flex;flex-direction:column;height:auto;gap:20px;margin-top:25px;clip-path:none!important}
 .aiweb-content .expertise__caption{position:static;order:2;width:100%;min-height:0;max-width:none;padding:0}
 .aiweb-content .expertise__caption p{max-width:100%;font-size:14px}
 .aiweb-content .expertise__slide--main{position:relative;order:1;width:100%;height:auto;aspect-ratio:4/3;flex:none;inset:auto}
 .aiweb-content .expertise__slide--main img{width:100%;height:100%;object-fit:cover}
 .aiweb-content .expertise__slide--next{display:none}
 .aiweb-content .expertise__controls{position:static;order:3;display:flex;justify-content:flex-end;margin-top:0;padding:0}
 .aiweb-content .round-button{width:44px;height:44px}
 .aiweb-content .work{padding-top:62px;padding-bottom:25px}
 .aiweb-content .work__header{display:grid;grid-template-columns:1fr;gap:25px}
 .aiweb-content .work__cards{display:grid;grid-template-columns:1fr;height:auto;gap:20px;margin-top:32px}
 .aiweb-content .work__cards .work-card{min-height:460px;height:auto;min-width:0;flex:none}
 .aiweb-content .work-card__content{left:20px;right:20px;bottom:22px}
 .aiweb-content .work-card .work-card__content p{max-height:none;opacity:1;margin-top:12px;font-size:14px;line-height:1.8}
 .aiweb-content .work-card__tags{left:20px;right:20px;top:20px;flex-wrap:wrap}
 .aiweb-content .faq-section{padding-top:58px;padding-bottom:40px;gap:30px}
 .aiweb-content .faq-item summary{min-height:76px;align-items:center;font-size:16px;line-height:1.65}
 .aiweb-content .faq-toggle{flex-shrink:0}
 .site-footer,.inner-page .site-footer{margin-top:55px;margin-left:8px;margin-right:8px}
 .footer-contact{grid-template-columns:1fr;gap:35px;min-height:0;padding:32px 20px 38px}
 .footer-contact h2,html[lang=en] .footer-contact h2{font-size:clamp(32px,9vw,44px);line-height:1.25;overflow-wrap:break-word;margin:26px 0}
 .footer-contact-info{justify-self:start}
 .footer-contact-info p{font-size:16px;margin-bottom:20px}
 .footer-contact-info address{font-size:14px}
 .footer-contact-info small{font-size:11px}
 .footer-lower{flex-direction:column;align-items:flex-start;gap:20px;margin:0 20px}
 .footer-logo{width:185px}
 .site-footer .footer-links{display:flex;flex-wrap:wrap;width:100%;gap:8px 20px;margin:0;justify-content:flex-start}
 .site-footer .footer-links a{font-size:13px;min-height:40px;display:flex;align-items:center}
 .footer-bottomline{margin:0 20px;flex-wrap:wrap;gap:12px;font-size:10px}
 .footer-bottomline>span{max-width:100%;overflow-wrap:anywhere}
 .page-content{min-width:0}
 .page-intro{padding:26px 0 34px}
 .intro-grid{gap:18px}
 .intro-grid h1{font-size:clamp(40px,11vw,58px);overflow-wrap:break-word}
 .intro-grid>p{font-size:15px;line-height:1.85}
 .filter-bar{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:18px;gap:8px;scrollbar-width:thin}
 .filter-bar button{flex:0 0 auto;min-height:42px;white-space:nowrap}
 .page-content .product-grid{grid-template-columns:1fr;gap:24px}
 .page-content .product-copy{padding:20px}
 .page-content .product-copy h2{font-size:22px;overflow-wrap:break-word}
 .page-content .product-copy>p{font-size:14px;line-height:1.85}
 .pagination{flex-wrap:nowrap;gap:6px}
 .pagination button{width:calc((100% - 18px)/4);min-width:0;max-width:112px;flex:0 1 112px;height:44px;font-size:12px;padding:0 5px}
 .page-content .catalogue-section>.pagination{margin-top:48px}
 .page-content .news-grid .news-copy{min-width:0}
 .page-content .news-grid .news-card h2,.page-content .news-grid .news-card:first-child h2{font-size:23px;line-height:1.5;overflow-wrap:break-word}
 .page-content .news-grid .news-copy>p{font-size:15px;line-height:1.85;margin-bottom:6px}
 .page-content .case-tile,.page-content .case-tile:first-child{height:470px;min-width:0}
 .page-content .case-tile__content{left:20px;right:20px;bottom:22px}
 .page-content .case-tile__content h2{font-size:25px;overflow-wrap:break-word}
 .page-content .case-tile__content>p{font-size:14px;line-height:1.85}
 .page-content .article-layout{grid-template-columns:minmax(0,1fr);gap:38px;padding-bottom:20px}
 .article-main{min-width:0}
 .article-main>h1{font-size:clamp(28px,7.5vw,37px);line-height:1.4;margin-top:0;overflow-wrap:break-word}
 .article-publication{font-size:12px;gap:7px 16px;margin-bottom:24px}
 .page-content .article-cover{max-height:none;aspect-ratio:4/3;object-fit:cover;margin-bottom:24px}
 .article-section{margin:30px 0}
 .article-section h2{font-size:21px;line-height:1.55}
 .article-section p{font-size:15px;line-height:2;margin-top:16px}
 .page-content .article-next{grid-template-columns:1fr;gap:12px}
 .page-content .article-next>a{padding:20px}
 .related-news{position:static;padding:22px}
 .related-news-item{grid-template-columns:88px minmax(0,1fr);gap:14px}
 .editorial-split h2,.about-pair h2{font-size:30px;line-height:1.5;overflow-wrap:break-word}
 .about-cover{height:300px}
 .empty-state{padding:45px 20px}
 .case-lightbox{max-width:100vw;max-height:100dvh}
}
@media(max-width:360px){
 :root{--page-content-gutter:16px}
 body>.header .brand,html[lang=en] body>.header .brand{width:135px}
 .header-service-inner>span{font-size:8px}
 .aiweb-content .hero h1{font-size:30px}
 .aiweb-content .story-card strong{font-size:10px}
 .aiweb-content .hero-stories .story-card{padding:6px}
 .page-content .pagination button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.mobile-category-toggle svg{transition:none}}

/* Compact phone/tablet header: logo, language and navigation only. */
.mobile-news-link{display:none!important}
@media(max-width:850px){
 :root{--opening-header-height:72px}
 html{scroll-padding-top:88px}
 body>.header,body>.header.is-scrolled{top:0}
 body>.header .header-service,body>.header .header-tools .site-search,body>.header:has(nav.open) .site-search{display:none!important}
 body>.header .wrap.nav,html[lang=en] body>.header .wrap.nav{height:72px;align-items:center;padding:0;gap:10px}
 body>.header .brand,html[lang=en] body>.header .brand{height:72px;padding:0;margin:0;display:flex;align-items:center}
 body>.header .header-tools{padding:0;margin-left:auto;flex:0 0 auto;gap:8px;align-items:center}
 body>.header .menu{margin:0;width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center}
 body>.header #navigation{top:72px;max-height:calc(100dvh - 72px);padding-bottom:24px}
 body>.header #navigation .mobile-news-link{display:block!important}
 /* Pagination is content, so it must not inherit the mobile navigation panel. */
 .page-content nav.pagination,.page-content .news-section>nav.pagination,.page-content .catalogue-section>nav.pagination{position:static;inset:auto;top:auto;left:auto;right:auto;bottom:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;max-width:100%;height:auto;min-height:44px;max-height:none;margin:48px 0 24px;padding:0;gap:8px;z-index:auto;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;visibility:visible;opacity:1;transform:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 .page-content nav.pagination[hidden]{display:none}
 .page-content .pagination button{width:72px;min-width:48px;max-width:112px;flex:0 1 72px;height:44px;color:#ddd;background:transparent;border-color:#ffffff35}
 .page-content .pagination button[aria-current=page]{background:#f5f5f5;color:#222;border-color:transparent}
 .page-content .filter-bar{flex-wrap:wrap;overflow:visible;gap:8px;padding-bottom:22px}
 .page-content .filter-bar button{flex:0 0 auto;min-height:42px}
}
