/* Mazurskie Posiadło — fluid, mobile-first */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(/fonts/worksans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(/fonts/worksans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --forest: #1e3a2f;
  --forest-2: #2c5242;
  --moss: #6f8a5b;
  --wood: #b4622f;
  --wood-2: #9a4f22;
  --cream: #f7f2e9;
  --sand: #ece3d3;
  --ink: #1d2320;
  --muted: #5b625d;
  --white: #fff;
  --radius: clamp(10px, 1.2vw, 18px);
  --gutter: clamp(16px, 4.5vw, 56px);
  --section: clamp(64px, 11vw, 140px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 50px -24px rgb(20 35 28 / .45);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 clamp(1rem, .95rem + .25vw, 1.125rem)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.35rem, 1.3rem + 5vw, 5.4rem); font-weight: 350; }
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p { margin: 0 0 1.1em; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }

.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.2em; color: rgb(255 255 255 / .85); }
.eyebrow.dark { color: var(--wood); }
.small { font-size: .9rem; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--wood); color: var(--white); }
.btn-accent:hover { background: var(--wood-2); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--sand); }
.btn-ghost { border-color: rgb(255 255 255 / .7); color: var(--white); backdrop-filter: blur(6px); background: rgb(255 255 255 / .08); }
.btn-ghost:hover { background: rgb(255 255 255 / .2); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white); transition: background .35s, color .35s, box-shadow .35s;
}
.site-header.scrolled, .site-header.menu-open { background: rgb(247 242 233 / .94); color: var(--forest); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgb(30 58 47 / .1); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.2rem/1 var(--serif); white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: .95rem; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: currentColor; transition: right .3s; }
.nav a:hover::after { right: 0; }
.nav-tel { display: none; }
.site-header.scrolled .header-cta { background: var(--forest); color: var(--white); }
.burger { display: none; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: var(--white); isolation: isolate; }
.hero-img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-img { object-fit: cover; animation: heroZoom 18s ease-out both; }
.hero-shade { background: linear-gradient(180deg, rgb(12 24 19 / .55) 0%, rgb(12 24 19 / .15) 35%, rgb(12 24 19 / .35) 65%, rgb(12 24 19 / .8) 100%); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { align-self: center; padding-top: calc(var(--header-h) + 4vh); padding-bottom: 5vh; max-width: 900px; margin-left: max(var(--gutter), (100% - 1240px) / 2); }
.hero h1 { text-wrap: balance; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 34em; opacity: .95; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.facts {
  list-style: none; padding: 0; margin-bottom: clamp(20px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgb(255 255 255 / .3); padding-top: clamp(16px, 2.5vw, 28px);
}
.facts li { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.facts strong { font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.1 var(--serif); }
.facts .paw { width: 1em; height: 1em; fill: currentColor; vertical-align: -.1em; }
.facts span { font-size: .85rem; opacity: .85; }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro-text p { color: #3a403c; }
.signature { font: italic 400 1.35rem/1.4 var(--serif); color: var(--forest) !important; margin-top: 1.4em; }
.intro-photos { position: relative; padding-bottom: 18%; }
.intro-photos img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.ph-a { width: 88%; aspect-ratio: 4/3.4; }
.ph-b { position: absolute; width: 42%; aspect-ratio: 3/4; right: 0; bottom: 0; border: 6px solid var(--cream); }

/* domki */
.domki { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p:not(.eyebrow) { color: var(--muted); }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.amenities li { background: var(--cream); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 30px); transition: transform .3s, box-shadow .3s; }
.amenities li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amenities svg { width: 36px; height: 36px; fill: none; stroke: var(--wood); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.amenities h3 { font-size: 1.2rem; margin-bottom: .35em; }
.amenities p { font-size: .95rem; color: var(--muted); margin: 0; }
.interior { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.interior figure { margin: 0; }
.interior img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.interior figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* rhythm */
.rhythm { background: var(--forest); color: var(--white); }
.rhythm .section-head { max-width: 760px; }
.rhythm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.rhythm article img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 22px; }
.rhythm article h3 { font-style: italic; color: #e8c9a6; }
.rhythm article p { opacity: .85; font-weight: 300; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 240px); grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 16px); }
.gallery-grid a { border-radius: var(--radius); overflow: hidden; display: block; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-tall { grid-row: span 2; }

/* okolica */
.okolica { position: relative; min-height: clamp(520px, 80vh, 820px); display: flex; align-items: flex-end; color: var(--white); isolation: isolate; }
.okolica-img, .okolica-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.okolica-img { object-fit: cover; }
.okolica-shade { background: linear-gradient(90deg, rgb(12 24 19 / .82) 0%, rgb(12 24 19 / .35) 60%, rgb(12 24 19 / .1) 100%); }
.okolica-content { padding-block: var(--section); }
.okolica-content > * { max-width: 560px; }
.okolica-content p:not(.eyebrow) { font-weight: 300; font-size: 1.1em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgb(30 58 47 / .12); }
.contact-list span { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list a, .contact-list address { font-style: normal; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--wood); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stay-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2rem 0 .8rem; }
.stay-info div { background: var(--white); border-radius: var(--radius); padding: 14px 16px; }
.stay-info dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stay-info dd { margin: 2px 0 0; font: 400 1.35rem/1.2 var(--serif); color: var(--forest); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--sand); box-shadow: var(--shadow); }
.map img, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.map-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px; background: rgb(12 24 19 / .55); color: var(--white); }
.map-overlay p { font-size: .9rem; opacity: .9; }

/* footer */
.site-footer { background: #15291f; color: rgb(255 255 255 / .8); padding-top: clamp(48px, 7vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.site-footer h3 { font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #e8c9a6; margin-bottom: 1.2em; }
.site-footer p { font-size: .95rem; line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 30px; padding-block: 22px; font-size: .85rem; opacity: .7; }

.mobile-cta { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(8 14 11 / .94); display: grid; place-items: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 6px; object-fit: contain; user-select: none; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .1); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .22); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgb(255 255 255 / .8); font-size: .9rem; margin: 0; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* legal page */
.legal-hero { background: var(--forest); color: var(--white); padding: calc(var(--header-h) + 60px) 0 60px; }
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin-top: 2em; }
.legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .7em; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- mobile menu ---------- */
@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .burger { display: inline-grid; place-content: center; gap: 6px; margin-left: auto; width: 46px; height: 46px; background: none; border: 0; color: inherit; cursor: pointer; }
  .burger span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
  .menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--cream); color: var(--forest);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--gutter) 40px; margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
    overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { font: 400 1.9rem/1.2 var(--serif); padding: 14px 0; width: 100%; border-bottom: 1px solid rgb(30 58 47 / .1); }
  .nav a::after { display: none; }
  .nav-tel { display: block; font-family: var(--sans) !important; font-size: 1.1rem !important; color: var(--wood); border: 0 !important; margin-top: 12px; }
  body.no-scroll { overflow: hidden; }

  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .map { min-height: 340px; }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .hero-content { padding-top: calc(var(--header-h) + 24px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; }
  .gallery-grid .g-wide { grid-column: span 2; grid-row: span 1; }
  .gallery-grid .g-tall:last-child { grid-row: span 1; }
  .contact-actions .btn { flex: 1 1 100%; }
  .amenities { grid-template-columns: 1fr 1fr; gap: 10px; }
  .amenities li { padding: 16px 14px; }
  .amenities svg { width: 30px; height: 30px; margin-bottom: 10px; }
  .amenities h3 { font-size: 1.05rem; }
  .amenities p { font-size: .85rem; line-height: 1.5; }
  .interior {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .interior::-webkit-scrollbar { display: none; }
  .interior figure { flex: 0 0 82%; scroll-snap-align: start; }
  .js .interior .reveal { opacity: 1; transform: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .stay-info dd { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .okolica-shade { background: linear-gradient(0deg, rgb(12 24 19 / .88) 0%, rgb(12 24 19 / .4) 70%, rgb(12 24 19 / .15) 100%); }

  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(247 242 233 / .96); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgb(30 58 47 / .12);
    transform: translateY(110%); transition: transform .35s;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta a { min-height: 48px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 500; border: 1.5px solid var(--forest); color: var(--forest); }
  .mobile-cta a.primary { background: var(--wood); border-color: var(--wood); color: var(--white); }
  .site-footer { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
