/* ==================== GLOBAL ==================== */
body {
    margin: 0;
    /* oddech + stabilny rytm marginesów */
    padding: clamp(18px, 4vw, 72px);
    padding-bottom: clamp(72px, 10vw, 140px);
    font-family: Dosis, sans-serif;
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #222; /* zamiast czystej czerni */
    display: flex;
    flex-direction: column;
    gap: 48px;
    
}

p {
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.5;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 400;
    color: #222; /* spójnie z body */
}

h4{
	margin: 0;
	font-weight: 500 !important;
	font-size: 13px !important;
	padding-top: 24px;
}

h3 {
    font-weight: 100;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.15;
}

h2 {
	font-size: 18px;
	line-height: 1.3;
	padding-bottom: 18px;
}

h1{
    font-size: 18px;
    line-height: 1.2;
}

/* kontrola "miary" tekstu (bardziej wydawniczo) */
.opis p,
.onas p {
    max-width: 62ch;
}

header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}



/* ==================== INTRO ==================== */
.intro {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#intro-right {
    text-align: right;
}

#intro-left {
    text-align: left;
}

/* ==================== CENNIK ==================== */
.cennik-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0);
}

/* separator startowy (żeby tabela wyglądała "zamknięta") */
.cennik-desktop .cennik-item:first-of-type,
.cennik-mobile .cennik-item:first-of-type {
    border-top: 1px solid rgba(0,0,0);
}

/* proporcje: opis vs cena */
.cennik-item p:first-child {
    flex: 0 1 58%;
}
.cennik-item p:last-child {
    flex: 0 1 42%;
    text-align: right;
}

/* bardzo wąskie ekrany: zachowaj czytelność bez ścisku */
@media (max-width: 420px) {
    .cennik-item {
        flex-direction: column;
        gap: 6px;
        padding: 14px 0;
    }
    .cennik-item p:first-child,
    .cennik-item p:last-child {
        flex: 1 1 auto;
        text-align: left;
    }
}



/* ==================== LAYOUT MOBILE-FIRST ==================== */
.layout-desktop {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.right-column {
    order: 0; /* zdjęcie na początku */
}

.left-column {
    order: 1; /* tekst po zdjęciu */
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.footer-desktop {
	display: none;
}

.cennik-mobile {
    display: block;
}
.cennik-desktop {
    display: none;
}

/* ==================== FOOTER ==================== */
footer {
    margin-top: 36px;
}

/* stopka ma być dyskretniejsza typograficznie */
footer h2 {
    font-size: 16px;
    line-height: 1.45;
    padding-bottom: 0;
}

footer h2 {
    font-size: 16px;
    line-height: 1.5;
    padding-bottom: 0;
}

/* ==================== CUSTOM CURSOR ====================
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: red;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}*/

/* ==================== DESKTOP ==================== */
@media (min-width: 900px) {

    body {
        max-width: 1200px;
        margin: 0 auto;
        font-size: 18px;
    }

    .layout-desktop {
        flex-direction: row;
        gap: 80px;
    }

    /* reset kolejności kolumn */
    .right-column,
    .left-column {
        order: 0;
    }

    .left-column {
        flex: 2;
        gap: 60px;
    }

    .right-column {
        flex: 3;
        display: flex;
        flex-direction: column; /* zdjęcie + footer w kolumnie */
        gap: 48px;
    }

    .right-column img {
        width: 100%;
        object-fit: cover;
    }

    footer {
        margin-top: 0;
    }
    .footer-desktop{
    	display: block;
    }
  
    .footer-mobile {
	display: none !important;
}
.cennik-desktop {
        display: block;
    }
    .cennik-mobile {
        display: none !important;
    }
}
/* ==================== LANGUAGE SWITCH ==================== */
.lang-switch {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.lang-switch button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
}

.lang-switch button.active {
    opacity: 1;
    text-decoration: underline;
}

/* sekcje językowe */
.lang-section {
    display: none;
}

.lang-section.active {
    display: flex;
}
/* ==================== GALERIA ==================== */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
}

/* mobile: delikatne przenikanie slajdów */
@media (max-width: 899px) {
  .gallery-main img {
    opacity: 1;
    transition: opacity 700ms ease;
    will-change: opacity;
  }
}

/* miniatury: duże, ale niedominujące */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* mobile: ukryj miniatury (zamiast nich działa automatyczne przewijanie) */
@media (max-width: 899px) {
  .gallery-thumbs { display: none; }
}

.thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 1;
}

.thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;         /* proporcje 4:3 */
  object-fit: cover;
  display: block;
}

/* mobile: mniej kolumn, trochę mniejsze */
@media (max-width: 520px) {
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .thumb img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* ==================== LIGHTBOX ==================== */
body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.lightbox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 30px);
}

.lb-image {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

/* przyciski */
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 1;
  padding: 10px 12px;
  font: inherit;
  font-size: 28px;
  color: rgba(0,0,0,0.75);
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}

.lb-close {
  top: 18px;
  right: 18px;
  font-size: 34px;
}

.lb-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
}

.lb-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
}

