:root {
  --bg: #F6F1E9; --surface: #FFFDF9; --surface2: #EFE7DA; --ink: #1F2A24; --ink2: #4A5650; --muted: #6E7872;
  --line: #E2D8C8; --teal: #0F5E5A; --teal-ink: #FFFFFF; --terra: #C4693D; --terra-soft: #F3DCCD;
  --busy: #E8E1D6; --busy-ink: #A39A8C; --sel: #0F5E5A; --range: #CFE5E1; --wa: #1FA855;
  --shadow: 0 10px 30px rgba(31, 42, 36, .08); --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110E; --surface: #1D1915; --surface2: #26211B; --ink: #F1EADF; --ink2: #CFC6B8; --muted: #9C9385;
    --line: #342D25; --teal: #3FA39B; --teal-ink: #0B1715; --terra: #E08A5C; --terra-soft: #3A2519;
    --busy: #2A241E; --busy-ink: #6D6458; --sel: #3FA39B; --range: #1E3B38; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110E; --surface: #1D1915; --surface2: #26211B; --ink: #F1EADF; --ink2: #CFC6B8; --muted: #9C9385;
  --line: #342D25; --teal: #3FA39B; --teal-ink: #0B1715; --terra: #E08A5C; --terra-soft: #3A2519;
  --busy: #2A241E; --busy-ink: #6D6458; --sel: #3FA39B; --range: #1E3B38; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
a { color: var(--teal); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 72px 16px 0; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 20px Fraunces, serif; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin: 0 auto; }
.nav a { color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--teal); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .tools { margin-left: 0; }
.chip { height: 38px; min-width: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 13px Manrope, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chip.icon { padding: 0; }
.chip:hover { border-color: var(--teal); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 99px; border: 0; background: var(--teal); color: var(--teal-ink); font: 700 16px Manrope, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn.wa-btn { background: var(--wa); color: #fff; }
.btn.wide { width: 100%; }
.wa { width: 22px; height: 22px; }
@media (max-width: 900px) { .nav { display: none; } }

/* первый экран */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 12, .05) 30%, rgba(10, 14, 12, .72)); }
.hero-in { position: relative; z-index: 1; max-width: 1160px; width: 100%; margin: 0 auto; padding: 120px 16px 48px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; opacity: .9; margin: 0 0 12px; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); max-width: 15ch; margin-bottom: 16px; }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 54ch; opacity: .94; margin: 0 0 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 26px; }
.facts b { font: 600 22px Fraunces, serif; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.price-tag { margin: 18px 0 0; font-size: 15px; }
.price-tag b { font-size: 20px; }
.save { color: #FFD9C2; font-weight: 600; }
.demo { background: var(--terra-soft); color: var(--ink); text-align: center; padding: 10px 16px; font-size: 14px; }
.demo a { color: var(--terra); font-weight: 700; }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.g { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface2); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g:hover img { transform: scale(1.04); }
.g1 { grid-column: span 2; grid-row: span 2; }
@media (min-width: 721px) { .g:nth-child(6), .g:nth-child(7) { grid-column: span 2; } }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .g1 { grid-row: span 2; }
}
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(8, 8, 8, .92); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 94vw; max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lb .chip { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); width: 46px; height: 46px; }
.lb-x { top: 16px; right: 16px; }
.lb-p { left: 16px; top: 50%; }
.lb-n { right: 16px; top: 50%; }

/* о вилле */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.hl { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .hl { grid-template-columns: 1fr; } }
.hl li { display: flex; gap: 12px; }
.hl svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--range); color: var(--teal); stroke-width: 1.6; }
.hl b { display: block; }
.hl span { color: var(--muted); font-size: 14px; }
.amen ul { padding: 0; margin: 0 0 16px; list-style: none; }
.amen li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); position: relative; }
.amen li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px; border: 2px solid var(--teal); border-top: 0; border-right: 0; transform: rotate(-45deg); }

/* календарь и бронь */
.booking { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin-top: 20px; }
@media (max-width: 920px) { .booking { grid-template-columns: 1fr; } }
.cal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw.free { background: var(--surface); border: 1px solid var(--line); }
.sw.busy { background: var(--busy); }
.sw.sel { background: var(--sel); }
.cals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .cals { grid-template-columns: 1fr; } }
.month h4 { text-align: center; margin: 4px 0 10px; font: 600 17px Fraunces, serif; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 14px Manrope, sans-serif; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 0; }
.day small { font-size: 10px; font-weight: 500; color: var(--muted); }
.day:hover:not(:disabled) { outline: 2px solid var(--teal); outline-offset: -2px; }
.day:disabled { cursor: default; }
.day.past { color: var(--busy-ink); opacity: .5; }
.day.busy { background: var(--busy); color: var(--busy-ink); text-decoration: line-through; }
.day.busy small { visibility: hidden; }
.day.co { background: linear-gradient(135deg, var(--busy) 50%, transparent 50%); }
.day.range { background: var(--range); border-radius: 4px; }
.day.in, .day.out { background: var(--sel); color: var(--teal-ink); }
.day.in small, .day.out small { color: inherit; opacity: .8; }
.day.high:not(.busy):not(.in):not(.out) small { color: var(--terra); }
.bform { display: grid; gap: 12px; position: sticky; top: 80px; }
.bform label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.two { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
input, select, textarea { width: 100%; font: 16px Manrope, sans-serif; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: transparent; }
.bad { outline: 2px solid var(--terra) !important; }
.sum { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.sum .dates { font: 600 18px Fraunces, serif; margin: 0 0 8px; }
.sum table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sum td { padding: 3px 0; }
.sum td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.sum .tot td { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.sum .ota { color: var(--muted); }
.sum .ota s { color: var(--muted); }
.saving { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--terra-soft); color: var(--ink); font-weight: 600; font-size: 14px; }
.agree { margin: 0; color: var(--muted); }
.done { text-align: center; display: grid; gap: 12px; }
.done .code { font: 600 28px Fraunces, serif; color: var(--teal); letter-spacing: .04em; }

/* отзывы, место, вопросы */
.tag { font: 600 12px Manrope, sans-serif; vertical-align: middle; background: var(--surface2); color: var(--muted); padding: 3px 10px; border-radius: 99px; letter-spacing: 0; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.reviews figure { margin: 0; }
.reviews blockquote { margin: 0 0 12px; font: 400 18px/1.5 Fraunces, serif; }
.reviews figcaption { color: var(--muted); font-size: 14px; }
.stars { color: var(--terra); letter-spacing: 2px; }
.dist { list-style: none; padding: 0; margin: 16px 0 0; }
.dist li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dist b { min-width: 64px; color: var(--teal); }
.map { padding: 0; overflow: hidden; height: 340px; }
.map iframe { width: 100%; height: 100%; border: 0; }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); } }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink2); }

.foot { text-align: center; padding: 64px 16px 96px; color: var(--muted); font-size: 14px; }
.foot p { margin: 6px 0; }
.foot .made { font-size: 13px; }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(31, 168, 85, .4); z-index: 30; }
.wa-float .wa { width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: transform .25s; z-index: 40; max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
@media (max-width: 480px) { .brand span { display: none; } }
.btn.line { background: transparent; color: var(--teal); border: 1px solid var(--line); }
