/* ===== Teriba b31 (20261022b31) — страницы домов /placement/<дом>.html (ru/en/zh) ===== */
/* ПК (≥992px): блок 1:1 с Figma PDEajdhSdSC6ZetyvfgC21 «проживание» (группы 1089:8166 / 8464 / 8602 / 8737, 1480×634).
   1rem = 10px при ширине 1920 (как на всём сайте: html font-size от ширины окна). Телефон — только в @media (max-width: 991.98px).
   Файл новый, подключается только на страницах домов; site-chrome.css не меняется. */
.house-page .hp { padding: 14rem 0 10rem; font-family: "Nekst", var(--ff-primary, sans-serif); color: #1c1c1c; }
.house-page .hp .breadcrumb { margin-bottom: 3rem; }
.house-page .hp .breadcrumb a { color: #545454; text-decoration: none; }
.house-page .hp-blue { color: #007cab; }
.house-page .hp-card { position: relative; box-sizing: border-box; min-height: 63.4rem; background: #fff; border-radius: 2rem; display: grid; grid-template-columns: 65.4rem minmax(0, 1fr); column-gap: 6.2rem; padding: 5.8rem 14.4rem 5rem 10.9rem; }
/* галерея */
.house-page .hp-gal { position: relative; min-width: 0; }
.house-page .hp-gal__stage { position: relative; width: 65.4rem; height: 45.4rem; border-radius: 2rem; overflow: hidden; background: #e9edf0; touch-action: pan-y; }
.house-page .hp-gal__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; cursor: zoom-in; }
.house-page .hp-gal__slide.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; z-index: 1; }
.house-page .hp-gal__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.house-page .hp-gal__slide[data-type="video"] { cursor: pointer; background: #1b2229; }
.house-page .hp-play { position: absolute; left: 50%; top: 50%; width: 8.8rem; height: 8.8rem; margin: -4.4rem 0 0 -4.4rem; border-radius: 50%; background: rgba(0,124,171,.92); box-shadow: 0 .6rem 2.4rem rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.house-page .hp-play svg { width: 3rem; height: 3rem; margin-left: .5rem; fill: #fff; }
.house-page .hp-gal__tag { position: absolute; left: 1.6rem; bottom: 1.6rem; padding: .6rem 1.4rem; border-radius: 99rem; background: rgba(0,0,0,.6); color: #fff; font-size: 1.4rem; font-weight: 700; pointer-events: none; }
.house-page .hp-gal__meta { width: 13.4rem; margin-top: 5rem; }
.house-page .hp-gal__count { font-size: 1.2rem; line-height: 1.4rem; text-align: center; color: #1b1b1b; }
.house-page .hp-gal__count [data-hp-cur] { font-weight: 700; }
.house-page .hp-gal__bar { position: relative; height: .2rem; margin-top: .6rem; border-radius: .22rem; background: #e5e5e5; overflow: hidden; }
.house-page .hp-gal__bar i { position: absolute; top: 0; bottom: 0; left: 0; background: #000; border-radius: .22rem; transition: left .3s ease, width .3s ease; }
/* стрелки по краям блока, как в Figma (19px / 1393px, 53×53) */
.house-page .hp-nav { position: absolute; top: 26.8rem; width: 5.3rem; height: 5.3rem; padding: 0; border-radius: 50%; border: .111rem solid #000; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.house-page .hp-nav svg { width: 2rem; height: 2rem; fill: none; stroke: #000; stroke-width: 1.67; stroke-linecap: round; stroke-linejoin: round; }
.house-page .hp-nav--prev { left: 1.9rem; }
.house-page .hp-nav--next { right: 3.4rem; }
.house-page .hp-nav:hover { background: #007cab; border-color: #007cab; }
.house-page .hp-nav:hover svg { stroke: #fff; }
.house-page .hp-nav[hidden] { display: none; }
/* правая колонка */
.house-page .hp-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-bottom: 7.2rem; }
.house-page .hp-title, .house-page .hp-h2, .house-page .hp-room__title, .house-page .hp-book, .house-page .hp-price, .house-page .hp-pill { font-family: "Nekst", var(--ff-primary, sans-serif); }
.house-page .hp-title { margin: 0; max-width: 43.6rem; font-size: 4.5rem; line-height: 1.1; font-weight: 700; color: #1c1c1c; letter-spacing: 0; }
.house-page .hp-stats { display: flex; gap: 2.4rem; margin-top: .8rem; }
.house-page .hp-stat span { display: block; font-size: 1.2rem; line-height: 1.35; color: #646872; }
.house-page .hp-stat b { display: block; font-size: 2rem; line-height: 1.35; font-weight: 500; color: #1b1b1b; white-space: nowrap; }
.house-page .hp-pill { box-sizing: border-box; min-width: 30rem; max-width: 100%; margin-top: 2.1rem; padding: .8rem 1.2rem; border: .111rem solid #e5e5e5; border-radius: 99rem; text-align: center; font-size: 1.337rem; line-height: 1.3rem; font-weight: 700; letter-spacing: .16rem; text-transform: uppercase; color: #8d8d8d; }
.house-page .hp-room__title { margin: 2.2rem 0 0; max-width: 40rem; font-size: 2.6rem; line-height: 3.12rem; letter-spacing: -.026rem; font-weight: 700; color: #1c1c1c; }
.house-page .hp-text { margin: 1.9rem 0 0; max-width: 39rem; font-size: 1.4rem; line-height: 2.17rem; color: #444141; }
.house-page .hp-list { margin: 1.9rem 0 0; padding: 0; list-style: none; max-width: 41rem; font-size: 1.4rem; line-height: 2.17rem; color: #444141; }
.house-page .hp-list li { position: relative; padding-left: 1.6rem; }
.house-page .hp-list li::before { content: ""; position: absolute; left: .3rem; top: .95rem; width: .4rem; height: .4rem; border-radius: 50%; background: #444141; }
.house-page .hp-cta { display: flex; align-items: center; gap: 2.4rem; margin-top: auto; padding-top: 3rem; }
.house-page .hp-book { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 28.9rem; height: 7rem; border-radius: 2rem; background: #007cab; color: #fff; font-size: 1.8rem; line-height: 1.1; font-weight: 700; text-decoration: none; transition: background .2s; }
.house-page .hp-book:hover { background: #005071; color: #fff; }
.house-page .hp-price { color: #2b2b2b; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
.house-page .hp-price b { font-size: 2.8rem; font-weight: 700; }
.house-page .hp-price span { font-size: 1.4rem; }
/* «Что внутри» */
.house-page .hp-rooms { margin-top: 8rem; }
.house-page .hp-h2 { margin: 0 0 3rem; font-size: 4.5rem; line-height: 1.1; font-weight: 700; color: #1c1c1c; }
.house-page .hp-rooms__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.house-page .hp-room { box-sizing: border-box; background: #fff; border-radius: 2rem; padding: 4rem; }
.house-page .hp-room .hp-text, .house-page .hp-room .hp-list { max-width: none; }
.house-page .hp-room .hp-pill { margin-top: 0; min-width: 0; display: inline-block; padding: .8rem 2.4rem; }
.house-page .hp-back { margin: 4rem 0 0; font-size: 1.6rem; }
.house-page .hp-back a { color: #007cab; text-decoration: none; }
/* лайтбокс (стиль кнопок как b27c: 64px, rgba(0,0,0,.7), белая обводка, белые иконки) */
.hp-lb { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(17,20,24,.96); -webkit-tap-highlight-color: transparent; }
html.hp-lb-open, html.hp-lb-open body { overflow: hidden !important; }
html.hp-lb-open .header { visibility: hidden; }
.hp-lb__stage { position: relative; width: min(90vw, calc((100vh - 200px) * 16 / 9)); height: min(calc(90vw * 9 / 16), calc(100vh - 200px)); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.hp-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.hp-lb__stage iframe { width: 100%; height: 100%; border: 0; background: #000; display: block; }
.hp-lb__cap { margin-top: 18px; max-width: 80vw; min-height: 22px; color: #fff; font: 600 18px/1.25 "Nekst", sans-serif; text-align: center; }
.hp-lb__btn { position: absolute; box-sizing: border-box; width: max(64px, 3.3334vw); height: max(64px, 3.3334vw); padding: 0; border-radius: 50%; background: rgba(0,0,0,.7) center / max(26px, 1.3542vw) no-repeat; border: max(2px, .1042vw) solid rgba(255,255,255,.9); box-shadow: 0 4px 16px rgba(0,0,0,.45); cursor: pointer; z-index: 3; }
.hp-lb__btn:focus-visible { outline: 3px solid #4fc3f7; outline-offset: 2px; }
.hp-lb__close { top: 20px; right: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6 L18 18 M18 6 L6 18' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hp-lb__prev { left: 24px; top: 50%; transform: translateY(-50%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 L8 12 L15 19' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hp-lb__next { right: 24px; top: 50%; transform: translateY(-50%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5 L16 12 L9 19' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hp-lb__btn[hidden] { display: none; }
.hp-lb__count { position: fixed; left: 50%; bottom: max(14px, .73vw); transform: translateX(-50%); padding: max(6px, .3125vw) max(14px, .73vw); border-radius: 999px; background: rgba(0,0,0,.7); box-shadow: 0 2px 10px rgba(0,0,0,.35); color: #fff; font: 600 max(16px, .8334vw)/1.2 "Nekst", sans-serif; letter-spacing: .04em; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .house-page .hp-gal__slide, .house-page .hp-gal__bar i { transition: none; } }
/* ---------- телефон / планшет (в Figma макета нет — по стилю мобильного сайта) ---------- */
@media (max-width: 991.98px) {
  .house-page .hp { padding: 8rem 0 5rem; }
  .house-page .hp .breadcrumb { margin-bottom: 1.6rem; }
  .house-page .hp-card { display: block; min-height: 0; padding: 1.2rem 1.2rem 2rem; border-radius: 1.6rem; }
  .house-page .hp-gal__stage { width: 100%; height: auto; aspect-ratio: 654 / 454; border-radius: 1.2rem; }
  .house-page .hp-gal__meta { width: 10rem; margin: 1.2rem auto 0; }
  .house-page .hp-gal__count { font-size: 1.2rem; }
  .house-page .hp-nav { width: 3.6rem; height: 3.6rem; top: calc(1.2rem + (100vw - 2rem - 2.4rem) * 454 / 654 / 2 - 1.8rem); border-color: rgba(0,0,0,.15); box-shadow: 0 .2rem .8rem rgba(0,0,0,.2); }
  .house-page .hp-nav svg { width: 1.8rem; height: 1.8rem; }
  .house-page .hp-nav--prev { left: 2rem; }
  .house-page .hp-nav--next { right: 2rem; }
  .house-page .hp-play { width: 5.6rem; height: 5.6rem; margin: -2.8rem 0 0 -2.8rem; }
  .house-page .hp-play svg { width: 2rem; height: 2rem; }
  .house-page .hp-gal__tag { left: 1rem; bottom: 1rem; font-size: 1.2rem; padding: .4rem 1rem; }
  .house-page .hp-info { margin-top: 1.6rem; padding: 0 .4rem; }
  .house-page .hp-info { padding-bottom: 0; }
  .house-page .hp-title { font-size: 2.8rem; max-width: none; }
  .house-page .hp-stats { gap: 2rem; margin-top: 1.2rem; }
  .house-page .hp-stat span { font-size: 1.2rem; }
  .house-page .hp-stat b { font-size: 1.8rem; }
  .house-page .hp-pill { min-width: 0; width: 100%; margin-top: 1.6rem; font-size: 1.1rem; letter-spacing: .12rem; }
  .house-page .hp-room__title { margin-top: 1.6rem; font-size: 2rem; line-height: 2.5rem; max-width: none; }
  .house-page .hp-text, .house-page .hp-list { margin-top: 1rem; font-size: 1.4rem; line-height: 2.1rem; max-width: none; }
  .house-page .hp-list li::before { top: .9rem; }
  .house-page .hp-cta { width: 100%; flex-direction: column; align-items: stretch; gap: 1.2rem; padding-top: 2.4rem; }
  .house-page .hp-book { width: 100%; height: 5.6rem; border-radius: 1.2rem; font-size: 1.6rem; }
  .house-page .hp-price { text-align: center; }
  .house-page .hp-price b { font-size: 2.2rem; }
  .house-page .hp-rooms { margin-top: 4rem; }
  .house-page .hp-h2 { font-size: 2.8rem; margin-bottom: 1.6rem; }
  .house-page .hp-rooms__grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .house-page .hp-room { padding: 2rem; border-radius: 1.6rem; }
  .house-page .hp-back { margin-top: 2.4rem; font-size: 1.4rem; }
  .hp-lb__stage { width: 100vw; height: calc(100vw * 9 / 16); max-height: calc(100vh - 180px); }
  .hp-lb__stage img { max-height: calc(100vh - 180px); }
  .hp-lb__btn { width: 48px; height: 48px; background-size: 22px; border-width: 2px; }
  .hp-lb__close { top: 12px; right: 12px; }
  .hp-lb__prev { left: 8px; top: auto; bottom: 64px; transform: none; }
  .hp-lb__next { right: 8px; top: auto; bottom: 64px; transform: none; }
  .hp-lb__cap { font-size: 15px; max-width: 70vw; }
}
@media (min-width: 992px) and (max-width: 1365.98px) { .house-page .hp { padding-top: 12rem; } }
/* ===== /Teriba b31 house-page ===== */
