/* Видео в записи журнала — рамка iPhone на компьютере (как на сайте Икры) */
.pm-video { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; background: rgba(10, 18, 15, .72); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.post-media { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin: 28px 0 8px; }
.phone-video { margin: 0; width: 100%; position: sticky; top: 92px; }
.phone-body { position: relative; padding: 10px; border-radius: 52px; background: linear-gradient(150deg, #5a5d61, #1d1f21 30%, #111214 70%, #44474a); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), 0 0 0 1px #0b0c0d, 0 34px 70px -26px rgba(14, 25, 21, .7); }
.phone-body::before, .phone-body::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2d2f31; }
.phone-body::before { left: -3px; top: 21%; height: 11%; box-shadow: 0 -42px 0 -4px #2d2f31, 0 64px 0 0 #2d2f31; }
.phone-body::after { right: -3px; top: 27%; height: 15%; }
.phone-screen { position: relative; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 42px; background: #1b1d20; }
.phone-screen video { width: 100%; height: 100%; display: block; object-fit: cover; }
.phone-island { position: absolute; z-index: 2; left: 50%; top: 11px; transform: translateX(-50%); width: 33%; height: 27px; border-radius: 16px; background: #000; pointer-events: none; }
.phone-island::after { content: ""; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2c3a4d, #0a0d12 70%); }
.phone-tap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: none; cursor: pointer; padding: 0; z-index: 1; }
.phone-tap:focus-visible, .phone-sound:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -4px; }
.phone-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.phone-video.playing .phone-play { display: none; }
.phone-sound { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .58); backdrop-filter: blur(8px); border-radius: 999px; padding: 10px 16px; font: 700 14px var(--sans); white-space: nowrap; }
.phone-sound[hidden] { display: none; }
.phone-sound .ph-on { display: none; }
.phone-video.unmuted .phone-sound { left: auto; right: 16px; transform: none; padding: 10px; }
.phone-video.unmuted .phone-sound .phone-sound-text { display: none; }
.phone-video.unmuted .phone-sound .ph-on { display: inline; }
.phone-video.unmuted .phone-sound .ph-off { display: none; }
.phone-video.nudge:not(.unmuted) .phone-sound { animation: nudge 1.6s ease-in-out 2; }
@keyframes nudge { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }
@media (max-width: 860px) {
  .post-media { grid-template-columns: 1fr; }
  /* На телефоне рамка лишняя — человек и так смотрит с телефона */
  .phone-video { position: relative; top: 0; width: min(100%, calc(80svh * 9 / 16)); margin: 0 auto; }
  .phone-body { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .phone-body::before, .phone-body::after, .phone-island { display: none; }
  .phone-screen { aspect-ratio: 9 / 16; border-radius: 18px; background: #000; }
  .phone-screen video { object-fit: contain; }
}

/* Видео-тур на странице квартиры */
.apt-video { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 44px); align-items: center; }
.apt-video .phone-video { position: relative; top: 0; }
@media (max-width: 860px) { .apt-video { grid-template-columns: 1fr; } }

/* Телефон на странице квартиры */
.apt-head { align-items: center; }
.apt-call { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .2s; }
.apt-call:hover { border-color: var(--green); color: var(--ink); }
.apt-call-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.apt-call-ic .icon { width: 19px; height: 19px; stroke-width: 1.8; }
.apt-call span { display: grid; font-weight: 700; font-size: 17px; line-height: 1.2; }
.apt-call small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.host { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; margin-top: 24px; padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.host-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--gold-soft); display: grid; place-items: center; font: 600 26px var(--serif); }
.host b { display: block; font-size: 16.5px; }
.host span:not(.host-mark) { color: var(--muted); font-size: 14px; }
.host-btns { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.host-btns .btn { min-height: 46px; }
.book-contact { flex-wrap: wrap; }
.book-contact a { white-space: nowrap; }
.book-contact a:first-child { flex-basis: 100%; font-size: 15.5px; font-weight: 700; }
.mbar-call { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.mbar-call .icon { width: 20px; height: 20px; }
@media (max-width: 560px) { .apt-call { width: 100%; justify-content: flex-start; } }

/* Карта: сначала картинка Яндекса с меткой, по кнопке — живой виджет */
.map { position: relative; }
.map-static, .map-static img { display: block; width: 100%; height: 100%; }
.map-static img { object-fit: cover; }
.map-live-btn { position: absolute; left: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; border: 0; cursor: pointer; background: var(--paper); color: var(--ink); font: 600 14px var(--sans); padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.map-live-btn:hover { background: #fff; }
.map-live-btn .icon { width: 18px; height: 18px; color: var(--green); }

@media (max-width: 1020px) {
  .mbar > div:first-child { min-width: 0; }
  .mbar b { white-space: nowrap; }
  .mbar [data-mbar-note] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) {
  .mbar .btn { padding: 0 18px; }
  .mbar > div:first-child > .muted:not([data-mbar-note]) { display: none; }
}

/* Бронь: якорь под закреплённой шапкой, подсветка при переходе, подсказка про одни сутки */
#bron { scroll-margin-top: 92px; }
.bron-flash .search, .bron-flash.book, .bron-flash .book { animation: bronflash 1.5s ease; }
@keyframes bronflash { 0%, 100% { box-shadow: var(--shadow); } 35% { box-shadow: 0 0 0 4px var(--gold-2), var(--shadow-lg); } }
.one-night { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.one-night .icon { width: 18px; height: 18px; color: var(--gold); margin-top: 1px; }
.one-night a { font-weight: 700; white-space: nowrap; }
.one-night.in-book { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13.5px; }
