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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1E2A22;
  background: #F6F7F3;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #2F5D46;
}

a:hover {
  color: #1E3D2E;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 16px;
}

h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
}

section[id] {
  scroll-margin-top: 80px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 32px;
}

.muted {
  color: #4A5A4F;
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 24px;
}

.g3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.g2 {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.g4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #DDE3DA;
  border-radius: 16px;
}

.pad {
  padding: 24px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 10px;
  text-align: center;
}

.btn-primary {
  background: #2F5D46;
  color: #fff;
}

.btn-primary:hover {
  background: #244A37;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #1E3D2E;
}

.btn-light:hover {
  color: #1E3D2E;
  background: #EEF3EF;
}

.btn-ghost {
  color: #fff;
  border: 1px solid #fff;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

/* Menu */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #DDE3DA;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1E2A22;
  text-decoration: none;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  text-decoration: none;
  display: inline-block;
  padding: 10px 0;
}

.nav .btn {
  padding: 12px 18px;
  font-size: 15px;
}

/* Phone button with an icon instead of the word "Zadzwoń" */
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-phone svg {
  flex: none;
}

/* Bigger call-to-action button (pricing) */
.btn-large {
  font-size: 18px;
  padding: 16px 26px;
  white-space: nowrap;
}

@media (max-width:860px) {
  .menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

@media (max-width:699px) {
  .menu {
    display: none;
  }

  .logo {
    font-size: 19px;
  }

  .nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Smaller gaps between sections on phones */
  .section {
    padding: 36px 0;
  }

  .lead {
    margin-bottom: 20px;
  }

  .btn-large {
    font-size: clamp(14px, 4.1vw, 16px);
    padding: 14px 16px;
  }
}

/* Header */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background: #2E4A3A;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .wrap {
  position: relative;
  width: 100%;
  padding-bottom: 64px;
  padding-top: 120px;
}

.hero-box {
  max-width: 720px;
  background: rgba(20, 32, 25, .8);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
}

.hero-box .kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #CFE0D3;
  margin-bottom: 8px;
}

.hero-box h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.hero-box p {
  font-size: 18px;
  color: #EEF3EF;
  margin-bottom: 24px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.price-tag {
  font-weight: 600;
  font-size: 18px;
  margin-left: 8px;
}

/* Stats */
.stats {
  background: #fff;
  border-bottom: 1px solid #DDE3DA;
}

.stats ul {
  list-style: none;
  margin: 0 auto;
  padding: 32px 24px;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stats strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 36px;
  color: #2F5D46;
  line-height: 1.2;
}

.stats span {
  font-size: 15px;
}

/* Rooms */
.room {
  overflow: hidden;
}

.room img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #DCE5DD;
}

/* For whom */
.dark {
  background: #2F5D46;
  color: #fff;
  border-radius: 16px;
  padding: 32px;
}

.light {
  padding: 32px;
}

.dark h3,
.light h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.list {
  margin: 0 0 24px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Amenities */
.amen {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amen li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #DDE3DA;
  border-radius: 12px;
  padding: 16px 18px;
}

.amen svg {
  flex: none;
  margin-top: 3px;
}

.amen b {
  display: block;
}

/* Gallery */
.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  background: #DCE5DD;
}

.gallery figcaption {
  font-size: 14px;
  color: #4A5A4F;
  margin-top: 6px;
}

/* Area */
.area {
  background: #E8EEE7;
}

.area .card {
  border: none;
}

.area h3 {
  font-size: 22px;
}

/* Pricing */
.pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  border-radius: 20px;
}

.pricing>div {
  flex: 1 1 420px;
  min-width: 0;
}

.big-price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #2F5D46;
  margin-bottom: 8px;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq details {
  background: #fff;
  border: 1px solid #DDE3DA;
  border-radius: 12px;
  padding: 18px 20px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 12px 0 0;
}

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-box {
  flex: 0 1 520px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-box address {
  font-style: normal;
}

.phone {
  font-weight: 600;
  font-size: 20px;
}

footer {
  background: #1E2A22;
  color: #D6E0D8;
  font-size: 15px;
}

footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
}

footer a {
  color: #fff;
}
footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
}

/* Clickable photos (open the lightbox) */
.photo-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}

.photo-link img {
  transition: transform .3s ease;
}

.photo-link:hover img {
  transform: scale(1.03);
}

.photo-link:focus-visible {
  outline: 3px solid #2F5D46;
  outline-offset: 3px;
}

.room .photo-link {
  border-radius: 0;
}

.more-link {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 0;
  font-weight: 600;
  text-decoration: none;
}

.gallery-more {
  margin: 32px 0 0;
  text-align: center;
}

/* Gallery page */
.gallery-intro {
  padding: 48px 0 8px;
}

.gallery-intro h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 16px;
}

.gallery-intro .lead {
  margin-bottom: 24px;
}

.back-link {
  margin-bottom: 16px;
  font-weight: 600;
}

.back-link a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
}

.chips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #DDE3DA;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.chips a:hover {
  background: #EEF3EF;
}

.gallery-section {
  padding: 32px 0 8px;
}

.gallery-section h2 {
  font-size: clamp(24px, 3.5vw, 32px);
}

.photo-count {
  color: #4A5A4F;
  font-weight: 500;
  font-size: .7em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #DCE5DD;
}

.gallery-grid figcaption {
  font-size: 14px;
  color: #4A5A4F;
  margin-top: 6px;
}

@media (max-width:699px) {
  .gallery-intro {
    padding-top: 24px;
  }

  .gallery-section {
    padding-top: 24px;
  }

  /* One swipeable row of section links instead of several wrapped rows */
  .chips ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px 4px;
    scrollbar-width: none;
  }

  .chips ul::-webkit-scrollbar {
    display: none;
  }

  /* Two photos per row on phones */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-grid figcaption {
    font-size: 13px;
    line-height: 1.35;
  }

  .gallery .photo-link img,
  .gallery img {
    height: 200px;
  }
}

/* Lightbox */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0C120E;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop {
  background: #0C120E;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: lightbox-fade .2s ease;
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 64px 72px 8px;
  touch-action: pan-y pinch-zoom;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox.is-loading .lightbox__img {
  opacity: .35;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 24px max(16px, env(safe-area-inset-bottom));
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.lightbox__caption,
.lightbox__counter {
  margin: 0;
  font-size: 15px;
}

.lightbox__counter {
  color: #C9D6CD;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, .26);
}

.lightbox__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lightbox__close {
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 12px;
}

.lightbox__next {
  right: 12px;
}

.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next {
  display: none;
}

@media (max-width:699px) {
  /* Photo uses the full width; arrows move to the bottom bar area */
  .lightbox__stage {
    padding: 64px 0 8px;
  }

  .lightbox__img {
    border-radius: 0;
  }

  .lightbox__bar {
    padding: 12px 76px max(16px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    min-height: 76px;
    justify-content: center;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: none;
  }
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .lightbox[open],
  .photo-link img,
  .lightbox__img {
    animation: none;
    transition: none;
  }
}

/* Phone layout overrides (kept at the end so they win over the base rules above) */
@media (max-width:699px) {
  /* Header photo: text box starts higher, less empty space above it */
  .hero {
    min-height: 0;
  }

  .hero .wrap {
    padding: 72px 16px 20px;
  }

  .hero-box {
    padding: 22px 20px;
  }

  .hero-box p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .stats ul {
    padding: 24px 16px;
    gap: 16px;
  }

  /* Pricing: price and button fit in one line */
  .pricing {
    padding: 24px 20px;
    gap: 16px;
  }

  .pricing>div {
    flex-basis: 100%;
  }

  .big-price {
    font-size: clamp(18px, 5.6vw, 32px);
    white-space: nowrap;
  }
}

/* Privacy policy page */
.legal {
  padding: 40px 0 56px;
}

.legal .wrap {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 12px;
}

.legal h2 {
  font-size: clamp(22px, 3vw, 26px);
  margin: 36px 0 12px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .updated {
  color: #4A5A4F;
  font-size: 15px;
}

@media (max-width:699px) {
  .legal {
    padding: 24px 0 36px;
  }

  .legal h2 {
    margin-top: 28px;
  }
}
