/* prem-house planning catalog CSS — ph-plg v64 */
html body .ph-plg {
  position: relative; width: 100%; background: #FFFFFF;
  font-family: 'Manrope', Arial, sans-serif; color: #1a1a1a;
  padding: 14px 0 70px; overflow: hidden; box-sizing: border-box;
  height: auto !important; min-height: 0 !important;
}
html body .ph-plg__waves {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url('https://static.tildacdn.com/tild6535-6361-4732-b963-376432373362/6-.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.35;
  mix-blend-mode: multiply;
}
html body .ph-plg__waves svg { display: none; }
html body .ph-plg__inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1240px !important; margin: 0 auto !important; padding: 0 20px !important;
  box-sizing: border-box;
}
@media (min-width: 1500px) { html body .ph-plg__inner { max-width: 1340px !important; } }
@media (min-width: 1800px) { html body .ph-plg__inner { max-width: 1440px !important; } }
@media (min-width: 2200px) { html body .ph-plg__inner { max-width: 1640px !important; } }

html body .ph-plg__count { display: none; }

html body .ph-plg__chips-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  max-width: none;
  padding: 0 74px;
  z-index: 30; /* чтобы попап метражей был поверх карточки плана */
}
/* Строка чипов выровнена по КАРТОЧКЕ ПЛАНА (левая колонка): справа резервируем место
   под карточку данных (340px) + gap (20px) = 360px. Стрелки садятся на края плана. */
@media (min-width: 992px) {
  html body .ph-plg__chips-wrap { margin-left: 0; margin-right: 360px; }
}
html body .ph-plg__chip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 50px; border-radius: 10px; border: 0;
  background: rgba(26, 26, 26, 0.08); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  padding: 0; z-index: 4;
}
html body .ph-plg__chip-arrow:hover:not(:disabled) { background: rgba(26, 26, 26, 0.14); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
html body .ph-plg__chip-arrow:active { transform: translateY(-50%) scale(0.95); }
html body .ph-plg__chip-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
html body .ph-plg__chip-arrow svg { width: 14px; height: 14px; stroke: #1a1a1a; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html body .ph-plg__chip-arrow--left { left: 40px; }
html body .ph-plg__chip-arrow--right { right: 40px; }

/* Двойные стрелки — открывают попап быстрого выбора метража */
html body .ph-plg__chip-jump {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 50px; border-radius: 10px; border: 0;
  background: rgba(26, 26, 26, 0.08); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  padding: 0; z-index: 5;
}
html body .ph-plg__chip-jump:hover { background: rgba(240, 79, 47, 0.14); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
html body .ph-plg__chip-jump:active { transform: translateY(-50%) scale(0.95); }
html body .ph-plg__chip-jump svg { width: 17px; height: 17px; stroke: #1a1a1a; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html body .ph-plg__chip-jump.is-active { background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%); }
html body .ph-plg__chip-jump.is-active svg { stroke: #FFFFFF; }
html body .ph-plg__chip-jump--left { left: 0; }
html body .ph-plg__chip-jump--right { right: 0; }

/* Попап выбора метража — узкий вертикальный дропдаун под стрелкой */
html body .ph-plg__area-pop {
  position: absolute; top: calc(100% + 6px);
  width: 158px; max-height: 300px; overflow-y: auto;
  background: #FFFFFF; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(36,45,51,0.22), 0 2px 8px rgba(36,45,51,0.10);
  padding: 10px; z-index: 70;
}
html body .ph-plg__area-pop[hidden] { display: none; }
html body .ph-plg__area-pop--left { left: 0; right: auto; }
html body .ph-plg__area-pop--right { right: 0; left: auto; }
html body .ph-plg__area-pop-title { font-size: 11px; font-weight: 700; color: rgba(26,26,26,0.5); text-transform: uppercase; letter-spacing: .04em; margin: 2px 4px 8px; }
html body .ph-plg__area-pop-empty { font-size: 13px; color: rgba(26,26,26,0.5); padding: 6px 4px; text-align: center; }
html body .ph-plg__area-pop-grid { display: flex; flex-direction: column; gap: 6px; }
html body .ph-plg__area-opt {
  padding: 9px 8px; border: 1.5px solid rgba(26,26,26,0.14); border-radius: 9px;
  background: #FFFFFF; font-size: 13.5px; font-weight: 600; color: #1a1a1a; cursor: pointer;
  font-family: inherit; text-align: center; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
html body .ph-plg__area-opt:hover { border-color: #F58F32; color: #F04F2F; }
html body .ph-plg__area-opt.is-active { background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%); color: #FFFFFF; border-color: transparent; }

html body .ph-plg__carousel { position: relative; overflow: hidden; width: 100%; max-width: 768px; }
html body .ph-plg__carousel-track {
  display: flex; gap: 10px;
  justify-content: center;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
html body .ph-plg__carousel-track.is-scrollable { justify-content: flex-start; }
html body .ph-plg__chip {
  flex: 0 0 140px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 8px;
  border: 1.5px solid rgba(26,26,26,0.14); border-radius: 12px;
  background: #FFFFFF; font-size: 14.5px; font-weight: 600; color: #1a1a1a;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
html body .ph-plg__chip:hover { border-color: #F58F32; color: #F58F32; }
html body .ph-plg__chip.is-active {
  background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%);
  color: #ffffff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(240, 79, 47, .28);
}
html body .ph-plg__chip.is-hidden { display: none !important; }

html body .ph-plg__empty {
  display: none; text-align: center; padding: 40px 20px;
  font-size: 15px; color: rgba(26,26,26,0.6);
}
html body .ph-plg.no-results .ph-plg__main { display: none; }
html body .ph-plg.no-results .ph-plg__empty { display: block; }

html body .ph-plg__main { position: relative; }
html body .ph-plg__side-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 90px; border-radius: 10px; border: 0;
  background: rgba(26, 26, 26, 0.08); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  z-index: 4; padding: 0;
}
html body .ph-plg__side-arrow:hover:not(:disabled) { background: rgba(26, 26, 26, 0.14); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
html body .ph-plg__side-arrow:active { transform: translateY(-50%) scale(0.95); }
html body .ph-plg__side-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
html body .ph-plg__side-arrow svg { width: 16px; height: 16px; stroke: #1a1a1a; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html body .ph-plg__side-arrow--left { left: -50px; }
html body .ph-plg__side-arrow--right { right: -50px; }

html body .ph-plg__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
html body .ph-plg__grid > * { height: 100%; }
html body .ph-plg__plan-card {
  position: relative; border-radius: 24px; padding: 12px; background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(36, 45, 51, .08), 0 2px 6px rgba(36, 45, 51, .04);
  display: flex; flex-direction: column;
  min-height: 580px;
  min-width: 0;
  box-sizing: border-box;
}
html body .ph-plg__plan-wrap {
  position: relative; flex: 1; width: 100%; border-radius: 12px; overflow: hidden;
  background: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: zoom-in;
  min-height: 0;
  padding-top: 56px;
  box-sizing: border-box;
}
html body .ph-plg__plan-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: none; }
html body .ph-plg__plan-img.is-active { display: block; }
html body .ph-plg__plan-zoom {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 10px; border: 1.5px solid rgba(26,26,26,0.12); background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, border-color .2s ease; z-index: 2;
}
html body .ph-plg__plan-zoom:hover { background: #1a1a1a; border-color: #1a1a1a; }
html body .ph-plg__plan-zoom:hover svg { stroke: #FFFFFF; }
html body .ph-plg__plan-zoom svg { width: 18px; height: 18px; stroke: #1a1a1a; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }

html body .ph-plg__fav-btn {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 10px; border: 1.5px solid rgba(26,26,26,0.12); background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease; z-index: 2;
  padding: 0;
}
html body .ph-plg__fav-btn:hover { border-color: #F04F2F; }
html body .ph-plg__fav-btn svg { width: 18px; height: 18px; stroke: #1a1a1a; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill .2s ease, stroke .2s ease; }
html body .ph-plg__fav-btn.is-fav { border-color: #F04F2F; background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%); }
html body .ph-plg__fav-btn.is-fav svg { stroke: #FFFFFF; fill: #FFFFFF; }
html body .ph-plg__fav-btn:active { transform: scale(0.92); }

/* Кнопки «Отзеркалить» / «Гараж» поверх плана */
html body .ph-plg__pbtn {
  position: absolute; z-index: 3; display: none;
  align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 10px;
  border: 1.5px solid rgba(26,26,26,0.12);
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: #1a1a1a;
  line-height: 1; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
html body .ph-plg__pbtn.is-shown { display: inline-flex; }
html body .ph-plg__pbtn:hover { border-color: #F04F2F; }
html body .ph-plg__pbtn:active { transform: scale(0.96); }
html body .ph-plg__pbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html body .ph-plg__pbtn.is-active {
  background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%);
  border-color: transparent; color: #FFFFFF;
}
html body .ph-plg__pbtn--mirror {
  left: 14px; top: 14px;
  background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%);
  border-color: transparent; color: #FFFFFF;
}
html body .ph-plg__pbtn--mirror:hover { border-color: transparent; filter: brightness(1.06); }
html body .ph-plg__pbtn--mirror.is-active { box-shadow: 0 0 0 2px rgba(240,79,47,0.30); }
html body .ph-plg__pbtn--garage { top: 14px; right: 60px; }

html body .ph-plg__fav-fab {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px;
  border-radius: 50%; border: 0; padding: 0;
  background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%); cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(240, 79, 47, 0.4);
  z-index: 9990;
  transition: transform .15s ease, box-shadow .2s ease;
  animation: ph-plg-fab-in .4s ease;
}
@keyframes ph-plg-fab-in { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
html body .ph-plg__fav-fab.is-visible { display: flex; }
html body .ph-plg__fav-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(240, 79, 47, .5); }
html body .ph-plg__fav-fab svg { width: 24px; height: 24px; stroke: #FFFFFF; fill: #FFFFFF; stroke-width: 2; }
html body .ph-plg__fav-fab-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: #1a1a1a; color: #FFFFFF;
  border-radius: 11px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

html body .ph-plg__fav-panel {
  position: fixed; inset: 0; z-index: 9991;
  display: none; pointer-events: none;
}
html body .ph-plg__fav-panel.is-open { display: block; pointer-events: auto; }
html body .ph-plg__fav-bd {
  position: absolute; inset: 0; background: rgba(20,22,28,0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
html body .ph-plg__fav-panel.is-open .ph-plg__fav-bd { opacity: 1; }
html body .ph-plg__fav-win {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 480px;
  background: #FFFFFF; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
}
html body .ph-plg__fav-panel.is-open .ph-plg__fav-win { transform: translateX(0); }
html body .ph-plg__fav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 16px; flex-shrink: 0;
  border-bottom: 1px solid rgba(26,26,26,0.06);
}
html body .ph-plg__fav-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 0;
  letter-spacing: 0.04em; text-transform: uppercase;
}
html body .ph-plg__fav-close {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(26,26,26,0.06); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
html body .ph-plg__fav-close:hover { background: rgba(240,79,47,0.12); }
html body .ph-plg__fav-close svg { width: 16px; height: 16px; stroke: #1a1a1a; fill: none; stroke-width: 2.2; stroke-linecap: round; }
html body .ph-plg__fav-body { padding: 16px 28px 28px; overflow-y: auto; flex: 1; }
html body .ph-plg__fav-empty {
  padding: 60px 20px; text-align: center; color: rgba(26,26,26,0.55); font-size: 14px;
}
html body .ph-plg__fav-card {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 14px; padding: 14px;
  background: #FAFAFA; border-radius: 12px;
  margin-bottom: 12px; position: relative;
  border: 1px solid rgba(26,26,26,0.06);
}
html body .ph-plg__fav-img {
  width: 110px; height: 90px; border-radius: 8px;
  background: #FFFFFF; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
html body .ph-plg__fav-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
html body .ph-plg__fav-info { display: flex; flex-direction: column; min-width: 0; }
html body .ph-plg__fav-name {
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px; font-weight: 700; color: #1a1a1a;
  margin: 0 24px 4px 0; line-height: 1.2; cursor: pointer;
}
html body .ph-plg__fav-meta { font-size: 12px; color: rgba(26,26,26,0.6); margin-bottom: 10px; }
html body .ph-plg__fav-pdf {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 12px; align-self: flex-start;
  background: linear-gradient(90deg, #F04F2F 0%, #F58F32 100%);
  color: #FFFFFF; border: 0; border-radius: 8px;
  font-size: 12px; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
html body .ph-plg__fav-pdf:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 6px 14px rgba(240, 79, 47, .25); }
html body .ph-plg__fav-pdf svg { width: 12px; height: 12px; stroke: #FFFFFF; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html body .ph-plg__fav-pdf.is-loading { pointer-events: none; opacity: 0.75; }
html body .ph-plg__fav-pdf.is-loading svg { animation: ph-plg-spin 1.1s linear infinite; }
html body .ph-plg__fav-del {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(26,26,26,0.06); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
html body .ph-plg__fav-del:hover { background: rgba(240, 79, 47, 0.12); }
html body .ph-plg__fav-del svg { width: 12px; height: 12px; stroke: #1a1a1a; fill: none; stroke-width: 2.4; stroke-linecap: round; }
html body .ph-plg__floors {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; padding: 5px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border-radius: 999px; gap: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
html body .ph-plg__floors.is-hidden { display: none; }
html body .ph-plg__floor {
  border: 0; background: transparent; color: #1a1a1a; font-family: inherit;
  font-size: 13.5px; font-weight: 600; line-height: 1; padding: 8px 16px;
  border-radius: 999px; cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
html body .ph-plg__floor:hover:not(.is-active):not(:disabled) { color: #F58F32; }
html body .ph-plg__floor.is-active {
  background: linear-gradient(90deg, #F04F2F 0%, #F58F32 100%);
  color: #FFFFFF; box-shadow: 0 4px 12px rgba(240, 79, 47, .25);
}
html body .ph-plg__floor:disabled { opacity: 0.4; cursor: not-allowed; }

html body .ph-plg__data-card {
  position: relative; border-radius: 24px; padding: 20px; background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(36, 45, 51, .08), 0 2px 6px rgba(36, 45, 51, .04);
  display: flex; flex-direction: column;
  min-height: 580px;
  box-sizing: border-box;
}
html body .ph-plg__data-title {
  font-family: 'Times New Roman', Times, serif; font-weight: 700; font-size: 19px;
  line-height: 1.2; color: #1a1a1a; margin: 0 0 12px; padding-bottom: 10px;
  background: linear-gradient(90deg, #F04F2F 0%, #F58F32 100%);
  background-repeat: no-repeat; background-size: 56px 3px; background-position: 0 100%;
}
html body .ph-plg__data-name {
  background: transparent;
  padding: 4px 0 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(26,26,26,0.08);
}
html body .ph-plg__data-name-main {
  font-family: 'Times New Roman', Times, serif; font-weight: 700; font-size: 16px;
  color: #1a1a1a; display: block; margin-bottom: 4px;
}
html body .ph-plg__data-name-sub { display: none; }
html body .ph-plg__data-list {
  flex: 1; list-style: none; margin: 0 0 12px;
  padding: 0;
  overflow: visible;
}
html body .ph-plg__data-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px dashed rgba(26,26,26,0.1);
}
html body .ph-plg__data-row:last-child { border-bottom: 0; }
html body .ph-plg__data-row span:first-child { font-size: 13px; color: rgba(26,26,26,0.7); }
html body .ph-plg__data-row span:last-child { font-size: 13.5px; font-weight: 700; color: #1a1a1a; text-align: right; }
html body .ph-plg__data-group { display: none !important; }
html body .ph-plg__data-toggle { display: none !important; }
/* Все параметры всегда видны — toggle убран по просьбе заказчика */

html body .ph-plg__data-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
html body .ph-plg__btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 18px; background: linear-gradient(90deg, #F04F2F 0%, #F58F32 100%);
  color: #FFFFFF !important; border: 0; border-radius: 12px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 22px rgba(240, 79, 47, .28);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
  text-decoration: none; text-align: center;
}
html body .ph-plg__btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240, 79, 47, .36); filter: brightness(1.05); }
html body .ph-plg__btn-primary.is-loading { pointer-events: none; opacity: 0.75; transform: none; }
html body .ph-plg__btn-primary svg { width: 18px; height: 18px; stroke: #FFFFFF; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
html body .ph-plg__btn-primary.is-loading svg { animation: ph-plg-spin 1.1s linear infinite; }
@keyframes ph-plg-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
html body .ph-plg__btn-text { display: inline-flex; flex-direction: column; gap: 2px; align-items: center; line-height: 1.2; color: #FFFFFF !important; }
html body .ph-plg__btn-label { font-size: 14px; font-weight: 700; color: #FFFFFF !important; letter-spacing: 0.02em; }
html body .ph-plg__btn-meta { font-size: 11px; font-weight: 500; color: #FFFFFF !important; opacity: 0.85; letter-spacing: 0.04em; }
html body .ph-plg__btn-outline {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px;
  background: transparent; color: #1a1a1a; border: 1.5px solid rgba(26,26,26,0.14);
  border-radius: 12px; font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: border-color .2s ease, color .2s ease; text-decoration: none;
}
html body .ph-plg__btn-outline:hover { border-color: #F04F2F; color: #F04F2F; }

html body .ph-plg__lb { position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,10,0.92); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
html body .ph-plg__lb.is-open { display: flex; }
html body .ph-plg__lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); background: #FFFFFF; }
html body .ph-plg__lb-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
html body .ph-plg__lb-close:hover { background: rgba(255,255,255,0.22); }
html body .ph-plg__lb-close svg { width: 20px; height: 20px; stroke: #FFFFFF; fill: none; stroke-width: 2.4; stroke-linecap: round; }
body.ph-plg-lock { overflow: hidden !important; }

@media (max-width: 1350px) {
  html body .ph-plg__side-arrow { display: none !important; }
}

@media (max-width: 1199px) {
  html body .ph-plg__chips-wrap { transform: none; }
}

@media (max-width: 991px) {
  html body .ph-plg { padding: 12px 0 56px; }
  html body .ph-plg__chips-wrap { margin-bottom: 18px; max-width: 760px; padding: 0 30px; }
  html body .ph-plg__carousel { max-width: 700px; }
  html body .ph-plg__chip { flex-basis: 130px; padding: 10px 6px; }
  html body .ph-plg__chip-arrow { width: 26px; height: 44px; }
  /* Двойные стрелки — только десктоп; на планшете/мобиле одиночные у края */
  html body .ph-plg__chip-jump { display: none !important; }
  html body .ph-plg__chip-arrow--left { left: 0; }
  html body .ph-plg__chip-arrow--right { right: 0; }
  html body .ph-plg__pbtn--mirror { top: auto; bottom: 14px; }
  html body .ph-plg__grid { grid-template-columns: 1fr; gap: 14px; }
  /* На планшете/мобиле grid в одну колонку — plan-card и data-card идут друг под другом,
     поэтому фиксируем разумную высоту плана для удобного просмотра */
  html body .ph-plg__plan-card { min-height: 480px; padding: 10px; }
  html body .ph-plg__data-card { min-height: 0; padding: 18px; }
  /* Сердечко и тумблер этажей — вниз карточки плана; резерв места тоже снизу */
  html body .ph-plg__plan-wrap { padding-top: 12px; padding-bottom: 60px; }
  html body .ph-plg__floors { top: auto; bottom: 12px; }
  html body .ph-plg__fav-btn { top: auto; bottom: 14px; right: 12px; }
  html body .ph-plg__pbtn--garage { top: auto; bottom: 14px; right: 58px; }
}
@media (max-width: 700px) {
  html body .ph-plg { padding: 6px 0 40px; }
  /* Минимальные боковые поля — план занимает почти всю ширину экрана */
  html body .ph-plg__inner { padding: 0 2px !important; }
  html body .ph-plg__chips-wrap { margin-bottom: 10px; max-width: 360px; padding: 0 34px; }
  html body .ph-plg__carousel { max-width: 280px; }
  html body .ph-plg__carousel-track { gap: 8px; }
  html body .ph-plg__chip { flex-basis: 84px; padding: 10px 6px; font-size: 13.5px; border-radius: 10px; }
  html body .ph-plg__chip-arrow { width: 24px; height: 40px; border-radius: 8px; }
  /* План во всю ШИРИНУ экрана, минимум отступов; стабильная высота через aspect-ratio
     (без неё флекс-обёртка с overflow:hidden схлопывалась в Safari → план сжимался в полоску) */
  html body .ph-plg__plan-card { min-height: 0; padding: 2px; border-radius: 14px; }
  html body .ph-plg__plan-wrap { flex: none; aspect-ratio: 16 / 10; border-radius: 10px; padding-top: 4px; padding-bottom: 8px; }
  html body .ph-plg__plan-img { width: 100%; height: 100%; object-fit: contain; }
  /* Мобила: тумблер и сердечко компактнее, внизу */
  html body .ph-plg__fav-btn { top: auto; bottom: 12px; right: 10px; width: 32px; height: 32px; border-radius: 8px; }
  html body .ph-plg__fav-btn svg { width: 15px; height: 15px; }
  html body .ph-plg__pbtn { padding: 8px 10px; font-size: 12px; gap: 5px; border-radius: 9px; }
  html body .ph-plg__pbtn svg { width: 14px; height: 14px; }
  html body .ph-plg__pbtn--mirror { left: 10px; bottom: 12px; }
  html body .ph-plg__pbtn--garage { bottom: 12px; right: 46px; }
  html body .ph-plg__floors { top: auto; bottom: 12px; padding: 4px; gap: 3px; }
  html body .ph-plg__data-card { padding: 16px; border-radius: 18px; }
  html body .ph-plg__data-title { font-size: 18px; }
  html body .ph-plg__floor { padding: 7px 12px; font-size: 12.5px; }
  html body .ph-plg__btn-primary { padding: 11px 16px; }
  html body .ph-plg__btn-outline { padding: 10px 16px; font-size: 13px; }
  /* Лайтбокс просмотра плана — во весь экран телефона */
  html body .ph-plg__lb { padding: 8px; }
  html body .ph-plg__lb img { max-width: 100vw; max-height: 100dvh; border-radius: 4px; }
  html body .ph-plg__lb-close { top: 12px; right: 12px; width: 40px; height: 40px; background: rgba(255,255,255,0.2); }
}
@media (max-width: 420px) {
  html body .ph-plg__inner { padding: 0 2px !important; }
  html body .ph-plg__chips-wrap { max-width: 300px; padding: 0 32px; }
  html body .ph-plg__carousel { max-width: 220px; }
  html body .ph-plg__chip { flex-basis: 68px; padding: 9px 4px; font-size: 13px; }
  html body .ph-plg__plan-card { min-height: 0; padding: 2px; }
}

/* === Скрыть служебный блок формы Tilda === */
#rec2338204061 { display: none !important; }

/* === Попап «Получить файл» === */
html body .ph-plg__dl-modal { position: fixed; inset: 0; z-index: 9995; display: none; align-items: center; justify-content: center; padding: 24px; }
html body .ph-plg__dl-modal.is-open { display: flex; }
html body .ph-plg__dl-bd { position: absolute; inset: 0; background: rgba(20,22,28,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; animation: ph-plg-dl-fade .25s ease; }
@keyframes ph-plg-dl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ph-plg-dl-slide { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
html body .ph-plg__dl-win {
  position: relative;
  background: #F4F5F7;
  border-radius: 24px;
  width: 100%; max-width: 1080px;
  max-height: calc(100vh - 48px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: ph-plg-dl-slide .3s ease;
  overflow: hidden;
}
html body .ph-plg__dl-tag { position: absolute; top: 20px; left: 28px; font-size: 13px; color: rgba(26,26,26,0.45); z-index: 2; font-family: inherit; }
html body .ph-plg__dl-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #FFFFFF; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: background .2s ease; z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
html body .ph-plg__dl-close:hover { background: rgba(240, 79, 47, 0.08); }
html body .ph-plg__dl-close svg { width: 16px; height: 16px; stroke: #1a1a1a; fill: none; stroke-width: 2.4; stroke-linecap: round; }

html body .ph-plg__dl-left {
  background: #FFFFFF; padding: 70px 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
html body .ph-plg__dl-title { font-family: 'Times New Roman', Times, serif; font-weight: 700; font-size: 48px; line-height: 1.05; color: #1a1a1a; margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.005em; }
html body .ph-plg__dl-desc { font-size: 16px; line-height: 1.5; color: rgba(26,26,26,0.55); margin: 0 0 28px; }
html body .ph-plg__dl-form { display: flex; flex-direction: column; gap: 12px; }
html body .ph-plg__dl-input { width: 100%; padding: 14px 18px; border: 1.5px solid rgba(26,26,26,0.14); border-radius: 12px; background: #FFFFFF; font-size: 14.5px; font-weight: 500; color: #1a1a1a; font-family: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
html body .ph-plg__dl-input::placeholder { color: rgba(26,26,26,0.4); }
html body .ph-plg__dl-input:focus { outline: none; border-color: #F58F32; box-shadow: 0 0 0 3px rgba(245, 143, 50, 0.15); }
html body .ph-plg__dl-submit {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; padding: 18px 22px; margin-top: 4px;
  background: linear-gradient(90deg, #F04F2F 0%, #F58F32 100%);
  color: #FFFFFF; border: 0; border-radius: 16px;
  font-family: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.005em;
  cursor: pointer; box-shadow: 0 10px 28px rgba(240, 79, 47, 0.32);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
html body .ph-plg__dl-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(240, 79, 47, 0.4); filter: brightness(1.05); }
html body .ph-plg__dl-submit.is-loading { pointer-events: none; opacity: 0.8; }
html body .ph-plg__dl-submit svg { width: 24px; height: 24px; stroke: #FFFFFF; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
html body .ph-plg__dl-submit.is-loading svg { animation: ph-plg-spin 1.1s linear infinite; }
html body .ph-plg__dl-submit-text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
html body .ph-plg__dl-submit-meta { font-size: 12px; font-weight: 500; opacity: 0.85; margin-top: 2px; }
html body .ph-plg__dl-policy { text-align: center; font-size: 12.5px; color: rgba(26,26,26,0.45); margin: 12px 0 0; }
html body .ph-plg__dl-policy a { color: rgba(26,26,26,0.6); text-decoration: underline; }

html body .ph-plg__dl-right {
  background: #F4F5F7; padding: 36px;
  display: flex; align-items: center; justify-content: center;
}
html body .ph-plg__dl-preview {
  position: relative;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 18px;
  width: 100%; max-width: 420px;
  border: 4px solid transparent;
  background-image: linear-gradient(#FFFFFF, #FFFFFF), linear-gradient(135deg, #F04F2F 0%, #F58F32 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  min-height: 460px;
  font-family: 'Manrope', Arial, sans-serif;
}
html body .ph-plg__dl-doc { width: 100%; }
html body .ph-plg__dl-doc-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F04F2F;
  margin-bottom: 12px;
}
html body .ph-plg__dl-doc-logo { height: 28px; width: auto; flex-shrink: 0; }
html body .ph-plg__dl-doc-head-text { flex: 1; }
html body .ph-plg__dl-doc-head-title {
  font-size: 10px; letter-spacing: 1.2px;
  color: #F04F2F; font-weight: 700; line-height: 1.1;
}
html body .ph-plg__dl-doc-head-sub {
  font-size: 8.5px; color: #888; margin-top: 2px; line-height: 1.2;
}
html body .ph-plg__dl-doc-name {
  font-size: 12px; font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
html body .ph-plg__dl-doc-img-wrap {
  background: #F4F5F7; border-radius: 10px;
  padding: 8px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  height: 180px;
}
html body .ph-plg__dl-doc-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
html body .ph-plg__dl-doc-img-empty { font-size: 11px; color: rgba(26,26,26,0.35); }
html body .ph-plg__dl-doc-tbl {
  width: 100%; border-collapse: collapse;
  font-size: 10px;
}
html body .ph-plg__dl-doc-tbl th, html body .ph-plg__dl-doc-tbl td {
  padding: 6px 8px;
  border: 1px solid #E5E5E5;
  text-align: left;
  vertical-align: top;
  line-height: 1.3;
}
html body .ph-plg__dl-doc-tbl th {
  background: #F4F5F7;
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.3px;
}
html body .ph-plg__dl-doc-tbl td:first-child { width: 22px; text-align: center; color: #888; }
html body .ph-plg__dl-doc-tbl td:last-child { width: 90px; font-weight: 600; }

@media (max-width: 900px) {
  html body .ph-plg__dl-modal { padding: 16px; }
  html body .ph-plg__dl-win { grid-template-columns: 1fr; max-height: calc(100vh - 32px); overflow-y: auto; }
  html body .ph-plg__dl-left { padding: 56px 28px 28px; }
  html body .ph-plg__dl-title { font-size: 32px; }
  html body .ph-plg__dl-desc { font-size: 14.5px; margin-bottom: 22px; }
  html body .ph-plg__dl-right { padding: 24px; }
  html body .ph-plg__dl-preview { max-width: 320px; min-height: 240px; }
}

/* Мобильный закреплённый бар «Проектные данные» */
html body .ph-plg__sticky { display: none; }
@media (max-width: 700px) {
  html body .ph-plg__sticky {
    display: block;
    position: fixed; left: 0; right: 0; top: 0;
    z-index: 9001;
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
    padding: 10px 16px 12px;
    transform: translateY(-115%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  html body .ph-plg__sticky.is-visible { transform: translateY(0); }
  html body .ph-plg__sticky-head { margin-bottom: 7px; }
  html body .ph-plg__sticky-name { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
  html body .ph-plg__sticky-actions { display: flex; align-items: center; gap: 8px; }
  html body .ph-plg__sticky-dl {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 9px; cursor: pointer; font-family: inherit; white-space: nowrap;
    padding: 9px 16px; font-size: 13.5px; font-weight: 700; color: #FFFFFF;
    background: linear-gradient(135deg, #F04F2F 0%, #F58F32 100%);
  }
  html body .ph-plg__sticky-dl svg { width: 15px; height: 15px; stroke: #FFFFFF; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  html body .ph-plg__sticky-consult {
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
    border: 1.5px solid rgba(26,26,26,0.18); border-radius: 9px;
    padding: 9px 14px; font-size: 13px; font-weight: 600; color: #1a1a1a; text-decoration: none;
  }
  html body .ph-plg__sticky-toggle {
    margin-left: auto; flex: none; padding: 0;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(26,26,26,0.18); border-radius: 9px;
    background: #FFFFFF; cursor: pointer;
  }
  html body .ph-plg__sticky-toggle svg { width: 18px; height: 18px; stroke: #1a1a1a; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
  html body .ph-plg__sticky.is-open .ph-plg__sticky-toggle svg { transform: rotate(180deg); }
  html body .ph-plg__sticky-list { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .28s ease; }
  html body .ph-plg__sticky.is-open .ph-plg__sticky-list { max-height: 42vh; overflow-y: auto; margin-top: 9px; }
  html body .ph-plg__sticky-list .ph-plg__data-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(26,26,26,0.08); }
  html body .ph-plg__sticky-list .ph-plg__data-row span:first-child { font-size: 13px; color: rgba(26,26,26,0.7); }
  html body .ph-plg__sticky-list .ph-plg__data-row span:last-child { font-size: 13.5px; font-weight: 700; color: #1a1a1a; text-align: right; }
}
