/* =========================================================
   Agroturystyka Na Zamłyniu — style strony
   Realizacja: Westiga (westiga.com)
   ========================================================= */

@font-face {
  font-family: "Felipa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/felipa-latin-ext-400-normal.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: "Felipa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/felipa-latin-400-normal.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 {
  --green: #004c4e;
  --green-line: #3d8580;
  --brown: #6a5618;
  --brown-dark: #4f3a1c;
  --brown-bar: #795e38;
  --cream: #fde7b1;
  --cream-light: #ffedc2;
  --panel: rgba(255, 237, 194, 0.78);
  --sky: #fadd97;
  --script: "Felipa", "Brush Script MT", cursive;
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(79, 58, 28, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown);
  background: var(--sky) url("../img/ui/tlo.webp") center bottom / max(1280px, 100%) auto no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--brown); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: .6em 1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Układ ---------- */
.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 0 70px;
}

/* ---------- Nagłówek ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 182px;
  padding: 18px 0 0 36px;
  background: var(--cream);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 6px solid var(--brown-bar);
}
/* kartka papieru za nagłówkiem */
.site-header::before {
  content: "";
  position: absolute;
  left: 4%; right: 4%;
  top: -30px; height: 40px;
  background: #fff2cf;
  border-radius: 10px 10px 0 0;
  z-index: -1;
}

.logo { align-self: center; flex: 0 1 340px; }
.logo img { width: 100%; max-width: 340px; }

.header-sketch {
  flex: 0 1 470px;
  align-self: flex-end;
  margin-bottom: -2px;
  opacity: .95;
}

.bookmarks {
  position: absolute;
  top: -24px; right: 72px;
  display: flex; gap: 34px;
  margin: 0; padding: 0; list-style: none;
}
.bookmarks a {
  display: block;
  transition: transform .2s ease;
}
.bookmarks a:hover { transform: translateY(4px); }
.bookmarks img { width: 82px; }
.bookmarks .bm-fb img { width: 82px; margin-top: -6px; }

/* ---------- Slider ---------- */
.slider {
  position: relative;
  overflow: hidden;
  background: #3d3a2a;
  border-bottom: 6px solid var(--brown-bar);
  aspect-ratio: 1000 / 440;
  touch-action: pan-y;
}
.slides { margin: 0; padding: 0; list-style: none; height: 100%; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .9s ease, visibility 0s;
}
.slide img { width: 100%; height: 100%; object-fit: cover; }

.ribbon {
  position: absolute;
  left: 0; bottom: 12%;
  margin: 0;
  padding: .35em 2.2em .4em 1em;
  min-width: 38%;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2.15rem);
  line-height: 1.5;
  color: var(--green);
  text-decoration: none;
  background: rgba(240, 225, 185, .9);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.4em) 50%, 100% 100%, 0 100%);
}
a.ribbon:hover { color: var(--brown); }

.slider-btn {
  position: absolute; top: 50%;
  translate: 0 -50%;
  width: 52px; height: 64px;
  display: grid; place-items: center;
  border: 0; padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
  opacity: .85;
  z-index: 2;
}
.slider-btn:hover { opacity: 1; }
.slider-btn svg { width: 28px; height: 44px; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
  position: absolute; right: 16px; bottom: 12px;
  display: flex; gap: 8px; z-index: 2;
  margin: 0; padding: 0; list-style: none;
}
.slider-dots button {
  width: 11px; height: 11px; padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,.4);
}
.slider-dots button[aria-current="true"] { background: #fff; }

/* ---------- Menu ---------- */
.main-nav {
  position: relative;
  margin-top: 12px;
  background: var(--cream-light);
  border-top: 4px double var(--green-line);
  border-bottom: 4px double var(--green-line);
  box-shadow: 0 12px 14px -10px rgba(79, 58, 28, .45);
  z-index: 5;
}
.nav-toggle { display: none; }
.nav-list {
  display: flex;
  justify-content: space-around;
  margin: 0; padding: 0;
  list-style: none;
}
.nav-list a {
  display: flex; align-items: center; gap: 6px;
  padding: .1em .6em .2em;
  font-family: var(--script);
  font-size: 2.15rem;
  line-height: 1.45;
  color: var(--green);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-list a::before {
  content: "";
  width: 30px; height: 25px;
  background: url("../img/ui/zdzblo.webp") center / contain no-repeat;
  flex: none;
  transform: translateY(-6px);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--brown); }

/* ---------- Treść ---------- */
.content {
  position: relative;
  padding: 30px 24px 0;
  background: linear-gradient(to bottom, rgba(253, 231, 177, .55), rgba(253, 231, 177, .35));
}
.panel {
  padding: 26px 34px 34px;
  background: var(--panel);
  border-radius: 6px;
}
.panel h1 {
  margin: 0 0 .3em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: var(--brown);
  text-align: right;
}
.panel h2 {
  margin: 1.6em 0 .6em;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
}
.panel h2:first-of-type { margin-top: .4em; }
.panel p { margin: 0 0 1em; }
.lead { text-align: justify; hyphens: auto; }
.signature { text-align: right; font-style: italic; margin-top: 2em !important; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 1.6em 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 14px 16px 14px 48px;
  background: rgba(255, 246, 222, .7) url("../img/ui/zdzblo.webp") 12px 14px / 26px auto no-repeat;
  border-left: 3px solid var(--green-line);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
}
.features strong { display: block; color: var(--green); font-weight: 400; font-size: 1.05rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .6em 1.2em;
  border-radius: 999px;
  background: var(--brown-bar);
  color: #fff8e6;
  text-decoration: none;
  font-size: 1rem;
  transition: background .2s ease;
}
.btn:hover { background: var(--brown-dark); color: #fff; }
.btn.btn-ghost { background: transparent; color: var(--green); border: 2px solid var(--green-line); }
.btn.btn-ghost:hover { background: var(--green); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Cennik ---------- */
.price-list { margin: 0 0 .8em; padding: 0; }
.price-list > div {
  display: flex;
  align-items: baseline;
  gap: .5em;
  padding: .2em 0;
}
.price-list dt { flex: 0 1 auto; }
.price-list > div::after {
  content: "";
  order: 1;
  flex: 1 1 2em;
  min-width: 1.5em;
  border-bottom: 2px dotted rgba(106, 86, 24, .5);
  transform: translateY(-.3em);
}
.price-list dd {
  order: 2;
  margin: 0;
  color: var(--green);
  white-space: nowrap;
  font-weight: 700;
}
.note { font-size: .95rem; opacity: .95; }

.account {
  margin: 1em 0;
  padding: 14px 18px;
  background: rgba(255, 246, 222, .75);
  border-left: 3px solid var(--green-line);
  border-radius: 4px;
}
.account .iban {
  display: block;
  font-size: 1.1rem;
  color: var(--green);
  letter-spacing: .03em;
  word-spacing: .15em;
}

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 1em 0 0; padding: 0;
  list-style: none;
}
.gallery a {
  display: block;
  padding: 4px;
  background: #fff6de;
  border: 1px solid rgba(106, 86, 24, .2);
  box-shadow: 0 2px 6px rgba(79, 58, 28, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery a:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 6px 14px rgba(79, 58, 28, .3); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(30, 24, 12, .94);
  color: #fff;
}
.lightbox::backdrop { background: rgba(30, 24, 12, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 56px 64px; touch-action: pan-y; }
.lightbox img { max-width: min(1400px, calc(100vw - 128px)); max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.lightbox figcaption { font-size: .95rem; color: #f3e3bd; text-align: center; }
.lb-btn {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}
.contact-card address { font-style: normal; }
.contact-card .name { color: var(--green); font-size: 1.2rem; margin-bottom: .2em; }
.contact-list { margin: 1em 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .6em; align-items: baseline; padding: .25em 0; }
.contact-list svg { width: 1.05em; height: 1.05em; flex: none; color: var(--green); transform: translateY(.15em); }
.contact-list a { overflow-wrap: anywhere; }
.phone-big { font-size: 1.35rem; }
.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 4px solid #fff6de;
  box-shadow: 0 2px 8px rgba(79, 58, 28, .25);
  background: #efe2bd;
}

/* ---------- Stopka ---------- */
.site-footer {
  position: relative;
  min-height: 120px;
  padding: 26px 24px 20px 150px;
  background: linear-gradient(to bottom, rgba(253, 231, 177, .35), rgba(253, 231, 177, .7));
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 6px solid rgba(90, 80, 60, .7);
  box-shadow: 0 14px 18px -12px rgba(30, 24, 12, .45);
  font-size: .92rem;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  align-items: flex-end; justify-content: space-between;
}
.site-footer::before {
  content: "";
  position: absolute; left: 24px; bottom: 6px;
  width: 112px; height: 86px;
  background: url("../img/ui/zdzbla.webp") center bottom / contain no-repeat;
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
.credits a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700; letter-spacing: .08em; font-size: .78rem;
  color: #806a2a; text-decoration: none;
}

/* ---------- Pasek akcji (telefon) ---------- */
.action-bar { display: none; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1040px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .bookmarks { right: 40px; gap: 20px; }
  .nav-list a { font-size: 1.7rem; }
}

@media (max-width: 820px) {
  .header-sketch { flex-basis: 340px; }
  .bookmarks img, .bookmarks .bm-fb img { width: 64px; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { padding-left: 24px; padding-top: 90px; }
  .site-footer::before { left: 50%; translate: -50% 0; top: 6px; bottom: auto; width: 90px; height: 70px; }
}

/* =========================================================
   Telefon
   ========================================================= */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
    background-image: url("../img/ui/tlo-800.webp");
    background-size: 800px auto;
    padding-bottom: 64px;
  }
  .page { padding: 26px 0 40px; }

  .site-header {
    min-height: 0;
    padding: 14px 16px 10px;
    justify-content: flex-start;
    border-radius: 0;
  }
  .site-header::before { top: -18px; height: 24px; left: 6%; right: 6%; }
  .logo { flex: 0 1 230px; }
  .header-sketch {
    position: absolute; right: 0; bottom: 0;
    width: 52%; opacity: .45;
    pointer-events: none;
  }
  .bookmarks { top: -18px; right: 14px; gap: 10px; }
  .bookmarks .bm-home { display: none; }
  .bookmarks img, .bookmarks .bm-fb img { width: 46px; }

  .slider { aspect-ratio: 3 / 2; }
  .ribbon { bottom: 15%; min-width: 0; max-width: 88%; font-size: 1.5rem; }
  .slider-btn { width: 40px; }
  .slider-btn svg { width: 20px; height: 32px; }
  .slider-btn.prev { left: 2px; }
  .slider-btn.next { right: 2px; }
  .slider-dots { left: 0; right: 0; justify-content: center; bottom: 8px; }
  .slider-dots button { width: 12px; height: 12px; }

  .main-nav { margin-top: 0; border-top-width: 0; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: .25em 18px;
    border: 0; background: transparent;
    font-family: var(--script); font-size: 1.9rem; line-height: 1.4;
    color: var(--green);
    cursor: pointer;
  }
  .nav-toggle .bars { position: relative; width: 28px; height: 20px; }
  .nav-toggle .bars span {
    position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px;
    background: var(--green);
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
  }
  .nav-toggle .bars span:nth-child(1) { top: 0; }
  .nav-toggle .bars span:nth-child(2) { top: 8.5px; }
  .nav-toggle .bars span:nth-child(3) { top: 17px; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 8.5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 8.5px; transform: rotate(-45deg); }

  .nav-list {
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(61, 133, 128, .35);
    padding: 4px 0 8px;
  }
  .main-nav.is-open .nav-list { display: flex; }
  .no-js .nav-list { display: flex; }
  .no-js .nav-toggle { display: none; }
  .nav-list a { font-size: 1.85rem; padding: .2em 18px; }

  .content { padding: 16px 10px 0; }
  .panel { padding: 16px 16px 24px; }
  .panel h1 { text-align: left; }
  .lead { text-align: left; }

  .price-list > div { flex-wrap: wrap; }
  .price-list > div::after { display: none; }
  .price-list > div { border-bottom: 1px dotted rgba(106, 86, 24, .4); padding: .45em 0; justify-content: space-between; }
  .price-list dt { flex: 1 1 60%; }
  .price-list dd { flex: 0 0 auto; text-align: right; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery a { padding: 3px; }

  .lightbox figure { padding: 60px 0 70px; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; }

  .site-footer { border-radius: 0; flex-direction: column; align-items: center; text-align: center; background: rgba(255, 237, 194, .92); }

  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--brown-dark);
    box-shadow: 0 -4px 14px rgba(0,0,0,.25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 56px;
    color: #fff3d6; text-decoration: none; font-size: 1.05rem;
  }
  .action-bar a + a { border-left: 1px solid rgba(255,255,255,.18); }
  .action-bar svg { width: 1.2em; height: 1.2em; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
  .gallery a, .bookmarks a { transition: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .slider, .main-nav, .bookmarks, .action-bar, .header-sketch { display: none !important; }
  .panel { background: none; }
}

.iban-inline { color: var(--green); letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 380px) { .iban-inline { white-space: normal; } }
