/* ==========================================================================
   SVI Cottages — затишні котеджі в Поляниці, 3 км до Буковеля.
   Стиль від логотипа: глибокий чорний і графіт, теплий айворі, тонкий мотив гір.
   Заголовки — Cormorant Garamond, текст — Inter. Mobile-first, без важких бібліотек.
   ========================================================================== */

:root {
  /* Базова палітра */
  --ink: #0e0e0f;
  --graphite: #161617;
  --graphite-2: #1d1d1f;
  --graphite-3: #262628;
  --ivory: #f3eee5;
  --ivory-2: #ebe4d7;
  --ivory-3: #e1d8c8;
  --champagne: #cdb994;

  /* Токени темних секцій (за замовчуванням). Назви збережені для адмінки. */
  --bg: #121213;
  --bg-2: var(--graphite);
  --bg-3: var(--graphite-2);
  --panel: #19191b;
  --panel-2: #202022;
  --line: rgba(243, 238, 229, .1);
  --line-2: rgba(243, 238, 229, .2);
  --text: #f3eee5;
  --text-2: #cfc7b8;
  --muted: #918a7e;
  --gold: #cdb994;
  --gold-2: #e7dbc2;
  --gold-3: #9c8a68;
  --gold-soft: rgba(205, 185, 148, .13);
  --wood: #6e5a3e;
  --danger: #e59a8a;
  --ok: #a9c29f;
  --field-bg: #0f0f10;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 3px;
  --radius-lg: 6px;
  --ease: cubic-bezier(.22, .68, .12, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  --section: clamp(80px, 11vw, 150px);
  --gutter: clamp(16px, 4vw, 44px);
  color-scheme: dark;
}

/* Світлі секції: ті самі токени, айворі-палітра. */
.section--light, .section--ivory-2 {
  --bg: var(--ivory);
  --panel: #faf7f1;
  --panel-2: #fffdf9;
  --line: rgba(22, 22, 21, .1);
  --line-2: rgba(22, 22, 21, .2);
  --text: #171716;
  --text-2: #3d3a34;
  --muted: #7a7366;
  --gold: #8a734c;
  --gold-2: #6d5a39;
  --gold-soft: rgba(138, 115, 76, .1);
  --field-bg: #fff;
  color-scheme: light;
}
.section--ivory-2 { --bg: var(--ivory-2); }
.section--dark { --bg: #121213; }
.section--graphite { --bg: var(--graphite); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 400; letter-spacing: -.003em;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--champagne); color: var(--ink); }
.icon { flex: none; vertical-align: middle; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Типографіка ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--text); font-variant-numeric: lining-nums; }
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
h2 em, h1 em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--text-2); line-height: 1.75; font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 11.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow .icon { margin-right: -4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--text); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); transition: border-color .4s, gap .4s var(--ease); }
.link-arrow:hover { border-color: var(--text); gap: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 28px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-solid, .btn-gold { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-solid:hover, .btn-gold:hover { background: transparent; color: var(--text); }
.btn-ivory { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-ivory:hover { background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); transform: translateY(-2px); }
.btn-glass { background: rgba(255, 255, 255, .06); color: var(--ivory); border-color: rgba(243, 238, 229, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); border-color: var(--ivory); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--text); }
.btn-sm { padding: 11px 18px; font-size: 11.5px; }
.btn-lg { padding: 18px 32px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Логотип ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ivory); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { color: var(--champagne); flex: none; transition: transform .6s var(--ease); }
.brand:hover .logo-mark { transform: translateY(-2px); }
.logo-text { display: flex; align-items: baseline; gap: 10px; }
.logo-word { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: .2em; line-height: 1; }
.logo-sub { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(243, 238, 229, .62); }
.brand--lg .logo-word { font-size: 2.2rem; }
.brand-word { font-family: var(--serif); letter-spacing: .08em; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); color: var(--ivory);
  transition: background .5s var(--ease), border-color .5s, transform .5s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid, body:not(.has-hero) .site-header, .site-header.menu-open {
  background: rgba(14, 14, 15, .82); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: rgba(243, 238, 229, .08);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav > a:not(.btn) { position: relative; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: rgba(243, 238, 229, .82); padding: 6px 0; transition: color .3s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav > a:not(.btn):hover { color: var(--ivory); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-phone { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .06em; }
.nav .nav-cta { --bg: var(--ink); --text: var(--ivory); }
.header-call, .nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav .nav-phone { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .logo-word { font-size: 1.5rem; }
  .header-call { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(243, 238, 229, .3); color: var(--ivory); }
  .nav-toggle { display: grid; place-content: center; gap: 7px; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 0; }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ivory); transition: transform .4s var(--ease); }
  .menu-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) calc(30px + env(safe-area-inset-bottom)); background: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; padding: 14px 0; border-bottom: 1px solid rgba(243, 238, 229, .08); color: var(--ivory); }
  .nav > a:not(.btn)::after { display: none; }
  .nav .nav-phone { display: flex; font-family: var(--sans); font-size: 1rem; letter-spacing: .04em; }
  .nav .nav-cta { margin-top: 26px; padding: 18px; font-size: 13px; }
}

/* ---------- Секції ---------- */
.section { position: relative; padding: var(--section) 0; background: var(--bg); color: var(--text); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: .3em; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 60px; flex-wrap: wrap; }
.section-head--row h2 { margin-bottom: 0; }
.section-head--row > .muted { max-width: 420px; margin: 0; }

/* ---------- Анімації появи ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .frame.reveal { transform: none; clip-path: inset(14% 0 0 0); transition: opacity 1.2s var(--ease-out), clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .frame.reveal.visible { clip-path: inset(0); }
.hero-in { opacity: 0; transform: translate3d(0, 28px, 0); animation: heroIn 1.3s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Hero на весь екран ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ivory); overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg picture, .hero-bg .photo { width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { object-position: center 42%; transform-origin: 55% 40%; animation: kenburns 28s ease-in-out infinite alternate; will-change: transform; }
/* Невелике наближення — щоб банер лишався чітким на великих екранах. */
@keyframes kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1%, -.6%, 0); }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, .08) 22%, rgba(10, 10, 11, .1) 45%, rgba(10, 10, 11, .78) 82%, rgba(10, 10, 11, .92) 100%),
  radial-gradient(120% 70% at 15% 85%, rgba(10, 10, 11, .55), transparent 60%); }
.hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(30px, 5vh, 56px); will-change: transform, opacity; }
.hero .eyebrow { color: var(--ivory-3); }
.hero-title { margin: 0 0 clamp(26px, 4vh, 40px); color: var(--ivory); max-width: 15ch; }
.hero-title span { display: block; font-size: clamp(3.4rem, 10vw, 8.6rem); line-height: .92; letter-spacing: -.02em; font-weight: 400; }
.hero-title em { display: block; margin-top: .35em; font-size: clamp(1.55rem, 3.2vw, 2.7rem); line-height: 1.15; font-weight: 300; color: var(--ivory-2); letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(26px, 4vh, 44px); }
.hero-points { list-style: none; margin: 0; padding: 22px 0 0; display: flex; gap: clamp(22px, 4vw, 56px); border-top: 1px solid rgba(243, 238, 229, .22); flex: 1; }
.hero-points li { display: flex; flex-direction: column; gap: 2px; }
.hero-points b { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 400; line-height: 1.1; }
.hero-points span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 238, 229, .65); }
.hero-scroll { flex: none; width: 26px; height: 44px; border: 1px solid rgba(243, 238, 229, .5); border-radius: 14px; position: relative; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--ivory); border-radius: 2px; animation: scrollDot 2.2s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
.hero--object { min-height: 88vh; min-height: 88svh; }
.crumbs { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 229, .7); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }
.crumbs span { margin: 0 8px; opacity: .5; }
@media (max-width: 760px) {
  .hero-bg img { transform-origin: 50% 40%; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, .1) 18%, rgba(10, 10, 11, .35) 38%, rgba(10, 10, 11, .82) 58%, rgba(10, 10, 11, .94) 100%); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .hero-scroll { display: none; }
}

/* ---------- Гірський силует-роздільник ---------- */
.ridge { position: absolute; left: 0; width: 100%; height: clamp(40px, 7vw, 110px); pointer-events: none; }
.ridge path { fill: var(--bg); }
.ridge .ridge-line { fill: none; stroke: var(--champagne); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.ridge--top { top: 1px; transform: translateY(-100%); }

/* ---------- Рамки фото + паралакс усередині ---------- */
.frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ivory-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }

/* ---------- Про нас ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about-text h2 { max-width: 13ch; }
.about-text .lead { margin-top: 10px; }
.about-media { position: relative; padding-bottom: 14%; }
.about-media .frame--tall { aspect-ratio: 4 / 5; width: 78%; margin-left: auto; }
.about-media .frame--offset { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border: 8px solid var(--bg); box-shadow: 0 30px 60px rgba(0, 0, 0, .18); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { padding-bottom: 22%; }
}

/* ---------- Чому ми ---------- */
.section-why { padding-top: calc(var(--section) * .85); }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why--6 { grid-template-columns: repeat(3, 1fr); }
.why-item { display: flex; flex-direction: column; gap: 8px; padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 30px); border-left: 1px solid var(--line); transition: background .5s var(--ease); }
.why-item:first-child { border-left: 0; }
.why--6 .why-item:nth-child(3n + 1) { border-left: 0; }
.why--6 .why-item:nth-child(n + 4) { border-top: 1px solid var(--line); }
.why-item:hover { background: rgba(243, 238, 229, .03); }
.why-icon { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); margin-bottom: 14px; transition: border-color .5s, transform .6s var(--ease), background .5s; }
.why-item:hover .why-icon { border-color: var(--gold); transform: translateY(-4px); background: var(--gold-soft); }
.why-item b { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.why-item > span:last-child { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 1100px) { .why { grid-template-columns: repeat(3, 1fr); } .why-item:nth-child(4) { border-left: 0; } .why-item:nth-child(n + 4) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) {
  .why, .why--6 { grid-template-columns: 1fr; border-bottom: 0; }
  .why-item, .why--6 .why-item { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; row-gap: 2px; padding: 22px 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .why-item:nth-child(n) { border-top: 0; }
  .why-icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .why-item b { font-size: 1.4rem; }
}

/* ---------- Котеджі ---------- */
.cottages { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); }
.cottages--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cottage-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .5s; }
.cottage-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(30, 24, 14, .35); border-color: var(--line-2); }
.cottage-media { position: relative; }
.cottage-num { position: absolute; top: 18px; left: 22px; z-index: 2; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ivory); text-shadow: 0 2px 20px rgba(0, 0, 0, .4); pointer-events: none; }
.cottage-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 38px); }
.cottage-body .eyebrow { margin-bottom: 14px; }
.cottage-body h3 { font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: 12px; }
.cottage-body h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.cottage-body h3 a:hover { background-size: 100% 1px; }
.cottage-intro { color: var(--text-2); font-weight: 300; }
.cottage-facts { list-style: none; margin: 6px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.cottage-facts li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.cottage-facts b { color: var(--text); font-weight: 500; }
.cottage-facts .icon { color: var(--gold); }
.cottage-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cottage-price { margin: 0; }
.cottage-price small { font-size: 13px; color: var(--muted); }
.cottage-price strong { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; }
.cottage-actions { display: flex; gap: 8px; }
@media (max-width: 900px) { .cottages { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cottage-actions { width: 100%; } .cottage-actions .btn { flex: 1; } }

/* Карусель */
.carousel { position: relative; background: var(--ink); }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; scroll-snap-stop: always; border: 0; padding: 0; margin: 0; background: var(--graphite-2); cursor: zoom-in; overflow: hidden; }
.carousel-slide .photo, .carousel-slide .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cottage-card:hover .carousel-slide .photo { transform: scale(1.04); }
.carousel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); pointer-events: none; }
.carousel-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid rgba(243, 238, 229, .5); background: rgba(14, 14, 15, .4); color: var(--ivory); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s, background .3s, transform .4s var(--ease); }
.carousel-nav.prev { left: 16px; transform: translateX(-6px); }
.carousel-nav.next { right: 16px; transform: translateX(6px); }
.carousel:hover .carousel-nav, .carousel-nav:focus-visible { opacity: 1; transform: none; }
.carousel-nav:hover { background: rgba(14, 14, 15, .7); }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(243, 238, 229, .5); transition: width .4s var(--ease), background .4s; }
.carousel-dots i.on { width: 20px; background: var(--ivory); }
.carousel-count { position: absolute; top: 20px; right: 20px; z-index: 2; font-size: 12px; letter-spacing: .1em; color: var(--ivory); background: rgba(14, 14, 15, .45); padding: 5px 10px; border-radius: 20px; backdrop-filter: blur(6px); pointer-events: none; }
@media (hover: none) { .carousel-nav { display: none; } }

/* ---------- Зима в Карпатах ---------- */
.section-winter { overflow: hidden; isolation: isolate; }
.winter-bg { position: absolute; inset: -18% 0; z-index: -1; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.winter-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(.3); }
.section-winter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 18, 19, .96) 0%, rgba(18, 18, 19, .8) 45%, rgba(18, 18, 19, .55) 100%); }
.winter-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.winter-text h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.winter-points { list-style: none; margin: 30px 0 36px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.winter-points li { display: flex; gap: 16px; align-items: flex-start; }
.winter-points .icon { color: var(--gold); margin-top: 3px; }
.winter-points b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.winter-points span { color: var(--muted); font-size: 14.5px; }
.winter-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(120px, 14vw, 200px); gap: 10px; }
.winter-tile { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--graphite-2); }
.winter-tile:nth-child(1) { grid-row: span 2; }
.winter-tile:nth-child(4) { grid-row: span 2; }
.winter-mosaic { grid-auto-flow: dense; }
.winter-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; filter: saturate(.92); }
.winter-tile:hover img { transform: scale(1.06); filter: saturate(1.05); }
@media (max-width: 900px) {
  .winter-grid { grid-template-columns: 1fr; }
  .winter-mosaic { grid-auto-rows: 34vw; gap: 6px; }
  .section-winter::before { background: rgba(18, 18, 19, .82); }
}

/* ---------- Активний відпочинок ---------- */
.active-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.active-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.active-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(30, 24, 14, .35); }
.active-media { aspect-ratio: 16 / 10; overflow: hidden; }
.active-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transition: transform 1.6s var(--ease); }
.active-card:hover .active-media img { transform: scale(1.06); }
.active-body { position: relative; padding: clamp(26px, 3vw, 40px); padding-top: 40px; }
.active-icon { position: absolute; top: -32px; left: clamp(26px, 3vw, 40px); width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--champagne); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.active-body p { color: var(--text-2); font-weight: 300; }
@media (max-width: 800px) { .active-cards { grid-template-columns: 1fr; } }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 250px); grid-auto-flow: dense; gap: 10px; }
.gallery-item { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; border-radius: var(--radius); background: var(--ivory-3); }
.gallery--home .gallery-item:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; text-align: left; font-size: 13px; color: var(--ivory); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-cap { opacity: 1; transform: none; }
.gallery--home:not(.expanded):not(.is-filtered) .gallery-item:nth-child(n + 15) { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: 34px; }
.gallery--home.expanded + .gallery-more, .gallery--home.is-filtered + .gallery-more { display: none; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 30px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; transition: all .35s var(--ease); }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 28vw; } }
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 40vw; gap: 6px; }
  .gallery-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .gallery-filter::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .gallery-cap { opacity: 1; transform: none; font-size: 12px; padding: 24px 10px 8px; }
}

/* ---------- Ціни (сторінка котеджу) ---------- */
.ptable { display: flex; flex-direction: column; }
.ptable-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ptable-row span { color: var(--text-2); }
.ptable-row small { display: block; font-size: 12px; color: var(--muted); }
.ptable-row strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; white-space: nowrap; }
.ptable-row--special strong { font-size: 1.45rem; }
.ptable-row--special span { color: var(--text); }

/* ---------- Бронювання ---------- */
.section-booking { border-top: 1px solid var(--line); }
.booking { display: flex; flex-direction: column; gap: 22px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.step legend small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; }
.step-n { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--gold); border: 1px solid var(--line-2); border-radius: 50%; width: 34px; height: 34px; display: inline-grid; place-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }
.panel legend { float: left; width: 100%; }
.panel legend + * { clear: both; }
.obj-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.obj-opt { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--panel); cursor: pointer; transition: border-color .3s, background .3s, box-shadow .3s; }
.obj-opt input { position: absolute; opacity: 0; pointer-events: none; }
.obj-opt-thumb { width: 92px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); flex: none; }
.obj-opt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.obj-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.obj-opt-text b { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.obj-opt-text small { font-size: 13px; color: var(--muted); }
.obj-opt-text small:first-of-type { color: var(--text-2); }
.obj-opt-check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .3s; }
.obj-opt:hover { border-color: var(--gold-3); }
.obj-opt:has(input:checked) { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--panel) 65%); box-shadow: 0 0 0 1px var(--gold) inset; }
.obj-opt:has(input:checked) .obj-opt-check { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.obj-opt:has(input:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.booking-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.booking-side { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1000px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .obj-pick { grid-template-columns: 1fr; } .obj-opt-thumb { width: 78px; } }

/* Поля */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--field-bg); color: var(--text); font-size: 16px; transition: border-color .3s, box-shadow .3s; min-width: 0;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { resize: vertical; min-height: 64px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row.two { grid-template-columns: 1fr; gap: 0; } }
.dates-manual { margin-top: 18px; }
.dates-manual .field { margin-bottom: 0; }

/* Додаткові послуги (галочки) */
.extra-opt { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 4px 0 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); cursor: pointer; position: relative; }
.extra-opt input { position: absolute; opacity: 0; pointer-events: none; }
.extra-box { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; }
.extra-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.extra-text b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.extra-text small { color: var(--muted); font-size: 13px; }
.extra-price { margin-left: auto; font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); white-space: nowrap; }
.extra-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.extra-opt:has(input:checked) .extra-box { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Календар */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-family: var(--serif); font-size: 1.4rem; text-align: center; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .3s, color .3s; }
.cal-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-2); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; min-height: 290px; }
.cal-month h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; text-align: center; font-weight: 500; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd { font-size: 11px; text-align: center; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .06em; }
.cal-day { position: relative; aspect-ratio: 1 / 1.05; border: 0; border-radius: var(--radius); background: transparent; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; cursor: pointer; transition: background .2s, color .2s; min-width: 0; }
.cal-day .d { font-size: 14px; font-weight: 500; line-height: 1; }
.cal-day .p { font-size: 9.5px; color: var(--muted); line-height: 1; letter-spacing: .02em; }
.cal-day.free:hover:not(:disabled) { background: var(--gold-soft); }
.cal-day.empty { visibility: hidden; }
.cal-day.today .d { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.cal-day.past, .cal-day.out-of-range { color: rgba(243, 238, 229, .2); cursor: default; }
.cal-day.past .p, .cal-day.out-of-range .p { visibility: hidden; }
.cal-day.busy { color: rgba(243, 238, 229, .28); cursor: not-allowed; background: repeating-linear-gradient(135deg, rgba(243, 238, 229, .045) 0 4px, transparent 4px 8px); }
.cal-day.busy .d { text-decoration: line-through; }
.cal-day.busy .p { visibility: hidden; }
.cal-day.too-short { color: rgba(243, 238, 229, .35); cursor: default; }
.cal-day.on-request .p { color: var(--gold); }
.cal-day.in-range, .cal-day.preview { background: rgba(205, 185, 148, .18); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--ivory); color: var(--ink); }
.cal-day.start .p, .cal-day.end .p { color: rgba(14, 14, 15, .6); }
.cal-day.start { border-radius: var(--radius) 0 0 var(--radius); }
.cal-day.end { border-radius: 0 var(--radius) var(--radius) 0; }
.cal-day.checkout-ok:hover { background: rgba(205, 185, 148, .3); }
.cal-loading { grid-column: 1 / -1; display: grid; place-items: center; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-free { border: 1px solid var(--line-2); }
.lg-busy { background: repeating-linear-gradient(135deg, rgba(243, 238, 229, .28) 0 2px, transparent 2px 4px); }
.lg-selected { background: var(--ivory); }
.lg-price { font-weight: 600; color: var(--text-2); font-size: 11px; }
.cal-hint { margin: 12px 0 0; font-size: 14px; color: var(--text-2); min-height: 1.6em; }
.cal-hint.warn { color: var(--danger); }
@media (max-width: 860px) { .cal-months { grid-template-columns: 1fr; } .cal-month + .cal-month { display: none; } }

/* Підсумок */
.summary-empty { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.summary-empty .icon { color: var(--gold); }
.summary-unit { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 12px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-2); }
.summary-lines li { display: flex; justify-content: space-between; gap: 14px; }
.summary-lines li span:last-child { white-space: nowrap; color: var(--text); }
.summary-lines em { font-style: normal; font-size: 12px; color: var(--gold); margin-left: 4px; }
.summary-lines .note { color: var(--gold-2); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.summary-total span { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.summary-total strong { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; line-height: 1.1; }
.summary.is-request .summary-total strong { font-size: 1.4rem; color: var(--gold-2); }
.summary-prepay { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.summary-prepay b { color: var(--gold-2); white-space: nowrap; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--champagne); flex: none; }
.check a { color: var(--gold-2); }
.check b { color: var(--text); font-weight: 600; }
.form-error { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: rgba(229, 154, 138, .1); border: 1px solid rgba(229, 154, 138, .35); color: var(--danger); font-size: 14px; }
.form-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.form-note .icon { color: var(--gold); }

/* ---------- Умови ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rule { display: flex; gap: 18px; padding: clamp(24px, 3vw, 36px); background: var(--bg); transition: background .5s var(--ease); }
.rule:hover { background: var(--graphite-2); }
.rule-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); }
.rule strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin-bottom: 6px; }
.rule span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.rules-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.rules-note .icon { color: var(--gold); flex: none; }
@media (max-width: 960px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rules { grid-template-columns: 1fr; } .rule { padding: 22px 18px; } }

/* ---------- Локація й контакти ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.contact-list { display: flex; flex-direction: column; margin-top: 30px; }
.contact { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .5s var(--ease); }
.contact:first-child { border-top: 1px solid var(--line); }
.contact > span { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); flex: none; transition: background .4s, color .4s, border-color .4s; }
.contact small { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.contact:hover { padding-left: 8px; }
.contact:hover > span { background: var(--text); color: var(--bg); border-color: var(--text); }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--ivory-3); box-shadow: 0 40px 80px -40px rgba(30, 24, 14, .4); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05) sepia(.12); }
.map-link { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--ink); color: var(--ivory); text-decoration: none; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius); }
.map-link:hover { background: #000; }
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } .map { aspect-ratio: 1 / 1; } }

/* ---------- Сторінка котеджу ---------- */
.desc-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.desc-text h2 { max-width: 16ch; }
.highlights { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.highlights li { display: flex; flex-direction: column; gap: 4px; }
.highlights b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.highlights li > span:last-child { color: var(--muted); font-size: 14px; }
.desc-side { position: sticky; top: calc(var(--header-h) + 24px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.desc-times { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.desc-times li { display: flex; align-items: center; gap: 10px; }
.desc-times .icon { color: var(--gold); }
@media (max-width: 900px) { .desc-grid { grid-template-columns: 1fr; } .desc-side { position: static; } .highlights { grid-template-columns: 1fr; gap: 16px; } }

/* Заглушка фото */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--graphite-2), var(--graphite-3)); color: var(--muted); font-family: var(--serif); font-size: 1.4rem; }

/* ---------- Підвал ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--ivory); padding: clamp(70px, 9vw, 120px) 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(243, 238, 229, .1); }
.footer-brand p { max-width: 380px; margin: 22px 0; color: #9b9487; font-size: 15px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243, 238, 229, .2); display: grid; place-items: center; color: var(--ivory); transition: all .4s var(--ease); }
.socials a:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); transform: translateY(-3px); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); font-weight: 500; margin-bottom: 10px; }
.footer-col a, .footer-col span { color: #b9b1a3; text-decoration: none; font-size: 15px; transition: color .3s; }
.footer-col a:hover { color: var(--ivory); }
.footer-col small { color: #7d776c; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; padding-top: 24px; font-size: 13px; color: #7d776c; }
.footer-bottom a { color: #a39c8f; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Липка кнопка «Забронювати» на телефоні ---------- */
.mobile-cta {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 10px 10px 18px; background: rgba(14, 14, 15, .88); border: 1px solid rgba(243, 238, 229, .12); border-radius: 10px; color: var(--ivory);
  backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transform: translateY(calc(100% + 30px)); transition: transform .6s var(--ease-out);
}
.mobile-cta small { color: #9b9487; font-size: 12px; }
.mobile-cta strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.mobile-cta .btn { --bg: var(--ink); --text: var(--ivory); padding: 14px 20px; }
.mobile-cta.show { transform: none; }
@media (max-width: 860px) { .mobile-cta { display: flex; } .site-footer { padding-bottom: 110px; } }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 9, .97); display: flex; align-items: center; justify-content: center; padding: 20px 80px; touch-action: pan-y; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox img { max-width: min(92vw, 1400px); max-height: calc(100svh - 120px); object-fit: contain; border-radius: var(--radius); animation: lbIn .6s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.lightbox img.in-right { animation: lbRight .5s var(--ease-out); }
.lightbox img.in-left { animation: lbLeft .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
@keyframes lbRight { from { opacity: 0; transform: translateX(40px); } }
@keyframes lbLeft { from { opacity: 0; transform: translateX(-40px); } }
.lightbox figcaption { display: flex; gap: 18px; align-items: baseline; font-family: var(--serif); font-size: 1.3rem; color: var(--ivory-2); }
.lb-count { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: #8a8478; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(243, 238, 229, .2); background: rgba(14, 14, 15, .6); color: var(--ivory); cursor: pointer; transition: border-color .3s, background .3s; }
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--ivory); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
@media (max-width: 640px) {
  .lightbox { padding: 60px 0 90px; }
  .lightbox img { max-width: 100vw; max-height: calc(100svh - 190px); border-radius: 0; }
  .lightbox figcaption { padding: 0 16px; font-size: 1.1rem; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .lightbox-nav { top: auto; bottom: 22px; width: 48px; height: 48px; }
  .lightbox-nav.prev { left: calc(50% - 60px); }
  .lightbox-nav.next { right: calc(50% - 60px); }
}

/* ---------- Модальне вікно ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 6, .8); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100svh - 36px); overflow-y: auto; padding: 38px 28px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--panel-2); text-align: center; animation: lbIn .5s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.modal-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--ink); }
.modal-card h3 { margin-bottom: 4px; }
.booking-code { color: var(--gold-2); font-weight: 600; letter-spacing: .08em; }
.success-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; text-align: left; }
.success-dl > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.success-dl .full { grid-column: 1 / -1; }
.success-dl .accent { border-color: var(--gold-3); background: var(--gold-soft); }
.success-dl dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.success-dl dd { margin: 2px 0 0; font-weight: 600; }
.steps { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.steps li { counter-increment: s; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.steps li::before { content: "0" counter(s); font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: .14em; }
.steps span { color: var(--muted); }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Доступність і рух ---------- */
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-bg img { animation: none; }
}

/* Сторінка котеджу: обкладинка світліша за банер головної — трохи густіше затемнення. */
.hero--object::before { background: linear-gradient(180deg, rgba(10, 10, 11, .6) 0%, rgba(10, 10, 11, .35) 30%, rgba(10, 10, 11, .55) 55%, rgba(10, 10, 11, .9) 100%); }

/* Кількість кімнат у картці котеджу */
.cottage-rooms { margin: -4px 0 14px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }

/* Обидва котеджі разом */
.together { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3vw, 44px); padding: clamp(24px, 3vw, 38px); background: var(--ink); color: var(--ivory); border-radius: var(--radius-lg); --text: var(--ivory); --bg: var(--ink); }
.together-num { display: flex; flex-direction: column; align-items: flex-start; padding-right: clamp(20px, 3vw, 44px); border-right: 1px solid rgba(243, 238, 229, .15); }
.together-num b { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 400; line-height: 1; color: var(--champagne); }
.together-num span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #9b9487; }
.together h3 { color: var(--ivory); margin-bottom: 6px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.together p { margin: 0; color: #b9b1a3; font-weight: 300; }
@media (max-width: 860px) {
  .together { grid-template-columns: 1fr; }
  .together-num { flex-direction: row; align-items: baseline; gap: 12px; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid rgba(243, 238, 229, .15); }
}

/* Банер головної на десктопі: верх кадру (дах і небо) завжди видно під шапкою. */
@media (min-width: 761px) { .page-home .hero-bg img { object-position: center 25%; transform-origin: 50% 30%; } }
