/* Forest Inn Berest – statyczna strona (odtworzona z dawnej wersji WordPress/Hotello).
   Kolory i fonty jak na oryginale: złoty akcent z logo, śliwkowa stopka, PT Serif + odręczny Herr Von Muellerhoff. */

:root {
  --gold: #be9772;
  --gold-dark: #a07b57;
  --plum: #3a3138;
  --plum-soft: #4a4048;
  --ink: #2b2b2b;
  --text: #555;
  --muted: #a9a9a9;
  --line: #e7e2dc;
  --bg-soft: #f7f4f0;
  --white: #fff;
  --serif: "PT Serif", Georgia, serif;
  --script: "Herr Von Muellerhoff", cursive;
  --display: "Vidaloka", Georgia, serif;
  --sans: "Roboto", Arial, sans-serif;
  --container: 1170px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 15px/1.7 var(--sans);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
a:hover { color: var(--plum); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Nagłówek (nakładka na zdjęcie) ---------- */

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 45; /* nad paskiem .mobile-bar – otwarte menu go przykrywa */
  color: var(--white);
}
.site-header__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  max-width: 1400px; margin: 0 auto; padding: 18px 40px 0;
}
/* Przełącznik języka (lewa strona) */
.lang-switch { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.6); }
.lang-switch a,
.nav-lang a { color: rgba(255,255,255,.75); text-decoration: none; letter-spacing: .05em; }
.lang-switch a:hover,
.nav-lang a:hover { color: var(--gold); }
.lang-switch a[aria-current="true"],
.nav-lang a[aria-current="true"] { color: var(--white); border-bottom: 2px solid var(--gold); }

/* Telefon + Facebook + Instagram (prawa strona) */
.site-header__contact { justify-self: end; display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.site-header__phone {
  display: inline-flex; align-items: center; gap: 9px; margin-right: 6px;
  color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .02em;
}
.site-header__phone svg { width: 16px; height: 16px; fill: currentColor; }
.site-header__icon { color: var(--white); display: inline-flex; }
.site-header__icon svg { width: 17px; height: 17px; fill: currentColor; }
.site-header__phone:hover,
.site-header__icon:hover { color: var(--gold); }
.site-header__brand { text-align: center; }
.site-header__logo { display: inline-block; }
.site-header__logo img { width: 210px; height: auto; }

.main-nav { text-align: center; }
.main-nav ul { list-style: none; margin: 10px 0 0; padding: 0; display: inline-flex; gap: 54px; }
.main-nav .nav-lang { display: none; }
.main-nav a {
  color: var(--white); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: .01em;
  padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--white); }

.nav-toggle {
  display: none; justify-self: end; margin-top: 16px;
  background: none; border: 0; color: var(--white); padding: 6px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Hero (slider na stronie głównej) ---------- */

.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; overflow: hidden; background: var(--plum); }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.45)); }
.hero__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 18%;
  max-width: var(--container); margin: 0 auto; padding: 0 20px; color: var(--white);
}
.hero__script { display: block; font: 400 clamp(64px, 9vw, 130px)/.9 var(--script); color: var(--gold); }
.hero__title {
  display: block; margin: 0 0 30px; color: var(--white);
  font: 400 clamp(26px, 3.6vw, 52px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { position: absolute; z-index: 3; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--white); background: transparent;
}
.hero__dots button[aria-current="true"] { background: var(--white); }

/* Nagłówek podstron */
.page-header {
  position: relative; height: 390px; display: flex; align-items: flex-end; justify-content: center;
  background: var(--plum) center / cover no-repeat; color: var(--white); text-align: center;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.page-header h1 { position: relative; color: var(--white); font: 700 30px/1.2 var(--sans); margin: 0 0 60px; padding: 0 16px; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 26px; border: 2px solid var(--gold); border-radius: var(--radius);
  font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn--solid { background: var(--gold); color: var(--white); }
.btn--solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--plum); }
.btn--dark { background: var(--plum); border-color: var(--plum); color: var(--white); }
.btn--dark:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ---------- Sekcje ---------- */

.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }

.heading { text-align: center; margin-bottom: 50px; }
.heading__script { display: block; font: 400 clamp(64px, 8vw, 110px)/.8 var(--script); color: var(--gold); }
.heading__title { font-size: clamp(28px, 3.4vw, 40px); margin: -8px 0 0; color: #bbb; }
.heading__title--dark { color: var(--ink); }

/* Witajcie */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.welcome h2 { font-size: clamp(32px, 3.8vw, 46px); color: #bbb; margin-bottom: 20px; }
.welcome p { margin: 0 0 1em; }
.welcome__signature { font: 400 44px/1 var(--script); color: var(--gold); margin-top: 10px; }

/* Kafle z cechami domu */
.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature {
  position: relative; min-height: 440px; overflow: hidden; color: var(--white);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px;
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(30, 24, 28, .5); transition: background .4s; }
.feature__body { position: relative; z-index: 2; max-width: 280px; }
.feature__icon { width: 64px; height: 64px; margin: 0 auto 18px; stroke: var(--white); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { color: var(--white); font: 700 16px/1.35 var(--sans); text-transform: uppercase; margin: 0; }
.feature p {
  margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: 14px;
  transition: max-height .5s ease, opacity .4s ease, margin .4s ease;
}
.feature:hover img,
.feature:focus-within img { transform: scale(1.06); }
.feature:hover::before,
.feature:focus-within::before { background: rgba(30, 24, 28, .68); }
.feature:hover p,
.feature:focus-within p { max-height: 160px; opacity: 1; margin-top: 14px; }

/* Udogodnienia */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 30px; }
.amenity img { width: 56px; height: 56px; margin-bottom: 18px; }
.amenity h3 { font-size: 23px; margin-bottom: 8px; }
.amenity p { margin: 0; font-size: 14px; }

/* Mapa – wczytywana dopiero po kliknięciu (bez ciasteczek Google przy samym wejściu na stronę) */
.map {
  position: relative; height: 420px; background: #e9e5df center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: relative; padding: 26px 30px; margin: 0 16px; background: rgba(255,255,255,.9); border-radius: 8px; }
.map__placeholder p { margin: 0 0 16px; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.map__placeholder small { display: block; margin-top: 12px; font-size: 12px; color: #777; }

/* Pas z wezwaniem do rezerwacji */
.cta { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.cta__photos { position: relative; overflow: hidden; background: var(--plum); }
.cta__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.cta__photos img.is-active { opacity: 1; }
.cta__text { background: var(--plum); color: #ddd; padding: 60px clamp(24px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.cta__script { font: 400 clamp(56px, 6vw, 84px)/.8 var(--script); color: var(--gold); }
.cta__text h2 { color: var(--white); font-weight: 700; font-size: clamp(28px, 3vw, 38px); margin: 0 0 18px; }
.cta__text p { margin: 0 0 28px; max-width: 460px; }
.cta__text .btn { align-self: flex-start; }

/* Opinie */
.reviews { position: relative; }
.reviews__summary { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -24px 0 36px; font-size: 14px; }
.reviews__summary strong { font-size: 18px; color: var(--ink); }
.stars { color: #f6bb06; letter-spacing: 2px; font-size: 17px; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3); gap: 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 20px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; background: var(--white); border-radius: 8px; padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07); display: flex; flex-direction: column;
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--gold); color: var(--white); font: 700 18px/1 var(--sans);
}
.review__name { font-weight: 700; color: var(--ink); font-size: 15px; }
.review__source { font-size: 12px; color: #888; }
.review p { margin: 8px 0 0; font-size: 14px; color: #444; }
.reviews__nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.reviews__nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.reviews__nav button:hover { border-color: var(--gold); color: var(--gold); }
.reviews__nav svg { width: 18px; height: 18px; fill: currentColor; }
.reviews__more { text-align: center; margin-top: 26px; font-size: 14px; }
.reviews__note { text-align: center; margin: -26px 0 30px; font-size: 13px; color: #888; }

/* Instagram */
.insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 34px; }
.insta a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.insta a:hover img { transform: scale(1.06); }
.center { text-align: center; }

/* ---------- Galeria ---------- */

.gallery-section + .gallery-section { margin-top: 70px; }
.gallery-section h2 { font-size: 30px; margin-bottom: 26px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.05); opacity: .9; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 12, 14, .94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; padding: 14px; opacity: .8;
}
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lightbox svg { width: 34px; height: 34px; fill: currentColor; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; }

/* ---------- Formularze ---------- */

.form-card { background: var(--white); border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.08); overflow: hidden; }
.form-card__head { background: var(--plum); color: var(--white); padding: 22px 30px; }
.form-card__head h2 { color: var(--white); font-size: 24px; margin: 0; }
.form-card__head p { margin: 6px 0 0; color: #cfc6cc; font-size: 14px; }
.form-card form { padding: 30px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--gold-dark); }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1px solid #d9d4ce; border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190, 151, 114, .2); }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--gold); }
.field--check label { font-weight: 400; color: var(--text); margin: 0; }
.form-note { font-size: 13px; color: #888; margin: 0 0 18px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-banner { display: none; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.form-banner.show { display: block; }
.form-banner--error { background: #fdecea; color: #8a1f17; border: 1px solid #f5c2bd; }
.form-banner--ok { background: #edf7ee; color: #1e5b2a; border: 1px solid #bfe0c4; }

.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.booking-aside h3 { font-size: 22px; }
.booking-aside ul { list-style: none; padding: 0; margin: 0 0 26px; }
.booking-aside li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.booking-aside li strong { color: var(--ink); text-align: right; }
.booking-aside .phone-big { font: 700 24px/1.2 var(--serif); color: var(--ink); text-decoration: none; }

/* Kontakt */
.contact-page { position: relative; background: #f2f2f2 center / cover no-repeat; }
.contact-page::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.78); }
.contact-page .container { position: relative; }
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 30px; }
.contact-item svg { width: 34px; height: 34px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.contact-item h2 { font: 700 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.contact-item a,
.contact-item p { margin: 0; color: var(--ink); text-decoration: none; }
.contact-item .big { font: 700 22px/1.2 var(--sans); }

/* Teksty prawne */
.legal { max-width: 860px; }
.legal h2 { font-size: 22px; margin-top: 2em; }
.legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal__note { padding: 14px 18px; background: var(--bg-soft); border-left: 3px solid var(--gold); font-size: 14px; }

/* ---------- Stopka ---------- */

.site-footer { background: var(--plum); color: var(--muted); padding: 70px 0 0; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img { width: 170px; margin-bottom: 18px; }
.site-footer h2 { color: var(--white); font-size: 20px; margin-bottom: 14px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__social { display: flex; gap: 14px; margin-top: 16px; }
.site-footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__bottom { margin-top: 50px; padding: 20px 0; border-top: 1px solid var(--plum-soft); font-size: 13px; text-align: center; }

/* Pasek na telefonach: zadzwoń / rezerwuj */
.mobile-bar { display: none; }

/* ---------- Responsywność ---------- */

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .reviews__track { grid-auto-columns: calc((100% - 30px) / 2); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header__bar { grid-template-columns: auto 1fr auto; padding: 14px 20px 0; align-items: center; }
  .lang-switch,
  .site-header__contact { display: none; }
  .site-header__brand { grid-column: 1; text-align: left; }
  .site-header__logo img { width: 130px; }
  .nav-toggle { display: block; grid-column: 3; margin: 0; }
  .main-nav {
    position: fixed; inset: 0; z-index: 50; background: rgba(42, 35, 40, .97);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 22px; margin: 0; }
  .main-nav a { font: 400 30px/1.2 var(--serif); }
  .main-nav .nav-lang { display: flex; justify-content: center; gap: 14px; margin-top: 14px; color: rgba(255,255,255,.5); }
  .main-nav .nav-lang a { font: 700 16px/1.6 var(--sans); }
  .nav-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
  .nav-close svg { width: 30px; height: 30px; fill: currentColor; }

  .section { padding: 64px 0; }
  .welcome,
  .cta,
  .contact-grid,
  .form-grid { grid-template-columns: 1fr; }
  .welcome { gap: 10px; }
  .cta__photos { min-height: 300px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .insta { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .page-header { height: 270px; }
  .page-header h1 { margin-bottom: 40px; font-size: 24px; }
  .hero__caption { bottom: 14%; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 40;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px;
    font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  }
  .mobile-bar svg { width: 16px; height: 16px; fill: currentColor; }
  .mobile-bar__call { background: var(--plum); color: var(--white); }
  .mobile-bar__book { background: var(--gold); color: var(--white); }
  body { padding-bottom: 50px; }
}

@media (min-width: 861px) {
  .nav-close { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .features,
  .amenities { grid-template-columns: 1fr; }
  .feature { min-height: 300px; }
  .feature p { max-height: none; opacity: 1; margin-top: 12px; }
  .reviews__track { grid-auto-columns: 88%; gap: 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .form-card form { padding: 22px 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

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