/* ===== Villa Fazenda — стилі (структура за зразком karpaty-site, кольори бренду) ===== */
:root {
  --night: #0f1626;        /* нічне небо */
  --night-2: #1a2440;
  --night-3: #253154;
  --gold: #e7b45a;         /* гірлянди */
  --gold-2: #c98d2e;       /* бурштин */
  --gold-3: #a8721d;
  --gold-soft: #f7e6c2;
  --cream: #f7f1e6;
  --cream-2: #efe6d4;
  --sage: #8fa58a;
  --sage-2: #6f8a6b;
  --sage-soft: #e3eadd;
  --paper: #fffdf9;
  --ink: #1b2130;
  --muted: #646b78;
  --line: #e7dfcf;
  --danger: #b4412f;
  /* стани календаря */
  --free2: #d6ecd3; --free2-ink: #2f6a35;
  --free1: #fbe9b5; --free1-ink: #8a5f07;
  --busy: #f3d0ca; --busy-ink: #9b3a2a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 22, 38, .05), 0 12px 32px -12px rgba(15, 22, 38, .2);
  --shadow-lg: 0 30px 60px -20px rgba(15, 22, 38, .45);
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-3); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 500; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.7); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.125rem; color: #3a4150; }

/* ----- Кнопки ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 999px; padding: .7em 1.4em;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--night); box-shadow: 0 8px 22px -8px rgba(231, 180, 90, .75); }
.btn-primary:hover { background: linear-gradient(180deg, #f0c06a, var(--gold-2)); box-shadow: 0 10px 26px -8px rgba(231, 180, 90, .95); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-sm { padding: .5em 1.1em; font-size: .925rem; }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ----- Шапка ----- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(15, 22, 38, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(231,180,90,.18); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { color: var(--gold); display: grid; place-items: center; }
.brand-mark img { width: 34px; height: auto; }
.brand-vf { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); padding-right: 10px; border-right: 1px solid rgba(231,180,90,.55); line-height: 1; }
.brand-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.05; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font); font-size: .6rem; font-weight: 600; letter-spacing: .22em; opacity: .7; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .88; white-space: nowrap; }
.nav a:not(.btn):hover { opacity: 1; color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
/* у шапці до 1440px — лише кнопка дзвінка; обидва номери — в меню й у «Контактах» */
.nav-phones { display: none; }
.header-call { display: inline-grid; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: var(--gold); border: 1px solid rgba(231,180,90,.45); }
.nav .nav-phones a { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; white-space: nowrap; opacity: 1; }
.nav-phones .icon { color: var(--gold); }

/* ----- Банер -----
   Фото вертикальне (798×1024), будинок — у нижніх ~62 % кадру. На широкому екрані фото «cover» на всю
   ширину показало б лише ~40 % висоти й обрізало дах. Тому: на весь банер — те саме фото фоном
   (cover, розмите й притемнене, без порожніх областей), а праворуч — чітке фото цілком, від даху до тераси.
   Текст — ліворуч по центру висоти, на темному градієнті. Банер = 100vh мінус шапка.
   На вузьких екранах — текст на небі, фото притиснуте до низу (див. адаптивність). */
.site-header { background: rgba(15, 22, 38, .96); }
.hero {
  position: relative; margin-top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--night); color: #fff;
}
.hero-bg { position: absolute; inset: -60px; background: var(--night) center top / cover no-repeat; filter: blur(30px) brightness(.6) saturate(1.1); }
.hero-media { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; aspect-ratio: 798 / 1024; max-width: 62%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  /* темний градієнт зліва — під текстом */
  background: linear-gradient(90deg, rgba(15, 22, 38, .94) 0%, rgba(15, 22, 38, .86) 30%, rgba(15, 22, 38, .55) 48%, rgba(15, 22, 38, .1) 64%, rgba(15, 22, 38, 0) 74%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; padding-top: 24px; padding-bottom: 24px; }
.hero-content > * { max-width: 560px; }
.hero-content > .hero-facts { max-width: 600px; }
.garland { position: absolute; left: 0; right: 0; top: 6px; z-index: 1; height: 40px; pointer-events: none; display: flex; justify-content: space-around; }
.garland::before { content: ""; position: absolute; inset: 0 -5%; border-bottom: 1px solid rgba(255, 214, 140, .25); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.garland i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #ffd690; margin-top: calc(14px + 18px * sin(calc(var(--i) * 10deg))); box-shadow: 0 0 10px 3px rgba(255, 196, 92, .55); animation: twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
@keyframes twinkle { 50% { opacity: .45; box-shadow: 0 0 4px 1px rgba(255, 196, 92, .3); } }
.hero-content { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin-bottom: .2em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 span { display: block; font-size: .42em; font-style: italic; color: var(--gold-soft); letter-spacing: .06em; margin-top: .2em; }
.hero-lead { text-shadow: 0 1px 12px rgba(10, 14, 28, .6); max-width: 640px; font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-facts { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; border-top: 1px solid rgba(231,180,90,.3); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--gold); }
.hero-price { width: 100%; }
.hero-price strong { color: var(--gold); font-size: 1.2rem; }

/* ----- Секції ----- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sage { background: var(--sage-soft); }
.section-cream { background: var(--cream-2); }
.section-night { background: radial-gradient(ellipse at top, var(--night-3), var(--night) 70%); color: #fff; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .6em; }
.section-night .section-kicker { color: var(--gold); }
.subhead { margin: 64px 0 24px; font-size: 2rem; }

/* ----- Про комплекс ----- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 32px 0 0; }
.about-stats div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; }
.about-stats dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--night); line-height: 1.2; }
.about-stats dd { margin: 0; font-size: .82rem; color: var(--muted); }
.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center;
  background: rgba(15,22,38,.85); color: var(--gold-soft); padding: 10px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; backdrop-filter: blur(6px);
}
.perks { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; background: var(--night); color: #fff; border-radius: var(--radius); padding: 20px; }
.perk-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(231,180,90,.14); color: var(--gold); flex-shrink: 0; }
.perk strong { display: block; font-size: 1.02rem; }
.perk span { font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.45; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.amenity {
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; transition: transform .2s ease, box-shadow .2s ease;
}
.amenity:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.amenity-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-2); flex-shrink: 0; }
.amenity strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.amenity ul { margin: 0; padding: 0 0 0 1em; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.amenity li::marker { color: var(--gold-2); }

/* ----- Релакс ----- */
.spa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.spa-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night-2); border: 1px solid rgba(231,180,90,.18); }
.spa-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.spa-body { padding: 20px 22px 24px; }
.spa-body h3 { color: var(--gold); font-size: 1.8rem; margin-bottom: .2em; }
.spa-body p { margin: 0; color: rgba(255,255,255,.78); font-size: .95rem; }

/* ----- Галерея ----- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 20px; }
.tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; }
.tab.is-active { background: var(--night); color: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: #c9d3c5; }
.gallery-item.is-wide { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: #fff; font-size: .9rem; font-weight: 600; text-align: left;
  background: linear-gradient(transparent, rgba(10,14,28,.7)); opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 11, 22, .95); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 82vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: var(--gold-soft); margin-top: 12px; font-family: var(--font-display); font-size: 1.25rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ----- Ціни ----- */
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.6rem; margin-bottom: .1em; }
.price-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-2); margin-bottom: 16px; }
.price-days { color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.price-value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; color: var(--night); margin: 0; line-height: 1.05; }
.price-value span { font-family: var(--font); font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price-value-2 { margin-top: 6px; color: var(--gold-3); }
.price-value-text { font-size: 1.9rem; }
.price-card-accent { background: var(--night); color: #fff; border-color: var(--night); }
.price-card-accent .price-icon { background: rgba(231,180,90,.14); color: var(--gold); }
.price-card-accent .price-days, .price-card-accent .price-value span { color: rgba(255,255,255,.7); }
.price-card-accent .price-value { color: var(--gold); }
.price-card-request { background: transparent; box-shadow: none; border-style: dashed; border-color: #cdbd9c; }
.extras { margin: 22px 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.extra { display: flex; gap: 12px; align-items: flex-start; background: var(--sage-soft); border-radius: var(--radius-sm); padding: 16px; }
.extra .icon { color: var(--sage-2); margin-top: 2px; }
.extra strong { display: block; }
.extra span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }

/* ----- Правила ----- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rule > .icon { color: var(--gold-2); margin-top: 2px; }
.rule strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.rule span { font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ----- Бронювання ----- */
.booking-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.booking-grid > * { min-width: 0; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.calendar-card { padding: 24px; }
.calendar { position: relative; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; position: absolute; left: 0; right: 0; top: -8px; pointer-events: none; }
.cal-toolbar .cal-nav { pointer-events: auto; }
.cal-title { visibility: hidden; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.cal-nav:hover:not(:disabled) { background: var(--sage-soft); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; min-height: 340px; }
.cal-loading { grid-column: 1 / -1; display: grid; place-items: center; color: var(--muted); }
.cal-month h4 { margin: 0 0 10px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 24px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-wd.we { color: var(--gold-2); }
.cal-day {
  position: relative; aspect-ratio: 1 / 1.05; border: 0; border-radius: 10px; background: transparent; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
  transition: background-color .12s, box-shadow .12s; padding: 0; min-width: 0;
}
.cal-day .d { font-weight: 700; font-size: .95rem; line-height: 1.1; }
.cal-day .p { font-size: .62rem; color: var(--muted); line-height: 1.1; }
.cal-day .p.req { font-size: .56rem; letter-spacing: -.01em; }
.cal-day.free2 { background: var(--free2); color: var(--free2-ink); }
.cal-day.free1 { background: var(--free1); color: var(--free1-ink); }
.cal-day.busy { background: var(--busy); color: var(--busy-ink); cursor: not-allowed; }
.cal-day.busy .d { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-day.free2 .p, .cal-day.free1 .p, .cal-day.busy .p { color: inherit; opacity: .8; }
.cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--night); }
.cal-day.today .d { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.cal-day.past { color: #b9bcc2; cursor: default; background: transparent; }
.cal-day.past .p { visibility: hidden; }
.cal-day.out-of-range, .cal-day.too-short { opacity: .38; cursor: not-allowed; }
.cal-day.checkout-ok.busy { cursor: pointer; }
.cal-day.in-range, .cal-day.preview { background: #c6cfe6; color: var(--night); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--night) !important; color: #fff; border-radius: 10px; opacity: 1; }
.cal-day.start .d, .cal-day.end .d { text-decoration: none; }
.cal-day.start .p, .cal-day.end .p { color: var(--gold); opacity: 1; visibility: visible; }
.cal-day.empty { visibility: hidden; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-free2 { background: var(--free2); box-shadow: inset 0 0 0 1px #a9cfa4; }
.lg-free1 { background: var(--free1); box-shadow: inset 0 0 0 1px #ecd082; }
.lg-busy { background: var(--busy); box-shadow: inset 0 0 0 1px #e3aaa0; }
.lg-selected { background: var(--night); }
.lg-price { font-size: .75rem; color: var(--gold-3); font-weight: 700; }
.cal-hint { min-height: 1.5em; margin: 12px 0 0; font-size: .92rem; color: var(--night-3); font-weight: 600; }
.cal-hint.warn { color: var(--danger); }

.booking-form { padding: 26px; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; min-width: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); background: #fcfaf5;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23646b78' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(231, 180, 90, .2); background: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold-2); flex-shrink: 0; }
.check b { display: block; }
.check small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.check-card { background: var(--sage-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { background: var(--cream); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--line); }
.summary-empty { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.summary-unit { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-2); }
.summary-lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines li span:last-child { white-space: nowrap; font-weight: 600; }
.summary-lines li.good { color: #2f6a35; }
.summary-lines li.note { color: var(--muted); font-size: .85rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed #cdbd9c; padding-top: 10px; }
.summary-total strong { font-family: var(--font-display); font-size: 2rem; color: var(--night); line-height: 1.1; text-align: right; }
.summary.is-request .summary-total strong { font-size: 1.6rem; color: var(--gold-3); }
.summary-prepay { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .92rem; color: var(--muted); }
.summary-prepay b { color: var(--gold-3); white-space: nowrap; }
.rules-mini { font-size: .86rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.rules-mini summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.rules-mini ul { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 3px; }
.form-error { margin: 0; color: var(--danger); font-weight: 600; font-size: .95rem; }
.form-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ----- Поруч ----- */
.nearby { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.near { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.near-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--night); color: var(--gold); flex-shrink: 0; }
.near strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.near span { font-size: .92rem; color: var(--muted); }

/* ----- Відгуки (заглушки) ----- */
.reviews { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: stretch; }
.reviews-1 { grid-template-columns: 1fr; max-width: 760px; }
.story { margin: -8px 0 32px; max-width: 820px; padding-left: 22px; border-left: 2px solid var(--gold); }
.story p { margin: 0 0 6px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--night-2); }
.story cite { font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.story-light p { color: rgba(255,255,255,.88); }
.story-light cite { color: var(--gold); }
.review { position: relative; background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review-quote { color: var(--gold); opacity: .6; }
.review-stars { display: flex; gap: 2px; color: var(--gold-2); margin: 10px 0 12px; }
.review-stars .icon { fill: currentColor; }
.review-text { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; color: var(--ink); margin-bottom: 18px; flex: 1; }
.review-author { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.review-author::before { content: "— "; color: var(--gold-2); }

/* ----- Контакти ----- */
.contacts-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem;
  transition: transform .15s ease, box-shadow .2s ease;
}
a.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-item small { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-item em { display: block; font-style: normal; font-weight: 500; font-size: .88rem; color: var(--muted); }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--night); color: var(--gold); flex-shrink: 0; }
.contact-icon.viber { background: #7360f2; color: #fff; }
.contact-icon.ig { background: linear-gradient(45deg, #f6b13b, #e2336b 50%, #8a3ab9); color: #fff; }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); background: #dfe3dc; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ----- Модальне вікно ----- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 28, .65); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 30px 24px 24px; max-width: 480px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
.modal-card h3 { font-size: 2rem; margin-bottom: .2em; }
.modal-icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--night); color: var(--gold); box-shadow: 0 0 0 8px var(--gold-soft); }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; }
.booking-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.success-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 4px; text-align: left; }
.success-dl div { background: var(--cream); border-radius: 10px; padding: 10px 12px; }
.success-dl .full { grid-column: 1 / -1; }
.success-dl .accent { background: var(--night); color: #fff; }
.success-dl .accent dt { color: rgba(255,255,255,.7); }
.success-dl .accent dd { color: var(--gold); font-family: var(--font-display); font-size: 1.7rem; }
.success-dl dt { font-size: .78rem; color: var(--muted); }
.success-dl dd { margin: 2px 0 0; font-weight: 700; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: left; }
.steps li { counter-increment: s; font-size: .82rem; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-2); font-weight: 700; margin-bottom: 4px; }
.steps b { display: block; }
.steps span { color: var(--muted); }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }

/* ----- Футер ----- */
.site-footer { background: var(--night); color: rgba(255,255,255,.85); padding: 56px 0 24px; }
.footer-muted { color: rgba(255,255,255,.6); max-width: 380px; margin-top: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(231,180,90,.18); font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom .footer-admin { color: inherit; }

.mobile-cta { display: none; }

/* ----- Анімація появи ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .garland i { animation: none; }
}

/* ===== Адаптивність ===== */
@media (min-width: 1441px) {
  .site-header .container { max-width: 1440px; }
  .nav-phones { display: flex; gap: 18px; }
  .header-call { display: none; }
}
@media (max-width: 1200px) and (min-width: 1024px) {
  .hero-content > * { max-width: 480px; }
}
@media (max-width: 1100px) {
  .price-cards, .extras { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  /* банер: текст зверху на темному небі, фото притиснуте до низу на всю ширину — будинок видно повністю,
     обрізається лише небо. Висота — щонайменше екран, але не менше висоти фото + місця під текст. */
  .hero { display: block; margin-top: 0; height: auto; min-height: max(100svh, calc(128.3vw + 40px)); padding: calc(var(--header-h) + 36px) 0 0; }
  .hero-bg { display: none; }
  .garland { top: calc(var(--header-h) + 6px); }
  .hero-content { position: relative; z-index: 2; padding-top: 0; padding-bottom: 0; }
  .hero-content > * { max-width: 640px; }
  .hero-media { position: absolute; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: auto; max-width: none; aspect-ratio: auto; }
  .hero-media img { height: auto; aspect-ratio: 798 / 1024; -webkit-mask-image: none; mask-image: none; }
  .hero-overlay { display: none; }
  .hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, var(--night) 0%, rgba(15, 22, 38, .85) 16%, rgba(15, 22, 38, .5) 32%, rgba(15, 22, 38, 0) 46%); }
  .hero-facts { display: none; }
}
@media (max-width: 1024px) {
  .amenities, .rules, .nearby { grid-template-columns: repeat(2, 1fr); }
  .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-form { position: static; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 18px; }
}

@media (max-width: 1180px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); color: #fff; padding: 8px 20px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.5);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }
  .nav-cta { margin-top: 14px; }
  .nav-phones { display: grid; padding: 10px 0 0; gap: 0; }
  .header-call { margin-left: auto; }
  .nav .nav-phones a { padding: 10px 4px; font-size: 1.05rem; }
  .header-call { display: inline-grid !important; }
  .site-header.menu-open { background: var(--night); }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .perks, .spa-grid, .reviews { grid-template-columns: 1fr; }
  .reviews-1 { max-width: none; }
  .spa-card { display: grid; grid-template-columns: 42% 1fr; }
  .spa-card img { aspect-ratio: auto; height: 100%; min-height: 170px; }
  .spa-body { padding: 16px; align-self: center; }
  .spa-body h3 { font-size: 1.5rem; }
  .contacts-grid { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; min-height: 300px; }
  .cal-month + .cal-month { display: none; }
  .cal-toolbar { position: static; margin-bottom: 12px; }
  .cal-title { visibility: visible; }
  .cal-month h4 { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .brand-text { font-size: .95rem; letter-spacing: .12em; }
  .brand-text small { font-size: .52rem; letter-spacing: .16em; }
  .brand-vf { font-size: 1.3rem; padding-right: 8px; }
  .brand-mark img { width: 28px; }
  .story { padding-left: 16px; }
  /* телефон: компактний текст, щоб будинок помістився на першому екрані */
  .hero { min-height: max(100svh, calc(128.3vw + 330px)); padding-top: calc(var(--header-h) + 28px); }
  .hero h1 { font-size: 2.7rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 0; }
  .hero-actions { margin: 20px 0 0; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding: .8em 1em; font-size: .98rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .amenities, .rules, .nearby, .price-cards, .extras { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery-caption { display: none; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 9px 10px; font-size: .88rem; }
  .price-card { padding: 22px; }
  .calendar-card, .booking-form { padding: 16px; }
  .cal-grid { gap: 2px; }
  .cal-day { border-radius: 8px; }
  .cal-day .d { font-size: .88rem; }
  .cal-day .p { font-size: .58rem; }
  .form-row.two { grid-template-columns: 1fr; }
  .lightbox-nav { top: auto; bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .success-dl { grid-template-columns: 1fr; }
  .mobile-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(15,22,38,.96); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
  .mobile-cta small { color: rgba(255,255,255,.65); }
  .page-home .site-footer { padding-bottom: 96px; }
}
