/* =========================
   PODSTAWY I ZMIENNE
========================= */
:root {
  --cream: #f2eadf;
  --paper: #fffaf2;
  --ink: #253129;
  --muted: #5e6b62;
  --green: #365541;
  --green-deep: #172e24;
  --copper: #b57748;
  --line: #d6cbbb;
  --shadow: 0 20px 60px rgba(28, 47, 37, .14);
  --radius: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #f7f1e8 0%, var(--cream) 38%, #eee3d4 100%); font: 400 1rem/1.7 var(--sans); overflow-x: hidden; }
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #d1915f; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .8rem 1rem; background: var(--paper); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.section { padding: 5.5rem 1.25rem; }
.section-inner { width: min(1180px, 100%); margin-inline: auto; }
.section-kicker { margin: 0 0 .8rem; color: var(--copper); font-size: .76rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { line-height: 1.25; }
.tone { background: linear-gradient(135deg, #e8dfd2, #f3ede4); }
.dark { color: #f8f3e9; background: var(--green-deep); }
.split { display: grid; gap: 2rem; align-items: center; }
.image-frame { position: relative; }
.image-frame::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 1px solid var(--copper); border-radius: var(--radius); z-index: 0; }
.image-frame img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.section-copy p { color: var(--muted); }
.text-link { display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; color: var(--green); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--copper); }
.button { display: inline-flex; min-height: 46px; padding: .7rem 1.25rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: white; background: var(--green); }
.button-light { color: var(--green-deep); background: var(--paper); }
.button-outline { color: white; border-color: rgba(255,255,255,.65); }
.button-outline-dark { color: var(--green); border-color: var(--green); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================
   NAWIGACJA
========================= */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(247,241,232,.93); backdrop-filter: blur(14px); transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(33,55,43,.08); }
.nav-wrap { width: min(1240px, 100%); min-height: 76px; margin: auto; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.brand { border-radius: 10px; transition: opacity .2s, transform .2s; }
.brand:hover { opacity: .82; transform: translateY(-1px); }
.brand img { width: 190px; height: auto; }
.menu-toggle { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: #e6dfd2; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.main-nav { display: none; position: fixed; inset: 76px 0 auto; max-height: calc(100vh - 76px); padding: 1rem 1.25rem 1.5rem; overflow-y: auto; background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.main-nav.is-open { display: grid; }
.main-nav > a { display: flex; min-height: 48px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--line); }
.language { position: relative; margin-top: .6rem; }
.language-toggle { width: 100%; min-height: 46px; padding: .6rem .8rem; display: flex; gap: .55rem; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; }
.language-chevron { width: 8px; height: 8px; margin: -4px 2px 0 3px; border-right: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper); transform: rotate(45deg); transition: margin .2s ease, transform .2s ease; }
.language-toggle[aria-expanded="true"] .language-chevron { margin-top: 4px; transform: rotate(225deg); }
.language-toggle img, .language-grid img { width: 24px; height: 16px; object-fit: cover; }
.language-panel { margin-top: .6rem; max-height: 55vh; padding: 1rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.language-panel > p { margin-bottom: .7rem; font-weight: 700; }
.language-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
.language-grid a { min-height: 44px; padding: .45rem; display: flex; gap: .55rem; align-items: center; border-radius: 8px; font-size: .8rem; text-decoration: none; }
.language-grid a:hover, .language-grid a[aria-current] { background: #efe9dd; }
.language-grid b { display: block; font-size: .7rem; color: var(--copper); }

/* =========================
   HERO / SLIDER
========================= */
.hero { padding: 1rem; }
.hero-slider { position: relative; width: min(1240px, 100%); margin: auto; aspect-ratio: 16 / 9; max-height: 670px; min-height: 480px; overflow: hidden; border-radius: 0 0 28px 28px; color: white; background: var(--green-deep); box-shadow: var(--shadow); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .75s ease; }
.slide.is-active { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,29,22,.78) 0%, rgba(17,29,22,.42) 52%, rgba(17,29,22,.08) 100%); }
.hero-copy { position: absolute; z-index: 2; left: clamp(1.5rem, 7vw, 6.5rem); top: 50%; width: min(620px, calc(100% - 3rem)); transform: translateY(-50%); }
.hero-copy .eyebrow { margin-bottom: .6rem; color: #e6b88f; font-size: .74rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.hero-copy h1 { margin-bottom: .65rem; font-size: clamp(2.7rem, 8vw, 5.4rem); }
.hero-tagline { max-width: 500px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.slider-arrow { position: absolute; z-index: 3; top: 50%; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: white; background: rgba(20,30,24,.25); cursor: pointer; }
.slider-prev { left: .8rem; }
.slider-next { right: .8rem; }
.slider-dots { position: absolute; z-index: 3; left: 50%; bottom: .45rem; display: flex; gap: .1rem; transform: translateX(-50%); }
.slider-dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.slider-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border: 1px solid white; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); transition: background .2s, transform .2s; }
.slider-dots button:hover::before { transform: translate(-50%, -50%) scale(1.2); }
.slider-dots button.is-active::before { background: white; }

/* =========================
   SEKCJE TREŚCIOWE
========================= */
.facts { padding-top: 4rem; }
.facts h2 { max-width: 720px; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.facts-grid > div { min-height: 128px; padding: 1.15rem; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.42); }
.facts-grid strong { color: var(--green); font: 400 clamp(1.5rem, 4vw, 2.25rem)/1.15 var(--serif); }
.facts-grid span { color: var(--muted); font-size: .8rem; }
.section-heading { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.section-heading > p { color: var(--muted); }
.room-layout { display: grid; gap: 1rem; }
.room-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--radius); }
.amenities { padding: 2rem; border-radius: var(--radius); color: white; background: var(--green); }
.amenities h3 { font: 400 2rem/1.2 var(--serif); }
.amenities p { color: #dce4de; }
.check-list { margin: 1.25rem 0; padding: 0; list-style: none; }
.check-list li { min-height: 44px; padding: .55rem 0 .55rem 1.8rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.16); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #d8aa7f; }
.amenities .button { color: var(--green-deep); background: white; }
.feature-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.feature-tags span { padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; }
.note { padding-left: 1rem; border-left: 2px solid var(--copper); font-size: .88rem; }
.dark .section-kicker { color: #dfae83; }
.dark .section-heading > p { color: #ced8d1; }
.cards { display: grid; gap: .8rem; }
.cards article { padding: 1.5rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.cards article > span { color: #dfae83; font: 400 1.4rem var(--serif); }
.cards h3 { margin: .9rem 0 .6rem; font: 400 1.5rem var(--serif); }
.cards p { margin-bottom: 0; color: #ced8d1; }
.places { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; list-style: none; }
.places li { min-height: 76px; padding: 1rem; display: flex; align-items: center; border-bottom: 1px solid var(--copper); font: 400 1.2rem var(--serif); }
.info-grid { display: grid; gap: .8rem; }
.info-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.info-grid h3 { color: var(--green); font: 400 1.45rem var(--serif); }
.info-grid p { margin: 0; color: var(--muted); }

/* =========================
   GALERIA I LIGHTBOX
========================= */
.gallery { display: grid; grid-auto-rows: 210px; gap: .65rem; }
.gallery-item { min-height: 44px; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #ddd; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.lightbox { position: fixed; z-index: 100; inset: 0; padding: 4rem 3.5rem; align-items: center; justify-content: center; color: white; background: rgba(12,18,14,.94); }
.lightbox:not([hidden]) { display: flex; }
.lightbox figure { width: min(1100px, 100%); max-height: 86vh; margin: 0; text-align: center; }
.lightbox figure img { max-width: 100%; max-height: 78vh; margin: auto; object-fit: contain; }
.lightbox figcaption { margin-top: .7rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; background: rgba(0,0,0,.2); cursor: pointer; }
.lightbox-close { right: 1rem; top: 1rem; font-size: 2rem; }
.lightbox-prev { left: .8rem; top: 50%; }
.lightbox-next { right: .8rem; top: 50%; }

/* =========================
   KONTAKT I STOPKA
========================= */
.contact { background: linear-gradient(135deg, #e6d8c6 0%, #f3eadf 52%, #dfd2c0 100%); }
.contact-grid { display: grid; gap: 1rem; }
.contact-intro { padding: 1.2rem 0; }
.contact-intro > p:not(.section-kicker) { max-width: 580px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.contact-card { margin: 0; padding: 1.7rem; border-radius: var(--radius); color: white; background: var(--green-deep); box-shadow: var(--shadow); font-style: normal; }
.contact-card h3 { margin-bottom: 1rem; color: white; font: 400 1.7rem var(--serif); }
.contact-details { font-style: normal; }
.contact-card p { color: #d8e0da; }
.contact-card dl { margin: 1.4rem 0; }
.contact-card dl div { padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-card dt { color: #b6c2ba; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card dd { margin: .2rem 0 0; }
.contact-card a { text-decoration-color: #b98155; text-underline-offset: 4px; }
.route-link { display: inline-flex; min-height: 44px; align-items: center; gap: .5rem; font-weight: 700; }
.site-footer { position: relative; padding: 4.5rem 1.25rem 1.5rem; overflow: hidden; color: #d9e1dc; background: linear-gradient(135deg, #10231a 0%, #1c382b 55%, #13271e 100%); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--copper), transparent); }
.footer-grid { position: relative; display: grid; gap: 2.4rem; }
.footer-grid p { margin-bottom: .8rem; color: #bfcac3; }
.footer-grid h2 { margin-bottom: .7rem; color: white; font: 600 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.footer-grid a { display: block; min-height: 34px; color: #d6ddd8; text-decoration: none; }
.footer-grid a:hover { color: white; text-decoration: underline; }
.footer-brand > a:first-child { display: inline-block; }
.footer-wordmark { display: inline-flex; flex-direction: column; color: #fff8ef; line-height: 1; }
.footer-wordmark small { margin-bottom: .25rem; color: #e5b88f; font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.footer-wordmark small i { padding-inline: .25rem; color: var(--copper); font-style: normal; }
.footer-wordmark strong { color: white; font: 400 2.35rem/1.05 var(--serif); letter-spacing: -.02em; }
.footer-brand > a:first-child:hover { text-decoration: none; }
.footer-brand > a:first-child:hover .footer-wordmark strong { color: #f1c7a5; }
.footer-brand p { max-width: 320px; margin-top: 1rem; }
.footer-grid .footer-social { display: inline-flex; min-height: 42px; padding: .45rem .9rem; align-items: center; gap: .45rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #f3ddc8; }
.footer-grid .footer-social:hover { border-color: var(--copper); text-decoration: none; }
.footer-note { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; line-height: 1.55; }
.footer-bottom { width: min(1180px, 100%); margin: 2.5rem auto 0; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #f0c49f; text-underline-offset: 3px; }

/* =========================
   PODSTRONA INFORMACYJNA
========================= */
.legal-page { min-height: 100vh; }
.legal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: rgba(255,250,242,.94); }
.legal-header .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-header img { width: 180px; height: auto; }
.legal-back { color: var(--green); font-weight: 700; text-decoration: none; }
.legal-main { padding: clamp(3.5rem, 8vw, 7rem) 1.25rem; }
.legal-card { width: min(820px, 100%); margin: auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.legal-card h1 { margin-bottom: .7rem; font-size: clamp(2.3rem, 7vw, 4.5rem); }
.legal-card h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.legal-meta { color: var(--copper) !important; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* =========================
   RESPONSYWNOŚĆ
========================= */
@media (min-width: 720px) {
  .section { padding-block: 7rem; }
  .split { grid-template-columns: 1.05fr .95fr; gap: 5rem; }
  .split.reverse .image-frame { order: 2; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .section-heading { grid-template-columns: 1.15fr .85fr; align-items: end; }
  .room-layout { grid-template-columns: 1.35fr .65fr; }
  .cards, .info-grid { grid-template-columns: repeat(3, 1fr); }
  .places { grid-template-columns: repeat(5, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 2; }
  .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
  .footer-grid { grid-template-columns: 1.55fr 1fr .8fr 1.15fr; }
}

@media (min-width: 1060px) {
  .menu-toggle { display: none; }
  .main-nav { display: flex; position: static; max-height: none; padding: 0; align-items: center; gap: 1.25rem; overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .main-nav > a { min-height: 44px; border: 0; font-size: .88rem; position: relative; }
  .main-nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--copper); transition: right .2s; }
  .main-nav > a:hover::after { right: 0; }
  .language { margin: 0 0 0 .2rem; }
  .language-toggle { width: auto; min-width: 94px; }
  .language-panel { position: absolute; top: calc(100% + .8rem); right: 0; width: min(680px, 80vw); max-height: 480px; margin: 0; padding: 1.2rem; }
  .language-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 520px) {
  .hero { padding: 0; }
  .hero-slider { border-radius: 0 0 22px 22px; min-height: 530px; }
  .hero-shade { background: linear-gradient(0deg, rgba(17,29,22,.85), rgba(17,29,22,.15)); }
  .hero-copy { left: 1.25rem; top: auto; bottom: 4.8rem; transform: none; }
  .slider-arrow { top: 1rem; transform: none; }
  .slider-prev { left: auto; right: 4.3rem; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: .9rem; }
  .language-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; }
  .lightbox { padding: 4rem 1rem; }
}

@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 { opacity: 1; transform: none; }
}
