/* Экспериментальный макет пользователя 393×852; правила ДС здесь не применяются. */
#new-hotel { position:relative; padding:0; container-type:size; isolation:isolate; overflow:clip; background:#f6f5e8; color:#080908; }
.screen:has(#new-hotel:not([inert])) > .segments { visibility:hidden; }
#new-hotel .opening-logo { left:6.3613cqw; top:3.052cqh; width:14.8855cqw; }
#new-hotel .opening-advance { top:2.465cqh; right:5.089cqw; width:28.117cqw; gap:10px; font:400 min(14px,3.562cqw)/20px var(--font-mono); }
.hotel-copy { position:absolute; inset:0; pointer-events:none; z-index:2; }
.hotel-copy h1 { position:absolute; top:9.1cqh; left:6.3613cqw; margin:0; white-space:nowrap; font:400 min(30px,7.6336cqw)/1 var(--font-mono); }
.hotel-copy p { position:absolute; top:9.35cqh; left:57.1247cqw; right:var(--frame-gutter); margin:0; white-space:normal; font:400 min(14px,3.562341cqw)/1.083333 var(--font-mono); }
/* Контур серого прямоугольника из макета. Видео — наполнение этой маски. */
.hotel-media { position:absolute; inset:0; width:100%; height:100%; margin:0; transform:none; overflow:hidden; background:#939393; clip-path:polygon(var(--hotel-mask-left,6.3613cqw) var(--hotel-mask-top,30%),var(--hotel-mask-tr-x,90%) var(--hotel-mask-tr-y,24%),var(--hotel-mask-br-x,110%) var(--hotel-mask-br-y,95%),var(--hotel-mask-bl-x,20%) var(--hotel-mask-bl-y,calc(100% + 18px))); z-index:1; }
.hotel-media video { position:absolute; left:0; top:var(--hotel-mask-tr-y,24%); width:100%; height:calc(100% + 18px - var(--hotel-mask-tr-y,24%)); display:block; object-fit:cover; object-position:50% 50%; }
#new-hotel .opening-footer { right:var(--frame-gutter); bottom:var(--footer-bottom); z-index:3; }
#new-hotel .new-contact { background:#f6f5e8; }
@media(max-height:580px) { .hotel-copy h1 { font-size:min(26px,7.6336cqw); } .hotel-copy p { font-size:min(13px,3.562341cqw); } }

/* Верхняя вершина видео совпадает с началом правой текстовой колонки. */
.hotel-copy p { left:55.6cqw; }

/* Экран12 — композиция знакомства с зеркальной формой маски. */
#new-hotel .opening-logo { left:var(--grid-left); top:3.169cqh; width:var(--brand-width); }
#new-hotel .opening-advance { right:var(--frame-gutter); width:var(--contact-width); font-size:13px; }
#new-hotel .hotel-copy h1 { top:12.56cqh; left:var(--grid-left); font-weight:500; }
#new-hotel .hotel-copy p { top:12.32cqh; left:64.9cqw; right:20px; font-size:min(14px,3.56234cqw); line-height:1.15; }

/* Галерея номеров после экрана отеля. */
.hotel-gallery-panel { position:relative; container-type:size; overflow:clip; background:var(--paper); color:var(--ink); }
.hotel-gallery-panel .opening-advance { right:var(--frame-gutter); width:var(--contact-width); font-size:13px; }
.hotel-gallery-copy { position:absolute; top:23cqh; left:0; right:0; text-align:center; font:400 13px/1.15 var(--font-mono); }
.hotel-gallery-copy p { margin:0 0 14px; }
.hotel-gallery-controls { display:flex; justify-content:center; align-items:center; gap:15px; font-size:14px; }
.hotel-gallery-controls button { display:grid; place-items:center; width:21px; height:21px; padding:0; border:1px solid currentColor; background:transparent; color:inherit; font-size:10px; cursor:pointer; }
.hotel-gallery-controls button:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.hotel-gallery-stack { position:absolute; top:35cqh; left:4cqw; width:92cqw; height:min(48cqh,72cqw); }
.hotel-gallery-photo { position:absolute; inset:0; margin:0; overflow:hidden; transform:rotate(var(--angle)); background:var(--paper); }
.hotel-gallery-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.hotel-gallery-panel .opening-footer { z-index:20; }
@media(max-height:580px) { .hotel-gallery-copy { top:19cqh; } .hotel-gallery-stack { top:36cqh; height:min(47cqh,72cqw); } }
.screen:has(.hotel-gallery-panel:not([inert])) > .segments { visibility:hidden; }

/* Подписи разной длины определяют начало стопки. */
.hotel-gallery-copy { top:15cqh; left:20px; right:20px; }
.hotel-gallery-stack { top:var(--gallery-stack-top,35cqh); height:min(48cqh,72cqw,calc(100cqh - var(--gallery-stack-top,35cqh) - 55px)); touch-action:pan-y; }
@media(max-height:580px) { .hotel-gallery-copy { top:14cqh; } .hotel-gallery-stack { top:var(--gallery-stack-top,36cqh); height:min(47cqh,72cqw,calc(100cqh - var(--gallery-stack-top,36cqh) - 45px)); } }

/* Экран12: наклонённый прямоугольник, как у видео на01. */
#new-hotel .hotel-media { inset:auto; left:var(--hotel-video-left,0px); top:var(--hotel-video-top,30cqh); width:calc(100cqw + 40px); height:var(--hotel-video-height,70cqh); clip-path:none; transform:rotate(-4deg); transform-origin:top left; background:transparent; }
#new-hotel .hotel-media video { position:static; width:100%; height:100%; object-position:50% 50%; }
/* Вводный текст — по сетке и типографике экрана11. */
.hotel-gallery-copy { top:calc(15.14cqh - 8px); }
.hotel-gallery-copy .hotel-gallery-intro { width:min(300px,calc(100cqw - 60px)); margin:0 0 24px; text-align:left; font:400 16px/1.15 var(--font-mono); }
.hotel-gallery-stack { left:8cqw; width:84cqw; }
@media(max-height:580px) { .hotel-gallery-copy { top:calc(15.14cqh - 8px); } .hotel-gallery-copy .hotel-gallery-intro { margin-bottom:18px; font-size:13px; } }

/* Подписи у левой направляющей, навигация у правой. */
.hotel-gallery-copy [data-gallery-caption] { text-align:left; }
.hotel-gallery-controls { justify-content:flex-end; }
.hotel-gallery-copy [data-gallery-caption] { padding-top:30px; }

/* Подпись и управление в одной строке, фотографии как отдельные отпечатки. */
.hotel-gallery-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; padding-top:30px; }
.hotel-gallery-copy .hotel-gallery-row [data-gallery-caption] { padding:0; margin:0; text-align:left; }
.hotel-gallery-controls { gap:8px; white-space:nowrap; }
.hotel-gallery-photo { inset:auto; right:auto; bottom:auto; overflow:hidden; }
