/* Вариант «Дубай»: project. Подключается после f.css (src/server.ts → withPolish).
   Страница проекта (их шаблон ProjectDetail-* + наши секции из project.js / dubai.js):
   1) читаемость — серое на тёмном, тёмное на тёмном, бледные подписи (WCAG: текст ≥ 4.5, крупный ≥ 3);
   2) раскладка — «Планировки» карточками, «Сроки» во всю ширину, первый экран без перекрытий кнопкой связи;
   3) движение — появление секций при прокрутке. Скрывающие классы ставит только f-project.js (html.pfp-m),
      без JS всё видно сразу; при prefers-reduced-motion, ?noanim=1 и ?board= класс не ставится.
   Всё ограничено страницами проекта: html:has(.ProjectDetail-Intro) — так же и без JS. */

/* ── 1. Первый экран ─────────────────────────────────────────────────────────── */
/* у них высота 100vh под шапкой (69/81 px): кнопки уходили за нижний край, на телефоне их накрывала
   кнопка «Связаться | BestHome AI». Экран — ровно видимая часть под шапкой, кнопки выше кнопки связи. */
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons { height: calc(100svh - 69px) !important; min-height: 520px !important; }
@media (min-width: 768px) { html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons { height: calc(100svh - 81px) !important; min-height: 600px !important; } }
@media (max-width: 767px) { html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons > .z-10 > .absolute { bottom: 92px !important; } }
/* Правка владельца 16.11 (№3): кнопка «Запросить предложение» стояла внизу и правее центра (у них не работает
   сдвиг md:-translate-x-1/2 — левый край кнопки ровно на середине экрана). Ставим её прямо под название проекта,
   по центру: название и кнопка — одна группа посередине первого экрана. И на компьютере, и на телефоне (мобильный этап,
   16.11: на телефоне кнопка стояла у нижнего края, далеко от названия). */
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons > .z-10 { justify-content: center; }
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons > .z-10 > .flex-1 { flex: none; }
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons > .z-10 > .absolute { position: static !important; left: auto !important; bottom: auto !important; translate: none !important; align-self: center; width: auto !important; margin-top: 36px; }
/* пустой второй ряд кнопок с отступом 12 px сдвигал кнопку на 6 px влево от центра */
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons > .z-10 > .absolute > div > div:not(:has(*)) { display: none; }
@media (max-width: 767px) { html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons > .z-10 > .absolute { margin-top: 28px; } }
/* хлебные крошки поверх фото: были серые 12 px (3.4:1) */
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons .Common-Breadcrumb,
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons .Common-Breadcrumb a { color: rgba(255, 255, 255, .92) !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons .Common-Breadcrumb a { display: inline-flex; align-items: center; min-height: 40px; }
/* главная кнопка: белое на шампани 2.6:1 → тёмное на шампани 6.9:1 (цвет кнопки тот же) */
html.pl-f:has(.ProjectDetail-Intro) main .custom-btn.btn-primary { color: #151416 !important; }
html.pl-f:has(.ProjectDetail-Intro) main .custom-btn.btn-primary:hover { background: #c9b99a !important; border-color: #c9b99a !important; color: #151416 !important; }

/* ── 2. Читаемость в их блоках ─────────────────────────────────────────────── */
html.pl-f .ProjectDetail-Intro [class*="text-[#8b8586]"], html.pl-f .ProjectDetail-Form [class*="text-[#8b8586]"],
html.pl-f .ProjectDetail-Form [class*="text-[#8b8586]"] a { color: #625d5e !important; }
html.pl-f .ProjectDetail-Intro [class*="bg-[#796655]"] { color: #fff !important; }
html.pl-f:has(.ProjectDetail-Intro) .Common-Experiences, html.pl-f:has(.ProjectDetail-Intro) .Common-Experiences * { color: #fff; }
html.pl-f .plx-askbar .plx-lead { color: #fff; }
html.pl-f .plx-tpoints span { color: #5a5556; }
html.pl-f .ProjectDetail-PrivilegedLife .stat-number { font-variant-numeric: tabular-nums; }
/* Подвал на страницах проекта: белый с прозрачностью на коричневом давал 2.2–4.1:1 */
html.pl-f:is(:has(.ProjectDetail-Intro), :has(.BestHomePlusDetail-Content), .pfp-plus) .Footer :is(a, p, span, li, div) { color: #fff !important; }

/* «Инфраструктура» (удобства историями, dubai.js): заголовок карточки был #222 на #151416 (1.15:1),
   текст — серый; номер — бронза на чёрном */
html.pl-f .plx-living .plx-story-text h3 { color: #f8f7f4 !important; }
html.pl-f .plx-living .plx-story-text p { color: rgba(248, 247, 244, .8); }
html.pl-f .plx-living .plx-idx { color: #c9b99a; }
html.pl-f .plx-living .plx-story { padding: 20px 0 36px; }
@media (min-width: 960px) { html.pl-f .plx-living .plx-story { padding: 40px 0; } }

/* ── 3. Раскладка их блоков ───────────────────────────────────────────────── */
/* длинные русские слова в заголовке «о проекте» (48 px) вылезали за экран: страница ехала вбок (city-6, saga-41…) */
@media (max-width: 767px) {
  html.pl-f .ProjectDetail-Intro .intro-title, html.pl-f .ProjectDetail-PrivilegedLife .privileged-title,
  html.pl-f .ProjectDetail-Location .location-title, html.pl-f .ProjectDetail-Gallery .gallery-title { font-size: clamp(32px, 11.5vw, 48px) !important; overflow-wrap: break-word; }
  html.pl-f .ProjectDetail-Location [class*="w-[355px]"], html.pl-f .ProjectDetail-Location [class*="w-[276px]"] { width: 100% !important; max-width: 100%; }
}
/* «Привилегированная жизнь»: цифры одной строкой (на телефоне было «две + одна по центру») */
html.pl-f .ProjectDetail-PrivilegedLife .stat-card { width: auto !important; min-width: 0; }
html.pl-f .ProjectDetail-PrivilegedLife .flex-wrap:has(> .flex > .stat-card) { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px; width: 100%; max-width: 640px; }
html.pl-f .ProjectDetail-PrivilegedLife .flex-wrap:has(> .flex > .stat-card) > .flex { display: contents; }
@media (max-width: 767px) {
  html.pl-f .ProjectDetail-PrivilegedLife .stat-card { padding: 18px 8px !important; height: auto !important; min-height: 128px; }
  html.pl-f .ProjectDetail-PrivilegedLife .stat-card > span:first-child { font-size: 12px !important; line-height: 1.35 !important; }
  html.pl-f .ProjectDetail-PrivilegedLife .stat-number { font-size: 42px !important; }
}
/* расстояния дублировались: тот же список стоит ниже крупно в «Связи с городом» */
html.pl-f .ProjectDetail-Location:has(+ .pf-connect) div:has(> h3 + div > div.justify-between) { display: none; }
/* цели нажатия ≥ 44 px: вкладки галереи, стрелки, «Перейти к карте», «Онлайн-встреча» */
html.pl-f .ProjectDetail-Gallery .gallery-tab { padding: 8px 0; min-height: 44px; }
html.pl-f .ProjectDetail-Gallery .gallery-prev, html.pl-f .ProjectDetail-Gallery .gallery-next { width: 44px !important; height: 44px !important; }
html.pl-f .ProjectDetail-Location .btn-line { display: inline-flex; align-items: center; min-height: 44px; }
/* «Онлайн-встреча»: ссылка 27 px высотой — добавляем поле нажатия, подчёркивание остаётся под текстом */
html.pl-f:is(:has(.ProjectDetail-Intro), .pfp-plus) .Common-Experiences a.border-b { padding-top: 13px !important; padding-bottom: 13px !important; border-bottom: 0 !important; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* вкладки галереи на телефоне: мягкий край справа — видно, что их можно листать */
@media (max-width: 767px) { html.pl-f .ProjectDetail-Gallery .gallery-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 48px !important; } }

/* ── 4. Липкая навигация по странице ─────────────────────────────────────── */
html.pl-f .plx-pnav { transition: box-shadow .3s; }
html.pl-f .plx-pnav.is-stuck { box-shadow: 0 10px 30px -18px rgba(21, 20, 22, .45); }
html.pl-f .plx-pnav a { color: #5a5556; display: inline-flex; align-items: center; min-height: 52px; padding: 0; position: relative; border-bottom: 0; }
html.pl-f .plx-pnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #151416; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
html.pl-f .plx-pnav a:hover::after, html.pl-f .plx-pnav a.is-on::after { transform: scaleX(1); }
html.pl-f .plx-pnav a.is-on { color: #151416; }
html.pl-f .plx-pnav .pfp-prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: #c9b99a; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }
@media (max-width: 959px) {
  html.pl-f .plx-pnav .plx-wrap { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent); scroll-padding: 0 40px; }
  html.pl-f .plx-pnav .custom-btn { display: none; } /* на телефоне цена — в кнопке связи; кнопка в конце ленты была за краем */
}

/* ── 5. Ключевые факты под первым экраном ─────────────────────────────────── */
html.pl-f .plx-keys { background: #151416; }
html.pl-f .plx-key span { color: #c9b99a; }
html.pl-f .plx-key b { font-variant-numeric: tabular-nums; text-wrap: balance; }

/* ── 6. «Планировки» карточками (project.js, вариант F) ─────────────────── */
html.pl-f .plx-units--cards { background: #fff; }
html.pl-f .plx-units--cards .plx-head { margin-bottom: 28px; }
.plx-umeta { display: flex; flex-wrap: wrap; margin: 0 0 28px; border-top: 1px solid #e4dfd5; border-bottom: 1px solid #e4dfd5; }
.plx-umeta > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 28px 16px 0; }
.plx-umeta > div + div { padding-left: 28px; border-left: 1px solid #e4dfd5; }
.plx-umeta span { font: 500 11px/1.4 Geist, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #625d5e; }
.plx-umeta b { font: 450 22px/1.2 var(--bh-font-display); color: #151416; font-variant-numeric: tabular-nums; }
.plx-ucards { display: grid; gap: 12px; }
.plx-ucard { position: relative; display: flex; flex-direction: column; background: #f8f7f4; border: 1px solid #ebe7de; padding: 22px 20px 0; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, border-color .3s; }
.plx-ucard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plx-ucard-top b { font: 450 clamp(44px, 12vw, 60px)/.95 var(--bh-font-display); color: #151416; letter-spacing: -.02em; }
.plx-uglyph { flex: none; width: 64px; height: 50px; fill: none; stroke: #907b66; stroke-width: 1.4; }
.plx-uglyph .g2 { stroke: #cdbfa6; stroke-dasharray: 3 3; }
.plx-ucard-q { margin: 14px 0 0 !important; min-height: 1.4em; font: 500 11px/1.4 Geist, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: #6f5d4b; }
.plx-ucard-rooms { margin: 4px 0 0 !important; font: 400 15px/1.5 Geist, sans-serif; color: #4b4a4e; }
.plx-ucard-area { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px solid #e4dfd5; }
.plx-ucard-area + .plx-ucard-area { margin-top: 0 !important; padding-top: 8px; border-top: 0; }
.plx-ucard-area span { font: 500 11px/1.4 Geist, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #625d5e; }
.plx-ucard-area b { font: 450 20px/1.2 var(--bh-font-display); color: #151416; text-align: right; font-variant-numeric: tabular-nums; }
/* кнопка прижата к низу карточки — у всех карточек ряда на одной линии */
.plx-ucard-btn { margin: auto -20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; border: 0; border-top: 1px solid #e4dfd5; background: transparent; color: #151416; font: 500 12px/1.3 Geist, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; text-align: left; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .35s; }
.plx-ucard-area + .plx-ucard-btn, .plx-ucard-rooms + .plx-ucard-btn { margin-top: auto; }
.plx-ucard > p:last-of-type { margin-bottom: 20px !important; }
.plx-ucard-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #151416; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.plx-ucard-btn i { flex: none; position: relative; width: 34px; height: 34px; border: 1px solid #b9ae98; border-radius: 50%; transition: border-color .35s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.plx-ucard-btn i::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: currentColor; }
.plx-ucard-btn i::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.plx-ucard-btn:hover, .plx-ucard-btn:focus-visible { color: #f8f7f4; outline: none; }
.plx-ucard-btn:hover::before, .plx-ucard-btn:focus-visible::before { transform: scaleY(1); }
.plx-ucard-btn:hover i, .plx-ucard-btn:focus-visible i { border-color: rgba(248, 247, 244, .5); transform: translateX(4px); }
.plx-ucard-btn:active::before { transform: scaleY(1); } .plx-ucard-btn:active { color: #f8f7f4; }
@media (hover: hover) { .plx-ucard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(21, 20, 22, .45); border-color: #dcd5c7; } }
@media (min-width: 640px) { .plx-ucards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .plx-ucards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .plx-ucards[data-n="1"] { grid-template-columns: minmax(0, 360px); }
  .plx-ucards[data-n="3"], .plx-ucards[data-n="5"], .plx-ucards[data-n="6"], .plx-ucards[data-n="9"] { grid-template-columns: repeat(3, 1fr); }
  .plx-ucard { padding: 28px 26px 0; min-height: 264px; } .plx-ucard-btn { margin-left: -26px; margin-right: -26px; padding: 0 26px; }
  .plx-ucard-top b { font-size: 64px; }
}
/* телефон: сводка — короткой таблицей «подпись — значение», пустая подпись типа не держит место */
@media (max-width: 639px) {
  .plx-umeta { display: block; border-bottom: 0; }
  .plx-umeta > div, .plx-umeta > div + div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-left: 0; border-bottom: 1px solid #e4dfd5; }
  .plx-umeta b { font-size: 19px; text-align: right; }
  .plx-ucard-q.is-empty { display: none; }
}

/* ── 7. «Сроки»: без условий оплаты шкала во всю ширину ─────────────────── */
@media (min-width: 960px) { html.pl-f .plx-terms--solo .plx-terms-grid { grid-template-columns: 1fr; } }

/* ── 8. «Другие дома в продаже»: на телефоне — лента, листается пальцем (было три экрана фото подряд) ── */
@media (max-width: 959px) {
  html.pl-f .plx-more-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
  html.pl-f .plx-more-grid::-webkit-scrollbar { display: none; }
  html.pl-f .plx-mcard { flex: 0 0 80%; scroll-snap-align: start; }
  html.pl-f .plx-mcard .plx-shot { aspect-ratio: 4 / 4.4; }
}
html.pl-f .plx-mcard .plx-shot { overflow: hidden; }
html.pl-f .plx-mcard .plx-shot img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { html.pl-f .plx-mcard:hover .plx-shot img { transform: scale(1.05); } }

/* ── 9. Отклик на нажатие (телефон) и наведение ─────────────────────────── */
html.pl-f:has(.ProjectDetail-Intro) main :is(.custom-btn, .plx-askq button, .plx-pfaq summary, .plx-mcard, .gallery-tab, .gallery-item, .plx-ucard-btn) { -webkit-tap-highlight-color: transparent; }
html.pl-f:has(.ProjectDetail-Intro) main :is(.custom-btn, .plx-askq button, .plx-mcard, .gallery-item):active { transform: scale(.98); transition: transform .12s; }
html.pl-f .plx-pfaq summary:active { background: #f3f1ec; }
html.pl-f .plx-pfaq details[open] p { animation: pfp-fade .5s cubic-bezier(.2, .7, .2, 1) both; }
@media (hover: hover) { html.pl-f .ProjectDetail-Gallery .gallery-item picture img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); } html.pl-f .ProjectDetail-Gallery .gallery-item:hover picture img { transform: scale(1.04); } }

/* ── 10. Появление (только при html.pfp-m — его ставит f-project.js) ───────── */
@keyframes pfp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pfp-hero-img { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes pfp-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
html.pfp-m .Common-HeroFullScreenWithButtons picture img { animation: pfp-hero-img 2.6s cubic-bezier(.2, .7, .2, 1) both; }
html.pfp-m .Common-HeroFullScreenWithButtons .hero-title { animation: pfp-rise 1.1s .15s cubic-bezier(.2, .7, .2, 1) both; }
html.pfp-m .Common-HeroFullScreenWithButtons > .z-10 > .absolute { animation: pfp-rise 1s .45s cubic-bezier(.2, .7, .2, 1) both; }
html.pfp-m .plx-keys .plx-key { animation: pfp-fade .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.55s + var(--i, 0) * .08s); }

html.pfp-m [data-pfp] { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), clip-path 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
html.pfp-m [data-pfp="up"]:not(.is-in) { opacity: 0; transform: translateY(32px); }
html.pfp-m [data-pfp="fade"]:not(.is-in) { opacity: 0; }
/* фото: «окно» раскрывается из середины, на компьютере само фото ещё и отъезжает */
html.pfp-m [data-pfp="pic"]:not(.is-in) { clip-path: inset(14% 10% 14% 10%); }
html.pfp-m [data-pfp="pic"].is-in { clip-path: inset(0 0 0 0); }
@media (min-width: 960px) {
  html.pfp-m [data-pfp="pic"] img { transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  html.pfp-m [data-pfp="pic"]:not(.is-in) img { transform: scale(1.14); }
}
/* линии: шкала сроков, разделители */
html.pfp-m [data-pfp="line"] { transform-origin: 0 50%; }
html.pfp-m [data-pfp="line"]:not(.is-in) { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  html.pfp-m [data-pfp], html.pfp-m [data-pfp] img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  html.pfp-m .Common-HeroFullScreenWithButtons *, html.pfp-m .plx-keys .plx-key { animation: none !important; }
  html.pl-f .plx-pfaq details[open] p { animation: none; }
}

/* ── 11. Страницы BestHome Plus (html.pfp-plus ставит f-project.js; список домов — ещё и по :has) ── */
/* первый экран: белый текст 14 px поверх светлого неба и бассейна не читался — затемнение снизу и тень у текста */
:is(html.pl-f.pfp-plus, html.pl-f:has(.BestHomePlusDetail-Content)) .Common-HeroFullScreen .bg-black\/40 { background: linear-gradient(180deg, rgba(21, 20, 22, .35) 0%, rgba(21, 20, 22, .3) 40%, rgba(21, 20, 22, .72) 100%) !important; }
:is(html.pl-f.pfp-plus, html.pl-f:has(.BestHomePlusDetail-Content)) .Common-HeroFullScreen .hero-description { color: #fff !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
:is(html.pl-f.pfp-plus, html.pl-f:has(.BestHomePlusDetail-Content)) .Common-HeroFullScreen .Common-Breadcrumb,
:is(html.pl-f.pfp-plus, html.pl-f:has(.BestHomePlusDetail-Content)) .Common-HeroFullScreen .Common-Breadcrumb a { color: rgba(255, 255, 255, .92) !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
html.pl-f.pfp-plus .Common-Experiences, html.pl-f.pfp-plus .Common-Experiences *, html.pl-f:has(.BestHomePlusDetail-Content) .Common-Experiences * { color: #fff; }
/* полосы Living на странице сервиса: на телефоне название обрезалось на полуслове — переносим в две строки */
@media (max-width: 959px) {
  html.pl-f.pfp-plus .plx-strip .plx-strip-v { white-space: normal; right: 16px; font-size: 19px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.pl-f.pfp-plus .plx-strip:not(.is-on) { min-height: 84px; }
}
/* список домов в программе: кнопки «Связаться / Подробнее» на одной линии во всём ряду */
html.pl-f .BestHomePlusDetail-Content .project-card { height: 100%; }
html.pl-f .BestHomePlusDetail-Content .project-card .content-container { flex: 1; }
html.pl-f .BestHomePlusDetail-Content .project-card .content-container > div { flex: 1; }
html.pl-f .BestHomePlusDetail-Content .project-card .buttons-container { margin-top: auto; }
html.pl-f .BestHomePlusDetail-Content .project-card [class*="w-[278px]"] { width: auto !important; }
html.pl-f .BestHomePlusDetail-Content .btn-360 span { color: #6f5d4b !important; }
html.pl-f .BestHomePlusDetail-Content .btn-360 { min-height: 40px; display: inline-flex; align-items: center; }
html.pl-f .BestHomePlusDetail-Content .btn-line { display: inline-flex; align-items: center; min-height: 44px; }
html.pl-f .BestHomePlusDetail-Content .tag { color: #fff !important; }
html.pl-f .BestHomePlusDetail-Content .image-container { overflow: hidden; }
html.pl-f .BestHomePlusDetail-Content .image-container img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { html.pl-f .BestHomePlusDetail-Content .project-card:hover .image-container img { transform: scale(1.04); } }
/* телефон: 41 дом по фото 380 px — лента в 18 тысяч пикселей; фото ниже (4:3), страница вдвое короче */
@media (max-width: 639px) { html.pl-f .BestHomePlusDetail-Content .project-card .image-container { height: auto !important; aspect-ratio: 4 / 3; } html.pl-f .BestHomePlusDetail-Content .projects-grid { row-gap: 40px !important; } }

/* «Инфраструктура» из одних подписей (класс ставит f-project.js): на компьютере — ряд карточек */
@media (min-width: 960px) {
  html.pl-f .plx-living.pfp-soc-grid .plx-wrap { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 0 24px; align-items: start; }
  html.pl-f .plx-living.pfp-soc-grid .pf-soc-head { grid-column: 1 / -1; }
  html.pl-f .plx-living.pfp-soc-grid .plx-story { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 0 0 32px; }
  html.pl-f .plx-living.pfp-soc-grid .plx-story .plx-shot { order: 0; aspect-ratio: 4 / 3; overflow: hidden; }
  html.pl-f .plx-living.pfp-soc-grid .plx-story-text { gap: 10px; }
  html.pl-f .plx-living.pfp-soc-grid .plx-story-text h3 { font-size: clamp(24px, 2vw, 32px); }
  html.pl-f .plx-living.pfp-soc-grid .plx-story--bare { grid-column: auto; margin: 0; }
}
@media (hover: hover) { html.pl-f .plx-living .plx-shot { overflow: hidden; } html.pl-f .plx-living .plx-shot img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); } html.pl-f .plx-living .plx-story:hover .plx-shot img { transform: scale(1.04); } }

/* «Привилегированная жизнь» без фото (у oba-19, vip-15 в данных нет картинки): белый текст стоял на светлом фоне */
html.pl-f .ProjectDetail-PrivilegedLife:not(:has(img)) { background: #151416; }

/* ── 12. Компьютер (≥ 960, особенно 1440–1920): раскладки без пустых полей ── */
@media (min-width: 960px) {
  /* строка фактов: длинное значение («1+1, 2+1, двухуровневые 2+1 и 4+1») получает двойную ширину, а не три строки */
  html.pl-f .plx-keys .plx-wrap { display: flex; }
  html.pl-f .plx-key { flex: 1 1 0; min-width: 0; }
  html.pl-f .plx-key.is-wide { flex-grow: 2; }
  /* «Локация»: название дома было зажато в 276 px и переносилось */
  html.pl-f .ProjectDetail-Location [class*="w-[355px]"], html.pl-f .ProjectDetail-Location [class*="w-[276px]"] { width: auto !important; max-width: 100%; }
  html.pl-f .ProjectDetail-Location [class*="text-14"] { font-size: 15px !important; }
  /* «Сроки» без оплаты: заголовок слева, шкала справа — вместо пустой половины экрана */
  html.pl-f .plx-terms--solo .plx-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: 96px; align-items: end; }
  html.pl-f .plx-terms--solo .plx-head { margin: 0 !important; }
  html.pl-f .plx-terms--solo .plx-timeline { padding-top: 0; }
  /* вопросы: заголовок слева и держится при прокрутке, ответы справа */
  html.pl-f .plx-pfaq .plx-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: 0 96px; align-items: start; }
  html.pl-f .plx-pfaq .plx-head { position: sticky; top: 170px; margin: 0 !important; }
  html.pl-f .plx-pfaq details:first-of-type { grid-column: 2; grid-row: 1; }
  html.pl-f .plx-pfaq details { grid-column: 2; }
  html.pl-f .plx-pfaq .plx-head { grid-column: 1; grid-row: 1 / span 10; }
  html.pl-f .plx-pfaq summary { padding: 26px 0; }
  html.pl-f .plx-pfaq summary:hover { color: #7a6753; }
  /* «Остались вопросы»: заголовок слева, кнопки-вопросы справа */
  html.pl-f .plx-askbar .plx-wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 16px 96px; align-items: end; }
  html.pl-f .plx-askbar .plx-h2 { grid-column: 1; } html.pl-f .plx-askbar .plx-lead { grid-column: 1; margin-top: 0 !important; }
  html.pl-f .plx-askbar .plx-askq { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; }
  html.pl-f .plx-askq button { padding: 14px 22px; }
  /* «Привилегированная жизнь»: цифры крупнее, карточки шире */
  html.pl-f .ProjectDetail-PrivilegedLife .stat-card { padding: 28px 20px !important; min-height: 170px; }
  html.pl-f .ProjectDetail-PrivilegedLife .stat-number { font-size: 64px !important; }
  html.pl-f .ProjectDetail-PrivilegedLife .flex-wrap:has(> .flex > .stat-card) { max-width: 720px; }
  html.pl-f .ProjectDetail-PrivilegedLife picture img { will-change: transform; }
}
@media (min-width: 1600px) {
  html.pl-f .plx-ucard { min-height: 290px; }
  html.pl-f .plx-key b { font-size: 30px; }
}
/* параллакс (f-project.js): фото не должно вылезать за свою секцию */
html.pl-f .ProjectDetail-PrivilegedLife > .absolute.inset-0, html.pl-f:has(.ProjectDetail-Intro) .Common-HeroFullScreenWithButtons > .absolute.inset-0 { overflow: hidden; }
/* галерея на большом экране: фото выше (было 400 px при ширине кадра 550+), вкладка — с линией под активной */
@media (min-width: 1440px) { html.pl-f .ProjectDetail-Gallery .gallery-item > div:first-child { height: clamp(400px, 30vw, 600px) !important; } }
html.pl-f .ProjectDetail-Gallery .gallery-tab { position: relative; }
html.pl-f .ProjectDetail-Gallery .gallery-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: #151416; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
html.pl-f .ProjectDetail-Gallery .gallery-tab.active::after, html.pl-f .ProjectDetail-Gallery .gallery-tab:hover::after { transform: scaleX(1); }
html.pl-f .ProjectDetail-Gallery .gallery-tab:hover { color: #151416; }
html.pl-f .ProjectDetail-Gallery .gallery-prev, html.pl-f .ProjectDetail-Gallery .gallery-next { transition: background-color .25s, border-color .25s; }
@media (hover: hover) { html.pl-f .ProjectDetail-Gallery .gallery-prev:hover, html.pl-f .ProjectDetail-Gallery .gallery-next:hover { background: #151416; border-color: #151416; } html.pl-f .ProjectDetail-Gallery .gallery-prev:hover img, html.pl-f .ProjectDetail-Gallery .gallery-next:hover img, html.pl-f .ProjectDetail-Gallery .gallery-prev:hover svg, html.pl-f .ProjectDetail-Gallery .gallery-next:hover svg { filter: invert(1); } }

/* описание «О проекте» у них из Word: text-align: justify — на телефоне «дыры» между словами; везде по левому краю */
html.pl-f .ProjectDetail-Intro :is(p, span, div), html.pl-f:has(.ProjectDetail-Intro) main [style*="justify"] { text-align: left !important; }
html.pl-f .ProjectDetail-Intro div.justify-between > span:last-child { text-align: right !important; }

/* Цены и наличие из панели (14.11.2026): картинка планировки вместо схемы, «продано», PDF, цена «от» в карточке. */
.plx-ucard-plan { display: block; flex: 0 0 auto; width: 112px; height: 84px; background: #fff; border: 1px solid #e4dfd5; overflow: hidden; }
.plx-ucard-plan img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.plx-ucard-plan:hover img { transform: scale(1.05); }
.plx-ucard.is-sold { opacity: .62; }
.plx-ucard.is-sold .plx-ucard-area:last-of-type b { color: #8a4b3c; }
.plx-pdfrow { margin: 28px 0 0 !important; }
.plx-pnav .plx-pdf { margin-left: 12px; }
/* кнопка презентации (22.11.2026): тёмная «таблетка» со значком — раньше серая плашка сливалась с лентой навигации */
html.pl-f a.plx-pdf, html.pl-f .plx-pnav a.plx-pdf { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px;
  background: #222124; color: #f8f7f4 !important; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(21, 20, 22, .55); transition: background .25s, color .25s, transform .25s; white-space: nowrap; }
html.pl-f a.plx-pdf::after, html.pl-f .plx-pnav a.plx-pdf::after { display: none; }
html.pl-f a.plx-pdf svg { flex: none; color: #c9b99a; transition: color .25s; }
html.pl-f a.plx-pdf:hover { background: #aea089; color: #151416 !important; transform: translateY(-1px); }
html.pl-f a.plx-pdf:hover svg { color: #151416; }
html.pl-f .plx-pnav a.plx-pdf { min-height: 40px; padding: 0 18px; align-self: center; }
.plx-mprice { margin: 6px 0 0 !important; font: 500 12px/1.4 Geist, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #6f5d4b; }
