/* Dom w zaciszu, Silna 36GU */

:root {
  --tynk: #f4f4f1;
  --biel: #ffffff;
  --sosna: #1e2b25;
  --sosna-2: #2a3a32;
  --mech: #4c5b4e;
  --trawertyn: #dccbb2;
  --trawertyn-jasny: #ebe1d2;
  --dab: #8a5c33;
  --linia: #d9d8d2;
  --na-ciemnym: #e7e5de;
  --na-ciemnym-2: #b9c0b6;

  --f-sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: 20px;
  --section: clamp(72px, 10vw, 136px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--tynk);
  color: var(--sosna);
  font-family: var(--f-serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--f-sans);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sosna); color: #fff; padding: 10px 16px; font-family: var(--f-sans); text-decoration: none; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--dab); outline-offset: 3px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--sosna); color: #fff;
  font-family: var(--f-sans); font-size: 1rem; font-weight: 500; letter-spacing: 0;
  text-decoration: none; border: 1px solid var(--sosna); border-radius: 999px;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--sosna-2); border-color: var(--sosna-2); }
.btn-ghost { background: transparent; color: var(--sosna); border-color: rgba(30, 43, 37, .35); }
.btn-ghost:hover { background: var(--biel); border-color: var(--sosna); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.text-link {
  display: inline-block; padding: 10px 0;
  font-family: var(--f-sans); font-weight: 500; font-size: 1rem;
  color: var(--dab); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--sosna); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 241, .94);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--linia); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; color: var(--sosna); flex: none; }
.brand-name { font-family: var(--f-sans); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-place { font-family: var(--f-sans); font-size: .875rem; color: var(--mech); padding-left: 10px; border-left: 1px solid var(--linia); }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--f-sans); font-size: .98rem; text-decoration: none; color: var(--sosna);
}
.main-nav ul a:hover { color: var(--dab); }
.main-nav .nav-phone { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .brand-place { display: none; }
}
@media (max-width: 920px) {
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--sosna);
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    background: var(--tynk);
    padding: 16px var(--gutter) 40px;
    display: none; flex-direction: column; gap: 24px;
    overflow-y: auto;
  }
  .js .main-nav[data-open="true"] { display: flex; }
  html:not(.js) .main-nav { position: static; display: block; height: auto; padding: 0; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    width: 100%; min-height: 60px; padding: 0;
    font-size: 1.5rem; letter-spacing: -0.01em;
    border-bottom: 1px solid var(--linia);
  }
  .main-nav .nav-phone {
    display: inline-flex; align-items: center; min-height: 52px; align-self: flex-start; padding: 0;
    font-family: var(--f-sans); font-size: 1.125rem; color: var(--dab);
  }
  .site-header:has(.main-nav[data-open="true"]) { background: var(--tynk); }
}

/* Hero */
.hero { padding: 28px 0 var(--section); }
.hero-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.hero-place { font-family: var(--f-sans); font-size: .95rem; color: var(--mech); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 7.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: 1.1875rem; color: #2f3c35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-media { margin: 0; }
.gable {
  position: relative;
  aspect-ratio: 9 / 10;
  background: #c9ccc8;
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
  overflow: hidden;
}
.gable img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--linia);
}
.facts div { padding: 16px 0 4px; border-bottom: 1px solid var(--linia); }
.facts div:nth-child(odd) { padding-right: 12px; }
.facts dt { font-family: var(--f-sans); font-size: .875rem; color: var(--mech); }
.facts dd { font-family: var(--f-sans); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; padding-bottom: 12px; }

@media (max-width: 899px) {
  .hero-text { order: 1; }
  .hero-media { order: 2; margin-inline: calc(var(--gutter) * -1); }
  .facts { order: 3; }
}
@media (min-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-in {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    column-gap: 32px; row-gap: 40px;
    align-items: end;
  }
  .hero-text { grid-column: 1 / span 6; grid-row: 1; align-self: center; padding-bottom: 40px; }
  .hero-media { grid-column: 7 / -1; grid-row: 1 / span 2; }
  .gable { aspect-ratio: 5 / 6; max-height: calc(100vh - var(--header-h) - 64px); min-height: 560px; width: 100%; }
  .facts { grid-column: 1 / span 6; grid-row: 2; grid-template-columns: repeat(4, 1fr); }
  .facts div:nth-child(odd) { padding-right: 0; }
}

/* Hero entrance: one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .js .gable img { animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .gable { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { clip-path: polygon(50% 24%, 100% 24%, 100% 100%, 0 100%, 0 24%); } to { clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* About */
.about { padding-bottom: var(--section); }
.about-in { display: grid; gap: 28px; }
.about h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); max-width: 20ch; }
.about-text p { margin-top: 20px; max-width: 34em; }
.about figure { margin: 0; background: var(--trawertyn-jasny); }
.about-wide { aspect-ratio: 4 / 3; }
.about-tall { aspect-ratio: 4 / 5; }
.about figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) {
  .about .about-wide { margin-inline: calc(var(--gutter) * -1); }
  .about .about-tall { width: 72%; margin: -72px 0 0 auto; position: relative; border: 6px solid var(--tynk); }
}
@media (min-width: 720px) {
  .about-in { grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 56px; }
  .about-text { grid-column: 1 / span 7; }
  .about-wide { grid-column: 1 / span 8; }
  .about-tall { grid-column: 9 / -1; align-self: end; }
}
@media (min-width: 1100px) {
  .about-text { grid-column: 1 / span 6; grid-row: 1; align-self: start; }
  .about-tall { grid-column: 8 / -1; grid-row: 1 / span 2; align-self: start; margin-top: 96px; }
  .about-wide { grid-column: 1 / span 7; grid-row: 2; }
}

/* Interiors */
.interiors { padding: var(--section) 0; background: var(--biel); }
.interiors-head { display: grid; gap: 20px; margin-bottom: 40px; }
.interiors h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.interiors-head p { max-width: 36em; }
@media (min-width: 900px) {
  .interiors-head { grid-template-columns: 5fr 7fr; column-gap: 32px; align-items: start; margin-bottom: 56px; }
}

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.g-item {
  position: relative; display: block; overflow: hidden;
  background: var(--trawertyn-jasny); text-decoration: none; color: var(--sosna);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img { transform: scale(1.025); }
.g-cap {
  display: block; padding: 10px 0 0;
  font-family: var(--f-sans); font-size: .9375rem; line-height: 1.35; color: var(--mech);
  background: var(--biel);
}
.g-item { display: flex; flex-direction: column; background: var(--biel); }
.g-item img { aspect-ratio: 4 / 5; height: auto; background: var(--trawertyn-jasny); }
.g-salon, .g-kuchnia, .g-blat { grid-column: 1 / -1; }
.g-kuchnia img { aspect-ratio: 2000 / 866; }
@media (max-width: 899px) {
  .g-blat img { aspect-ratio: 1 / 1; object-position: 50% 45%; }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
  .g-salon { grid-column: 1 / span 4; grid-row: 1; }
  .g-pokoj { grid-column: 5 / span 4; grid-row: 1; }
  .g-wanna { grid-column: 9 / span 4; grid-row: 1; }
  .g-kuchnia { grid-column: 1 / span 8; grid-row: 2; }
  .g-kuchnia img { aspect-ratio: 1.65; object-position: 30% 50%; }
  .g-blat { grid-column: 9 / span 4; grid-row: 2; }
}

.equip { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--linia); display: grid; gap: 16px; }
.equip h3 { font-size: 1.375rem; }
.equip ul { display: grid; gap: 0; }
.equip li { padding: 12px 0; border-bottom: 1px solid var(--linia); font-size: 1.0625rem; }
@media (min-width: 900px) {
  .equip { grid-template-columns: 5fr 7fr; column-gap: 32px; margin-top: 0; }
  .gallery + .equip { margin-top: 72px; }
  .equip ul { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* Garden (dark) */
.garden { background: var(--sosna); color: var(--na-ciemnym); padding: var(--section) 0; }
.garden-in { display: grid; gap: 32px; }
.garden figure { margin: 0; background: var(--sosna-2); }
.garden figure img { width: 100%; height: 100%; object-fit: cover; }
.garden-sauna { aspect-ratio: 4 / 3; }
.garden-terrace { aspect-ratio: 4 / 3; }
.garden h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); color: #fff; max-width: 14ch; }
.garden-text p { margin-top: 20px; max-width: 32em; }
.garden-list { margin-top: 28px; border-top: 1px solid rgba(231, 229, 222, .2); }
.garden-list li { padding: 12px 0; border-bottom: 1px solid rgba(231, 229, 222, .2); font-size: 1.0625rem; color: var(--na-ciemnym); }
@media (max-width: 719px) {
  .garden .garden-sauna, .garden .garden-terrace { margin-inline: calc(var(--gutter) * -1); }
}
@media (min-width: 900px) {
  .garden-in { grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 56px; }
  .garden-sauna { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: auto; min-height: 100%; }
  .garden-text { grid-column: 8 / -1; grid-row: 1 / span 2; padding-top: 8px; }
  .garden-terrace { grid-column: 3 / span 5; grid-row: 2; }
}

/* Materials */
.materials { background: var(--trawertyn); padding: var(--section) 0; }
.materials-head { display: grid; gap: 20px; margin-bottom: 40px; }
.materials h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.materials-head p { max-width: 34em; color: #2c362f; }
.materials-list { display: grid; gap: 0; border-top: 1px solid rgba(30, 43, 37, .22); }
.materials-list li {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid rgba(30, 43, 37, .22);
}
.materials-list img { width: 96px; height: 96px; object-fit: cover; background: var(--trawertyn-jasny); }
.materials-list h3 { font-size: 1.375rem; margin-bottom: 6px; }
.materials-list p { font-size: 1.0625rem; color: #2c362f; max-width: 36em; }
.materials-list .onyx { background: var(--trawertyn-jasny); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-bottom: 0; }
.materials-list .onyx .text-link { margin-top: 6px; }
@media (max-width: 899px) {
  .materials { padding-bottom: 0; }
  .materials-list .onyx { grid-template-columns: 1fr; padding-top: 0; padding-bottom: 36px; margin-top: 0; }
  .materials-list .onyx img { width: calc(100% + var(--gutter) * 2); max-width: none; height: auto; aspect-ratio: 1179 / 600; margin-inline: calc(var(--gutter) * -1); }
}
@media (min-width: 900px) {
  .materials-head { grid-template-columns: 5fr 7fr; column-gap: 32px; margin-bottom: 56px; }
  .materials-list { grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 0; }
  .materials-list li { grid-template-columns: 1fr; gap: 18px; padding: 0 0 28px; border-bottom: 0; align-content: start; }
  .materials-list img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .materials-list .onyx {
    grid-column: 1 / -1; margin: 40px 0 0; padding: 0;
    grid-template-columns: 7fr 5fr; column-gap: 40px; align-items: center;
    background: var(--trawertyn-jasny);
  }
  .materials-list .onyx img { aspect-ratio: 1179 / 600; height: 100%; }
  .materials-list .onyx > div { padding: 32px 40px 32px 0; }
}

/* Area */
.area { padding: var(--section) 0; }
.area-in { display: grid; gap: 40px; }
.area h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.area-text > p { margin-top: 20px; max-width: 34em; }
.distances { margin-top: 32px; border-top: 1px solid var(--linia); }
.distances div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--linia);
}
.distances dt { font-family: var(--f-sans); font-size: 1.0625rem; font-weight: 500; }
.distances dt span { display: block; font-weight: 400; font-size: .9375rem; color: var(--mech); margin-top: 2px; }
.distances dd { font-family: var(--f-sans); font-size: 1.0625rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.map-frame { position: relative; aspect-ratio: 4 / 5; background: var(--trawertyn-jasny); overflow: hidden; }
.map-canvas { position: absolute; inset: 0; background: #e6e4dd; }
.map-canvas .leaflet-tile-pane { filter: saturate(.45) sepia(.15) contrast(.95); }
.map-pin { color: var(--sosna); }
.map-pin svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.leaflet-container { font-family: var(--f-sans); }
.leaflet-control-attribution { font-size: 11px; }
.map-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-family: var(--f-sans); color: var(--mech); }
.map-address { margin-top: 14px; font-family: var(--f-sans); font-size: 1rem; }
@media (max-width: 719px) {
  .map-frame { aspect-ratio: 1 / 1; margin-inline: calc(var(--gutter) * -1); }
}
@media (min-width: 900px) {
  .area-in { grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .area-text { grid-column: 1 / span 6; }
  .area-map { grid-column: 8 / -1; padding-top: 8px; }
}

/* Guests */
.guests { padding: 0 0 var(--section); }
.guests-in { background: linear-gradient(var(--linia), var(--linia)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat; padding-top: clamp(48px, 7vw, 88px); }
.guests blockquote { margin: 0; max-width: 30em; }
.guests blockquote p {
  font-family: var(--f-serif); font-size: clamp(1.5rem, 3.6vw, 2.35rem); line-height: 1.3; font-weight: 400; letter-spacing: -0.01em;
  text-wrap: pretty;
}
.guests blockquote p::before { content: "„"; }
.guests blockquote p::after { content: "”"; }
.guests blockquote footer { margin-top: 18px; font-family: var(--f-sans); font-size: 1rem; color: var(--mech); }
.rating { margin-top: 8px; font-family: var(--f-sans); font-size: 1rem; color: var(--mech); }
@media (min-width: 900px) {
  .guests blockquote { margin-left: calc(100% / 12 * 2); }
  .rating { margin-left: calc(100% / 12 * 2); }
}

/* Booking */
.booking { background: var(--biel); padding: var(--section) 0; }
.booking-in { display: grid; gap: 48px; }
.booking h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.booking-info > p { margin-top: 20px; max-width: 32em; }
.rules { margin-top: 32px; border-top: 1px solid var(--linia); }
.rules div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--linia); }
.rules dt { font-family: var(--f-sans); font-size: .9375rem; color: var(--mech); }
.rules dd { font-size: 1.0625rem; }
@media (min-width: 560px) { .rules div { grid-template-columns: 11rem 1fr; gap: 16px; } }
.contact { margin-top: 28px; display: grid; gap: 2px; }
.contact a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-sans); font-size: 1.0625rem; color: var(--dab);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contact li:first-child a { font-size: 1.5rem; color: var(--sosna); text-decoration: none; font-weight: 500; }

.inquiry {
  background: var(--tynk); padding: 28px 20px; display: grid; gap: 16px; align-self: start;
  margin-inline: calc(var(--gutter) * -1);
}
.inquiry h3 { font-size: 1.5rem; margin-bottom: 4px; }
.inquiry label { display: grid; gap: 6px; font-family: var(--f-sans); font-size: .9375rem; color: var(--sosna); }
.inquiry .opt { color: var(--mech); }
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--f-sans); color: var(--sosna);
  background: var(--biel); border: 1px solid #c9c8c1; border-radius: 6px;
  -webkit-appearance: none; appearance: none;
}
.inquiry select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e2b25' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; padding-right: 40px;
}
.inquiry textarea { min-height: 96px; resize: vertical; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 2px solid var(--dab); outline-offset: 0; border-color: var(--dab); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-2 label { min-width: 0; }
.form-status { font-family: var(--f-sans); font-size: .95rem; color: var(--dab); min-height: 1.4em; }
@media (min-width: 720px) {
  .inquiry { margin-inline: 0; padding: 36px; }
}
@media (min-width: 900px) {
  .booking-in { grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .booking-info { grid-column: 1 / span 6; }
  .inquiry { grid-column: 8 / -1; }
}

/* Footer */
.site-footer { background: var(--sosna); color: var(--na-ciemnym-2); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-family: var(--f-sans); font-size: 1rem; }
.footer-in { display: grid; gap: 24px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-mark { color: var(--trawertyn); width: 32px; height: 32px; }
.footer-brand strong { color: #fff; font-weight: 600; font-size: 1.125rem; }
.site-footer a { color: var(--na-ciemnym); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.credit { display: flex; align-items: center; flex-wrap: wrap; font-size: .875rem; color: var(--na-ciemnym-2); padding-top: 20px; border-top: 1px solid rgba(231, 229, 222, .15); }
.credit a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 720px) {
  .footer-in { grid-template-columns: 1fr 1fr; }
  .credit { grid-column: 1 / -1; }
}

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 244, 241, .96); border-top: 1px solid var(--linia);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    font-family: var(--f-sans); font-size: 1rem; font-weight: 500; text-decoration: none;
    border-radius: 999px; border: 1px solid rgba(30, 43, 37, .35); color: var(--sosna);
  }
  .mobile-bar .mb-primary { background: var(--sosna); border-color: var(--sosna); color: #fff; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(18, 26, 22, .96); color: var(--na-ciemnym);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(18, 26, 22, .8); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lb-cap { margin-top: 14px; padding: 0 20px; font-family: var(--f-sans); font-size: 1rem; text-align: center; }
.lb-close {
  position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 0 18px;
  font-family: var(--f-sans); font-size: 1rem; color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; cursor: pointer;
}

/* Missing image: keep the tinted frame */
img.is-missing { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
