/* Тестовая карточка объекта: дополняет ../home-test/style.css. Колонки как на живой карточке, фото ничем не перекрыто.
   Страница белая, блок с данными белый с мягкой тенью. */

.pd { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); padding-top: 8px; padding-bottom: clamp(48px, 6vw, 96px); }

/* Верхний блок */
.pd-stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: rgba(29, 29, 31, .66); font-size: 13px; }
.crumbs a { color: var(--ink); transition: opacity .2s; }
.crumbs a:hover { opacity: .6; }
.crumbs span { color: rgba(29, 29, 31, .66); }
.crumbs i { font-style: normal; opacity: .5; }
.pd-title { margin: 0 0 6px; font-size: clamp(28px, 3.3vw, 50px); line-height: 1.06; }
.pd-title__sub { display: block; margin-top: 10px; color: rgba(29, 29, 31, .66); font-size: clamp(13px, 1.1vw, 15px); font-weight: 400; line-height: 1.35; letter-spacing: 0; }

/* Колонки: слева фото, справа данные, низ на одном уровне */
.pd-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 1.7vw, 24px); align-items: stretch; }
.pd-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-gal { flex: 1 1 auto; display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; min-height: 0; }
.pd-photo { position: relative; min-height: 520px; overflow: hidden; border-radius: 30px; background: var(--island-2); }
.pd-slides { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; outline: 0; }
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; width: 100%; height: 100%; padding: 0; scroll-snap-align: start; cursor: zoom-in; }
.pd-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-rail { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.pd-rail__btn { flex: 0 0 auto; display: inline-grid; place-items: center; width: 100%; height: 30px; border-radius: 12px; color: var(--ink); cursor: pointer; transition: background .2s; }
.pd-rail__btn:hover { background: var(--island); }
.pd-thumbs { position: relative; flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { position: relative; flex: 0 0 auto; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border-radius: 14px; opacity: .78; cursor: pointer; transition: opacity .2s; }
.pd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover, .pd-thumb.is-on { opacity: 1; }
.pd-thumb.is-on::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2.5px var(--ink); }

.pd-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pd-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-docs:empty { display: none; }
.pd-doc { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 25, 26, .07), 0 6px 18px rgba(16, 20, 24, .07); font-size: 13px; white-space: nowrap; transition: background .2s; }
.pd-doc svg { flex: 0 0 auto; }
.pd-doc:hover { box-shadow: 0 0 0 1px rgba(22, 25, 26, .2), 0 6px 18px rgba(16, 20, 24, .09); }
.pd-acts { display: flex; gap: 8px; margin-left: auto; }
.pd-act { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(22, 25, 26, .07), 0 6px 18px rgba(16, 20, 24, .07); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.pd-act:hover { box-shadow: 0 0 0 1px rgba(22, 25, 26, .2), 0 6px 18px rgba(16, 20, 24, .09); }
.pd-act.is-on { background: var(--ink); color: #fff; }
.pd-act.js-wish.is-on svg { fill: currentColor; }

/* Стеклянная панель с данными */
.pd-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(18px, 1.8vw, 26px); border-radius: 30px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 25, 26, .06), 0 18px 50px rgba(16, 20, 24, .08); }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 14px; }
.pd-geo { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-weight: 500; }
.pd-geo:hover { opacity: .65; }
.pd-id { color: rgba(29, 29, 31, .66); white-space: nowrap; }
.pd-cat { margin: -6px 0 0; color: rgba(29, 29, 31, .66); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.pd-cat:empty { display: none; }
.pd-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin: 0; }
.pd-facts:empty { display: none; }
.pd-facts dt { color: rgba(29, 29, 31, .66); font-size: 12px; font-weight: 400; line-height: 1.3; }
.pd-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.pd-buy { display: flex; flex-direction: column; gap: 12px; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.pd-price b { font-size: clamp(36px, 3.3vw, 48px); line-height: 1.05; font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.pd-price small { color: rgba(29, 29, 31, .66); font-size: 15px; }
.pd-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 60px; padding: 0 7px 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s; }
.pd-cta i { flex: 0 0 auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); font-style: normal; transition: transform .25s; }
.pd-cta:hover { background: #000; }
.pd-cta:hover i { transform: rotate(45deg); }

.pd-block { display: flex; flex-direction: column; gap: 8px; }
.pd-block[hidden] { display: none; }
.pd-h { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 500; }
.pd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pd-tile { display: flex; flex-direction: column; min-width: 0; padding: 12px; border-radius: 18px; background: var(--island); }
.pd-tile b { margin-top: 10px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.pd-tile span { min-height: 2.4em; margin-top: 3px; color: rgba(29, 29, 31, .66); font-size: 11px; line-height: 1.2; }
.pd-specs { display: grid; grid-template-columns: minmax(0, 1fr); margin: 2px 0 0; }
.pd-specs div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 2px; box-shadow: inset 0 -1px 0 rgba(29, 29, 31, .1); font-size: 13px; line-height: 1.25; }
.pd-specs dt { color: rgba(29, 29, 31, .66); font-weight: 400; }
.pd-specs dd { flex: 0 0 auto; margin: 0; font-weight: 500; text-align: right; }

/* Параметры подписаны: один значок без названия непонятен */
.pd-params { display: flex; flex-direction: column; gap: 10px; }
.pd-params[hidden] { display: none; }
.pd-amen { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pd-am { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 9px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 25, 26, .07), 0 6px 18px rgba(16, 20, 24, .07); font-size: 14px; white-space: nowrap; }
.pd-am img { width: 26px; height: 26px; object-fit: contain; }

/* Описание: заголовок на всю ширину, факты плашками, текст в две колонки, внизу заявка */
.pd-text { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 24px); padding: clamp(22px, 3vw, 44px); border-radius: 40px; background: var(--island); }
.pd-text[hidden], .pd-sec[hidden], .pd-ben-box[hidden], .pd-where[hidden], .pd-error[hidden], .pd-lead[hidden], .pd-text__end[hidden] { display: none; }
.pd-text__h { margin: 0; font-size: clamp(28px, 3vw, 44px); }
.pd-lead { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-lead span { padding: 10px 16px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; line-height: 1.25; }
.pd-desc { columns: 2; column-gap: clamp(32px, 4vw, 64px); color: var(--text); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; }
.pd-desc p { margin: 0 0 14px; break-inside: avoid; }
.pd-desc p:last-child { margin-bottom: 0; }
.pd-desc b { color: var(--ink); font-weight: 500; }
.pd-desc.is-clamped { max-height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.pd-more { align-self: flex-start; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pd-text__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 8px 8px 8px 26px; border-radius: 40px; background: #fff; }
.pd-text__end p { flex: 1 1 280px; margin: 0; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.pd-text__end .pd-cta { flex: 0 0 auto; width: auto; height: 56px; padding: 0 6px 0 24px; font-size: 15px; }
.pd-text__end .pd-cta i { width: 44px; height: 44px; }

/* Помощь с оформлением: тёмный акцент страницы */
.pd-ben-box { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); padding: clamp(22px, 3vw, 44px); border-radius: 40px; background: var(--ink); color: #fff; }
.pd-ben-box__h { max-width: 860px; margin: 0; font-size: clamp(24px, 2.5vw, 38px); }
.pd-ben { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pd-ben__c { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-width: 0; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .08); }
.pd-ben__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pd-ben__top i { color: rgba(255, 255, 255, .55); font-size: 14px; font-style: normal; }
.pd-ben__ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.pd-ben__ic img { width: 32px; height: 32px; object-fit: contain; }
.pd-ben__c b { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }

/* Карта */
.pd-where { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; }
.pd-where__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.pd-where__h { margin: 0; font-size: clamp(28px, 3vw, 44px); }
.pd-map { height: clamp(340px, 58vh, 540px); overflow: hidden; border-radius: 40px; background: var(--island-2); }
.pd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-links:empty { display: none; }
.pd-link { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 20px; border-radius: 999px; background: var(--island); font-size: 14px; transition: background .2s; }
.pd-link:hover { background: var(--island-2); }

.pd-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 40px; background: var(--ink); }
.pd-video iframe, .pd-video video, .pd-video__play, .pd-video__play img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pd-video__play { position: relative; cursor: pointer; }
.pd-video__play .round-glass { left: 50%; top: 50%; right: auto; width: 72px; height: 72px; transform: translate(-50%, -50%); }
.pd-error { padding: 24px; border-radius: var(--r-l); background: var(--island); }
.pd-error a { color: var(--teal); }

.pd-msg { display: flex; gap: 8px; }
.pd-msg__a { flex: 1 1 0; display: inline-grid; place-items: center; height: 44px; min-width: 44px; border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--ink); transition: background .2s; }
.pd-msg__a:hover { background: rgba(255, 255, 255, .95); }
.pd-msg__a svg { width: 20px; height: 20px; }

html.pd-fab-off .aifab { opacity: 0; pointer-events: none; }
.aifab { transition: opacity .25s; }

/* Цена и заявка под рукой: появляется, когда блок с ценой ушёл вверх */
.pd-acc { --tint: rgba(255, 255, 255, .55); --edge: 14px; --frost: 12px; position: fixed; left: 50%; bottom: 20px; z-index: 49; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(520px, calc(100vw - 28px)); padding: 7px 7px 7px 24px; border-radius: 999px; transform: translateX(-50%); }
.pd-acc[hidden] { display: none; }
.pd-acc__price { min-width: 0; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.pd-acc__price b { font-size: 21px; font-weight: 500; letter-spacing: -.03em; }
.pd-acc__price small { color: var(--text); }
.pd-acc .pd-cta { flex: 0 0 auto; width: auto; height: 50px; padding: 0 5px 0 20px; font-size: 14px; }
.pd-acc .pd-cta i { width: 40px; height: 40px; }

/* Окно заявки */
.pd-form { display: flex; flex-direction: column; gap: 12px; }
.pd-form__obj { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .72); }
.pd-form__obj img { flex: 0 0 auto; width: 74px; height: 56px; border-radius: 14px; object-fit: cover; }
.pd-form__obj div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.3; }
.pd-form__obj b { font-size: 15px; font-weight: 500; }
.pd-form__lead { margin: 0; color: var(--text); font-size: 14px; line-height: 1.45; }
.pd-field { display: flex; flex-direction: column; gap: 5px; }
.pd-field label { margin-left: 14px; color: var(--text); font-size: 13px; }
.pd-field label i { color: var(--teal); font-style: normal; }
.pd-field label small { color: var(--muted); font-size: 12px; }
.pd-field input, .pd-field textarea { width: 100%; min-height: 46px; padding: 11px 16px; border: 0; border-radius: 20px; outline: 0; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(22, 25, 26, .08); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.pd-field input:focus, .pd-field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 0 3px rgba(27, 135, 159, .18); }
.pd-field.has-error input { box-shadow: inset 0 0 0 1.5px #d03a3a; }
.pd-field__err, .pd-form__err { margin: -6px 0 0 14px; color: #c02f2f; font-size: 13px; line-height: 1.35; }
.pd-form__err { margin: 0; }
.pd-form__err[hidden] { display: none; }
.pd-ts { display: none; }
.pd-ts.is-visible { display: block; }
.pd-agree { display: flex; align-items: flex-start; gap: 9px; margin-left: 4px; color: var(--text); font-size: 13px; line-height: 1.35; cursor: pointer; }
.pd-agree input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--teal); }
.pd-agree a { color: var(--teal); }
.pd-form__alt { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; color: var(--text); font-size: 13px; text-align: center; }
.pd-sharelist { overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .78); }
.pd-sharelist__a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 14px; font-size: 15px; transition: background .15s; }
.pd-sharelist__a + .pd-sharelist__a { box-shadow: inset 0 1px 0 rgba(60, 60, 67, .12); }
.pd-sharelist__a:hover { background: rgba(255, 255, 255, .9); }
.pd-sharelist__a svg { color: var(--muted); }

/* Фото на весь экран */
.pd-lb { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; opacity: 0; background: rgba(12, 14, 16, .86); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%); transition: opacity .22s, visibility .22s; }
.pd-lb.is-open { visibility: visible; opacity: 1; }
.pd-lb__img { display: block; max-width: 100%; max-height: 100%; border-radius: 24px; object-fit: contain; }
.pd-lb__btn { --edge: 12px; position: absolute; z-index: 2; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; cursor: pointer; }
.pd-lb__close { right: 20px; top: 20px; }
.pd-lb__prev { left: 20px; top: 50%; margin-top: -26px; }
.pd-lb__next { right: 20px; top: 50%; margin-top: -26px; }
.pd-lb__count { --edge: 10px; position: absolute; left: 50%; bottom: 20px; padding: 8px 15px; border-radius: 999px; font-size: 14px; transform: translateX(-50%); }

/* Ниже 1200 px колонки встают друг под друга */
@media (max-width: 1320px) {
	.pd-gal { grid-template-columns: 76px minmax(0, 1fr); }
}

@media (max-width: 1200px) {
	.pd-top { grid-template-columns: minmax(0, 1fr); }
	.pd-photo { aspect-ratio: 3 / 2; min-height: 0; }
	.pd-desc { columns: 1; }
	.pd-gal { grid-template-rows: auto; }
	.pd-acc { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 767px) {
	.pd { gap: 36px; padding-top: 4px; }
	.pd-stage { gap: 10px; }
	.crumbs > span, .crumbs > i:last-of-type { display: none; }
	.pd-title { margin-bottom: 2px; font-size: clamp(24px, 6.6vw, 30px); }
	.pd-title__sub { margin-top: 6px; font-size: 12px; }
	.pd-gal { display: flex; flex-direction: column; gap: 8px; }
	.pd-photo { order: 1; aspect-ratio: 3 / 2; border-radius: 24px; }
	.pd-rail { order: 2; }
	.pd-rail__btn { display: none; }
	.pd-thumbs { flex: 0 0 auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
	.pd-thumb { flex: 0 0 60px; width: 60px; border-radius: 12px; }
	.pd-under { flex-wrap: nowrap; gap: 6px; }
	.pd-docs { flex: 1 1 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
	.pd-doc { gap: 5px; min-width: 0; height: 40px; padding: 0 8px 0 7px; font-size: 11px; line-height: 1.15; white-space: normal; }
	.pd-doc svg { display: none; }
	.pd-doc { justify-content: center; padding: 0 8px; text-align: center; }
	.pd-acts { flex: 0 0 auto; gap: 4px; margin-left: 0; }
	.pd-act { width: 38px; height: 38px; }
	.pd-panel { gap: 12px; padding: 16px; border-radius: 26px; }
	.pd-buy { order: 3; }
	.pd-facts { order: 4; }
	.pd-block { order: 5; }
	.pd-price b { font-size: clamp(34px, 10vw, 42px); }
	.pd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 10px 12px; border-radius: 16px; }
	.pd-tile b { margin: 0; font-size: 17px; font-weight: 600; }
	.pd-tile span { grid-column: 1 / -1; min-height: 0; margin-top: 3px; font-size: 12px; }
	.pd-specs { grid-template-columns: minmax(0, 1fr); }
	.pd-am { height: 38px; padding: 0 12px 0 8px; font-size: 13px; white-space: normal; }
	.pd-am img { width: 24px; height: 24px; }
	.pd-text { grid-template-columns: minmax(0, 1fr); }
	.pd-ben-box { border-radius: 30px; padding: 20px 14px; }
	.pd-text { border-radius: 30px; padding: 20px 14px; }
	.pd-lead span { padding: 8px 12px; font-size: 13px; }
	.pd-text__end { padding: 14px; border-radius: 24px; }
	.pd-text__end .pd-cta { flex: 1 1 100%; }
	.pd-ben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pd-ben__c { gap: 18px; padding: 14px; border-radius: 20px; }
	.pd-ben__ic { width: 44px; height: 44px; }
	.pd-ben__ic img { width: 28px; height: 28px; }
	.pd-map { height: 320px; border-radius: 28px; }
	.pd-acc { padding-left: 18px; gap: 10px; }
	.pd-acc__price b { font-size: 18px; }
	.pd-acc .pd-cta { height: 44px; padding: 0 4px 0 14px; font-size: 13px; }
	.pd-acc .pd-cta i { width: 36px; height: 36px; }
	.pd-lb { padding: 8px; }
	.pd-lb__prev { left: 10px; }
	.pd-lb__next { right: 10px; }
	.pd-lb__btn { width: 44px; height: 44px; margin-top: -22px; }
	.pd-lb__close { top: 12px; right: 12px; margin-top: 0; }
	.pd-lb__img { border-radius: 16px; }
}

@media (max-width: 359px) {
	.pd-doc svg { display: none; }
	.pd-doc { padding: 0 8px; font-size: 10.5px; text-align: center; justify-content: center; }
	.pd-acc .pd-cta span { display: none; }
	.pd-acc .pd-cta { padding: 0 4px; }
}
