/* Homey Camp — сучасний мінімалізм для заміської вілли. Світла й темна теми. */

:root,
[data-theme="light"] {
	--bg: #f5f3ee;
	--bg2: #ebe8e0;
	--card: #fffdf9;
	--ink: #1c1c1a;
	--ink2: #3a3935;
	--muted: #75726a;
	--line: #dedad0;
	--accent: #44533c;
	--accent-2: #5c6e52;
	--on-accent: #ffffff;
	--sel: #dfe5d6;
	--busy: #e6e2d8;
	--shadow: 0 24px 60px -24px rgba(40, 38, 30, .25);
	--ok: #3f6b3a;
	--warn: #9a6b1e;
	--err: #a5392f;
	--map-filter: grayscale(1) contrast(.95);
	color-scheme: light;
}
[data-theme="dark"] {
	--bg: #121311;
	--bg2: #1a1b18;
	--card: #1d1e1b;
	--ink: #ecebe6;
	--ink2: #cfcdc5;
	--muted: #9a988f;
	--line: #2e2f2a;
	--accent: #a9b99b;
	--accent-2: #bccab0;
	--on-accent: #121311;
	--sel: #2c3428;
	--busy: #24251f;
	--shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
	--ok: #9cc493;
	--warn: #e0b56a;
	--err: #ef8c80;
	--map-filter: grayscale(1) invert(.9) contrast(.9);
	color-scheme: dark;
}
:root {
	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--r: 18px;
	--r-sm: 12px;
	--wrap: 1280px;
	--head: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); }
body {
	margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.ty-sr, .skip-link { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; padding: 10px 14px; background: var(--card); border-radius: 8px; }
.ty-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.ty-wrap-narrow { max-width: 860px; }
.ty-muted { color: var(--muted); }
.ty-small { font-size: 13px; }
.ty-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Типографіка */
.ty-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 12px; font-weight: 600;
	letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.ty-eyebrow .ty-ico { width: 16px; height: 16px; }
.ty-h2 { margin: 0 0 24px; font: 400 clamp(38px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -.015em; }
.ty-h3 { margin: 32px 0 14px; font: 500 26px/1.2 var(--serif); }
.ty-lead { margin: 0; max-width: 620px; color: var(--muted); font-size: 17px; }
.ty-prose { color: var(--ink2); font-size: 17px; }
.ty-prose p { margin: 0 0 1em; }
.ty-prose p:last-child { margin-bottom: 0; }

/* Кнопки */
.ty-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px;
	border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none;
	white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ty-btn .ty-ico { width: 18px; height: 18px; transition: transform .2s; }
.ty-btn:hover .ty-ico { transform: translateX(3px); }
.ty-btn-solid { background: var(--accent); color: var(--on-accent); }
.ty-btn-solid:hover { background: var(--accent-2); }
.ty-btn-line { border-color: var(--line); background: transparent; }
.ty-btn-line:hover { border-color: var(--ink); }
.ty-btn-light { background: #fff; color: #1c1c1a; }
.ty-btn-light:hover { background: #f0eee8; }
.ty-btn-block { width: 100%; }
.ty-btn:disabled { opacity: .5; cursor: not-allowed; }
.ty-link-btn { padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.ty-link-btn:hover { color: var(--err); }
.ty-icon-btn {
	position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s;
}
.ty-icon-btn:hover { border-color: currentColor; }
.ty-dot-on { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* Шапка */
.ty-header { position: sticky; top: 0; z-index: 50; height: var(--head); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.ty-header.is-scrolled { border-bottom-color: var(--line); }
.ty-landing .ty-header.is-overlay { position: fixed; left: 0; right: 0; }
.ty-header.is-overlay:not(.is-scrolled):not(.is-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.ty-header.is-overlay:not(.is-scrolled):not(.is-open) .ty-header-cta { background: #fff; color: #1c1c1a; }
.ty-header-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.ty-brand { font: 500 30px/1 var(--serif); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.ty-logo { max-height: 44px; width: auto; }
.ty-nav { margin-left: auto; }
.ty-menu { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.ty-menu a { position: relative; text-decoration: none; font-size: 15px; opacity: .85; transition: opacity .2s; }
.ty-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .25s; }
.ty-menu a:hover { opacity: 1; }
.ty-menu a:hover::after { right: 0; }
.ty-nav-extra { display: none; }
.ty-tools { display: flex; align-items: center; gap: 4px; }
.ty-header-cta { height: 44px; margin-left: 8px; padding: 0 22px; }
.ty-theme-toggle .ty-ico-sun { display: none; }
[data-theme="dark"] .ty-theme-toggle .ty-ico-sun { display: block; }
[data-theme="dark"] .ty-theme-toggle .ty-ico-moon { display: none; }
.ty-burger { display: none; width: 44px; height: 44px; padding: 0 11px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; }
.ty-burger span { display: block; height: 1.5px; background: currentColor; transition: transform .25s; }
.ty-header.is-open .ty-burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.ty-header.is-open .ty-burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* Мови */

/* Головний екран */
.ty-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.ty-hero-media { position: absolute; inset: 0; }
.ty-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: ty-zoom 14s ease-out forwards; }
.ty-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .7) 100%); }
@keyframes ty-zoom { to { transform: scale(1); } }
.ty-hero-in { position: relative; padding-top: 140px; padding-bottom: 48px; }
.ty-hero .ty-eyebrow { color: rgba(255, 255, 255, .85); }
.ty-hero-title { margin: 0; font: 400 clamp(84px, 15vw, 230px)/.85 var(--serif); letter-spacing: -.02em; }
.ty-hero-sub { margin: clamp(26px, 3.2vw, 48px) 0 40px; max-width: 520px; font: italic 400 clamp(22px, 2.4vw, 30px)/1.25 var(--serif); color: rgba(255, 255, 255, .92); }
.ty-hero-bar {
	display: flex; align-items: center; gap: 32px; padding: 14px 14px 14px 28px; border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px; background: rgba(20, 20, 18, .28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); width: fit-content; max-width: 100%;
}
.ty-hero-facts { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ty-hero-facts li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ty-hero-price { display: flex; flex-direction: column; line-height: 1.2; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .25); }
.ty-hero-price span { font-weight: 700; font-size: 17px; }
.ty-hero-price small { font-size: 12px; opacity: .75; }

/* Секції */
.ty-section { padding: clamp(80px, 11vw, 150px) 0; }
.ty-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.ty-sec-head .ty-h2 { margin-bottom: 0; }
.ty-sec-head .ty-lead { margin-top: 18px; }

/* Про віллу */
.ty-about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.ty-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px 18px; margin: 40px 0 0; padding: 32px 0 0; list-style: none; border-top: 1px solid var(--line); }
.ty-facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.ty-facts .ty-ico { grid-row: span 2; align-self: start; margin-top: 6px; color: var(--accent); }
.ty-facts b { font: 500 34px/1 var(--serif); }
.ty-facts span { font-size: 13px; color: var(--muted); }
.ty-about-media { position: relative; padding: 0 0 70px 70px; }
.ty-about-media figure { margin: 0; overflow: hidden; border-radius: var(--r); }
.ty-about-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ty-about-small { position: absolute; left: 0; bottom: 0; width: 46%; border: 8px solid var(--bg); border-radius: calc(var(--r) + 8px) !important; }
.ty-about-small img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }

/* Галерея */
.ty-gallery-sec { padding-top: 0; }
.ty-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 14px; }
.ty-tile { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--bg2); }
/* Розміри плиток мозаїки (рахує homey_camp_mosaic_layout — рядки завжди повні). */
.ty-g-big { grid-column: span 2; grid-row: span 2; }
.ty-g-w2 { grid-column: span 2; }
.ty-g-w4 { grid-column: span 4; }
.ty-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ty-tile:hover img { transform: scale(1.05); }
.ty-tile-cap { position: absolute; left: 14px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(20, 20, 18, .55); color: #fff; font-size: 12px; backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.ty-tile:hover .ty-tile-cap { opacity: 1; transform: none; }

/* Зручності */
.ty-amen-sec { background: var(--bg2); }
.ty-amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ty-amen li { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 30px; background: var(--bg2); font-size: 15px; }
.ty-amen .ty-ico { width: 30px; height: 30px; stroke-width: 1.2; color: var(--accent); }

/* Бронювання */
.ty-booking { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.ty-cal-wrap { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.ty-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ty-cal-nav { display: flex; gap: 6px; }
.ty-cal-nav button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.ty-cal-nav button:hover:not(:disabled) { border-color: var(--ink); }
.ty-cal-nav button:disabled { opacity: .35; cursor: default; }
.ty-cal-hint { font-size: 14px; color: var(--muted); }
.ty-cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.ty-month h3 { margin: 6px 0 14px; text-align: center; font: 500 24px/1.2 var(--serif); }
.ty-month h3::first-letter { text-transform: uppercase; }
.ty-dow, .ty-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.ty-dow span { padding: 6px 0; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ty-day {
	position: relative; aspect-ratio: 1 / 1.04; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	margin: 1px 0; padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); isolation: isolate;
}
.ty-day small { font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.ty-day::before { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 12px; transition: background .15s; }
.ty-day:hover:not(:disabled)::before { background: var(--bg2); outline: 1px solid var(--ink); outline-offset: -1px; }
.ty-day:disabled { cursor: default; }
.ty-day.is-past { color: var(--muted); opacity: .45; }
.ty-day.is-busy { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ty-day.is-busy::before { background: repeating-linear-gradient(135deg, var(--busy) 0 5px, transparent 5px 10px); }
.ty-day.is-busy small { visibility: hidden; }
.ty-day.is-out-only { cursor: pointer; }
.ty-day.is-blank { visibility: hidden; }
.ty-day.is-range::before { inset: 2px 0; border-radius: 0; background: var(--sel); }
.ty-day.is-start::before, .ty-day.is-end::before { inset: 2px; border-radius: 12px; background: var(--accent); }
.ty-day.is-start, .ty-day.is-end, .ty-day.is-start small, .ty-day.is-end small { color: var(--on-accent); }
.ty-day.is-nope { cursor: not-allowed; }
.ty-day.is-nope:hover::before { outline: 0; background: none; }
.ty-day.is-today { text-decoration: underline; text-underline-offset: 4px; }
.ty-cal-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ty-cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ty-cal-legend i { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line); }
.ty-lg-busy { background: repeating-linear-gradient(135deg, var(--busy) 0 3px, var(--card) 3px 6px); }
.ty-lg-sel { background: var(--accent); border-color: var(--accent) !important; }

.ty-book-card { position: sticky; top: calc(var(--head) + 20px); padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.ty-bk-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.ty-bk-price b { font: 500 34px/1 var(--serif); }
.ty-bk-price span { color: var(--muted); font-size: 14px; }
.ty-bk-fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ty-bk-f { padding: 12px 16px; min-width: 0; }
.ty-bk-f + .ty-bk-f { border-left: 1px solid var(--line); }
.ty-bk-f small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ty-bk-f b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-bk-f b.is-empty { color: var(--muted); font-weight: 500; }
.ty-bk-guests { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-left: 0 !important; }
.ty-stepper { display: flex; align-items: center; gap: 12px; }
.ty-stepper button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.ty-stepper button:hover:not(:disabled) { border-color: var(--ink); }
.ty-stepper button:disabled { opacity: .35; cursor: default; }
.ty-stepper .ty-ico { width: 16px; height: 16px; }
.ty-stepper output { min-width: 18px; text-align: center; font-weight: 600; }
.ty-bk-lines { margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; }
.ty-bk-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink2); }
.ty-bk-lines li.is-disc { color: var(--ok); }
.ty-bk-lines li.is-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 17px; }
.ty-bk-err { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); font-size: 14px; }
.ty-bk-act { margin-top: 20px; }
.ty-bk-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.ty-bk-clear { display: block; margin: 12px auto 0; }
.ty-bk-sum { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 18px; border-radius: 14px; background: var(--bg2); font-size: 14px; }
.ty-bk-sum b { display: block; font-size: 15px; }
.ty-bk-done { text-align: center; padding: 8px 0; }
.ty-bk-done .ty-ico { width: 48px; height: 48px; padding: 10px; margin: 0 auto 14px; border-radius: 50%; background: var(--sel); color: var(--accent); stroke-width: 2; }
.ty-bk-done h3 { margin: 0 0 10px; font: 500 28px/1.15 var(--serif); }
.ty-bk-done p { margin: 0 0 14px; color: var(--ink2); font-size: 15px; }

/* Форми */
.ty-form { display: flex; flex-direction: column; gap: 14px; }
.ty-field { display: flex; flex-direction: column; gap: 6px; }
.ty-field span { font-size: 13px; color: var(--muted); }
.ty-field input, .ty-field textarea, .ty-field select {
	width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
	transition: border-color .2s, box-shadow .2s;
}
.ty-field textarea { min-height: 84px; resize: vertical; }
.ty-field input:focus, .ty-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ty-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); cursor: pointer; }
.ty-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.ty-check a { color: var(--accent); }
.ty-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ty-form-foot { margin: 4px 0 0; text-align: center; font-size: 14px; }
.ty-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Розташування */
.ty-loc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.ty-loc-media { margin: 0; overflow: hidden; border-radius: var(--r); }
.ty-loc-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ty-addr { display: flex; gap: 8px; align-items: center; margin: 24px 0; font-weight: 600; }
.ty-addr .ty-ico { color: var(--accent); }
.ty-map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); }
.ty-map iframe { display: block; width: 100%; height: 260px; border: 0; filter: var(--map-filter); }

/* Відгуки */
.ty-rev-sec { background: var(--bg2); }
.ty-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ty-review { margin: 0; padding: 32px; border-radius: var(--r); background: var(--card); display: flex; flex-direction: column; gap: 18px; }
.ty-stars { display: flex; gap: 3px; color: var(--accent); }
.ty-stars .ty-ico { width: 16px; height: 16px; fill: currentColor; }
.ty-review blockquote { flex: 1; margin: 0; font: 400 23px/1.35 var(--serif); }
.ty-review figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Питання */
.ty-faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 110px); }
.ty-rules { margin: 0; padding: 0; list-style: none; }
.ty-rules li { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--ink2); }
.ty-rules .ty-ico { width: 18px; height: 18px; color: var(--accent); }
.ty-faq details { border-bottom: 1px solid var(--line); }
.ty-faq details:first-child { border-top: 1px solid var(--line); }
.ty-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font: 500 23px/1.25 var(--serif); }
.ty-faq summary::-webkit-details-marker { display: none; }
.ty-faq summary .ty-ico { transition: transform .25s; }
.ty-faq details[open] summary .ty-ico { transform: rotate(45deg); }
.ty-faq details p { margin: -8px 0 24px; max-width: 620px; color: var(--ink2); }

/* Заклик */
.ty-cta-band { position: relative; display: flex; align-items: center; min-height: 70vh; color: #fff; overflow: hidden; }
.ty-cta-media { position: absolute; inset: 0; }
.ty-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.ty-cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 13, .45); }
.ty-cta-in { position: relative; text-align: center; }
.ty-cta-in .ty-h2 { font-size: clamp(54px, 9vw, 130px); margin-bottom: 36px; }

/* Футер */
.ty-footer { padding: 80px 0 32px; border-top: 1px solid var(--line); }
.ty-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ty-footer .ty-brand { font-size: 40px; }
.ty-footer-brand p { margin: 14px 0 0; max-width: 320px; color: var(--ink2); }
.ty-footer-brand .ty-muted { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ty-footer-h { margin: 6px 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ty-footer-list { margin: 0; padding: 0; list-style: none; }
.ty-footer-list li { padding: 5px 0; }
.ty-footer-list a, .ty-footer-list li { display: flex; gap: 10px; align-items: center; text-decoration: none; font-size: 15px; }
.ty-footer-list a:hover { color: var(--accent); }
.ty-footer-list .ty-ico { width: 18px; height: 18px; color: var(--muted); }
.ty-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.ty-footer-legal { display: flex; gap: 20px; }
.ty-footer-legal a { color: var(--muted); text-decoration: none; }
.ty-footer-legal a:hover { color: var(--ink); }

/* Кабінет */
.ty-account { padding: 64px 0 120px; }
.ty-auth { max-width: 460px; margin: 0 auto; }
.ty-auth .ty-h2 { margin-bottom: 8px; }
.ty-tabs { display: flex; gap: 4px; margin: 28px 0; padding: 4px; border-radius: 999px; background: var(--bg2); width: fit-content; }
.ty-tabs a { padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.ty-tabs a.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ty-notice { padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.ty-notice.is-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.ty-notice.is-err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.ty-acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ty-acc-head .ty-h2 { margin: 0; }
.ty-bookings { display: grid; gap: 16px; }
.ty-bcard { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.ty-bcard.is-cancelled, .ty-bcard.is-past { opacity: .7; }
.ty-bcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13px; }
.ty-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ty-chip.is-pending { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.ty-chip.is-confirmed { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.ty-chip.is-cancelled { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.ty-chip.is-past { background: var(--bg2); color: var(--muted); }
.ty-bcard-dates { display: flex; align-items: center; gap: 24px; }
.ty-bcard-dates > div { display: flex; flex-direction: column; }
.ty-bcard-dates small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ty-bcard-dates b { font: 500 26px/1.2 var(--serif); }
.ty-bcard-dates span { font-size: 13px; }
.ty-bcard-dates > .ty-ico { color: var(--muted); }
.ty-bcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.ty-bcard-meta span { display: inline-flex; gap: 8px; align-items: center; }
.ty-bcard-meta .ty-ico { width: 18px; height: 18px; color: var(--muted); }
.ty-bcard-meta b { margin-left: auto; font-size: 17px; color: var(--ink); }
.ty-bcard-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.ty-cancel-form { margin-top: 12px; }
.ty-cancel.is-confirm { color: var(--err); font-weight: 600; }
.ty-empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }
.ty-empty .ty-ico { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--muted); }
.ty-empty p { margin: 0 0 20px; color: var(--muted); }
.ty-acc-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.ty-acc-contacts p { width: 100%; margin: 0; }
.ty-acc-contacts .ty-btn { height: 44px; font-weight: 500; }
.ty-form-wide .ty-h3 { margin-top: 18px; margin-bottom: 0; }
.ty-page { padding: 64px 32px 120px; }
.ty-404 { text-align: center; }

/* Лайтбокс */
.ty-lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 9, .94); color: #fff; opacity: 0; transition: opacity .25s; }
.ty-lb.is-on { opacity: 1; }
.ty-lb figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ty-lb img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 6px; }
.ty-lb figcaption { font-size: 14px; opacity: .8; }
.ty-lb button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.ty-lb button:hover { background: rgba(255, 255, 255, .16); }
.ty-lb .ty-lb-x { top: 20px; right: 20px; }
.ty-lb .ty-lb-p { left: 20px; top: 50%; transform: translateY(-50%); }
.ty-lb .ty-lb-n { right: 20px; top: 50%; transform: translateY(-50%); }
.ty-lb-count { position: absolute; top: 34px; left: 28px; font-size: 13px; opacity: .7; letter-spacing: .1em; }
html.ty-lock { overflow: hidden; }

/* Поява під час прокрутки */
.js .ty-reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .ty-reveal.is-in { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 1100px) {
	.ty-menu { gap: 20px; }
	.ty-menu a { font-size: 14px; }
	.ty-amen { grid-template-columns: repeat(3, 1fr); }
	.ty-booking { grid-template-columns: 1fr; }
	.ty-book-card { position: static; }
}
@media (max-width: 980px) {
	:root { --head: 72px; }
	.ty-burger { display: flex; }
	.ty-header-cta { display: none; }
	.ty-tools { margin-left: auto; }
	.ty-nav {
		position: fixed; inset: var(--head) 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 32px;
		background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
	}
	.ty-header.is-open .ty-nav { opacity: 1; visibility: visible; transform: none; }
	.ty-menu { flex-direction: column; gap: 0; }
	.ty-menu a { display: block; padding: 12px 0; font: 400 34px/1.2 var(--serif); opacity: 1; }
	.ty-menu a::after { display: none; }
	.ty-nav-extra { display: block; }
	.ty-nav-extra .ty-btn { width: 100%; }
	/* backdrop-filter робить шапку контейнером для fixed — інакше меню схлопується. */
	.ty-header.is-open { background: var(--bg); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
	.ty-about-grid, .ty-loc, .ty-faq-grid { grid-template-columns: 1fr; }
	.ty-reviews { grid-template-columns: 1fr; }
	.ty-footer-top { grid-template-columns: 1fr 1fr; }
	.ty-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	.ty-wrap { padding: 0 20px; }
	.ty-brand { font-size: 26px; }
	.ty-hero-in { padding-bottom: 28px; }
	.ty-hero-bar { flex-wrap: wrap; gap: 14px 20px; border-radius: 22px; padding: 18px; }
	.ty-hero-facts { gap: 16px; font-size: 13px; }
	.ty-hero-price { padding-left: 0; border-left: 0; }
	.ty-hero-bar .ty-btn { width: 100%; }
	.ty-sec-head { flex-direction: column; align-items: flex-start; }
	.ty-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
	.ty-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
	.ty-tile:nth-child(4) { grid-row: span 1; }
	.ty-tile:nth-child(n+6) { display: none; }
	.ty-amen { grid-template-columns: 1fr 1fr; }
	.ty-amen li { padding: 22px 18px; gap: 12px; font-size: 14px; }
	.ty-about-media { padding: 0 0 50px 40px; }
	.ty-cal-wrap, .ty-book-card { padding: 20px 16px; }
	.ty-cal-months { grid-template-columns: 1fr; }
	.ty-cal-months .ty-month + .ty-month { display: none; }
	.ty-day { font-size: 14px; }
	.ty-review { padding: 24px; }
	.ty-review blockquote { font-size: 21px; }
	.ty-footer-top { grid-template-columns: 1fr; gap: 28px; }
	.ty-grid2 { grid-template-columns: 1fr; }
	.ty-bcard { padding: 20px; }
	.ty-bcard-dates { gap: 12px; }
	.ty-bcard-dates b { font-size: 21px; }
	.ty-acc-head { flex-direction: column; align-items: flex-start; }
	.ty-lb .ty-lb-p, .ty-lb .ty-lb-n { top: auto; bottom: 20px; transform: none; }
}

/* ===================== Головна з блоків Gutenberg ===================== */
.ty-blocks > * { margin-top: 0; margin-bottom: 0; }
.ty-b-sec > .wp-block-group__inner-container,
.ty-b-sec.is-layout-constrained,
.ty-b-sec.is-layout-flow { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.ty-b-sec > .wp-block-group__inner-container { padding: 0 32px; }
.ty-b-sec.ty-section { padding-left: 0; padding-right: 0; max-width: none; }
.ty-b-sec .ty-h2 { margin-bottom: 40px; }
.ty-b-sec .ty-eyebrow + .ty-h2 { margin-top: 0; }
.ty-b-sec .ty-lead { margin: -22px 0 40px; }
.ty-b-prose { margin: 0 0 1em; color: var(--ink2); font-size: 17px; }
.ty-b-sec .ty-h2 + .ty-b-prose { margin-top: -10px; }

/* Обкладинки: головне фото й фінальний банер. */
.wp-block-cover.ty-b-hero { min-height: 100vh !important; min-height: 100svh !important; padding: 140px 0 48px; align-items: flex-end; color: #fff; overflow: hidden; }
.wp-block-cover.ty-b-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .7) 100%); }
.ty-b-hero .wp-block-cover__image-background { transform: scale(1.04); animation: ty-zoom 14s ease-out forwards; }
.wp-block-cover.ty-b-hero .wp-block-cover__inner-container,
.wp-block-cover.ty-b-cta .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100% !important; max-width: var(--wrap); margin: 0 auto !important; padding: 0 32px; box-sizing: border-box; color: #fff; }
.ty-b-hero .ty-eyebrow { color: rgba(255, 255, 255, .85); }
.ty-b-hero .ty-hero-title { color: #fff; }
.ty-b-hero .ty-hero-sub { margin: clamp(26px, 3.2vw, 48px) 0 40px; }
.ty-b-pin::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-cover.ty-b-cta { min-height: 70vh !important; color: #fff; }
.ty-b-cta .ty-h2 { margin: 0 0 36px; font-size: clamp(54px, 9vw, 130px); color: #fff; }
.ty-b-btn-light .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; background: #fff; color: #1c1c1a; font: 600 15px/1 var(--sans); text-decoration: none; transition: background .2s; }
.ty-b-btn-light .wp-block-button__link:hover { background: #f0eee8; }

/* Колонки як сітки теми. */
.wp-block-columns.ty-about-grid,
.wp-block-columns.ty-loc,
.wp-block-columns.ty-faq-grid,
.wp-block-columns.ty-reviews { display: grid; margin: 0; }
.wp-block-columns.ty-about-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.wp-block-columns.ty-loc { grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.wp-block-columns.ty-faq-grid { grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.wp-block-columns.ty-reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wp-block-columns.ty-about-grid > .wp-block-column,
.wp-block-columns.ty-loc > .wp-block-column,
.wp-block-columns.ty-faq-grid > .wp-block-column,
.wp-block-columns.ty-reviews > .wp-block-column { min-width: 0; margin: 0; flex: none; }

/* «Über die Villa». */
.ty-about-media .wp-block-image { margin: 0; }
.ty-about-media > .wp-block-group__inner-container { position: static; }
.ty-b-about .ty-facts, .ty-blk-facts .ty-facts { margin-top: 40px; }

/* Галерея — мозаїка, як у класичній головній. */
.wp-block-gallery.ty-b-gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 14px !important; margin: 0; }
.wp-block-gallery.ty-b-gallery > .wp-block-image { position: relative; width: auto !important; height: 100%; margin: 0 !important; overflow: hidden; border-radius: var(--r-sm); background: var(--bg2); }
.wp-block-gallery.ty-b-gallery > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.wp-block-gallery.ty-b-gallery > .wp-block-image:hover img { transform: scale(1.05); }
.wp-block-gallery.ty-b-gallery > .wp-block-image figcaption { position: absolute; left: 14px; right: auto; bottom: 12px; width: auto; max-width: calc(100% - 28px); margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(20, 20, 18, .55); color: #fff; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.wp-block-gallery.ty-b-gallery > .wp-block-image:hover figcaption { opacity: 1; transform: none; }

/* Відгуки. */
.wp-block-quote.ty-review { height: 100%; margin: 0; padding: 32px; border: 0; border-radius: var(--r); background: var(--card); display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.wp-block-quote.ty-review::before { content: "★★★★★"; color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.wp-block-quote.ty-review p { flex: 1; margin: 0; font: 400 23px/1.35 var(--serif); }
.wp-block-quote.ty-review cite { font-size: 14px; font-weight: 600; font-style: normal; color: var(--muted); }

/* FAQ і правила. */
.ty-faq .wp-block-details { margin: 0; }
.ty-faq .wp-block-details summary::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; transition: transform .25s;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.ty-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-list.ty-rules { margin: 0; padding: 0; list-style: none; }
.wp-block-list.ty-rules li { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.wp-block-list.ty-rules li::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 12.5 9 17.5 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 12.5 9 17.5 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Блоки теми в потоці сторінки. */
.ty-blk-booking { margin-top: 8px; }
.ty-blk-map .ty-addr { margin-top: 24px; }

@media (max-width: 900px) {
	.wp-block-columns.ty-about-grid, .wp-block-columns.ty-loc, .wp-block-columns.ty-faq-grid { grid-template-columns: 1fr; }
	.wp-block-columns.ty-reviews { grid-template-columns: 1fr; }
	.wp-block-gallery.ty-b-gallery { grid-template-columns: repeat(2, 1fr); }
	.ty-g-w4 { grid-column: span 2; }
}
@media (max-width: 600px) {
	.ty-b-sec > .wp-block-group__inner-container, .ty-b-hero .wp-block-cover__inner-container, .ty-b-cta .wp-block-cover__inner-container { padding-left: 20px; padding-right: 20px; }
}

/* ===================== Профіль гостя: фото, соцмережі, повнота ===================== */
.ty-rec { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font: 600 11px/1.6 var(--sans); font-style: normal; letter-spacing: .02em; vertical-align: 2px; }
.ty-progress { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.ty-progress-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 10px; font-size: 14px; }
.ty-progress-bar { height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.ty-progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.ty-ava-row { display: flex; gap: 22px; align-items: center; }
.ty-ava { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--bg2); color: var(--accent); }
.ty-ava-lg { width: 112px; height: 112px; font: 500 36px/1 var(--serif); }
.ty-ava img, .ty-ava .ty-ava-img { width: 100%; height: 100%; object-fit: cover; }
.ty-ava-ctl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ty-field-label { font-size: 13px; color: var(--muted); }
.ty-ava-pick { position: relative; cursor: pointer; padding: 10px 18px; font-size: 14px; }
.ty-ava-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ty-notice.is-info { border: 1px solid var(--line); background: var(--card); color: var(--ink2); }
.ty-profile-nudge a { margin-left: 6px; color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .ty-ava-row { flex-direction: column; align-items: flex-start; } }

/* Перегляд фото на весь екран (лайтбокс WordPress): фон і кнопки в кольорах теми, також у темній. */
.wp-lightbox-overlay .scrim { background-color: var(--bg) !important; }
.wp-lightbox-overlay button { fill: var(--ink) !important; color: var(--ink); }
