/* страница дома: галерея, удобства, 3D-тур, бронирование */
.hh { padding-top: clamp(10px, 2vh, 24px); }
.hh__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hh__tab { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: var(--pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--sans); transition: background .2s, box-shadow .2s; }
.hh__tab .no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--accent); font: 400 16px/1 var(--serif); font-style: italic; }
.hh__tab small { color: var(--mute); font-weight: 400; }
.hh__tab:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.hh__tab.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.hh__tab.is-on .no { background: var(--accent); color: #fff; }
.hh__tab.is-on small { color: rgba(255,255,255,.6); }
.hh__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: stretch; }
@media (max-width: 980px) { .hh__grid { grid-template-columns: 1fr; } }
.hh__gal { position: relative; border-radius: var(--r-xxl); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-2); }
.hh__gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--e), transform 1.6s var(--e); }
.hh__gal img.is-on { opacity: 1; transform: none; }
.hh__dots { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 6px; padding: 6px; border-radius: var(--pill); background: rgba(12,26,51,.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hh__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .3s var(--e), background .3s; }
.hh__dots button.is-on { width: 22px; border-radius: 4px; background: #fff; }
.hh__badge { position: absolute; right: 18px; top: 18px; }
.hh__info { display: flex; flex-direction: column; padding: clamp(6px, 1vw, 12px) 0; }
.hh__info .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hh__info h1 { margin-top: 16px; font: 400 clamp(38px, 4.6vw, 64px)/1.02 var(--serif); letter-spacing: -.025em; }
.hh__info .place { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
.hh__facts { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { padding: 14px 16px; border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.fact .k { font-size: 12.5px; color: var(--mute); }
.fact .v { margin-top: 5px; font: 500 15px/1.3 var(--sans); }
.hh__style { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.hh__style b { color: var(--ink); font-weight: 500; }
.hh__price { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hh__price .p { font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.hh__price .p small { font: 400 15px/1 var(--sans); color: var(--mute); margin-left: 6px; }
.hh__price .cta { display: flex; gap: 8px; flex-wrap: wrap; }
.hh__bonus { margin-top: 10px; font-size: 13.5px; color: var(--accent-ink); display: flex; align-items: center; gap: 8px; }
.hh__bonus i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); flex: none; display: grid; place-items: center; color: #fff; font: 600 10px/1 var(--sans); font-style: normal; }

.sec--tight { padding-block: clamp(40px, 7vh, 80px) 0; }
.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 980px) { .amen { grid-template-columns: repeat(2, 1fr); } }
.am { padding: 18px; border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.am .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--sky); color: var(--accent); display: grid; place-items: center; }
.am .ic svg { width: 20px; height: 20px; }
.am h4 { margin-top: 14px; font: 500 16px/1.25 var(--sans); }
.am p { margin-top: 5px; font-size: 13.5px; color: var(--mute); line-height: 1.45; }

/* ---------- 3D-тур ---------- */
.tour { padding-block: clamp(70px, 12vh, 140px) clamp(30px, 6vh, 60px); }
.tour__stage { position: relative; display: grid; grid-template-columns: 250px 1fr; gap: 0; height: min(78svh, 780px); min-height: 520px; margin-inline: var(--gut);
  border-radius: var(--r-xxl); overflow: clip; background: radial-gradient(120% 90% at 50% 20%, #FFFFFF, #E4ECF8 60%, #D6E2F4); box-shadow: inset 0 0 0 1px var(--line); }
.tour__side { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: rgba(251,252,254,.62); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-right: 1px solid var(--line); overflow: auto; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: var(--pill); background: var(--bg-2); }
.seg button { height: 34px; border-radius: var(--pill); font: 500 12.5px/1 var(--sans); color: var(--ink-2); transition: background .25s, color .25s, box-shadow .25s; }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(8,36,92,.3); }
.rooms { display: flex; flex-direction: column; gap: 4px; }
.room { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-align: left; font: 500 14px/1.25 var(--sans); transition: background .2s; }
.room:hover { background: rgba(12,26,51,.05); }
.room.is-on { background: var(--ink); color: #fff; }
.room .c { margin-left: auto; font-size: 12px; color: var(--mute); }
.room.is-on .c { color: rgba(255,255,255,.6); }
.room .d { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; opacity: .35; }
.room.is-on .d { opacity: 1; background: var(--accent-2); }
.tour__hint { margin-top: auto; font-size: 12px; color: var(--mute); line-height: 1.45; }
.tour__hint b { color: var(--ink-2); font-weight: 500; }
.tour__canvas { position: relative; min-width: 0; cursor: grab; }
.tour__canvas canvas { width: 100% !important; height: 100% !important; touch-action: none; }
.tour__load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--mute); font-size: 14px; transition: opacity .5s; }
.tour__load.is-off { opacity: 0; pointer-events: none; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--sky-2); border-top-color: var(--accent); animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.tip { position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; padding: 8px 12px; border-radius: 12px; background: rgba(12,26,51,.86); color: #fff; font: 500 12.5px/1.3 var(--sans);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translate(14px, 14px); transition: opacity .15s; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tip.is-on { opacity: 1; }
.tip small { display: block; color: var(--accent-2); font-weight: 500; margin-top: 2px; }

/* карточка товара поверх 3D */
.pcard { position: absolute; z-index: 5; right: 16px; top: 16px; bottom: 16px; width: min(360px, calc(100% - 32px)); display: flex; flex-direction: column; border-radius: var(--r-xl);
  background: rgba(251,252,254,.9); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 30px 70px -30px rgba(8,36,92,.45);
  transform: translateX(calc(100% + 24px)); transition: transform .55s var(--e); overflow: hidden; }
.pcard.is-open { transform: none; }
.pcard__scroll { flex: 1; overflow: auto; padding: 18px; }
.pcard__x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.pcard__img { aspect-ratio: 1; border-radius: var(--r-l); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.pcard__img img { width: 88%; height: 88%; object-fit: contain; }
.pcard__img .ph { color: var(--mute); font-size: 13px; text-align: center; padding: 20px; }
.pcard .lab { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pcard h3 { margin-top: 10px; font: 500 18px/1.3 var(--sans); letter-spacing: -.015em; }
.pcard .pr { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.pcard .pr b { font: 600 26px/1 var(--sans); letter-spacing: -.02em; }
.pcard .pr s { color: var(--mute); font-size: 14px; }
.pcard .meta { margin-top: 6px; font-size: 12.5px; color: var(--mute); }
.pcard__acts { display: grid; gap: 8px; margin-top: 16px; }
.pcard__var { margin-top: 18px; }
.pcard__var h4 { font: 500 13px/1 var(--sans); color: var(--ink-2); margin-bottom: 8px; }
.var { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 6px; transition: box-shadow .2s, background .2s; text-align: left; width: 100%; }
.var:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.var img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; }
.var .t { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.var .t small { display: block; color: var(--accent); font-weight: 500; }
.var .p { font: 600 13.5px/1 var(--sans); white-space: nowrap; }
.pcard__sol { margin-top: 16px; padding: 14px; border-radius: var(--r-l); background: var(--ink); color: #fff; }
.pcard__sol p { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }
.pcard__sol b { font-weight: 500; }
.pcard__sol .btn { margin-top: 12px; width: 100%; }

/* список вещей в комнате */
.inroom { margin-top: 18px; }
.inroom__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.inroom__head h3 { font: 400 28px/1.1 var(--serif); }
.inroom__head .sum { font-size: 14px; color: var(--ink-2); }
.inroom__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.it { display: flex; flex-direction: column; padding: 10px; border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: box-shadow .2s, transform .3s var(--e); }
.it:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); transform: translateY(-2px); }
.it.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.it .im { aspect-ratio: 4 / 3; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.it .im img { width: 86%; height: 86%; object-fit: contain; }
.it .sl { margin-top: 10px; font-size: 12px; color: var(--accent); font-weight: 500; }
.it .nm { margin-top: 3px; font: 500 13.5px/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.it .pp { margin-top: 8px; font: 600 15px/1 var(--sans); }

@media (max-width: 860px) {
  .tour__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 82svh; }
  .tour__side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; gap: 8px; }
  .rooms { flex-direction: row; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .room { white-space: nowrap; flex: none; padding: 8px 12px; font-size: 13px; }
  .room .c, .tour__hint { display: none; }
  .pcard { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 72%; transform: translateY(calc(100% + 20px)); }
}

/* ---------- бронирование ---------- */
.book { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 980px) { .book { grid-template-columns: 1fr; } }
.cal { padding: clamp(16px, 2vw, 26px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cal__head h3 { font: 400 26px/1 var(--serif); }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-size: 16px; }
.cal__nav button:hover { background: #fff; }
.cal__nav button[disabled] { opacity: .3; pointer-events: none; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 640px) { .cal__months { grid-template-columns: 1fr; } .cal__months .m:nth-child(2) { display: none; } }
.m h4 { font: 500 15px/1 var(--sans); margin-bottom: 12px; text-transform: capitalize; }
.m .wd, .m .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.m .wd span { font-size: 11.5px; color: var(--mute); text-align: center; padding-bottom: 4px; }
.day { position: relative; aspect-ratio: 1 / 1.05; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: 500 14px/1 var(--sans); transition: background .15s, color .15s; }
.day small { font: 400 9.5px/1 var(--sans); color: var(--mute); }
.day.we small { color: var(--accent-ink); }
.day:not([disabled]):hover { background: var(--sky); }
.day[disabled] { color: var(--pale); cursor: default; }
.day.busy { color: var(--pale); text-decoration: line-through; background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(12,26,51,.04) 5px 6px); }
.day.busy small { visibility: hidden; }
.day.in { background: var(--sky); border-radius: 0; }
.day.s, .day.e { background: var(--accent); color: #fff; }
.day.s small, .day.e small { color: rgba(255,255,255,.8); }
.day.s { border-radius: 10px 0 0 10px; }
.day.e { border-radius: 0 10px 10px 0; }
.day.s.e { border-radius: 10px; }
.cal__legend { margin-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.cal__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.bform { padding: clamp(18px, 2vw, 26px); position: sticky; top: 76px; }
.bform h3 { font: 400 26px/1.1 var(--serif); }
.bform .dates { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bform .dt { padding: 12px 14px; border-radius: var(--r-m); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.bform .dt span { display: block; font-size: 12px; color: var(--mute); }
.bform .dt b { display: block; margin-top: 4px; font: 500 15.5px/1.2 var(--sans); }
.guests { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
.guests .qty { margin: 0; }
.bform .ext { margin-top: 12px; display: grid; gap: 6px; }
.bform .ext .check { padding: 10px 12px; }
.bform .sumbox { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.bform .bonusline { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-m); background: var(--sky); color: var(--accent-ink); font-size: 13px; line-height: 1.4; }
.bform .form-grid { margin-top: 14px; }
.bform .err { color: #C23B3B; font-size: 13.5px; margin-top: 8px; min-height: 1px; }

/* ---------- уровни после отдыха ---------- */
.lv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 980px) { .lv3 { grid-template-columns: 1fr; } }
.lv { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-height: 300px; }
.lv.is-dark { background: var(--ink); color: #fff; box-shadow: none; }
.lv .n { font: 400 15px/1 var(--serif); font-style: italic; color: var(--accent); }
.lv.is-dark .n { color: var(--accent-2); }
.lv h3 { margin-top: 18px; font: 400 32px/1.08 var(--serif); letter-spacing: -.02em; }
.lv p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.lv.is-dark p { color: rgba(255,255,255,.7); }
.lv .from { margin-top: auto; padding-top: 20px; font: 500 14px/1 var(--sans); color: var(--mute); }
.lv.is-dark .from { color: rgba(255,255,255,.55); }
.lv .btn { margin-top: 14px; align-self: flex-start; }
