/* Панорама-Парк — galitskystay.ru */
:root {
  --bg: #f6f1e7;
  --paper: #fffdf8;
  --ink: #16201b;
  --ink-2: #33403a;
  --muted: #66716a;
  --line: #e4dbcb;
  --line-2: #d6cbb7;
  --green: #1d4636;
  --green-2: #2b6450;
  --green-soft: #e3ece4;
  --gold: #b0823a;
  --gold-2: #c99a4e;
  --gold-soft: #f1e3c6;
  --night: #0e1915;
  --danger: #a33a2a;
  --ok: #2b6450;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 32, 27, .05), 0 8px 30px rgba(22, 32, 27, .08);
  --shadow-lg: 0 2px 6px rgba(22, 32, 27, .06), 0 24px 60px rgba(22, 32, 27, .16);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; overflow: visible; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent; background: var(--green); color: #fff; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { background: var(--green-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: var(--gold-soft); flex: none; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font: 600 23px/1 var(--serif); letter-spacing: .01em; }
.logo-text small { display: block; font: 500 10.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--green); }
.top-phone { font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.top .btn { min-height: 44px; padding: 0 20px; }
.burger { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.burger .icon { width: 26px; height: 26px; }
.drawer { display: none; }
.top-book { display: none; }
@media (max-width: 1020px) {
  .nav, .top-phone { display: none; }
  .burger { display: block; }
  .top .top-book-full { display: none; }
  .top .wrap { gap: 12px; }
  .top-book { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--gold); color: #fff; font: 700 14px var(--sans); text-decoration: none; white-space: nowrap; }
  .top-book:hover { color: #fff; background: var(--gold-2); }
  .top-book .icon { width: 17px; height: 17px; }
  /* Полноэкранное меню (вне шапки, на весь экран под ней) */
  .drawer { display: block; position: fixed; left: 0; right: 0; top: 72px; bottom: 0; height: calc(100dvh - 72px); background: var(--bg); padding: 8px var(--gut) calc(32px + env(safe-area-inset-bottom)); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; overflow-y: auto; overscroll-behavior: contain; z-index: 60; }
  .drawer.open { opacity: 1; transform: none; visibility: visible; }
  .drawer nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font: 600 27px/1.2 var(--serif); color: var(--ink); text-decoration: none; }
  .drawer-apts { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 6px; }
  .drawer-apts .eyebrow { width: 100%; margin-bottom: 4px; }
  .drawer-apts a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
  .drawer .btn { margin-top: 12px; width: 100%; }
}
@media (max-width: 520px) {
  .logo-text small { display: none; }
  .logo-text { font-size: 21px; }
}
@media (max-width: 380px) {
  .top-book { padding: 0 11px; }
}

/* Герой */
.hero { padding: 28px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { margin-bottom: 30px; }
.hero-media { position: relative; aspect-ratio: 4 / 4.4; }
.hero-media .ph { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #d9cfbd; }
.hero-media .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .ph-1 { inset: 0 0 18% 12%; }
.hero-media .ph-2 { left: 0; bottom: 0; width: 46%; aspect-ratio: 4/3.2; border: 6px solid var(--bg); border-radius: 22px; }
.hero-badge {
  position: absolute; right: -6px; bottom: 9%; background: var(--paper); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.3;
}
.hero-badge b { font: 600 30px/1 var(--serif); color: var(--green); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--ink-2); font-size: 14.5px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--gold); width: 18px; height: 18px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3.6; order: -1; margin: 0 -6px; }
  .hero-media .ph-1 { inset: 0 0 14% 18%; }
  .hero-badge { right: 4px; }
}

/* Поиск / калькулятор */
.search {
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 8px;
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 6px; align-items: stretch; position: relative;
}
.field { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.search .field { border-radius: 16px; padding: 10px 16px; cursor: pointer; text-align: left; background: none; border: 0; min-height: 60px; display: flex; flex-direction: column; justify-content: center; }
.search .field:hover, .search .field.active { background: var(--bg); }
.field-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field-value { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-value.placeholder { color: var(--muted); font-weight: 500; }
.search .btn { height: auto; min-height: 60px; border-radius: 16px; padding: 0 28px; }
.dates-split { display: grid; grid-template-columns: 1fr 1fr; }
.dates-split .field + .field { border-left: 1px solid var(--line); border-radius: 0 16px 16px 0; }
.dates-split .field:first-child { border-radius: 16px 0 0 16px; }
@media (max-width: 640px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .dates-split { grid-column: 1 / -1; }
  .search .btn { min-height: 56px; }
}

/* Гости */
.guests { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; }

/* Календарь */
.cal-pop {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: 0; background: var(--paper); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 22px; width: min(720px, calc(100vw - 32px)); display: none;
}
.cal-pop.open { display: block; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cal-month h4 { text-align: center; font: 600 16px/1 var(--sans); margin: 0 0 14px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-dow { font-size: 11.5px; color: var(--muted); text-align: center; padding-bottom: 6px; font-weight: 600; }
.cal-day {
  aspect-ratio: 1; border: 0; background: none; border-radius: 50%; cursor: pointer; font-weight: 600; font-size: 14.5px;
  position: relative; display: grid; place-items: center; padding: 0; color: var(--ink);
}
.cal-day:hover:not(:disabled) { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.cal-day:disabled { color: #b8b2a6; cursor: default; }
.cal-day.busy { color: #b8b2a6; text-decoration: line-through; }
.cal-day.in-range { background: var(--green-soft); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--green); color: #fff; border-radius: 50%; }
.cal-day.start.has-end { border-radius: 50% 0 0 50%; box-shadow: inset 0 0 0 0 var(--green); }
.cal-day.end { border-radius: 0 50% 50% 0; }
.cal-day.start.end { border-radius: 50%; }
.cal-day.checkout-only { color: var(--ink); text-decoration: none; }
.cal-day.today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.cal-legend { display: flex; gap: 16px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.cal-hint { color: var(--muted); font-size: 14px; }
.cal-clear { background: none; border: 0; text-decoration: underline; cursor: pointer; font-weight: 600; padding: 6px; }
.guests-pop { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px 20px; width: 300px; display: none; }
.guests-pop.open { display: block; }
.guests-pop p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .cal-pop, .guests-pop { position: fixed; inset: auto 0 0 0; top: auto; width: 100%; border-radius: 24px 24px 0 0; max-height: 88vh; overflow-y: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .cal-months { grid-template-columns: 1fr; gap: 20px; }
  .cal-month + .cal-month { display: none; }
  .sheet-backdrop { position: fixed; inset: 0; background: rgba(14, 25, 21, .4); z-index: 55; }
}

/* Результаты поиска */
.results { margin-top: 18px; }
.results:empty { display: none; }
.res-note { background: var(--paper); border-radius: 16px; padding: 16px 20px; border: 1px solid var(--line); }
.res-list { display: grid; gap: 12px; }
.res-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--paper); border-radius: 18px; padding: 10px 18px 10px 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.res-item:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.res-item img { width: 120px; height: 86px; object-fit: cover; border-radius: 12px; }
.res-item h4 { font: 600 22px/1.1 var(--serif); margin: 0 0 4px; }
.res-item .muted { font-size: 14px; margin: 0; }
.res-price { text-align: right; }
.res-price b { font-size: 20px; display: block; }
.res-price span { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .res-item { grid-template-columns: 92px 1fr; }
  .res-item img { width: 92px; height: 76px; }
  .res-price { grid-column: 2; text-align: left; }
}
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line-2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Карточки квартир */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { color: var(--ink); text-decoration: none; display: block; }
.card:hover { color: var(--ink); }
.card-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: #dcd2c0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 253, 248, .94); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.card-body { padding: 16px 2px 0; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title h3 { margin: 0; }
.card-price { white-space: nowrap; font-size: 15px; color: var(--muted); }
.card-price b { color: var(--ink); font-size: 18px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin: 6px 0 8px; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .icon { width: 16px; height: 16px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }

.cards > .card:nth-child(7):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 26px; align-items: center; }
.cards > .card:nth-child(7):last-child .card-media { aspect-ratio: 21 / 9; }
.cards > .card:nth-child(7):last-child .card-body { padding: 0; }
@media (max-width: 620px) { .cards > .card:nth-child(7):last-child { display: block; } .cards > .card:nth-child(7):last-child .card-media { aspect-ratio: 4 / 3; } .cards > .card:nth-child(7):last-child .card-body { padding-top: 16px; } }

/* Преимущества */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.perk { background: var(--paper); padding: 30px 26px; }
.perk .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; stroke-width: 1.4; }
.perk h3 { font-size: 24px; margin-bottom: 8px; }
.perk p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* Тёмная секция — парк */
.dark { background: var(--night); color: #e9e4d8; position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: #c9c3b5; }
.dark .eyebrow { color: var(--gold-2); }
.park-teaser { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.park-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.park-mosaic figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: #1d2a25; }
.park-mosaic figure:first-child { grid-row: 1 / 3; }
.park-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.park-mosaic figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 28px 0 32px; }
.facts b { display: block; font: 600 40px/1 var(--serif); color: var(--gold-2); }
.facts span { font-size: 14px; color: #b9b3a5; }
.credit { font-size: 11.5px; color: #8d877b; margin-top: 10px; }
.credit a { color: inherit; }
@media (max-width: 900px) { .park-teaser { grid-template-columns: 1fr; } }

/* Подборки */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: .2s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip .icon { width: 18px; height: 18px; color: var(--gold); }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.chip.on .icon { color: var(--gold-soft); }
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.collection { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; display: flex; align-items: end; padding: 20px; background: #333; }
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.collection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 18, 15, .78)); }
.collection:hover img { transform: scale(1.05); }
.collection span { position: relative; z-index: 1; font: 600 26px/1.05 var(--serif); }
.collection small { display: block; font: 500 13px/1.4 var(--sans); opacity: .85; margin-top: 6px; }
.collection:hover { color: #fff; }
@media (max-width: 900px) { .collections { grid-template-columns: repeat(2, 1fr); } }

/* Локация */
.loc { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.map { border-radius: var(--r); overflow: hidden; background: #e6dfd2; height: 360px; align-self: center; border: 1px solid var(--line); } /* выше ~400 px Яндекс добавляет в виджет рекламу */
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.near { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 2px; }
.near li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.near li span:last-child { color: var(--muted); text-align: right; }
@media (max-width: 900px) { .loc { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font: 600 21px/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 30px/1 var(--sans); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; margin: 0; color: var(--ink-2); max-width: 720px; }

/* Журнал */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { text-decoration: none; color: var(--ink); background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.post-card .pm { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--green), #0f2b20); position: relative; overflow: hidden; }
.post-card .pm img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pm .pm-logo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-soft); font: 600 30px var(--serif); }
.post-card .pb { padding: 20px 22px 24px; }
.post-kind { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: 24px; margin: 8px 0 8px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.event-date { display: inline-flex; gap: 8px; align-items: center; background: var(--gold-soft); color: #6b4a14; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-top: 12px; }
.article { max-width: 760px; margin: 0 auto; }
.article .cover { border-radius: var(--r); overflow: hidden; margin: 28px 0 32px; }
.article-body { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.article-body ul { padding-left: 1.2em; }

/* Страница квартиры */
.crumbs { font-size: 14px; color: var(--muted); padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.apt-head { padding: 14px 0 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.apt-head h1 { font-size: clamp(38px, 5vw, 60px); margin: 0 0 8px; }
.apt-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); }
.apt-sub span { display: inline-flex; gap: 7px; align-items: center; }
.apt-sub .icon { width: 18px; height: 18px; color: var(--gold); }
.gallery-wrap { position: relative; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 46vw, 540px); border-radius: 22px; overflow: hidden; }
.gallery button { border: 0; padding: 0; background: #ddd3c2; cursor: zoom-in; overflow: hidden; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery .g-more { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.gallery button:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery-all { position: absolute; right: 18px; bottom: 18px; display: inline-flex; gap: 9px; align-items: center; border: 0; cursor: pointer; padding: 11px 18px; border-radius: 999px; font: 700 14px var(--sans); color: var(--ink); background: rgba(255, 253, 248, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(14, 25, 21, .22); transition: transform .2s, background .2s; }
.gallery-all:hover { background: #fff; transform: translateY(-1px); }
.gallery-all .icon { width: 18px; height: 18px; color: var(--green); }
.gallery-count { display: none; }
@media (max-width: 760px) {
  .gallery-wrap { margin: 0 calc(var(--gut) * -1); }
  /* На телефоне — лента всех фото: листаем пальцем по одному кадру */
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: auto; aspect-ratio: 4 / 3; border-radius: 0; gap: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button, .gallery .g-more { display: block; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
  .gallery button:hover img { transform: none; filter: none; }
  .gallery-all { right: auto; left: calc(var(--gut) - 4px); bottom: 12px; padding: 9px 14px; font-size: 13px; }
  .gallery-count { display: block; position: absolute; right: var(--gut); bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 18, 15, .62); color: #fff; font: 700 13px var(--sans); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
}
.apt-layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(32px, 5vw, 80px); padding-top: 44px; align-items: start; }
@media (max-width: 1020px) { .apt-layout { grid-template-columns: 1fr; } }
.apt-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.apt-block:first-child { padding-top: 0; }
.apt-block h2 { font-size: clamp(28px, 3vw, 36px); }
.highlights { display: grid; gap: 18px; }
.hl { display: flex; gap: 16px; align-items: flex-start; }
.hl .icon { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.hl b { display: block; font-size: 16.5px; }
.hl span { color: var(--muted); font-size: 14.5px; }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; list-style: none; padding: 0; margin: 0; }
.amen li { display: flex; gap: 12px; align-items: center; }
.amen .icon { color: var(--ink-2); width: 22px; height: 22px; }
.sleep { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sleep div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--paper); }
.sleep .icon { width: 26px; height: 26px; color: var(--gold); margin-bottom: 8px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.rules > div { display: flex; gap: 12px; }
.rules .icon { color: var(--gold); width: 22px; height: 22px; margin-top: 2px; }
.rules b { display: block; }
.rules span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 560px) { .amen, .rules { grid-template-columns: 1fr; } }

/* Карточка брони */
.book { position: sticky; top: 92px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; border: 1px solid var(--line); }
.book-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.book-price b { font: 600 34px/1 var(--serif); }
.book-fields { border: 1px solid var(--line-2); border-radius: 14px; position: relative; }
.book-fields .dates-split .field { min-height: 62px; padding: 10px 14px; background: none; border: 0; text-align: left; cursor: pointer; }
.book-fields .dates-split .field + .field { border-left: 1px solid var(--line-2); border-radius: 0; }
.book-fields .guests-row { border-top: 1px solid var(--line-2); padding: 10px 14px; }
.book-fields .cal-pop { right: 0; left: auto; }
.breakdown { margin: 18px 0 4px; display: grid; gap: 10px; font-size: 15px; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 17px; }
.breakdown .pre { color: var(--green); font-weight: 600; }
.book-msg { margin-top: 14px; font-size: 14.5px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.book-msg.err { background: #f7e5df; color: var(--danger); }
.book-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.book-contact { display: flex; gap: 8px; margin-top: 16px; }
.book-contact a { flex: 1; min-height: 44px; padding: 0 12px; font-size: 14px; }
@media (max-width: 1020px) {
  .book { position: relative; top: 0; }
  .book-wrap { order: -1; }
}
.mbar { display: none; }
@media (max-width: 1020px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .06); }
  .mbar b { font-size: 18px; }
  .mbar .btn { min-height: 48px; }
  .has-mbar footer { padding-bottom: 96px; }
}

/* Модальное окно брони */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 25, 21, .55); }
.modal.open { display: flex; }
.modal-box { background: var(--paper); border-radius: 24px; max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.modal h3 { font-size: 32px; margin-bottom: 6px; }
.summary { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin: 16px 0 20px; font-size: 15px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 16px; font-weight: 400; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: transparent; }
.form textarea { min-height: 90px; resize: vertical; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.form .check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -5000px; }
@media (max-width: 560px) {
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 24px 24px 0 0; max-height: 94vh; padding: 26px 18px calc(26px + env(safe-area-inset-bottom)); }
}

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 12, 10, .96); display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: #fff; font-size: 14px; }
.lb-top button { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 64px 24px; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 640px) { .lb-stage { padding: 0 0 20px; } .lb-prev, .lb-next { display: none; } }

/* Посадочные */
.landing-hero { padding: 24px 0 clamp(40px, 6vw, 72px); }
.landing-hero .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.landing-hero h1 { font-size: clamp(38px, 5.4vw, 66px); }
.landing-hero .img { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.landing-hero .img img { width: 100%; height: 100%; object-fit: cover; }
.points { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.points .icon { color: var(--green); width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 900px) { .landing-hero .grid { grid-template-columns: 1fr; } .landing-hero .img { order: -1; } }
@media (max-width: 480px) { .points { grid-template-columns: 1fr; } }

/* Страница парка */
.park-hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: end; color: #fff; background: var(--night); }
.park-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.park-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 12, .1) 30%, rgba(8, 14, 12, .82)); }
.park-hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 7vw, 80px); }
.park-hero h1 { color: #fff; font-size: clamp(54px, 9vw, 120px); margin-bottom: 14px; }
.park-hero .lead { color: #e5e0d4; }
.park-hero .credit { position: absolute; right: var(--gut); bottom: 14px; z-index: 1; color: #bdb7aa; }
.park-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.park-facts b { font: 600 clamp(34px, 4vw, 52px)/1 var(--serif); color: var(--green); display: block; }
.park-facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .park-facts { grid-template-columns: 1fr 1fr; } }
.chapter { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media figure { margin: 0; }
.chapter-media img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.chapter-media figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }
.chapter-media figcaption a { color: inherit; }
.chapter .num { font: italic 500 22px var(--serif); color: var(--gold); display: block; margin-bottom: 8px; }
.chapter p { color: var(--ink-2); font-size: 17px; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } .chapter:nth-child(even) .chapter-media { order: 0; } }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.tip h3 { font-size: 22px; }
.tip p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .tips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tips { grid-template-columns: 1fr; } }

/* Простые страницы */
.page-head { padding: 32px 0 20px; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 64px); }
.prose { max-width: 760px; font-size: 17px; color: var(--ink-2); }
.prose h2 { font-size: 32px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.cta { background: var(--green); color: #e9efe9; border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; color: #c9d8cf; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Подвал */
footer { background: var(--night); color: #b9b3a5; padding: 72px 0 32px; font-size: 15px; }
footer a { color: #e9e4d8; text-decoration: none; }
footer a:hover { color: var(--gold-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot h4 { color: #fff; font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot .logo { color: #fff; margin-bottom: 16px; }
.foot .logo-text small { color: #8d877b; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #23302b; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8d877b; }
/* Подпись разработчика (Нейвокс) — как на gromko.moscow: логотип + слоган «табло» */
.foot-bottom a.dev { display: inline-flex; align-items: flex-start; gap: 10px; color: #8d877b; }
.foot-bottom a.dev > span:first-child { line-height: 30px; }
.dev__mark { display: grid; justify-items: start; gap: 3px; }
.dev img { display: block; height: 30px; width: auto; transition: translate .35s ease, filter .35s ease; }
.dev__tag { font: 500 9.5px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #6f6a60; transition: color .35s ease; }
.foot-bottom a.dev:is(:hover, :focus-visible) { color: #e9e4d8; }
.foot-bottom a.dev:is(:hover, :focus-visible) .dev__tag { color: var(--gold-2); }
.dev:is(:hover, :focus-visible) img { translate: 0 -2px; filter: drop-shadow(0 4px 10px rgba(201, 154, 78, .4)); }
@media (max-width: 760px) { .foot-bottom a.dev { flex-basis: 100%; justify-content: center; margin-top: 10px; } }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
