:root {
  --bg: #F4EEE5;
  --paper: #FFFCF7;
  --tint: #EAE2D5;
  --ink: #22262B;
  --muted: #6A6E74;
  --line: #E0D6C7;
  --sea: #2F5D73;
  --sea-dark: #234757;
  --pine: #3D5B49;
  --amber: #C68A3C;
  --busy: #D9D0C2;
  --sel-soft: #DCE7EC;
  --on-primary: #FFFFFF;
  --bar: rgba(255, 252, 247, .94);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(34, 38, 43, .08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 28px; }
p { margin: 0 0 1em; }
a { color: var(--sea); }
button { font: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .15s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sea); color: var(--on-primary); }
.btn-primary:hover { background: var(--sea-dark); }
.btn-light { background: #fff; color: #22262B; }
.btn-light:hover { background: #EFEDE8; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--sea); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- шапка ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 68px;
  display: flex; align-items: center; gap: 24px; padding: 0 max(20px, calc((100vw - 1160px) / 2 + 20px));
  color: #fff; transition: background .25s, color .25s, box-shadow .25s;
}
.topbar.solid { background: var(--bar); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand-text { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 18px; gap: 8px; } }
@media (max-width: 359px) { .brand { font-size: 16px; gap: 6px; } }
/* Логотип: небо, солнце и море. Тема может задать цвет моря (--mark-sea) и солнца (--mark-sun);
   без них море того же цвета, что небо, и видна только линия волны. */
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--sea); position: relative; overflow: hidden; }
.brand-mark::before { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--mark-sun, #E2B46B); left: 8.5px; top: 5px; }
.brand-mark::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: -6px; height: 17px; background: var(--mark-sea, var(--sea)); border-top: 2px solid var(--bg); border-radius: 50% 50% 0 0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; opacity: .85; }
.nav a:hover { opacity: 1; }
.topbar .btn-primary { background: #fff; color: #22262B; }
.topbar.solid .btn-primary { background: var(--sea); color: var(--on-primary); }

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--sea-dark); }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,30,38,.62) 0%, rgba(20,30,38,.35) 45%, rgba(20,30,38,0) 75%),
    linear-gradient(180deg, rgba(20,30,38,.5) 0%, rgba(20,30,38,.05) 28%, rgba(20,30,38,.2) 55%, rgba(20,30,38,.75) 100%);
}
.hero h1, .hero-lead, .eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-inner { position: relative; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; opacity: .9; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 860px; margin-bottom: 18px; }
.hero-lead { max-width: 600px; font-size: 18px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: 14px; backdrop-filter: blur(6px); }
.badge:empty { display: none; }

/* ---------- факты ---------- */
.facts { margin-top: -1px; }
.facts ul {
  list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 28px;
  border-bottom: 1px solid var(--line);
}
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* ---------- секции ---------- */
.section { padding: 72px 20px; }
.section.wrap { padding-left: 20px; padding-right: 20px; }
.section-tinted { background: var(--tint); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 10px; border-radius: var(--radius); overflow: hidden; }
.gallery button { position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--tint); overflow: hidden; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,30,38,.5); color: #fff; font-weight: 600; font-size: 17px; }

/* ---------- о квартире ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-text p { font-size: 17px; }
.legend { margin: 0; padding: 36px 34px 30px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.legend-mark { font-family: var(--serif); font-size: 90px; line-height: .6; color: var(--amber); display: block; height: 40px; }
.legend blockquote { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.4; }
.legend figcaption { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl { padding: 26px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.hl-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; margin-bottom: 16px; color: var(--sea); }
.hl h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0; }
.hl p { margin: 0; color: var(--muted); font-size: 15px; }

.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.amenities h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pine); margin-bottom: 14px; }
.amenities ul { list-style: none; margin: 0; padding: 0; }
.amenities li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ---------- календарь ---------- */
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cal-card, .quote-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cal-card { position: relative; }
.cal-nav { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav .icon-btn { pointer-events: auto; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cal-title { text-align: center; font-weight: 700; margin: 8px 0 18px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.day {
  height: 44px; border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--ink);
  cursor: pointer; position: relative; border-radius: 10px;
}
.day:hover:not(:disabled) { background: var(--bg); }
.day:disabled { cursor: default; }
.day.past { color: var(--muted); opacity: .45; }
.day.busy { color: var(--muted); text-decoration: line-through; background: repeating-linear-gradient(-45deg, transparent 0 5px, var(--busy) 5px 7px); }
.day.blocked { color: var(--muted); opacity: .55; }
.day.in-range { background: var(--sel-soft); border-radius: 0; }
.day.sel { background: var(--sea); color: var(--on-primary); }
.day.sel.start { border-radius: 10px 0 0 10px; }
.day.sel.end { border-radius: 0 10px 10px 0; }
.day.sel.start.end, .day.sel.single { border-radius: 10px; }
.day.today::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.cal-legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-free { border: 1px solid var(--line); background: var(--paper); }
.dot-busy { background: var(--busy); }
.dot-sel { background: var(--sea); }

.quote-card { position: sticky; top: 88px; }
.quote-price { font-size: 15px; color: var(--muted); }
.quote-price b { font-size: 28px; color: var(--ink); font-family: var(--serif); }
.quote-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.quote-dates div { padding: 10px 14px; }
.quote-dates div + div { border-left: 1px solid var(--line); }
.quote-dates span, .quote-guests span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.quote-guests { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.quote-guests select { width: 100%; border: 0; background: none; font: 600 15px var(--sans); color: var(--ink); padding: 0; cursor: pointer; outline: none; }
.quote-sum { margin-bottom: 16px; font-size: 15px; }
.quote-sum .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.quote-sum .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 17px; }
.quote-sum .warn { color: #A4532B; }
.quote-card .small { margin: 12px 0 0; }

/* ---------- отзывы ---------- */
.reviews-head { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; margin-bottom: 32px; }
.score { display: flex; align-items: center; gap: 16px; }
.score > b { font-family: var(--serif); font-size: 64px; line-height: 1; padding: 10px 16px; background: var(--sea); color: var(--on-primary); border-radius: 16px; }
.score p { margin: 0; }
.score p:first-child { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.score-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.score-cats li { display: grid; grid-template-columns: 1fr 100px 34px; align-items: center; gap: 12px; font-size: 14px; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.score-cats b { text-align: right; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.review-top p { margin: 0; line-height: 1.3; }
.review-score { margin-left: auto; font-weight: 700; color: var(--sea); background: var(--sel-soft); border-radius: 8px; padding: 2px 8px; font-size: 14px; }
.review-text { margin: 0; font-size: 15px; }

/* ---------- правила и хозяин ---------- */
.rules-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.rules li { break-inside: avoid; padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; }
.rules li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 10px; height: 6px; border-left: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(-45deg); }
.host { display: flex; gap: 18px; padding: 26px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.host-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--sea); color: var(--on-primary); display: grid; place-items: center; font-family: var(--serif); font-size: 30px; font-weight: 600; flex: none; }
.host-name { font-size: 18px; margin-bottom: 6px; }

/* ---------- карта ---------- */
.address { font-size: 18px; font-weight: 600; margin-top: -8px; }
.location { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.map { height: 400px; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; }
.nearby { list-style: none; margin: 0 0 22px; padding: 0; }
.nearby li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.nearby b { display: block; font-weight: 600; }
.nearby span { color: var(--muted); font-size: 14px; }

/* ---------- финал ---------- */
/* Цвет баннера тема может задать отдельно (--cta); по умолчанию — главный цвет. */
.cta { background: var(--cta, var(--sea)); color: var(--on-primary); text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ''; position: absolute; left: -10%; right: -10%; height: 120px; border-top: 2px solid var(--on-primary); opacity: .12; border-radius: 50%; }
.cta::before { bottom: -60px; }
.cta::after { bottom: -85px; }
.cta p { opacity: .85; font-size: 17px; margin-bottom: 26px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--muted); }

.mobile-bar { display: none; }

/* ---------- SEO-текст о квартире и Зеленоградске ---------- */
.seo-text-body { max-width: 820px; font-size: 17px; }
.seo-text-body:empty { display: none; }
.seo-text-body h2 { margin-bottom: .6em; }
.seo-text-body h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; margin: 1.4em 0 .5em; }
.seo-text-body ul { padding-left: 1.2em; }
.seo-text-body li { margin-bottom: .4em; }
#seoBlock:has(.seo-text-body:empty) { display: none; }

/* ---------- частые вопросы ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { margin: 0 0 14px; color: var(--muted); }
.faq-item p:last-child { margin-bottom: 18px; }
/* ---------- чат с хозяином ---------- */
.chatw { position: fixed; right: 20px; bottom: 20px; z-index: 30; font-family: var(--sans); }
.chatw-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; position: relative; z-index: 0; margin-left: auto; display: grid; place-items: center;
  background: var(--sea); color: var(--on-primary); box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s;
}
.chatw-fab:hover { transform: scale(1.05); }
.chatw.is-open .chatw-fab { transform: scale(.9); }
/* «Живая» кнопка: расходящаяся волна + лёгкое покачивание раз в несколько секунд */
.chatw-fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--sea); z-index: -1;
  animation: chatw-pulse 2.6s ease-out infinite;
}
.chatw-fab svg { animation: chatw-wiggle 6s ease-in-out 2s infinite; }
.chatw.is-open .chatw-fab::before, .chatw.is-open .chatw-fab svg { animation: none; }
@keyframes chatw-pulse {
  0% { transform: scale(1); opacity: .45; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}
@keyframes chatw-wiggle {
  0%, 84%, 100% { transform: rotate(0) scale(1); }
  87% { transform: rotate(-14deg) scale(1.08); }
  90% { transform: rotate(12deg) scale(1.08); }
  93% { transform: rotate(-8deg) scale(1.04); }
  96% { transform: rotate(4deg) scale(1); }
}
.chatw-teaser {
  position: absolute; right: 0; bottom: 72px; width: max-content; max-width: min(300px, calc(100vw - 40px));
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  padding: 12px 34px 12px 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 12px 30px rgba(0,0,0,.18); cursor: pointer;
  animation: chatw-pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.chatw-teaser b { display: block; margin-bottom: 2px; }
.chatw-teaser-close { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
@keyframes chatw-pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .chatw-fab::before, .chatw-fab svg, .chatw-teaser { animation: none; }
}
.chatw-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #E5533D; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; border: 2px solid var(--paper); }
.chatw-panel {
  position: absolute; right: 0; bottom: 74px; width: 360px; height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25); border: 1px solid var(--line);
}
.chatw-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--sea); color: var(--on-primary); }
.chatw-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-family: var(--serif); font-size: 20px; font-weight: 600; flex: none; }
.chatw-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chatw-titles b { font-size: 16px; }
.chatw-titles span { font-size: 12px; opacity: .8; }
.chatw-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: inherit; cursor: pointer; font-size: 14px; }
.chatw-list { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chatw-msg { max-width: 82%; padding: 9px 12px 6px; border-radius: 16px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.chatw-msg.host { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chatw-msg.me { align-self: flex-end; background: var(--sea); color: var(--on-primary); border-bottom-right-radius: 4px; }
.chatw-time { display: block; text-align: right; font-size: 11px; opacity: .6; margin-top: 2px; }
.chatw-profile { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 8px; }
.chatw-profile p { margin: 0; font-size: 13px; color: var(--muted); }
.chatw-profile input, .chatw-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: 400 15px var(--sans); background: var(--paper); color: var(--ink); }
.chatw-profile-row { display: flex; gap: 8px; }
.chatw-profile-row button { border: 0; border-radius: 10px; padding: 8px 14px; font: 600 14px var(--sans); cursor: pointer; background: var(--sea); color: var(--on-primary); }
.chatw-profile-row .chatw-skip { background: none; color: var(--muted); }
.chatw-error { margin: 0; padding: 6px 14px; font-size: 13px; color: #C0482F; background: var(--paper); }
.chatw-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 12px 14px; border-top: 1px solid var(--line); background: var(--paper); }
.chatw-form textarea { resize: none; max-height: 120px; line-height: 1.4; }
.chatw-form textarea:focus, .chatw-profile input:focus { outline: 2px solid var(--sel-soft); border-color: var(--sea); }
.chatw-send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--sea); color: var(--on-primary); cursor: pointer; display: grid; place-items: center; }
@media (max-width: 680px) {
  .chatw { right: 14px; bottom: 16px; }
  .chatw.has-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chatw-fab { width: 54px; height: 54px; }
  .chatw.is-open { inset: 0; right: 0; bottom: 0; }
  .chatw.is-open .chatw-fab { display: none; }
  .chatw-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; bottom: 0; }
  .chatw-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .chatw-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- блог ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card img, .post-cover-empty { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--tint); }
.post-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.post-card-body small { color: var(--muted); font-size: 13px; }
.post-card-body b { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.post-card-body span { color: var(--muted); font-size: 15px; }
.post-head { padding-top: 40px; max-width: 820px; }
.post-head h1 { font-size: clamp(34px, 5vw, 54px); margin: 10px 0 8px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.post-cover { width: 100%; max-width: 1000px; margin: 18px auto 0; display: block; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.post-body { max-width: 760px; padding-top: 30px; padding-bottom: 10px; font-size: 18px; line-height: 1.7; }
.post-body h2 { font-size: clamp(28px, 3.6vw, 36px); margin: 1.4em 0 .5em; }
.post-body h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 1.3em 0 .4em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.post-body li { margin-bottom: .5em; }
.post-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--amber); font-family: var(--serif); font-size: 22px; font-style: italic; }
.post-body figure { margin: 1.4em 0; }
.post-body figure img { width: 100%; border-radius: 14px; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.post-cover-wrap { margin: 18px auto 0; max-width: 1000px; }
.post-cover-wrap .post-cover { margin: 0; }
.post-cover-wrap figcaption, .post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.credit { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.credit a { color: inherit; }
/* Блок «квартира» внутри статей и на странице блога */
.offer { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin: 28px 0; padding: 22px 24px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.offer-text { flex: 1 1 320px; }
.offer b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.offer p { margin: 0; color: var(--muted); }
.offer .btn { flex: none; }
@media (max-width: 680px) { .offer .btn { width: 100%; } }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .posts { grid-template-columns: 1fr; }
  .post-body { font-size: 17px; }
  .post-head { padding-top: 26px; }
}

/* ---------- памятка гостя ---------- */
.guest-page { padding-top: 68px; }
.guest-hero { background: var(--tint); padding: 56px 0 48px; }
.guest-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.guest-hero .eyebrow { color: var(--sea); }
.guest-intro { max-width: 640px; font-size: 18px; }
.guest-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.guest-quick:empty { display: none; }
.video-box { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-width: 900px; }
.video-box iframe, .video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box.video-link { aspect-ratio: auto; background: none; overflow: visible; }
.bikes { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.bikes-art { color: var(--sea); opacity: .8; max-width: 320px; justify-self: center; }
.price-list { list-style: none; margin: 0 0 22px; padding: 0; max-width: 460px; }
.price-list:empty { display: none; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.support { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.support-form { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.support-call { font-size: 18px; font-weight: 600; }
.support-done { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--sel-soft); color: var(--ink); }
@media (max-width: 1000px) {
  .bikes, .support { grid-template-columns: 1fr; gap: 28px; }
  .bikes-art { display: none; }
}
@media (max-width: 680px) {
  .guest-page { padding-top: 60px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-form { padding: 18px 14px; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- окна ---------- */
.modal { border: 0; border-radius: 22px; padding: 28px; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(20,30,38,.5); backdrop-filter: blur(3px); }
.modal-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal h3 { padding-right: 40px; }
.msg-box { background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.msg-box p { margin: 0 0 8px; font-size: 15px; }
.contact-list { display: grid; gap: 10px; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, background .2s;
}
.contact:hover { border-color: var(--ink); background: var(--tint); }
.contact small { display: block; color: var(--muted); font-weight: 400; }
.contact-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }

.quote-ask { display: block; margin: 12px auto 0; font-size: 14px; }
.book-summary { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }
.book-summary b { display: block; }
.book-field { display: block; margin-bottom: 12px; }
.book-field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.book-field i { font-style: normal; font-weight: 400; }
.book-field input, .book-field textarea, .book-field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--paper);
  font: 400 16px var(--sans); color: var(--ink); resize: vertical;
}
.book-field input:focus, .book-field textarea:focus { outline: 2px solid var(--sel-soft); border-color: var(--sea); }
.book-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 10px; cursor: pointer; }
.book-consent input { margin-top: 3px; accent-color: var(--sea); }
.book-error { color: #C0482F; font-size: 14px; min-height: 0; margin: 0 0 10px; }
.book-error:empty { display: none; }
.book-note { margin: 10px 0 0; }
.modal { max-height: calc(100vh - 32px); overflow-y: auto; }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12,16,20,.96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(12,16,20,.96); }
.lightbox figure { margin: 0; max-width: calc(100vw - 140px); text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; border-radius: 6px; user-select: none; }
.lightbox figcaption { margin-top: 14px; font-size: 15px; opacity: .8; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 18px; right: 18px; font-size: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }

  .topbar { gap: 12px; }
  .topbar .btn { margin-left: auto; }
  .about, .rules-wrap, .location, .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .booking { grid-template-columns: 1fr; }
  .quote-card { position: static; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .reviews-head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  body { padding-bottom: 76px; }
  .topbar { height: 60px; }
  .topbar .btn { display: none; }
  .section { padding: 52px 16px; }
  .section.wrap, .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: 86vh; }
  .hero-lead { font-size: 16px; }
  .gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 0;
    margin: 0 -16px; padding: 0 16px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button { flex: 0 0 86%; height: 260px; scroll-snap-align: center; border-radius: 14px; }
  .gallery .more { display: none; }
  .highlights, .amenities, .reviews { grid-template-columns: 1fr; }
  .amenities { gap: 24px; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-card, .quote-card { padding: 18px 14px; }
  .day { height: 42px; }
  .score-cats { grid-template-columns: 1fr; }
  .score-cats li { grid-template-columns: 1fr 70px 30px; }
  .rules { columns: 1; }
  .map { height: 300px; }
  .lightbox figure { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bar); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .mobile-bar b { font-size: 18px; }
  .mobile-bar span { color: var(--muted); font-size: 14px; margin-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- меню для телефона (menu.js) ---------- */
.nav .nav-more { display: none; }
.menu-btn {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; margin-left: auto; margin-right: -8px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; cursor: pointer;
}
.topbar .btn + .menu-btn { margin-left: 0; }
.menu-btn:active { background: rgba(127,127,127,.15); }
html.menu-locked { overflow: hidden; }
.menu-sheet {
  position: fixed; inset: 0; z-index: 40; background: rgba(12,16,20,.45);
  opacity: 0; transition: opacity .2s;
}
.menu-sheet.is-open { opacity: 1; }
.menu-panel {
  background: var(--bg); color: var(--ink); border-radius: 0 0 22px 22px;
  padding: 10px 16px 18px; max-height: 100%; overflow-y: auto;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transform: translateY(-16px); transition: transform .22s;
}
.menu-sheet.is-open .menu-panel { transform: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 4px; }
.menu-head b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.menu-close { width: 42px; height: 42px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-list { display: grid; }
.menu-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none; font-size: 17px; font-weight: 500;
}
.menu-link svg { color: var(--muted); flex: none; }
.menu-link.is-current { color: var(--sea); font-weight: 700; }
.menu-link.is-current svg { color: var(--sea); }
.menu-cta { margin-top: 16px; width: 100%; justify-content: center; }
.topbar .menu-cta, .menu-list .btn-primary { background: var(--sea); color: var(--on-primary); }
@media (max-width: 1000px) { .menu-btn { display: inline-flex; } }
@media (max-width: 680px) { .topbar .btn + .menu-btn { margin-left: auto; } }
@media (min-width: 1001px) { .menu-sheet { display: none; } }
