:root {
  --sand: #f3eadf;
  --beige: #efe4d6;
  --sea: #b7d8e8;
  --deep-sea: #3b738f;
  --white: #ffffff;
  --text: #2e3a3f;
  --wood: #c9a27e;
  --shadow: 0 10px 25px rgba(46, 58, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f2e9 0%, #ecf6fb 45%, #f8f2e9 100%);
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section:nth-of-type(even):not(.hero) {
  background: rgba(255, 255, 255, 0.45);
}

.section-full {
  min-height: 100vh;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

p {
  line-height: 1.8;
}

.section-intro {

}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 126, 0.22);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--deep-sea);
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  margin-left: auto;
  order: 2;
  justify-content: flex-end;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(59, 115, 143, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.8rem;
  order: 3;
  flex: 0 0 auto;
}

.lang-btn {
  border: 0;
  padding: 0.35rem 0.65rem;
  background: transparent;
  color: var(--deep-sea);
  cursor: pointer;
  font-weight: 600;
}

.lang-btn.active {
  background: var(--sea);
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}

.nav-links a:hover {
  background: var(--sand);
}

.nav-links a[href*="booking.com"] {
  background: linear-gradient(135deg, #dcb48f, #e9caaa);
  color: #2f2017;
  font-weight: 700;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--deep-sea);
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("assets/02_salon.jpg")
    center/cover no-repeat fixed;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 38, 49, 0.2),
    rgba(16, 38, 49, 0.62) 70%,
    rgba(16, 38, 49, 0.45)
  );
}

.waves {
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  height: 90px;
}

.waves span {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  border-radius: 43%;
  background: rgba(255, 255, 255, 0.28);
  animation: waveMove 11s linear infinite;
}

.waves span:nth-child(2) {
  top: 20px;
  opacity: 0.45;
  animation-duration: 14s;
}

.waves span:nth-child(3) {
  top: 34px;
  opacity: 0.35;
  animation-duration: 17s;
}

@keyframes waveMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  padding: 8rem 0 4rem;
}

.hero-kicker {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 760px;
  margin: 0 auto 1.8rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--wood), #e8c39f);
  color: #2f2017;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.contact-section .btn-outline {
  border-color: rgba(59, 115, 143, 0.65);
  color: var(--deep-sea);
}

.map-box iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.map-link-out {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.95rem;
}

.map-link-out a {
  color: var(--deep-sea);
  font-weight: 600;
}

.mosaic {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  padding: 2.1rem 0.7rem 0.7rem;
  font-weight: 500;
}

.gallery-item.wide {
  grid-column: span 1;
}

.gallery-item.tall {
  grid-row: span 1;
}

.zoom-hint {
  opacity: 0.72;
}

.parallax {
  background-attachment: fixed;
}

#apartament {
  background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.9)),
    url("assets/01_apartament.jpg")
      center/cover fixed no-repeat;
}

#lokalizacja {
  background: linear-gradient(rgba(246, 243, 238, 0.9), rgba(246, 243, 238, 0.94)),
    url("assets/09_kompleks_apartamenty_baltyk.jpg")
      center/cover fixed no-repeat;
}

.amenities-grid,
.equipment-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.experience-main-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(236, 246, 251, 0.88) 100%
  );
  border-top: 1px solid rgba(183, 216, 232, 0.45);
  border-bottom: 1px solid rgba(183, 216, 232, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.experience-main--full {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2rem 0;
  margin: 0;
  border-radius: 0;
}

.experience-main--full .container {
  max-width: min(1140px, 92vw);
  margin: 0 auto;
}

.experience-main--full h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.experience-layout {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-main {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.experience-main h3 {
  margin-bottom: 0.6rem;
}

.experience-points--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.experience-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.experience-col .experience-point {
  flex: 1 1 auto;
}

.experience-point {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(183, 216, 232, 0.7);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(46, 58, 63, 0.08);
}

.experience-point h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.experience-tags {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  background: rgba(183, 216, 232, 0.35);
  border: 1px solid rgba(183, 216, 232, 0.65);
  color: var(--deep-sea);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.amenity-card,
.equipment-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(183, 216, 232, 0.7);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.amenity-card {
  text-align: center;
}

.amenity-card span {
  font-size: 1.5rem;
}

.location-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.map-box {
  margin-top: 1.4rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}

.about-split__text {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.about-split__copy h2 {
  margin-bottom: 0.85rem;
}

.about-facts-kicker {
  margin: 0;
  margin-top: auto;
  padding-top: 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-sea);
  opacity: 0.85;
}

.about-facts {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
}

.about-fact {
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--deep-sea);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(183, 216, 232, 0.55);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(46, 58, 63, 0.06);
}

.about-split__video.about-video {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  padding-left: clamp(1rem, 3vw, 1.75rem);
  border-left: 1px solid rgba(183, 216, 232, 0.55);
}

.about-split__video .video-embed {
  margin-top: 1rem;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.about-video {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(183, 216, 232, 0.55);
}

.about-video h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
  color: var(--deep-sea);
}

.about-video-intro {
  margin-top: 0;
}

.about-video .video-embed {
  margin-top: 1.25rem;
}

.video-embed {
  margin-top: 1.75rem;
  position: relative;
  width: 100%;
  max-width: min(380px, 88vw);
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f1418;
}

.video-embed--short {
  aspect-ratio: 9 / 16;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.video-fallback a {
  color: var(--deep-sea);
  font-weight: 600;
}

.contact-section {
  text-align: center;
  background: linear-gradient(180deg, #f9f4eb, #eef8fd);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 23, 0.82);
  display: none;
  place-items: center;
  z-index: 1200;
  padding: 2rem;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  width: min(92vw, 1680px);
  max-width: min(92vw, 1680px);
  max-height: 88vh;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox p {
  color: var(--white);
  margin-top: 0.6rem;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: #1b3f52;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1150;
  padding: 1rem max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(183, 216, 232, 0.65);
  box-shadow: 0 -8px 28px rgba(46, 58, 63, 0.1);
}

.cookie-consent__inner {
  max-width: min(1140px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.cookie-consent .btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.cookie-consent .cookie-consent__reject {
  border: 1px solid rgba(59, 115, 143, 0.65);
  color: var(--deep-sea);
  background: rgba(255, 255, 255, 0.95);
}

.fab-booking {
  display: none;
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 1100;
  box-shadow: 0 10px 28px rgba(46, 58, 63, 0.28);
  padding-inline: 1.35rem;
  text-decoration: none;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.visible {
    transform: none;
  }

  .waves span {
    animation: none;
  }

  .gallery-item img {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--deep-sea);
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: max(1rem, env(safe-area-inset-left));
  top: max(1rem, env(safe-area-inset-top));
  outline: none;
}

.skip-link:focus-visible {
  outline: 0.2rem solid var(--deep-sea);
  outline-offset: 0.15rem;
}

a:focus-visible,
button:focus-visible,
.lang-btn:focus-visible {
  outline: 0.18rem solid var(--deep-sea);
  outline-offset: 0.2rem;
}

.lightbox.open .lightbox-close:focus-visible,
.lightbox.open .lightbox-nav:focus-visible {
  outline: 0.18rem solid var(--white);
  outline-offset: 0.15rem;
}

.gallery-item img:focus-visible {
  outline: 0.2rem solid var(--deep-sea);
  outline-offset: 0.15rem;
}

.site-footer {
  padding: 3rem 0;
  background: linear-gradient(180deg, #f9f4eb, #eef8fd);
  border-top: 1px solid rgba(183, 216, 232, 0.45);
}

.site-footer__inner {
  text-align: center;
}

.site-footer__title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.5rem;
  color: var(--deep-sea);
}

.site-footer__lead {
  margin: 0 0 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__address {
  font-style: normal;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.site-footer .btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer__map-btn {
  border: 1px solid rgba(59, 115, 143, 0.65);
  color: var(--deep-sea);
  background: rgba(255, 255, 255, 0.9);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
}

.lang-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.65rem;
}

.hero-actions .btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.8rem;
    border-bottom: 1px solid rgba(201, 162, 126, 0.22);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .lang-switch {
    margin-left: 0;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .about-split__video.about-video {
    padding-left: 0;
    border-left: none;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(183, 216, 232, 0.55);
    margin-top: 1.5rem;
  }

  .about-split__video .video-embed {
    max-width: min(380px, 88vw);
    margin-left: auto;
    margin-right: auto;
  }

  .mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .experience-points--split {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .experience-col {
    display: contents;
  }

  body {
    padding-bottom: 5.5rem;
  }

  .fab-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .hero {
    background-attachment: scroll;
  }

  #apartament,
  #lokalizacja,
  .parallax {
    background-attachment: scroll;
  }

  .section {
    padding: 4rem 0;
  }

  .map-box iframe {
    height: 220px;
  }

  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 520px) {
  .about-facts {
    grid-template-columns: 1fr;
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}
