/* Карточка номера «как карточка товара»: галерея слева, справа липкая панель с ценой и заявкой, ниже — о номере, удобства, условия, другой номер. */

.pdp { padding: 18px 0 clamp(80px, 10vw, 140px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }

.pdp__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 18px; }

/* галерея */
.gal { min-width: 0; }
.gal__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.gal__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gal__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; cursor: zoom-in; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.gal__slide figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 6px 10px; font-size: 11.5px; letter-spacing: .03em; color: #EEF2F8; background: rgba(13, 20, 32, .62); }
@supports (backdrop-filter: blur(4px)) { .gal__slide figcaption { backdrop-filter: blur(6px); } }
.gal__btn, .gal__zoom { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(238, 242, 248, .9); color: #131B41; font-size: 18px; cursor: pointer; transition: transform .25s var(--ease), opacity .25s var(--ease), background-color .25s; }
.gal__btn:hover, .gal__zoom:hover { background: #fff; transform: scale(1.06); }
.gal__btn { top: 50%; margin-top: -23px; }
.gal__btn--prev { left: 14px; }
.gal__btn--next { right: 14px; }
.gal__btn[disabled] { opacity: 0; pointer-events: none; }
.gal__zoom { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 16px; }
.gal__btn:focus-visible, .gal__zoom:focus-visible, .gal__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gal__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gal__thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--panel); cursor: pointer; opacity: .62; transition: opacity .25s var(--ease); }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover { opacity: .9; }
.gal__thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.gal__thumb[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); }

/* панель заявки */
.buy { position: sticky; top: calc(var(--top-h) + 20px); padding: clamp(22px, 2.2vw, 32px); border: 1px solid var(--line); background: var(--panel); transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.buy__kind { font-size: 11.5px; letter-spacing: .05em; color: var(--muted); }
.buy__title { margin: 12px 0 0; font: 300 clamp(30px, 2.8vw, 42px)/1.05 var(--f-sans); letter-spacing: -.01em; }
.buy__meta { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.buy__price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.buy__price b { font: 300 clamp(36px, 3.2vw, 46px)/1 var(--f-sans); letter-spacing: -.01em; }
.buy__price span { color: var(--muted); }
.buy__form { display: grid; gap: 14px; margin-top: 18px; }
.buy__dates { display: grid; grid-template-columns: 1fr 1fr 84px; gap: 10px; }
.buy__dates .field input, .buy__dates .field select { min-width: 0; }
.buy__total { min-height: 22px; font-size: 15px; color: var(--muted); }
.buy__total b { color: var(--ink); font-weight: 500; }
.buy__total small { display: block; margin-top: 2px; font: 400 11.5px/1.4 var(--f-mono); letter-spacing: .02em; }
.buy__contact { display: grid; gap: 12px; }
.buy__contact:not([hidden]) { animation: buy-open .45s var(--ease) both; }
@keyframes buy-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.buy__go { width: 100%; justify-content: center; }
.buy__go[disabled] { opacity: .6; cursor: progress; }
.buy__call { display: flex; justify-content: center; gap: 8px; align-items: baseline; font-size: 15px; text-decoration: none; color: var(--ink); }
.buy__call .mono { font-size: 11.5px; color: var(--muted); }
.buy__facts { list-style: none; display: grid; gap: 6px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: .03em; color: var(--muted); }
.buy__facts li::before { content: "— "; color: var(--accent); }
.buy__done { display: grid; justify-items: center; gap: 10px; margin-top: 22px; text-align: center; }
.buy__done:not([hidden]) { animation: buy-open .5s var(--ease) both; }
.buy__stamp { display: grid; place-items: center; width: 124px; height: 124px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 20px; box-shadow: inset 0 0 0 6px var(--panel), inset 0 0 0 7px var(--accent); }
@media (prefers-reduced-motion: no-preference) { .buy__done:not([hidden]) .buy__stamp { animation: stamp .6s cubic-bezier(.2, 1.6, .4, 1) .1s both; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-14deg); } to { opacity: 1; transform: rotate(-8deg); } }
.buy__done-title { font: 300 30px/1.1 var(--f-sans); }
.buy__done-text { font-size: 15px; color: var(--muted); }

/* разделы ниже */
.pdp__sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px clamp(28px, 4vw, 64px); margin-top: clamp(56px, 7vw, 104px); padding-top: 24px; border-top: 1px solid var(--line); }
.pdp__h { margin: 0; font: 300 clamp(26px, 2.4vw, 34px)/1.1 var(--f-sans); }
.pdp__text { font: 300 clamp(19px, 1.6vw, 23px)/1.45 var(--f-sans); max-width: 46em; }
.pdp__spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0 0; }
.pdp__spec div { padding-top: 12px; border-top: 1px solid var(--line); }
.pdp__spec dt { font: 400 11.5px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.pdp__spec dd { margin: 6px 0 0; font: 300 26px/1.1 var(--f-sans); }
.pdp__amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pdp__amen li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pdp__amen .ph { grid-row: span 2; font-size: 22px; color: var(--accent); }
.pdp__amen span { font-size: 18px; }
.pdp__amen small { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.pdp__terms { margin: 0; display: grid; }
.pdp__terms div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pdp__terms dt { font: 400 12px/1.5 var(--f-mono); letter-spacing: .04em; color: var(--muted); padding-top: 2px; }
.pdp__terms dd { margin: 0; font-size: 17px; }
.pdp__terms a { color: var(--accent); text-underline-offset: 3px; }

.other { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; color: inherit; text-decoration: none; }
.other__pic { aspect-ratio: 4 / 3; overflow: hidden; }
.other__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.other:hover .other__pic img { transform: scale(1.04); }
.other__body { display: grid; gap: 6px; }
.other__name { font: 300 28px/1.1 var(--f-sans); }
.other__meta { color: var(--muted); font-size: 15px; }
.other__price { font: 300 30px/1.1 var(--f-sans); margin-top: 6px; }
.other__price small { font: 400 14px var(--f-sans); color: var(--muted); }
.other__go { margin-top: 6px; font-size: 12px; letter-spacing: .05em; color: var(--accent); }

/* полоса с ценой внизу экрана на телефоне */
.pdp-bar { display: none; }

/* фото на весь экран */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(8, 12, 24, .95); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 12px; letter-spacing: .04em; color: rgba(238, 242, 248, .8); }
.lightbox__btn, .lightbox__close { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(238, 242, 248, .3); border-radius: 50%; background: transparent; color: #EEF2F8; font-size: 20px; cursor: pointer; }
.lightbox__btn:hover, .lightbox__close:hover { background: rgba(238, 242, 248, .12); }
.lightbox__btn { top: 50%; margin-top: -26px; }
.lightbox__btn--prev { left: 20px; }
.lightbox__btn--next { right: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox:not([hidden]) img { animation: fade-in .3s var(--ease) both; }

@media (max-width: 1023px) {
  .pdp__top { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; }
  .pdp__sec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .pdp { padding-bottom: 120px; }
  .gal { margin-inline: calc(-1 * var(--gut)); }
  .gal__main { aspect-ratio: 4 / 3.2; }
  .gal__btn { display: none; }
  .gal__thumbs { padding-inline: var(--gut); grid-auto-columns: 72px; }
  .buy { margin-inline: calc(-1 * var(--gut)); border-inline: 0; }
  .buy__dates { grid-template-columns: 1fr 1fr; }
  .buy__dates .field--small { grid-column: 1 / -1; }
  .pdp__spec { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pdp__spec dd { font-size: 21px; }
  .pdp__amen { grid-template-columns: minmax(0, 1fr); }
  .pdp__terms div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .other { grid-template-columns: minmax(0, 1fr); }
  .lightbox__btn { display: none; }
  .pdp-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line);
    transition: transform .35s var(--ease);
  }
  @supports (backdrop-filter: blur(4px)) { .pdp-bar { backdrop-filter: blur(10px); } }
  .pdp-bar.is-away { transform: translateY(110%); }
  .pdp-bar__price b { font: 300 26px/1 var(--f-sans); }
  .pdp-bar__price span { display: block; font-size: 12px; color: var(--muted); }
  .pdp-bar .btn { min-height: 48px; }
}

/* атрибут hidden сильнее display у блоков карточки */
.pdp [hidden], .lightbox[hidden] { display: none !important; }

/* --- ревизия: «Что в номере» одним списком моно-строк, без иконок --- */
.pdp__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.pdp__list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pdp__list dt { font-size: 18px; }
.pdp__list dd { margin: 0; font: 400 12px/1.4 var(--f-mono); letter-spacing: .03em; color: var(--muted); text-align: right; }
.pdp__list div:nth-child(-n+3) dd { color: var(--ink); font: 400 16px/1.3 var(--f-sans); letter-spacing: 0; }

/* меньше пустоты внизу карточки */
.pdp { padding-bottom: clamp(40px, 5vw, 64px); }

/* на ноутбуках «Гостей» отдельной строкой, чтобы даты не обрезались */
@media (max-width: 1366px) {
  .buy__dates { grid-template-columns: 1fr 1fr; }
  .buy__dates .field--small { grid-column: 1 / -1; }
}

/* телефон: название и цена над галереей */
.pdp__mhead { display: none; }
@media (max-width: 1023px) {
  .pdp__mhead { display: block; margin-top: 14px; }
  .pdp__mtitle { margin-top: 8px; font: 300 32px/1.05 var(--f-sans); letter-spacing: -.01em; }
  .pdp__mprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; }
  .pdp__mprice b { font: 300 30px/1 var(--f-sans); }
  .pdp__mprice span { font-size: 14px; color: var(--muted); }
  .pdp__top { margin-top: 14px; }
  .buy .buy__kind, .buy .buy__title, .buy .buy__meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .buy .buy__price { margin-top: 0; }
}
@media (max-width: 767px) {
  .pdp__list { grid-template-columns: minmax(0, 1fr); }
  .pdp__list dt { font-size: 17px; }
  .other__price { font-size: 22px; }
}
