/* Внутренние страницы v05. Токены и шапка — в style.css; здесь только то,
   чего нет на главной. Страницы собирает tools/v05.py. */

.inner { --section: clamp(64px, 8vw, 128px); }
.nobar { --bar-h: 0px; --head-h: var(--top-h); }
@media (min-width: 1200px) {
	.inner main { padding-top: var(--head-h); }
}
@media (max-width: 1199px) {
	.nobar main { padding-top: var(--top-h); }
}
.inner [id] { scroll-margin-top: calc(var(--head-h) + var(--s4)); }
.top__links a[aria-current="page"] { color: var(--amber); }
@media (min-width: 1200px) { .top__links a[aria-current="page"] { background-size: 100% 1px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.note { margin-top: var(--s5); font-size: var(--t-sm); color: var(--ink-day-soft); max-width: 72ch; }
[data-tone="dark"] .note { color: var(--ink-night-soft); }
.muted { color: var(--ink-day-soft); }
.h3 { font: 400 var(--t-h3)/1.2 var(--f-display); }
::selection { background: var(--amber); color: var(--amber-ink); }

/* ---------- обложка страницы ---------- */
.phero {
	position: relative; display: grid; align-items: end;
	min-height: min(76svh, 820px);
	background: var(--g-deep); color: var(--ink-night);
	overflow: hidden;
}
.phero__media { position: absolute; inset: 0; }
.phero__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.phero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(0deg, rgba(10, 15, 13, .88) 0%, rgba(10, 15, 13, .5) 34%, rgba(10, 15, 13, 0) 66%),
		linear-gradient(90deg, rgba(10, 15, 13, .55) 0%, rgba(10, 15, 13, 0) 55%);
}
.phero__copy { position: relative; width: 100%; padding-block: var(--s9) clamp(40px, 7vh, 88px); }
.phero__title {
	font: 400 var(--t-h1)/.98 var(--f-display); letter-spacing: -.02em;
	max-width: 14ch; text-wrap: balance; margin-top: var(--s4);
}
.phero__meta { margin-top: var(--s4); font: 700 var(--t-xs)/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.phero__meta + .phero__title { margin-top: var(--s3); }
.phero__lead { margin-top: var(--s5); font-size: var(--t-lg); line-height: 1.55; max-width: 46ch; color: rgba(236, 231, 220, .9); }
.phero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.phero--plain { min-height: 0; background: linear-gradient(var(--g-deep), var(--g-night)); }
.phero--plain .phero__copy { padding-block: var(--s8) var(--s8); }
.phero--plain .phero__title { font-size: clamp(38px, 5vw, 76px); max-width: 20ch; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s1) 0; font: 700 var(--t-xs)/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-night-soft); }
.crumbs li + li::before { content: "/"; margin-inline: var(--s2); opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--ink-night); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--amber); } }

/* ---------- секции ---------- */
.sec { padding-block: var(--section); }
.ground--noon.sec { background: var(--g-noon); }
.ground--night.sec { background: var(--g-night); }
.ground--ember.sec { background: var(--g-ember); }
.sec + .sec.ground--day, .phero + .sec { /* смежные светлые секции не сливаются */ }
.sec__head { display: grid; gap: var(--s4) var(--s8); align-items: end; margin-bottom: var(--s7); }
.sec__head .lede { color: var(--ink-day-soft); max-width: 52ch; }
[data-tone="dark"] .sec__head .lede { color: var(--ink-night-soft); }
@media (min-width: 900px) { .sec__head { grid-template-columns: 7fr 5fr; } }
.sec__head .h2 { max-width: 18ch; }

/* текст + фото */
.split { display: grid; gap: var(--s7); align-items: center; }
.split__text > * + * { margin-top: var(--s4); }
.split__text .h2 { margin-bottom: var(--s5); max-width: 16ch; }
.split__text p { max-width: 56ch; }
[data-tone="light"] .split__text p { color: var(--ink-day-soft); }
[data-tone="dark"] .split__text p { color: var(--ink-night-soft); }
.split__text .amen, .split__text .facts { margin-top: var(--s6); }
.split__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__pic--tall img { aspect-ratio: 4 / 5; }
.split__links { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s6) !important; }
.split__btns { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6) !important; }
@media (min-width: 900px) {
	.split { grid-template-columns: 6fr 6fr; column-gap: var(--s9); }
	.split--flip .split__pic { order: -1; }
	.split__pic--tall { max-width: 520px; justify-self: end; width: 100%; }
}

/* списки удобств: тонкие линейки вместо карточек */
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 var(--s7); }
.amen li { padding: var(--s3) 0; border-top: 1px solid var(--line-day); }
[data-tone="dark"] .amen li { border-top-color: var(--line-night); }
.amen--own { margin-bottom: var(--s6); }
.amen--own li { font: 400 var(--t-h3)/1.25 var(--f-display); padding-block: var(--s4); }
.amen--tight { grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
.amen--tight li { font-size: var(--t-sm); padding-block: var(--s2); }

/* цены */
.prices { display: grid; max-width: 920px; }
.prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--line-day); }
.prices > div:last-child { border-bottom: 1px solid var(--line-day); }
.prices dt b { display: block; font: 400 var(--t-h3)/1.2 var(--f-display); }
.prices dt span { display: block; margin-top: var(--s1); font-size: var(--t-sm); color: var(--ink-day-soft); }
.prices dd { font: 700 var(--t-lg)/1.2 var(--f-text); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

/* факты в светлой секции */
.facts--light div { border-top-color: var(--line-day); }
.facts--light dt { color: var(--ink-day-soft); }
.facts--light a { border-bottom-color: var(--line-day); }
.facts--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 900px) {
	.facts--3 { grid-template-columns: repeat(3, 1fr); }
	.facts--4 { grid-template-columns: repeat(4, 1fr); }
}
.msgr + .facts { margin-top: var(--s8); }

/* ---------- страница дома ---------- */
.house-about { display: grid; gap: var(--s8); align-items: start; }
.house-about__text .h2 { margin-bottom: var(--s5); }
.house-about__text p { max-width: 62ch; color: var(--ink-day-soft); }
.house-about__text p + p { margin-top: var(--s4); }
.house-about__text p:first-of-type { font-size: var(--t-lg); color: var(--ink-day); }
.house-about .facts { margin-top: var(--s7); }
.price-card { padding: var(--s6); background: var(--g-deep); color: var(--ink-night); }
.price-card__title { font: 400 clamp(28px, 2.6vw, 38px)/1.1 var(--f-display); letter-spacing: -.01em; color: var(--amber); }
.price-card__per { margin-top: var(--s2); color: var(--ink-night-soft); }
.price-card__btns { display: grid; gap: var(--s3); margin-top: var(--s6); }
.price-card .note { color: var(--ink-night-soft); font-size: var(--t-xs); }
.btn--md { min-height: 48px; }
@media (min-width: 900px) {
	.house-about { grid-template-columns: 8fr 4fr; column-gap: var(--s9); }
	.price-card { position: sticky; top: calc(var(--head-h) + var(--s5)); }
}

/* галерея */
.gal__grid { columns: 3 260px; column-gap: var(--s4); }
.gal__grid li { break-inside: avoid; margin-bottom: var(--s4); }
.gal__a { display: block; overflow: hidden; background: rgba(21, 33, 27, .08); cursor: zoom-in; }
.gal__a img { width: 100%; transition: transform 600ms var(--ease-out), opacity var(--d-ui) var(--ease-out); }
.gal__more { margin-top: var(--s5); }
.gal__more svg, .btn svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .gal__a:hover img { transform: scale(1.03); } }
@media (max-width: 899px) { .gal__grid { columns: 2; column-gap: var(--s2); } .gal__grid li { margin-bottom: var(--s2); } }

/* просмотр фото */
.lb {
	width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(6, 9, 8, .96); color: var(--ink-night); overscroll-behavior: contain;
}
.lb::backdrop { background: rgba(6, 9, 8, .8); }
.lb[open] { display: grid; place-items: center; animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb__fig { display: grid; place-items: center; gap: var(--s3); width: 100%; height: 100%; padding: var(--s8) var(--s9); }
.lb__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lb__cap { font: 700 var(--t-xs)/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-night-soft); font-variant-numeric: tabular-nums; }
.lb__btn {
	position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
	background: rgba(236, 231, 220, .08); color: var(--ink-night); border: 1px solid var(--line-night); border-radius: 50%; cursor: pointer;
	transition: background-color var(--d-ui) var(--ease-out), transform var(--d-press) var(--ease-out);
}
.lb__btn:active { transform: scale(.94); }
.lb__btn svg { width: 24px; height: 24px; fill: currentColor; }
.lb__prev { left: var(--s5); top: 50%; translate: 0 -50%; }
.lb__next { right: var(--s5); top: 50%; translate: 0 -50%; }
.lb__close { right: var(--s5); top: var(--s5); }
@media (hover: hover) and (pointer: fine) { .lb__btn:hover { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); } }
@media (max-width: 899px) {
	.lb__fig { padding: var(--s8) 0; }
	.lb__prev, .lb__next { top: auto; bottom: var(--s5); translate: none; }
	.lb__prev { left: calc(50% - 64px); } .lb__next { right: calc(50% - 64px); }
}

/* планировка */
.plan { display: grid; gap: var(--s7); align-items: start; }
.plan__fig { background: #f3f1ea; }
.plan__pic { position: relative; }
.plan__pic img { width: 100%; }
.plan__fig figcaption { padding: var(--s3) var(--s4); font-size: var(--t-sm); color: var(--ink-day-soft); }
.plan__tag {
	position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: var(--s2);
	padding: 3px 10px 3px 3px; border-radius: 100px; background: rgba(10, 15, 13, .86); color: var(--ink-night);
	font: 700 12px/1.1 var(--f-label); letter-spacing: .04em; white-space: nowrap; pointer-events: none;
}
.plan__tag i, .plan__rooms i {
	display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
	background: var(--amber); color: var(--amber-ink); font: 700 12px/1 var(--f-label); font-style: normal; flex: none;
}
.plan__note { padding: var(--s4) var(--s5); background: rgba(21, 33, 27, .06); color: var(--ink-day-soft); margin-bottom: var(--s5); max-width: 56ch; }
.plan__rooms > div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line-day); }
.plan__rooms dt { display: flex; align-items: center; gap: var(--s3); }
.plan__rooms dd { color: var(--ink-day-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 900px) {
	.plan { grid-template-columns: 7fr 5fr; column-gap: var(--s8); }
	.plan--wide { grid-template-columns: 1fr; }
	.plan--wide .plan__rooms { columns: 2; column-gap: var(--s8); }
	.plan--wide .plan__rooms > div { break-inside: avoid; }
}
@media (max-width: 899px) {
	.plan__tag { padding: 3px; }
	.plan__tag span { display: none; }
}

/* 3D и видео по нажатию */
.m3d-row { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .m3d-row { grid-template-columns: 1fr 1fr; } .m3d-row--one { grid-template-columns: 1fr; } }
.m3d { position: relative; aspect-ratio: 16 / 9; background: #0e1512; overflow: hidden; }
.m3d-row--one .m3d { aspect-ratio: 16 / 8; }
.m3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m3d::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 15, 13, .82), rgba(10, 15, 13, 0) 60%); pointer-events: none; }
.m3d__play {
	position: absolute; inset: auto var(--s5) var(--s5) var(--s5); z-index: 1;
	display: flex; align-items: center; gap: var(--s4); text-align: left;
	background: none; border: 0; color: var(--ink-night); cursor: pointer; padding: 0; font: inherit;
}
.m3d__icon {
	flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
	background: var(--amber); color: var(--amber-ink);
	transition: transform var(--d-ui) var(--ease-out), background-color var(--d-ui) var(--ease-out);
}
.m3d__icon svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.m3d__txt b { display: block; font: 400 var(--t-h3)/1.15 var(--f-display); }
.m3d__txt small { display: block; margin-top: var(--s1); font-size: var(--t-sm); color: var(--ink-night-soft); max-width: 44ch; }
.m3d__play:active .m3d__icon { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .m3d__play:hover .m3d__icon { transform: scale(1.06); background: #F0B562; } }
.m3d.on .m3d__poster, .m3d.on .m3d__play, .m3d.on::after { display: none; }
.m3d__frame, .vid__frame, .yrev__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 899px) { .m3d { aspect-ratio: 4 / 5; } .m3d-row--one .m3d { aspect-ratio: 4 / 5; } .m3d__icon { width: 52px; height: 52px; } }

/* карточки других домов */
.hcards { display: grid; gap: var(--s5); grid-template-columns: repeat(4, 1fr); }
.hcard a { display: grid; gap: var(--s1); text-decoration: none; }
.hcard__pic { overflow: hidden; margin-bottom: var(--s3); }
.hcard__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
.hcard__name { font: 400 clamp(24px, 2vw, 32px)/1.1 var(--f-display); }
.hcard__spec { font: 700 var(--t-xs)/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-day-soft); }
.hcard__note { margin-top: var(--s2); font-size: var(--t-sm); color: var(--ink-day-soft); }
.hcard__price { margin-top: var(--s2); font-weight: 700; color: var(--amber-deep); }
.hcard__price small { font-weight: 400; color: var(--ink-day-soft); font-size: var(--t-sm); }
@media (hover: hover) and (pointer: fine) { .hcard a:hover .hcard__pic img { transform: scale(1.03); } .hcard a:hover .hcard__name { color: var(--amber-deep); } }
@media (max-width: 1199px) {
	.hcards {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
		margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
	}
	.hcards::-webkit-scrollbar { display: none; }
	.hcard { flex: none; width: min(84vw, 380px); scroll-snap-align: start; }
}

/* ---------- список домов ---------- */
.hrows { display: grid; gap: clamp(64px, 9vw, 140px); }
.hrow { display: grid; gap: var(--s6); align-items: center; }
.hrow__pics { position: relative; display: block; padding-bottom: 14%; }
.hrow__a { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hrow__b { position: absolute; right: -2%; bottom: 0; width: 40%; aspect-ratio: 4 / 3; object-fit: cover; outline: 8px solid var(--g-day); box-shadow: var(--shadow-inset); }
.hrow__spec { font: 700 var(--t-xs)/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-day-soft); }
.hrow__name { margin-top: var(--s2); font: 400 clamp(36px, 4vw, 64px)/1.02 var(--f-display); letter-spacing: -.015em; }
.hrow__name a { text-decoration: none; }
.hrow__copy p:not(.hrow__spec) { margin-top: var(--s4); max-width: 44ch; color: var(--ink-day-soft); }
.hrow__copy .hrow__price { color: var(--amber-deep); font-weight: 700; font-size: var(--t-lg); }
.hrow__price small { font-weight: 400; font-size: var(--t-sm); color: var(--ink-day-soft); }
.hrow__copy .link { margin-top: var(--s5); }
@media (min-width: 900px) {
	.hrow { grid-template-columns: 7fr 5fr; column-gap: var(--s9); }
	.hrow--flip { grid-template-columns: 5fr 7fr; }
	.hrow--flip .hrow__pics { order: 2; }
	.hrow--flip .hrow__b { right: auto; left: -2%; }
}
@media (hover: hover) and (pointer: fine) { .hrow__name a:hover { color: var(--amber-deep); } }

/* сравнение */
.cmp { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.cmp table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.cmp th, .cmp td { text-align: left; padding: var(--s4) var(--s5) var(--s4) 0; border-bottom: 1px solid var(--line-day); vertical-align: baseline; }
.cmp thead th { font: 700 var(--t-xs)/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-day-soft); border-bottom-color: var(--ink-day); }
.cmp tbody th { font: 400 var(--t-h3)/1.2 var(--f-display); }
.cmp tbody th a { text-decoration: none; }
.cmp .num { text-align: right; padding-right: 0; white-space: nowrap; }
.cmp td.num { font-weight: 700; color: var(--amber-deep); }
@media (hover: hover) and (pointer: fine) { .cmp tbody th a:hover { color: var(--amber-deep); } }

/* туры */
.tours { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tours a { display: grid; gap: var(--s1); text-decoration: none; }
.tours img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: var(--s3); }
.tour__name { font: 400 var(--t-h3)/1.15 var(--f-display); }
.tour__sub { font-size: var(--t-sm); color: var(--ink-night-soft); }
.tour__go { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s2); font-weight: 700; color: var(--amber); }
.tour__go svg { width: 18px; height: 18px; fill: currentColor; transition: transform var(--d-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tours a:hover .tour__go svg { transform: translateX(4px); } }

/* ---------- прокат, клуб ---------- */
.acts { display: grid; gap: var(--s7) var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.acts figure { overflow: hidden; }
.acts img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.acts h3 { margin-top: var(--s4); font: 400 var(--t-h3)/1.15 var(--f-display); }
.acts p { margin-top: var(--s1); font-size: var(--t-sm); color: var(--ink-day-soft); max-width: 36ch; }

.perks { display: grid; gap: var(--s6) var(--s7); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.perks li { border-top: 1px solid var(--line-day); padding-top: var(--s4); }
.perks h3 { font: 400 var(--t-h3)/1.2 var(--f-display); }
.perks p { margin-top: var(--s2); color: var(--ink-day-soft); max-width: 36ch; }

.duo { display: grid; gap: var(--s7); }
.duo p { margin-top: var(--s3); color: var(--ink-night-soft); max-width: 52ch; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; column-gap: var(--s9); } }

/* ---------- ресторан ---------- */
.menu { display: grid; gap: var(--s8) var(--s9); }
@media (min-width: 900px) { .menu { grid-template-columns: 1fr 1fr; } }
.menu__col h3 { font: 400 var(--t-h3)/1.2 var(--f-display); color: var(--amber); margin-bottom: var(--s3); }
.menu__col li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5); padding: var(--s3) 0; border-top: 1px solid var(--line-night); }
.menu__col li span { max-width: 44ch; }
.menu__col li b { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.menu__more { margin-top: var(--s7); }
.quote { max-width: 980px; }
.quote blockquote { margin: 0; }
.quote p { font: 400 italic clamp(30px, 3.6vw, 56px)/1.15 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.quote p::before { content: "«"; } .quote p::after { content: "»"; }
.quote figcaption { margin-top: var(--s6); max-width: 60ch; color: var(--ink-night-soft); }

/* ---------- отзывы ---------- */
.score { display: grid; gap: var(--s5) var(--s8); align-items: center; }
.score__num { font: 400 clamp(96px, 14vw, 200px)/.85 var(--f-display); letter-spacing: -.03em; color: var(--amber-deep); }
.score__sub { font: 400 var(--t-h3)/1.25 var(--f-display); max-width: 24ch; }
.score p + p { margin-top: var(--s3); color: var(--ink-day-soft); max-width: 52ch; }
@media (min-width: 900px) { .score { grid-template-columns: auto 1fr; } }
.yrev { position: relative; min-height: 120px; }
.yrev:has(iframe) { height: 800px; max-width: 760px; }
.vids { display: grid; gap: var(--s4); grid-template-columns: repeat(4, 1fr); }
.vid { position: relative; aspect-ratio: 9 / 16; background: linear-gradient(160deg, #1b2620, #0a0f0d); overflow: hidden; }
.vid__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s3); background: none; border: 0; color: var(--ink-night); cursor: pointer; font: 700 var(--t-xs)/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.vid.on .vid__play { display: none; }
.vid__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.vid__play::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 15, 13, 0) 45%, rgba(10, 15, 13, .82)); }
.vid__play .m3d__icon { position: relative; z-index: 2; }
.vid__cap { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 2; display: grid; gap: var(--s1); text-align: left; text-transform: none; letter-spacing: 0; }
.vid__cap b { font: 400 var(--t-lg)/1.2 var(--f-display); color: var(--ink-night); }
.vid__cap span { font: 700 var(--t-xs)/1 var(--f-label); letter-spacing: .12em; color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .vid__play:hover .vid__poster { transform: scale(1.04); } }
@media (hover: hover) and (pointer: fine) { .vid__play:hover .m3d__icon { transform: scale(1.06); } }
@media (max-width: 899px) {
	.vids { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.vids li { flex: none; width: 62vw; scroll-snap-align: start; }
}

/* ---------- связь ---------- */
.msgr { display: grid; gap: 0 var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.msgr a {
	display: flex; align-items: center; gap: var(--s4); padding: var(--s5) 0;
	border-top: 1px solid var(--line-night); text-decoration: none; min-height: 72px;
}
.msgr svg { width: 28px; height: 28px; fill: var(--amber); flex: none; transition: transform var(--d-ui) var(--ease-out); }
.msgr span { display: grid; font-size: var(--t-sm); color: var(--ink-night-soft); }
.msgr b { font: 400 var(--t-h3)/1.2 var(--f-display); color: var(--ink-night); }
@media (hover: hover) and (pointer: fine) { .msgr a:hover b { color: var(--amber); } .msgr a:hover svg { transform: scale(1.1); } }

/* ---------- финальный блок ---------- */
.endcta { padding-block: var(--section); background: linear-gradient(var(--g-bluehour), var(--g-night) 40%); }
.endcta__grid { display: grid; gap: var(--s8); align-items: center; }
.endcta .h2 { max-width: 14ch; }
.endcta .lede { margin-top: var(--s5); color: var(--ink-night-soft); }
.endcta__btns { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.endcta__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (min-width: 900px) { .endcta__grid { grid-template-columns: 7fr 5fr; column-gap: var(--s9); } }

/* ---------- правила, документы, новости ---------- */
.rules { display: grid; gap: var(--s8) var(--s9); }
@media (min-width: 900px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule h2 { font: 400 var(--t-h3)/1.2 var(--f-display); padding-bottom: var(--s3); border-bottom: 1px solid var(--ink-day); }
.rule li { position: relative; padding: var(--s3) 0 var(--s3) var(--s5); border-bottom: 1px solid var(--line-day); color: var(--ink-day-soft); max-width: 60ch; }
.rule li::before { content: "—"; position: absolute; left: 0; color: var(--amber-deep); }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s8); font: 400 var(--t-h3)/1.2 var(--f-display); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s6); font-size: var(--t-base); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: var(--s2); }
.prose li::marker { color: var(--amber-deep); }
.prose a { color: var(--amber-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s2) var(--s4) var(--s2) 0; border-bottom: 1px solid var(--line-day); }
.prose th { font-weight: 700; }
.prose em { color: var(--ink-day-soft); }

.news { max-width: 72ch; }
.news__date { font: 700 var(--t-xs)/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-day-soft); }
.news .h2 { margin-top: var(--s3); font-size: clamp(30px, 3.4vw, 48px); }
.news figure { margin-block: var(--s6); }
.news p + p { margin-top: var(--s4); }

/* ---------- страница брони ---------- */
.bookpage .wrap { display: grid; gap: var(--s8); align-items: start; }
.bookpage__form { min-height: 560px; }
.bookpage__form .tlbar__fallback a { color: var(--amber-deep); font-weight: 700; }
.bookpage__aside > * + * { margin-top: var(--s5); }
.bookpage__aside p { color: var(--ink-day-soft); }
.bookpage__aside .note a { color: var(--amber-deep); }
@media (min-width: 1100px) { .bookpage .wrap { grid-template-columns: 8fr 4fr; column-gap: var(--s8); } }

/* ---------- широкие мониторы: кадры по рамке ---------- */
@media (min-width: 1601px) {
	.phero__media { left: calc((100% - var(--frame)) / 2); right: calc((100% - var(--frame)) / 2); }
	.phero { min-height: min(72vh, 900px); }
}

/* ---------- телефон ---------- */
@media (max-width: 899px) {
	/* над обложкой модуль брони: заголовок и кнопка должны остаться поближе к первому экрану */
	.phero { min-height: 0; }
	.phero__copy { padding-block: var(--s8) var(--s6); }
	.phero__title { font-size: clamp(38px, 11vw, 54px); }
	.phero__lead { font-size: 16px; }
	.phero__cta .btn { flex: 1 1 auto; }
	.phero--plain .phero__title { font-size: clamp(32px, 9vw, 44px); }
	.prices > div { flex-direction: column; gap: var(--s1); }
	.price-card { padding: var(--s5); }
	.amen--tight { grid-template-columns: 1fr; }
	.sec__head { margin-bottom: var(--s6); }
	.hrow__b { width: 44%; outline-width: 5px; }
}

/* правки по скриншотам */
@media (min-width: 1100px) { .inner .wrap { padding-right: var(--gutter); } } /* на внутренних нет схемы маршрута справа */
.price-card .btn--primary { --btn-bg: var(--amber); --btn-ink: var(--amber-ink); --btn-line: var(--amber); }
@media (hover: hover) and (pointer: fine) { .price-card .btn--primary:hover { --btn-bg: #F0B562; --btn-line: #F0B562; } }
.m3d::after { background: linear-gradient(0deg, rgba(10, 15, 13, .9), rgba(10, 15, 13, .55) 30%, rgba(10, 15, 13, 0) 62%); }

/* ---------- частые вопросы и клуб в кадрах (главная) ---------- */
.faqx { background: var(--g-night); }
.faqx__grid { display: grid; gap: var(--s8); align-items: start; }
.faqx .sec__head { margin-bottom: var(--s6); }
.qa { border-top: 1px solid var(--line-night); }
.qa:last-of-type { border-bottom: 1px solid var(--line-night); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0; font: 400 var(--t-h3)/1.25 var(--f-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform var(--d-ui) var(--ease-out); }
.qa[open] summary::after { transform: rotate(-135deg); }
.qa p { margin: 0 0 var(--s5); color: var(--ink-night-soft); max-width: 62ch; }
.faqx__more { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s6); }
.faqx__gal .h3 { margin-bottom: var(--s5); }
.faqx__gal .gal__grid { columns: 2; column-gap: var(--s3); }
.faqx__gal .gal__grid li { margin-bottom: var(--s3); }
.faqx__gal .gal__a { background: rgba(236, 231, 220, .06); }
@media (min-width: 1000px) {
	.faqx__grid { grid-template-columns: 7fr 4fr; column-gap: var(--s9); }
}
.score .h3 + p { margin-top: var(--s3); color: var(--ink-day-soft); max-width: 52ch; }

/* ---------- лента новостей ---------- */
.newsl { display: grid; gap: var(--s7); }
.newsl__a { display: grid; gap: var(--s5); text-decoration: none; }
.newsl__a img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 600ms var(--ease-out); }
.newsl__pic { overflow: hidden; }
.newsl__a .h2 { font-size: clamp(28px, 3vw, 44px); max-width: 22ch; }
.newsl__a p { color: var(--ink-day-soft); max-width: 60ch; }
@media (min-width: 900px) { .newsl__a { grid-template-columns: 6fr 5fr; align-items: center; gap: var(--s8); } }
@media (hover: hover) and (pointer: fine) { .newsl__a:hover img { transform: scale(1.03); } .newsl__a:hover .h2 { color: var(--amber-deep); } }
.faqx .sec__head { grid-template-columns: 1fr; }
.faqx .wrap { padding-right: var(--rail-pad, var(--gutter)); }
.newsl__a .h2 { margin-top: var(--s3); }
.newsl__a .h2 + p { margin-top: var(--s4); }
.newsl__a .link { display: inline-block; margin-top: var(--s5); }

/* ---------- модель дома на всю ширину (страница коттеджа) ---------- */
.layers { background: var(--g-night); color: var(--ink-night); padding-top: var(--section); }
.layers__intro { display: grid; gap: var(--s4) var(--s8); align-items: end; padding-bottom: var(--s7); }
.layers__intro .lede { color: var(--ink-night-soft); max-width: 56ch; }
.layers__intro .layers__open { justify-self: start; }
@media (min-width: 900px) { .layers__intro { grid-template-columns: 6fr 6fr; } .layers__intro .layers__open { grid-column: 2; } }
.layers__stage { position: relative; overflow: hidden; background: #F1F2EE; }
.layers__poster { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.layers__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 600ms var(--ease-out); }
.layers__frame.on { opacity: 1; }
/* сцена ведётся прокруткой страницы: дорожка длиной в несколько экранов, кадр прилип к верху */
.layers--live .layers__track { height: 520vh; }
.layers--live .layers__stage { position: sticky; top: var(--head-h); height: calc(100svh - var(--head-h)); }
.layers--live .layers__poster { height: 100%; aspect-ratio: auto; }
@media (max-width: 899px) { .layers--live .layers__track { height: 460vh; } .layers__poster { aspect-ratio: 4 / 3; } }
@media (pointer: coarse) { .layers__frame { pointer-events: none; } }

/* --- появления на внутренних страницах (только с html.lite: есть JS и не просили меньше движения) --- */
.lite .phero__media { overflow: hidden; }
.lite .phero__img { scale: 1.08; transition: scale 2.6s cubic-bezier(.16, 1, .3, 1); }
.lite .phero.is-in .phero__img { scale: 1; }
.lite .phero__copy > :not(.phero__title) { opacity: 0; translate: 0 14px; transition: opacity .9s var(--ease-out), translate 1s var(--ease-out); }
.lite .phero.is-in .phero__copy > :not(.phero__title) { opacity: 1; translate: 0 0; }
.lite .phero.is-in .crumbs { transition-delay: .1s; }
.lite .phero.is-in .phero__meta { transition-delay: .2s; }
.lite .phero.is-in .phero__lead { transition-delay: .7s; }
.lite .phero.is-in .phero__cta { transition-delay: .85s; }
.lite .phero.is-in .phero__title .w > i { transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > i { display: inline-block; font-style: normal; }
.lite [data-split] .w > i { transform: translateY(108%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.lite [data-split].in .w > i { transform: none; }
.split__pic, .endcta__photo { overflow: hidden; }
.lite .rimg { clip-path: inset(100% 0 0 0); transform: scale(1.14); transition: clip-path 1.25s var(--ease-io), transform 1.7s cubic-bezier(.16, 1, .3, 1); }
.lite .in > .rimg { clip-path: inset(0 0 0 0); transform: none; }
@media (hover: hover) and (pointer: fine) { .lite .gal__a.in:hover > .rimg { transform: scale(1.03); transition: transform 600ms var(--ease-out), clip-path 1.25s var(--ease-io); } }

/* длинная почта занимает строку целиком, а не вылезает из половины */
.facts > div { min-width: 0; }
.facts > div:has(a[href^="mailto:"]) { grid-column: 1 / -1; }

/* карточка согласия на cookie: не модальная, страницу можно читать дальше;
   на телефоне над плавающей кнопкой TravelLine */
.consent {
	position: fixed; z-index: 90; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px));
	padding: var(--s4) var(--s5); background: var(--chrome); color: var(--ink-night); font-size: var(--t-sm); line-height: 1.5;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .35); border: 1px solid var(--line-night);
	opacity: 0; transform: translateY(12px); transition: opacity .32s var(--ease-out), transform .32s var(--ease-out);
}
.consent:not(.is-on) { pointer-events: none; }
.consent.is-on { opacity: 1; transform: none; }
.consent a { color: inherit; text-underline-offset: 3px; }
.consent__row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.consent__row .btn { flex: 1 1 auto; }
@media (max-width: 640px) { .consent { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ---------- афиша (tools/v05.py, build_events) ---------- */
.evl { display: grid; gap: var(--s9); }
.ev { display: grid; gap: var(--s6); align-items: start; }
.ev__pic a { display: block; }
.ev__pic img { width: 100%; height: auto; box-shadow: 0 18px 40px -24px rgba(21, 19, 15, .55); }
.ev__text > * + * { margin-top: var(--s4); }
.ev__text .h2 { margin-top: var(--s3); font-size: clamp(30px, 3.4vw, 48px); max-width: 20ch; }
.ev__lead { font-size: var(--t-lg); max-width: 56ch; }
.ev__text p { max-width: 60ch; }
.ev__sub { margin-top: var(--s6) !important; font: 700 var(--t-xs)/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-day-soft); }
.ev__prog { grid-template-columns: 1fr; margin-top: var(--s3) !important; }
.ev__facts { display: grid; gap: 0; margin-top: var(--s6) !important; }
.ev__facts > div { display: grid; grid-template-columns: 9em 1fr; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--line-day); }
.ev__facts > div:last-child { border-bottom: 1px solid var(--line-day); }
.ev__facts dt { color: var(--ink-day-soft); }
.ev__facts b { font-weight: 700; white-space: nowrap; }
.ev__book { margin-top: var(--s6) !important; }
.ev__book .split__btns { margin-top: var(--s4) !important; }
.ev__done { display: none; }
.ev--past .ev__book { display: none; }
.ev--past .ev__done { display: block; color: var(--ink-day-soft); }
.ev--past .ev__pic img { filter: grayscale(.6); opacity: .85; }
.sec--past .evl { gap: var(--s8); }
.ev__empty { max-width: 56ch; }
@media (max-width: 520px) { .ev__facts > div { grid-template-columns: 1fr; gap: var(--s1); } }
@media (min-width: 900px) {
	.ev { grid-template-columns: 5fr 7fr; gap: var(--s8); }
	.ev__pic { position: sticky; top: calc(var(--top-h, 80px) + var(--s6)); }
	.sec--past .ev { grid-template-columns: 3fr 9fr; }
}
.sec[hidden], .ev__empty[hidden] { display: none; }
