/* Centris One — адаптив v17 (12.11.2026). Подключается последним.
   Шрифт Onest и общий стиль живого сайта не меняются: здесь только раскладка под размеры экрана. */
html,body{overflow-x:clip}

/* ---------- первый экран ---------- */
.hero2-media{overflow:hidden}
.hero2-media img,.hero2-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 50%}
.hero2-vid{opacity:0;transition:opacity .7s;pointer-events:none}
.hero2-vid.on{opacity:1}
.web-link{padding-top:10px}

/* ---------- главы: все шесть в одном тёмном стиле ---------- */
.feature{background:#0b0b0b;color:#f4f3ef}
.feature:after{display:block;background:linear-gradient(90deg,#0b0b0be0 0%,#0b0b0b99 34%,#0b0b0b00 68%)}
.world-film .feature .scene-footer .logos img{filter:brightness(0) invert(1);opacity:1}
.feature .scene-status{border-top-color:#f4f3ef44}
.feature .scene-copy h2 .mute{color:#ffffffb3}
@media(min-width:761px) and (min-height:521px){
 .motion .world-controls button{font-size:14px;min-height:44px;padding:10px 18px}
}

/* ---------- вертикальный экран: телефон и планшет в портрете ---------- */
@media (orientation:portrait){
 .hero2{flex-direction:column;justify-content:flex-end}
 .hero2-img{height:58%}
 .hero2-media img,.hero2-media video{object-position:50% 82%}
 .hero2:after{background:linear-gradient(0deg,#0a0a0a 44%,#0a0a0a00 62%)}
 .hero2-copy{padding:0 24px 48px;max-width:none;width:100%;box-sizing:border-box}

 .world-film .feature .scene-img{position:absolute!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:50% 100%!important}
 .world-film .feature:after{display:block!important;background:linear-gradient(180deg,#0b0b0bf2 0%,#0b0b0bbd 26%,#0b0b0b00 50%,#0b0b0b00 70%,#0b0b0be6 100%)!important}
 .world-film .feature .scene-copy{width:100%!important;box-sizing:border-box;padding:56px 24px 0!important}
 .world-film .feature .scene-footer{left:24px!important;right:24px!important;bottom:72px!important}
}
@media (orientation:portrait) and (min-width:761px){
 .hero2-copy{padding:0 6vw 72px}
 .hero2 h1{font-size:68px}
 .world-film .feature .scene-copy{padding:84px 6vw 0!important}
 .world-film .feature .scene-footer{left:6vw!important;right:6vw!important;bottom:96px!important}
 .scene-copy h2{font-size:60px!important}
}

/* ---------- компактный переключатель глав: телефон и низкий экран ---------- */
@media (max-width:760px),(max-height:520px){
 .motion .world-controls{display:flex!important;left:24px;right:24px;bottom:calc(8px + env(safe-area-inset-bottom));gap:6px;padding:0;border:0}
 .world-controls button{flex:1;min-width:0;height:44px;min-height:44px;padding:0;font-size:0!important;line-height:0;background:none!important;border:0!important;border-radius:0;position:relative;overflow:visible}
 .world-controls button:after{content:'';position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;border-radius:3px;background:#ffffff4d;transition:background .3s}
 .world-controls button[aria-pressed=true]{background:none!important}
 .world-controls button[aria-pressed=true]:after{background:#f4f3ef}
 .film-progress{display:none!important}
}
@media (max-width:760px){
 .footer-bottom{font-size:12px!important}
 .dir small{font-size:12px}
 .scene-footer .logos img{width:62px!important;max-height:32px!important}
}

/* ---------- планшет и узкий ноутбук: блок «Как работает» в две колонки ---------- */
@media (min-width:761px) and (max-width:1100px) and (min-height:521px){
 .motion .experience-pin{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) 75px!important;column-gap:32px}
 .app2 .experience-title{grid-column:1/-1;padding-top:44px!important;align-self:start}
 .app2 .story-text h3{font-size:clamp(30px,4.4vw,44px)}
 .motion .story-text{height:300px}
 .device-space{min-height:0}
}

/* ---------- телефон на боку и другие низкие экраны ---------- */
@media (orientation:landscape) and (max-height:520px){
 header.top{padding:14px 5vw}
 .hero2-copy{padding:70px 5vw 26px}
 .hero2 h1{font-size:40px;margin-bottom:12px}
 .hero2 h1 br{display:none}
 .lead{font-size:15px}
 .stores{margin-top:16px}.store{height:48px;font-size:17px}
 .web-link{margin-top:8px}

 .stack-card{--peek:54px;border-radius:20px}
 .stack-head b{font-size:38px}.stack-head span{font-size:17px}
 .stack-logos{--r:6.2;grid-template-columns:repeat(9,1fr);gap:6px}
 .lg2{border-radius:10px}.lg2 img{max-height:26px}
 .stack-dirs{--r:6;grid-template-columns:repeat(6,1fr);gap:8px}
 .dir{aspect-ratio:1.1;border-radius:12px}.dir span{padding:20px 10px 8px}.dir strong{font-size:13px}.dir small{display:none}

 .world-film .feature .scene-copy{padding:20px 5vw 0!important;width:58%!important}
 .scene-copy h2{font-size:clamp(28px,8.6vh,40px)!important;margin-top:6px!important}
 .scene-copy h2 br{display:none}
 .scene-kicker{font-size:15px!important}
 .feature .scene-copy>p:not(.scene-kicker){font-size:14px!important;margin:8px 0 6px!important;max-width:400px}
 .scene-status{padding-top:6px!important}
 .world-film .feature .scene-footer{bottom:50px!important}
 .scene-footer .logos{gap:16px!important}
 .scene-footer .logos img{width:50px!important;max-height:24px!important}
 .logo-b figcaption{display:none}

 .motion .experience-pin{min-height:0!important;height:100svh!important;display:grid!important;grid-template-columns:minmax(0,3fr) auto minmax(0,4fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:28px!important;padding:14px 5vw!important;align-items:center!important;overflow:hidden}
 .app2 .experience-title{padding:0!important;align-self:center!important}
 .app2 .experience-title h2{font-size:28px;margin:0}
 .device-space{min-height:0!important;height:100%}
 .app2 .phone{height:calc(100svh - 36px)!important;width:auto!important}
 .app2 .story-text{height:calc(100svh - 60px)!important;width:auto!important;position:relative}
 .motion .story-text article{display:flex;flex-direction:column;justify-content:center}
 .app2 .story-text h3{font-size:24px;margin:8px 0}
 .app2 .story-text h3 br{display:none}
 .app2 .story-text p{font-size:14px}
 .app2 .story-bottom{display:none!important}

 .download{padding:48px 5vw}
 .download h2{font-size:44px}
 .duo{height:300px}
}

/* Centris Fit в портрете: квадратный ролик в нижней части экрана, текст над ним */
@media (orientation:portrait){
 .world-film .fitness-scene .scene-img{top:auto!important;bottom:13%!important;height:auto!important;aspect-ratio:1/1!important;object-position:50% 50%!important;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 88%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 88%,transparent 100%)}
 .world-film .fitness-scene:after{background:none!important}
}

/* --- правки после первой проверки (12.11) --- */
.world-film .feature .scene-img{width:100%}
@media(min-width:761px){.world-film .estate-scene .scene-img,.world-film .business-scene .scene-img{width:100%}}
/* низкий экран: лента глав должна листаться (старое правило отключало сдвиг) */
@media(max-height:650px){.motion .world-track{transform:translateX(var(--world-x,0px))!important}}
@media (orientation:portrait){
 /* у Resto и мойки главный объект в середине кадра — на планшете прижимаем кадр к верху */
 .world-film .resto-scene .scene-img,.world-film .auto-scene .scene-img{object-position:50% 0%!important}
}
@media (orientation:portrait) and (min-width:600px){
 .world-film .fitness-scene .scene-img{height:58%!important;aspect-ratio:auto!important;bottom:12%!important}
}
@media (orientation:landscape) and (max-height:520px){
 .hero2-copy{max-width:50%}
 .hero2 h1{font-size:34px}
 .hero2 h1 br{display:inline}
 .lead{font-size:14px}
}

/* --- первый экран закреплён, карты двигаются от прокрутки (v18) --- */
.hero-scroll{position:relative;background:#0a0a0a}
.motion .hero-scroll{height:190svh}
.motion .hero-scroll .hero2{position:sticky;top:0;height:100svh;min-height:0}
.hero2-seq{opacity:0;transition:opacity .4s;pointer-events:none}
.hero2-seq.on{opacity:1}
/* первый экран закреплён — сдвиг картинки при прокрутке больше не нужен (давал тёмную полосу сверху) */
.motion .hero-scroll .hero2-img{transform:none!important}

/* --- v19: на телефонах и планшетах первый экран не закрепляется, ролики играют сами (плавно, без рывков) --- */
.play-mode .hero-scroll{height:auto!important}
.play-mode .hero-scroll .hero2{position:relative!important;height:auto!important;min-height:100svh!important}
@media (orientation:portrait){.hero2-media img,.hero2-media video{object-position:50% 50%}}
