/* Светлый «журнальный» стиль: кремовый фон, шрифт с засечками в заголовках, тонкие линии, крупные фото.
   Фирменные цвета: хвоя и дерево. */
:root {
  --bg: #f7f4ee; --surface: #fffdf9; --sunk: #ece7dd; --fg: #1d221e; --muted: #667068; --line: #ddd6c8;
  --accent: #2c5a47; --accent-fg: #f7f4ee; --accent-soft: #dce8df; --wood: #7a4f30; --wood-soft: #efe1d4;
  --warn: #9a5b00; --warn-soft: #f6e6cc; --bad: #a3332c; --bad-soft: #f5dcd9; --good: #2c6b3f; --good-soft: #d8ecdc;
  --f-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; color-scheme: light; }
html, body { background: var(--bg); color: var(--fg); }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 500; }
h1, h2 { font-family: var(--f-serif); letter-spacing: -.01em; line-height: 1.05; }
h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 500; }
h2 { font-size: clamp(32px, 5vw, 52px); }
h1 em, h2 em { font-style: italic; font-weight: 500; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section.block { padding-top: 88px; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 720px) { section.block { padding-top: 64px; } }
.center { text-align: center; align-items: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 52ch; }

/* шапка поверх фото */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; color: #fff; transition: background-color .25s, color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.topbar.solid { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); color: var(--fg); border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { font-family: var(--f-serif); font-weight: 600; font-size: 24px; color: inherit; text-decoration: none; white-space: nowrap; letter-spacing: .01em; }
.topbar nav { display: flex; gap: 26px; font-size: 14px; align-items: center; }
.topbar nav a { color: inherit; text-decoration: none; opacity: .9; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.topbar nav .btn-nav { border: 1px solid currentColor; border-radius: 999px; padding: 7px 16px; opacity: 1; }
@media (max-width: 720px) { .topbar nav a:not(.btn-nav) { display: none; } }
.page-top .topbar { position: sticky; background: var(--bg); color: var(--fg); border-bottom-color: var(--line); }

/* кнопки */
.cta { display: inline-block; cursor: pointer; border: 0; background: var(--accent); color: var(--accent-fg); text-decoration: none; border-radius: 999px; padding: 14px 26px; font-weight: 600; font-size: 15px; text-align: center; }
button.cta { width: 100%; border-radius: 10px; }
.cta:disabled { opacity: .45; cursor: default; }
.ghost { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 16px; font-weight: 600; }

/* вступление */
.intro { text-align: center; align-items: center; gap: 20px; }
.intro h2 { max-width: 18ch; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 16px; }
.facts-row div { padding: 28px 12px; border-left: 1px solid var(--line); text-align: center; }
.facts-row div:first-child { border-left: 0; }
.facts-row b { display: block; font-family: var(--f-serif); font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1; margin-bottom: 8px; }
.facts-row span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-row div:nth-child(3) { border-left: 0; } .facts-row div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* участок */
.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 880px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.feature img { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.feature .txt { display: flex; flex-direction: column; gap: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li span:last-child { color: var(--muted); text-align: right; }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
/* лёгкая многослойная тень: фото как будто приподняты над страницей */
:root {
  --lift: 0 1px 2px rgb(29 34 30 / .10), 0 6px 14px rgb(29 34 30 / .10), 0 18px 36px -8px rgb(29 34 30 / .22);
  --lift-hover: 0 2px 4px rgb(29 34 30 / .12), 0 12px 24px rgb(29 34 30 / .14), 0 30px 56px -10px rgb(29 34 30 / .32);
}
.feature img { box-shadow: var(--lift); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--sunk); box-shadow: var(--lift); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.03); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery figure, .feature img { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; will-change: transform; }
  .gallery figure:hover, .feature img:hover { transform: translateY(-6px); box-shadow: var(--lift-hover); }
}
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12px; color: #fff; background: rgb(0 0 0 / .35); backdrop-filter: blur(6px); padding: 3px 10px; border-radius: 999px; }
.g1 { grid-column: span 7; aspect-ratio: 16 / 10; } .g2 { grid-column: span 5; aspect-ratio: 4 / 4.4; }
.g3 { grid-column: span 4; aspect-ratio: 4 / 3; } .g4 { grid-column: span 4; aspect-ratio: 4 / 3; } .g5 { grid-column: span 4; aspect-ratio: 4 / 3; }
.g6 { grid-column: span 5; aspect-ratio: 4 / 3; } .g7 { grid-column: span 7; aspect-ratio: 16 / 10; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gallery figure { grid-column: span 2 !important; aspect-ratio: 4 / 3 !important; } .gallery .half { grid-column: span 1 !important; aspect-ratio: 1 !important; } }

/* для кого */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 880px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }
.cols3 > div { padding: 28px 28px 28px 0; border-left: 0; display: flex; flex-direction: column; gap: 8px; }
.cols3 > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 880px) { .cols3 > div, .cols3 > div + div { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); } .cols3 > div:first-child { border-top: 0; } }
.cols3 h3 { font-family: var(--f-serif); font-size: 26px; font-weight: 500; }
.cols3 p { color: var(--muted); font-size: 15px; }

/* цены */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
@media (max-width: 720px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.pricing .row { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.pricing .row b { font-family: var(--f-serif); font-size: 24px; font-weight: 500; white-space: nowrap; }
.sample { font-size: 12px; background: var(--wood-soft); color: var(--wood); padding: 4px 12px; border-radius: 999px; font-weight: 600; align-self: flex-start; }
.center .sample { align-self: center; }
.note { font-size: 13px; color: var(--muted); }

/* бронирование */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 880px) { .desk { grid-template-columns: minmax(0, 1fr); } }
.steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.step-head { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.step-head h3 { font-family: var(--f-serif); font-weight: 500; font-size: 26px; }
.step-head .n { font-family: var(--f-body); font-size: 12px; color: var(--wood); font-weight: 700; letter-spacing: .1em; margin-right: 6px; }
aside.sum { position: sticky; top: 84px; }
@media (max-width: 880px) { aside.sum { position: static; } }

.cal-nav { display: flex; gap: 8px; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 620px) { .months { grid-template-columns: minmax(0, 1fr); } }
.month h4 { margin: 0 0 10px; font-family: var(--f-serif); font-size: 22px; font-weight: 500; text-transform: capitalize; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dow { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; text-transform: uppercase; letter-spacing: .06em; }
.day { position: relative; border: 0; border-radius: 50%; background: transparent; aspect-ratio: 1 / 1; min-height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; line-height: 1.1; padding: 0; }
.day .p { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.day:hover:not(:disabled) { background: var(--sunk); }
.day.we { color: var(--wood); font-weight: 600; }
.day:disabled { color: var(--muted); opacity: .4; cursor: default; }
.day.busy { opacity: 1; color: var(--muted); background: repeating-linear-gradient(135deg, var(--sunk) 0 4px, transparent 4px 8px); text-decoration: line-through; }
.day.tent { background: var(--warn-soft); }
.day.inrange { background: var(--accent-soft); border-radius: 0; }
.day.start, .day.end { background: var(--accent); color: var(--accent-fg); }
.day.start .p, .day.end .p { color: var(--accent-fg); }
.day.start { border-radius: 999px 0 0 999px; } .day.end { border-radius: 0 999px 999px 0; } .day.start.end { border-radius: 999px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 40px; height: 38px; font-size: 18px; line-height: 1; }
.stepper button:hover:not(:disabled) { background: var(--sunk); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 200px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 70px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

.cats { display: flex; flex-direction: column; gap: 22px; }
.cat h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--wood); text-transform: uppercase; letter-spacing: .12em; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cat h4 + .svc { border-top: 0; }
.svc .t { font-weight: 500; }
.svc .d { font-size: 12.5px; color: var(--muted); }
.svc .pr { font-size: 13px; color: var(--muted); white-space: nowrap; }
.svc .ctl { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 10px; }
@media (max-width: 520px) { .svc .ctl { flex-direction: column; align-items: flex-end; gap: 6px; } }
.toggle { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; min-width: 100px; }
.toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.line { display: flex; justify-content: space-between; gap: 12px; }
.line .num { white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.total b { font-family: var(--f-serif); font-size: 36px; font-weight: 500; }
.msg { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg.ok { background: var(--good-soft); color: var(--good); }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
pre.copy { white-space: pre-wrap; word-break: break-word; background: var(--sunk); border-radius: 8px; padding: 12px; font-family: var(--f-body); font-size: 13px; margin: 8px 0 0; max-height: 260px; overflow: auto; }
.rules { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }

/* дорога и правила */
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
@media (max-width: 720px) { .twocol { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.twocol > div { display: flex; flex-direction: column; gap: 14px; }
.twocol h3 { font-family: var(--f-serif); font-size: 28px; font-weight: 500; }
.twocol ul { margin: 0; padding: 0; list-style: none; }
.twocol li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.twocol li:last-child { border-bottom: 1px solid var(--line); }

footer { margin-top: 96px; background: #1d261f; color: #cfd6cf; padding: 40px 0 48px; font-size: 13.5px; }
footer .wrap { display: flex; flex-direction: column; gap: 8px; }
footer a { color: #fff; }
footer .brand { font-size: 28px; color: #fff; margin-bottom: 8px; }

/* страница политики */
.doc { max-width: 760px; padding: 48px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); }
.doc h2 { margin-top: 14px; font-size: 28px; }
.doc ul { margin: 0; padding-left: 20px; }
.todo { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 4px; }

/* просмотр фото на весь экран */
.gallery img, .feature img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgb(8 12 10 / .92); padding: 16px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lb img { max-width: min(94vw, 1500px); max-height: 82vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 20px 80px rgb(0 0 0 / .5); }
.lb figcaption { color: #e8ece8; font-size: 14px; text-align: center; }
.lb button { position: absolute; border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; display: grid; place-items: center; }
.lb button:hover { background: rgb(255 255 255 / .24); }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 20px; transform: none; } .lb .lb-prev { left: calc(50% - 60px); } .lb .lb-next { right: calc(50% - 60px); } .lb img { max-height: 72vh; } }
@media (prefers-reduced-motion: no-preference) { .lb:not([hidden]) { animation: lbfade .2s ease-out; } @keyframes lbfade { from { opacity: 0; } } }

/* появление блоков при прокрутке */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
  .reveal.in { opacity: 1; transform: none; }
  .day, .chip, .toggle { transition: background-color .15s, color .15s; }
}
