/* Równonoc w Bieszczadach: styl odtworzony na podstawie dotychczasowej strony.
   Kolory i proporcje zgodne z oryginałem; czcionka Outfit hostowana lokalnie (css/fonts.css). */

:root {
  --jasny: #d9dad8;       /* tło nagłówka i przycisków */
  --ciemny: #333537;      /* ciemne sekcje i stopka */
  --tekst: #1d1e20;
  --tekst-miekki: #4a4c50;
  --mapa: #a1afa8;
  --ramka: #b8c0cc;
  --akcent: #0d131a;
  --promien: 28px;
  --szer: 1224px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--tekst);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; }

.pomin { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.pomin:focus { left: 8px; top: 8px; }

.kontener { width: min(var(--szer), calc(100% - 48px)); margin-inline: auto; }
.kontener--waski { width: min(546px, calc(100% - 48px)); }

/* ---------- nagłówek ---------- */
.naglowek { background: var(--jasny); position: sticky; top: 0; z-index: 20; transition: box-shadow .15s; }
.naglowek--przewiniety { box-shadow: 0 6px 14px 0 rgba(0, 0, 0, .1); }
.naglowek__wiersz { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 81px; }
.marka { justify-self: start; text-decoration: none; text-transform: uppercase; font-size: 16px; font-weight: 400; letter-spacing: .01em; border-bottom: 1px solid currentColor; line-height: 1.2; }
.logo { justify-self: center; display: block; }
.logo img { width: 76px; height: 76px; }
.spolecznosc { justify-self: end; display: flex; gap: 16px; align-items: center; }
.spolecznosc a { display: inline-flex; color: var(--akcent); }
.spolecznosc a { transition: opacity .2s; }
.spolecznosc a:hover { opacity: .7; }
.menu__spolecznosc { display: none; }
.galeria a { cursor: zoom-in; }
.menu { display: none; }
.hamburger { display: none; }

/* ---------- hero ---------- */
.hero { clip-path: inset(0); position: relative; min-height: 675px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #8a97a3; }
.hero__tlo { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; object-fit: cover; }
/* jak w oryginale: zdjecie stoi w miejscu (jest przypiete do okna), a sekcja przesuwa sie nad nim */
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(20, 25, 30, .18), rgba(20, 25, 30, .1) 50%, rgba(20, 25, 30, .3)); }
.hero__tresc { position: relative; z-index: 1; padding: 64px 24px; max-width: 900px; }
.hero h1 { font-size: 64px; margin-bottom: 56px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero p { margin: 40px auto 0; font-size: 18px; font-weight: 500; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }

/* ---------- przyciski ---------- */
.przycisk {
  display: inline-block; min-width: 150px; padding: 15px 36px; border-radius: 999px;
  background: var(--jasny); color: var(--ciemny); text-decoration: none; text-align: center;
  text-transform: uppercase; font: inherit; font-weight: 600; font-size: 16px; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s;
}
/* najechanie: tło jak w oryginale (#a2afa8). Tekst zostaje ciemny dla czytelności (oryginał miał biały: ustaw --przycisk-tekst-hover: #fff) */
:root { --przycisk-hover: #a2afa8; --przycisk-tekst-hover: var(--ciemny); }
.przycisk:hover, .przycisk:focus-visible { background: var(--przycisk-hover); color: var(--przycisk-tekst-hover); }

/* ---------- animacje przy przewijaniu (jak w oryginale: pojawianie 0.65 s) ---------- */
.js .pojaw { opacity: 0; transition: opacity .65s ease .1s, transform .65s ease .1s; }
.js .pojaw--wsuw { transform: translateY(20%); }
.js .pojaw.pojaw--widoczny { opacity: 1; transform: none; }

/* ---------- WhatsApp ---------- */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 64px; height: 64px; border-radius: 50%; background: #128c5a; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .15s; }
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 40px; height: 40px; }
.whatsapp[hidden] { display: none; }

/* ---------- sekcje ---------- */
.sekcja { padding: 80px 0; }
.sekcja--ciemna { background: var(--ciemny); color: #fff; padding: 88px 0 100px; }
.tytul { font-size: clamp(32px, 4vw, 44px); color: var(--tekst-miekki); }
.tytul--jasny { color: #fff; text-align: center; }
.tytul--srodek { text-align: center; color: var(--ciemny); margin-bottom: 56px; }
.wstep { text-align: center; font-weight: 500; font-size: 17px; margin: 28px auto 56px; max-width: 760px; }

/* karty */
.karty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(1224px, 100%); margin-inline: auto; }
.karta { background: #fff; color: var(--tekst-miekki); display: flex; flex-direction: column; }
.karta img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--promien) var(--promien) 0 0; }
.karta__opis { padding: 20px 44px 36px; }
.karta__opis--maly { padding: 14px 48px 28px; }
.karta h3 { font-size: 20px; color: var(--tekst); margin-bottom: 10px; font-weight: 500; }
.karta p { margin: 0; font-size: 17px; line-height: 1.65; }
.karta__opis--maly p { font-size: 15.5px; line-height: 1.6; }

/* lokalizacja */
.lokalizacja { display: grid; grid-template-columns: 1fr 1.65fr; gap: 32px; align-items: center; }
.lokalizacja__tekst { padding: 40px 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.lokalizacja__tekst p { margin: 0 0 24px; color: var(--tekst-miekki); }
.lokalizacja__mapa { margin: 0; background: var(--mapa); border-radius: var(--promien); overflow: hidden; aspect-ratio: 812 / 464; position: relative; }
/* obraz jest przybliżony na strzałki dojazdów (jak na dotychczasowej stronie), a logo i napis z jego brzegów wypadają poza kadr */
.lokalizacja__mapa img { position: absolute; width: 137.5%; max-width: none; height: auto; left: -30.8%; top: -20.5%; }

/* galeria */
.galeria { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(1224px, 100%); margin-inline: auto; }
.galeria li { aspect-ratio: 1; overflow: hidden; border-radius: 22px; }
.galeria a { display: block; height: 100%; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galeria a:hover img { transform: scale(1.04); }

/* formularz */
.sekcja--formularz { padding-top: 40px; padding-bottom: 96px; }
.formularz { display: flex; flex-direction: column; gap: 8px; }
.formularz label { font-size: 14px; color: #000; margin-top: 8px; }
.formularz input, .formularz textarea {
  font: inherit; font-size: 16px; padding: 15px 17px; border: 1px solid var(--ramka); border-radius: 20px; background: #fff; color: var(--akcent);
}
.formularz textarea { min-height: 96px; resize: vertical; }
.formularz input::placeholder, .formularz textarea::placeholder { color: #8b929a; }
.formularz input:hover, .formularz textarea:hover, .formularz input:focus, .formularz textarea:focus { border-color: var(--akcent); outline: none; }
.formularz input:focus-visible, .formularz textarea:focus-visible { box-shadow: 0 0 0 3px rgba(13, 19, 26, .15); }
.przycisk--formularz { align-self: center; margin-top: 18px; }
.formularz__stan { text-align: center; min-height: 1.5em; margin: 6px 0 0; font-size: 15px; }
.formularz__stan--blad { color: #b3261e; }
.formularz__stan--ok { color: #1b6b3a; }
.pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* stopka */
.stopka { background: var(--ciemny); color: #fff; padding: 96px 0 56px; }
.stopka h2 { font-size: 28px; margin-bottom: 18px; }
.stopka__wiersz { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.stopka__prawa-kolumna { padding-left: 0; }
.stopka__prawa-kolumna h2:nth-of-type(2) { margin-top: 22px; }
.stopka p { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.7; }
.stopka a { text-decoration: none; font-weight: 500; }
.stopka a:hover { text-decoration: underline; }
.spolecznosc--stopka { justify-self: start; gap: 18px; margin-bottom: 28px; }
.spolecznosc--stopka a { color: #fff; }
.stopka__linki { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.stopka__prawa { font-size: 15px !important; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 17, 19, .92); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__obraz { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; border-radius: 12px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; }
.lightbox__zamknij { top: 14px; right: 20px; font-size: 44px; line-height: 1; }
.lightbox__strzalka { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 12px 18px; line-height: 1; opacity: .85; }
.lightbox__strzalka:hover { opacity: 1; }
.lightbox__strzalka--lewa { left: 8px; }
.lightbox__strzalka--prawa { right: 8px; }

/* ---------- telefon i tablet ---------- */
@media (max-width: 920px) {
  .naglowek__wiersz { grid-template-columns: auto 1fr auto; min-height: 76px; }
  .marka, .spolecznosc:not(.spolecznosc--stopka) { display: none; }
  .logo { justify-self: start; }
  .logo img { width: 64px; height: 64px; }
  .hamburger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; justify-self: end; grid-column: 3; }
  .hamburger span { display: block; height: 2px; background: #fff; border-radius: 2px; width: 28px; margin-inline: auto; transition: transform .2s, opacity .2s; }
  .hamburger[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--jasny); display: none; flex-direction: column; padding: 8px 24px 24px; border-top: 1px solid rgba(0, 0, 0, .08); }
  .menu.menu--otwarte { display: flex; }
  .menu__spolecznosc { display: flex; gap: 16px; padding-top: 18px; }
  .menu__spolecznosc a { border: 0; padding: 0; display: inline-flex; color: var(--akcent); }
  .whatsapp { right: 14px; bottom: 14px; width: 58px; height: 58px; }
  .menu a { text-decoration: none; text-transform: uppercase; font-size: 16px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
  .hero { min-height: 600px; }
  .hero h1 { font-size: 40px; margin-bottom: 40px; }
  .karty { grid-template-columns: 1fr; gap: 40px; width: min(380px, 100%); }
  .karta__opis, .karta__opis--maly { padding: 20px 28px 30px; }
  .lokalizacja { grid-template-columns: 1fr; }
  .lokalizacja__tekst { padding: 0; align-items: center; text-align: center; }
  .lokalizacja__tekst p { margin-bottom: 0; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .sekcja { padding: 56px 0; }
  .sekcja--ciemna { padding: 64px 0 72px; }
  .stopka__wiersz { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .galeria { grid-template-columns: 1fr; width: min(380px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .galeria img, .przycisk, .hamburger span, .naglowek, .whatsapp { transition: none; }
  .js .pojaw { opacity: 1; transform: none; transition: none; }
}

/* najczęstsze pytania */
.kontener--waski2 { width: min(820px, calc(100% - 48px)); }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--ramka); border-radius: 20px; padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 18px 28px 18px 0; list-style: none; position: relative; color: var(--ciemny); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 28px; color: var(--ciemny); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; margin: 0; color: var(--tekst-miekki); }
