/* Inner pages follow the designer's mobile homepage; desktop remains in V5. */
.mobile-contact,.inner-mobile-only{display:none!important}
@media(max-width:700px){
 body.inner-menu-open{overflow:hidden}
 body:not([data-page=home]){--mobile-accent:#8a1e24;--mobile-ink:#0d0d0d;--mobile-radius:24px;background:#fff}
 body:not([data-page=home]) .site-header{top:10px!important;margin:10px 10px 18px;padding:6px 6px 6px 18px!important;min-height:56px;grid-template-columns:minmax(0,1fr) 44px auto!important;gap:6px!important;border:0!important;border-radius:999px;background:rgba(255,255,255,.94)!important;box-shadow:0 6px 24px rgba(0,0,0,.1);backdrop-filter:blur(14px)}
 body:not([data-page=home]) .site-header img{height:20px!important;max-width:104px}
 body:not([data-page=home]) .site-header>div{display:none!important}
 body:not([data-page=home]) .mobile-contact{display:grid!important;place-items:center;width:44px;height:44px;border-radius:50%;background:#f0f2f5;color:#0d0d0d;text-decoration:none}
 body:not([data-page=home]) .menu-toggle{min-height:44px!important;padding:0 16px 0 18px!important;gap:10px!important;font-size:15px!important;font-weight:500;background:#0d0d0d!important;color:#fff!important;border:0!important;border-radius:22px}
 body:not([data-page=home]) .menu-icon{width:15px;height:12px;border-width:1.5px}
 body:not([data-page=home]) .menu-icon::before{height:1.5px}
 body:not([data-page=home]) .menu-toggle[aria-expanded=true] .menu-icon{transform:rotate(90deg)}
 body:not([data-page=home]) .site-header nav{top:calc(100% + 8px)!important;left:0!important;right:0!important;width:auto!important;max-height:calc(calc(100svh / var(--z,1)) - 94px);padding:20px!important;border-radius:24px;background:#8a1e24!important;color:#fff;box-shadow:0 14px 30px rgba(0,0,0,.16);text-transform:none;letter-spacing:0;overscroll-behavior:contain}
 body:not([data-page=home]) .site-header nav a{font-size:clamp(18px,calc(5vw / var(--z,1)),23px)!important;line-height:1.25!important;font-family:'Unbounded',sans-serif;font-weight:300;color:#fff!important;padding:14px 0!important;min-height:52px;border-color:rgba(255,255,255,.18)}
 body:not([data-page=home]) .site-header nav a[aria-current=page]{color:#f0c4c6!important}
 body:not([data-page=home]) .inner-mobile-only{display:flex!important}
 body:not([data-page=home]) .site-header nav .mobile-menu-cta{justify-content:space-between;align-items:center;background:#fff!important;color:#8a1e24!important;border-radius:999px;margin-top:20px;padding:12px 18px!important;font:500 16px/1.25 'Golos Text',sans-serif!important;min-height:52px}
 body:not([data-page=home]) section[data-screen-label]{padding:36px 20px 60px!important;gap:24px!important;border-radius:24px 24px 0 0!important;box-shadow:none!important;scroll-margin-top:88px}
 body:not([data-page=home]) section[data-screen-label]:not(:first-of-type){margin-top:-24px!important}
 body:not([data-page=home]) section[data-screen-label]:first-of-type{padding-top:20px!important;border-radius:0!important}
 body:not([data-page=home]) h1{font-size:clamp(26px,calc(7.4vw / var(--z,1)),38px)!important;font-weight:300!important;line-height:1.1!important;letter-spacing:-.05em!important;text-wrap:balance}
 body:not([data-page=home]) h2{font-size:clamp(25px,calc(6.6vw / var(--z,1)),32px)!important;line-height:1.1!important;font-weight:300!important;letter-spacing:-.05em!important}
 body:not([data-page=home]) h3{overflow-wrap:anywhere;hyphens:auto}
 body:not([data-page=home]) section p{font-size:16px!important;line-height:1.45!important}
 body:not([data-page=home]) a[data-arrbox]{touch-action:manipulation}
 body:not([data-page=home]) [data-arr]{flex-shrink:0}
 body:not([data-page=home]) [data-r-grid=cards]{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body:not([data-page=home]) [data-r-hero-image],body:not([data-page=home]) [data-r-product=image]{border-radius:24px!important;min-height:250px!important}
 body:not([data-page=home]) [data-touch-control]{box-sizing:border-box;min-height:44px;touch-action:manipulation}
 body:not([data-page=home]) #request{margin:0 8px!important;padding:32px 14px 22px!important;border-radius:24px!important;gap:24px!important;display:flex!important;flex-direction:column!important}
 body:not([data-page=home]) #request>div{display:contents!important}
 body:not([data-page=home]) #request h2{order:0;font-size:30px!important}
 body:not([data-page=home]) #request>div>p{order:1;margin-bottom:0!important}
 body:not([data-page=home]) #request-form{order:2;width:100%;gap:12px!important}
 body:not([data-page=home]) #contacts{order:3;padding-top:0!important;gap:10px!important}
 body:not([data-page=home]) #request input:not([type=checkbox]):not([type=radio]):not([type=file]),body:not([data-page=home]) #request textarea{padding:18px!important;font-size:16px!important;border-radius:22px!important}
 body:not([data-page=home]) #request-form>label{border-radius:22px!important}
 body:not([data-page=home]) #request-form>div{flex-direction:column!important;gap:16px!important}
 body:not([data-page=home]) .consent{font-size:14px;line-height:1.45;gap:12px;padding:6px 0}
 body:not([data-page=home]) footer{margin:14px 8px 0;padding:32px 20px 22px!important;border-radius:24px!important;gap:28px!important}
 body:not([data-page=home]) footer>[data-r-grid=cards]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 16px!important}
 body:not([data-page=home]) footer>[data-r-grid=cards]>:first-child,body:not([data-page=home]) #footer-contacts{grid-column:1/-1}
 body:not([data-page=home]) footer a{overflow-wrap:anywhere;line-height:1.5!important}
 body:not([data-page=home]) footer>div:last-child{flex-wrap:wrap;gap:12px!important}
 body[data-page=products] #list>div:first-child>div{border-radius:22px!important;padding:6px!important;gap:4px!important}
 body[data-page=products] #list [data-touch-control]{padding:11px 14px!important;display:flex;align-items:center}
 body[data-page=products] #list a[href^="product.html"]{padding:8px!important;border-radius:24px!important}
 body[data-page=products] #list a[href^="product.html"]>div:first-child{border-radius:18px!important}
 body[data-page=products] #list a[href^="product.html"]>div:last-child{padding:8px!important}
 body[data-page=products] [data-screen-label="Калькулятор — анонс"]>a{border-radius:24px!important}
 body[data-page=product] [data-screen-label="Карточка"]>div:last-child{flex-direction:column!important;gap:24px!important}
 body[data-page=product] [data-r-product=image]{min-height:270px!important;aspect-ratio:1.1}
 body[data-page=product] [data-screen-label="Материалы"]>div:last-child{border-radius:24px!important;min-height:300px!important}
 body[data-page=product] [data-screen-label="Документация"] [data-r-grid=cards]>a{border-radius:22px!important}
 body[data-page=services] #formats [data-r-grid=cards]>div{border-radius:24px!important;padding:24px 20px!important}
 body[data-page=services] [data-screen-label="Полный цикл"]>div:last-child>div:last-child{border-radius:24px!important;min-height:300px!important}
 body[data-page=quality] [data-screen-label="Точки контроля"] [data-r-grid=cards]>div,body[data-page=quality] #lab [data-r-grid=cards]>div{border-radius:24px!important}
 body[data-page=quality] #docs a[data-arrbox]{border-radius:24px!important}
 body[data-page=news] [data-screen-label="Лента"] a[href^="article.html"],body[data-page=article] [data-screen-label="Другие новости"] a[href^="article.html"]{border-radius:24px!important;min-height:390px!important;aspect-ratio:auto!important}
 body[data-page=article] [data-screen-label="Материал"] article p{font-size:17px!important;line-height:1.6!important}
 body[data-page=calculator] [data-screen-label="Расчёт"]>div>div,body[data-page=calculator] [data-screen-label="Расчёт"]>aside{border-radius:24px!important;padding:24px 18px!important}
 body[data-page=calculator] [data-screen-label="Расчёт"] [data-touch-control]{border-radius:18px!important}
 body[data-page=calculator] input[type=range]{accent-color:#8a1e24;touch-action:pan-y}
}
@media(max-width:700px){
 body:not([data-page=home]) .site-header nav{text-transform:none!important}
 body:not([data-page=home]) .site-header nav a{text-decoration:none!important}
 body:not([data-page=home]) .menu-toggle[aria-expanded=true] .menu-icon{border-color:transparent;transform:none}
 body:not([data-page=home]) .menu-toggle[aria-expanded=true] .menu-icon::before{transform:translateY(-50%) rotate(45deg)}
 body:not([data-page=home]) .menu-toggle[aria-expanded=true] .menu-icon::after{content:'';position:absolute;left:0;right:0;top:50%;height:1.5px;background:currentColor;transform:translateY(-50%) rotate(-45deg)}
}
@media(max-width:700px){
 body:not([data-page=home]) div:has(>#request){margin-top:-24px!important}
 body[data-page=services] [data-screen-label="Полный цикл"] [data-touch-control]{grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important}
 body[data-page=article] [data-screen-label="Шапка новости"] nav>span:last-child{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;max-width:100%!important}
}
