html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory; /* wymusza dojazd do sekcji */
}
@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  
}

section {
  height: 100vh;           /* każda sekcja = wysokość okna */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;  /* dla łatwego wyrównania treści */
}

a {
  color: inherit;
  text-decoration: none;
}

.img-protect {
  position: relative;
}

.img-protect img {
  pointer-events: none;
  user-select: none;
}
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
}

/* =========================
   HEADER / TOOLBAR
========================= */

.top-bar {
  position: relative;
  height: 80px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* LOGO — idealnie na środku */
.logo {
  position: absolute;        /* absolutne pozycjonowanie względem top-bar */
  left: 50%;                 /* środek poziomy */
  top: 50%;                  /* środek pionowy */
  transform: translate(-50%, -50%); /* dokładne wycentrowanie w obu osiach */
  margin: 0;
  font-size: 40px;
  letter-spacing: 0.35em;
  font-weight: 300;
  z-index: 10;               /* ponad menu */
  white-space: nowrap;       /* zapobiega łamaniu tekstu */
}

.logo a {
  color: #fff;
  transition: opacity 0.3s ease;
}

.logo a:hover {
  opacity: 0.7;
}

/* MENU LEFT / RIGHT */
.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu-left { flex: 1; }
.menu-right { flex: 1; justify-content: flex-end; }

/* LINKI */
.menu-link {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #fff;
  padding: 6px 0;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.menu-link:hover {
  opacity: 1;
}

/* PODKREŚLENIE PREMIUM */
.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.35s ease;
}

.menu-link:hover::after {
  width: 100%;
}
/* === DROPDOWN ASORTYMENT === */

.menu-dropdown {
  position: relative;
}

.menu-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* submenu dokładnie pod ASORTYMENT */
.dropdown-menu {
  overflow: hidden;
  position: absolute;
  top: 36px;
  left: 0;

  min-width: 180px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;

  z-index: 999;
}

.dropdown-menu a {
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #fff;
  opacity: 0.85;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
}


/* aktywne submenu */
.menu-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* obrót strzałki */
.menu-dropdown:hover i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* === LANGUAGE DROPDOWN (GTRANSLATE) === */

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  cursor: pointer;
}

/* menu */
.lang-menu {
  position: absolute;
  top: 130%;
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 60px;
  background: #fff;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* pokazanie dropdownu */
.lang-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* obrót strzałki przy hover */
.lang-dropdown:hover i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* linki językowe */
.lang-menu a.glink {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 6px 18px;
  color: #000;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.lang-menu a.glink:hover {
  opacity: 1;
  background: rgba(0,0,0,0.04);
}

/* aktywny język */
.lang-menu a.glink.gt-current-lang {
  opacity: 1;
  font-weight: 600;
}




.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-size: cover;       /* wypełnia cały ekran */
  background-position: center;  /* środek kadru */
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
.hero-title {
  position: absolute;
  bottom: 40vh;   /* od dołu */
  left: 10vw;     /* od lewej */
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(90px, 6vw, 80px);
  font-weight: 800;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  letter-spacing: 0;
  color: #fff;

  text-transform: uppercase;
}
/* różne tła */
.home-page .hero {
  background-image: url("/assets/img/home/room1.jpg");
}

.matress-page .hero {
  background-image: url("/assets/img/matress/matress.webp");
}

.textile-page .hero {
  background-image: url("/assets/img/textile/textiles.webp");
}

.hero-credit {
  position: absolute;
  bottom: 20px;          /* odległość od dołu sekcji */
  right: 20px;           /* odległość od prawej krawędzi */
  color: #fff;
  font-size: 11px; /* responsywna czcionka */
  font-style: italic;
  font-weight: 500;
  z-index: 100;          /* nad innymi elementami */
}

.matress-section {
  background-color: #f5f5f5;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  width: 100%;
  height: 100vh;               /* klucz: zajmuje całe okno przeglądarki */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;            /* zapobiega wysuwaniu się obrazu poza sekcję */
  padding: 0;                  /* usuń duże paddingi, jeśli masz je wcześniej */
}



.producers-section {
  background-color: #f5f5f5;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  width: 100%;
  height: 100vh;               /* klucz: zajmuje całe okno przeglądarki */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;            /* zapobiega wysuwaniu się obrazu poza sekcję */
  padding: 0;                  /* usuń duże paddingi, jeśli masz je wcześniej */
}
/* SEKCJA ABOUT */
/* ABOUT — pełne okno przeglądarki (dopasowane do viewportu) */
.about-section {
  background-color: #f5f5f5;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  width: 100%;
  height: 100vh;               /* klucz: zajmuje całe okno przeglądarki */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;            /* zapobiega wysuwaniu się obrazu poza sekcję */
  padding: 0;                  /* usuń duże paddingi, jeśli masz je wcześniej */
}

/* kontener wewnętrzny trzyma kolumny */
.about-inner {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1400px;           /* opcjonalnie ograniczenie szerokości treści */
  margin: 0 auto;
}

/* kolumny po 50% */
.about-left,
.about-right {
  flex: 1 1 50%;
  height: 100%;
  box-sizing: border-box;
}

/* obraz w lewej kolumnie wypełnia całą wysokość i szerokość */
.about-left img {
  padding: 60px 60px;
  width: 80%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* prawa kolumna — padding i typografia */
.about-right {
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* pionowe wyśrodkowanie tekstu w kolumnie */
  color: #111;
}

.about-right h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 20px 0;
  letter-spacing: 2px;
}

.about-right p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  section.about-section {
    height: 100vh;        
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* treść od góry */
    align-items: center;
    padding: 20px 10px;  /* górny padding większy */
    box-sizing: border-box;
  }

  .about-inner {
    flex-direction: column;
    width: 100%;
    text-align: left;       /* tekst wyrównany do lewej */
    max-width: 100%;        /* pełna szerokość */
  }

  .about-left {
    display: none;          /* ukrywamy obrazek */
  }

  .about-right {
    width: 100%;
    padding: 0;
  }

  .about-right h2 {
    font-size: 30px;        
    text-align: center;      /* nagłówek na środku */
    margin: 0 0 10px 0;      
    line-height: 1.2;
  }

  .about-right p {
    font-size: 14px;        
    line-height: 1.3;       
    margin: 0;
    word-break: break-word;
  }
}







/* SEKCJA GALLERY */
.gallery-section {
  background: #b5b5b5;
  color: #000;
  padding: 300px 20px;
  text-align: center;
}

.gallery-section h2 {
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.gallery-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ukrycie scrollbara */
body::-webkit-scrollbar { display: none; }
body { margin: 0; padding: 0; overflow-x: hidden; }



#slide-window {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  
}

#slides {
  display: flex;
  width: 500%; /* liczba slajdów * 100% */
  height: 100%;
  transition: transform 0.66s ease;
}

.slide {
  flex: 0 0 20%; /* 100% / liczba slajdów */
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* wypełnia całą sekcję bez czarnych pasów */
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  color: #fff;
  font-size: 3em;
  padding: 10px;
  opacity: 0.7;
  user-select: none;
}

.nav:hover { opacity: 1; }
#left { left: 10px; }
#right { right: 10px; }

#credit {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #eaeaea;
  font-family: 'Montserrat';
  font-size: 12px;
  font-weight: 100;
  font-style: italic;
}


/* SEKCJA CONTACT */
.contact-section {
  position: relative;
  margin: 0 auto;       /* wyśrodkowanie sekcji na stronie */
  background-color: #f5f5f5;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  color: #000;
  text-align: center;
  /*padding: 20px 20px 50px 20px; /* top | right | bottom | left */
}

.contact-section .contact-content {
  margin: 0; /* usuń duży margin-top */
}

/* === FORMULARZ KONTAKTOWY === */

.contact-form-col {
  text-align: center;
}

.contact-form {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  border: 1px solid #cfcfcf;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  margin-top: 10px;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* komunikaty */
.form-status {
  font-size: 12px;
  min-height: 16px;
}

.form-status.success {
  color: green;
}

.form-status.error {
  color: darkred;
}



/* TREŚĆ */
.contact-section h2 {
  font-size: clamp(24px, 4vw, 40px);
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.contact-section p {
  max-width: 800px;
  margin: 0 auto 0 20px;
  margin-top: 40px;
  font-size: 14px;
  text-align: left;
  line-height: 1.6;
  opacity: 0.85;
}
.contact-columns {
  display: flex;
  width: 100%;
  margin-top: 40px;
  border-top: 0px solid #ddd;
  padding-top: 20px;
}

.contact-columns .col {
  flex: 1;
  padding: 10px 20px 10px 20px; /* top | right | bottom | left */
  font-weight: normal;
  text-align: center;
}

.contact-columns .col strong {
  font-family: 'Montserrat';
  font-size: 16px;
  font-weight: 600;
  
}

/* pionowe kreski między kolumnami */
.contact-columns .col:not(:last-child) {
  border-right: 1px solid #d0d0d0;
}

.social-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background-color: #000;
  opacity: 0.6;
}


/* SOCIAL ICONS POD LINIĄ */
.social-section {
  position: absolute; /* nakładka na sekcję */
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(245,245,245,0.95);
  color: #000;
  padding: 20px 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  z-index: 1000;
}
.social-left {
  font-size: 12px;
  opacity: 0.7;
  /* zero marginesów bocznych – unikamy przepychania */
  margin: 0;

}
.social {
  display: flex;
  align-items: center;
  gap: 36px;     /* możesz zmniejszyć do 24, jeśli na mniejszych ekranach zawija */
  margin: 0;     /* usunięty margin-right */

}
.social a {
  color: #000;
  font-size: 24px;
  transition: 0.3s ease;
}
.social a:hover {
  color: #555;
  transform: scale(1.1);
}

/* STRZAŁKA POWROTNA */

.back-to-top {
  position: fixed;
  bottom: 80px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: #000000;
  color: #000000;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #000000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 9999;

  /* ukryte początkowo */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top i {
  font-size: 24px;       /* rozmiar strzałki */
  color: #ffffff;           /* kolor strzałki */
  transition: transform 0.3s ease;
}

/* opcjonalny efekt hover */
.back-to-top:hover i {
  transform: translateY(-2px);
}


/* Ikona cookie po lewej, podobna do strzałki powrotnej */
.cookie-icon-button {
  position: fixed;
  left: 30px;
  bottom: calc(80px + 60px); /* 80px od dołu + 60px marginesu */
  width: 50px;
  height: 50px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  border: 1px solid #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: 0.3s;
}

.cookie-icon-button:hover {
  background: #111;
}

/* Modal w środku ekranu */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.cookie-modal.show {
  display: flex;
}

.cookie-content {
  background: #fff;
  color: #000;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cookie-content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.cookie-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cookie-buttons button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#acceptAll {
  background: #ffd700;
  color: #000;
}

#saveSettings {
  background: #444;
  color: #fff;
}

.cookie-buttons button:hover {
  opacity: 0.85;
}

/* ===========================
   MOBILE FIX – MENU WIDOCZNOŚĆ
   =========================== */
@media (max-width: 1024px) {

  .top-bar {
    position: relative;
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible; /* 🔥 KLUCZOWE */
    z-index: 9999;
  }

  .logo {
  position: absolute;       /* absolutnie względem top-bar */
  left: 58%;                /* poziomy środek */
  top: 50%;                 /* pionowy środek */
  transform: translate(-50%, -50%); /* dokładne wycentrowanie w obu osiach */
  font-size: 30px;
  z-index: 10001;           /* nad hamburgerem i menu */
  white-space: nowrap;      /* zapobiega łamaniu nazwy */
}


  .menu-left,
  .menu-right {
    display: none; /* chowamy desktopowe menu */
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
  }

  .hamburger span {
    width: 28px;
    height: 2px;
    background: #fff;
    display: block;
  }
  /* ===========================
     HAMBURGER → X
     =========================== */

 /* === ANIMACJA HAMBURGERA === */
.hamburger span {
  transition:
    transform 0.45s cubic-bezier(.68,-0.6,.32,1.6),
    opacity 0.25s ease;
}

/* ☰ → X */
body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE MENU FULLSCREEN – lewy na górze, prawy pod spodem */
body.menu-open .top-bar nav.menu-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* od góry */
  align-items: center;
  position: fixed;
  top: 64px;           /* poniżej top-bar */
  left: 0;
  width: 100%;
  height: auto;        /* wysokość zależna od ilości linków */
  background: #000;
  gap: 16px;
  padding: 20px 0;
  z-index: 10000;
}

body.menu-open .top-bar nav.menu-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: fixed;
  top: calc(64px + var(--menu-left-height)); /* poniżej menu-left */
  left: 0;
  width: 100%;
  height: auto;
  background: #000;
  gap: 16px;
  padding: 20px 0;
  z-index: 10001;
}
body.menu-open .top-bar nav.menu-left {
  height: 150px; /* ustalona wysokość menu-left */
}

body.menu-open .top-bar nav.menu-right {
  top: 214px; /* 64px top-bar + 150px menu-left */
}




  .contact-columns {
    display: block;
    background-color: #f8f8f8;
  }

  .col-logo,
  .contact-form-col,
  .col-dane {
    width: 100%;
    margin: 15px 0;
    padding: 15px 20px;
    box-sizing: border-box;
    background-color: #f8f8f8;
    text-align: center;
    position: relative;
  }

  /* Linie oddzielające z marginesami po bokach */
  .col-logo::after,
  .contact-form-col::after {
    content: "";
    display: block;
    height: 1px;
    background-color: #000;
    margin: 40px 20px 0 20px;
  }

  /* Logo wyśrodkowane */
  .col-logo img {
    display: block;
    margin: 0 auto;
  }

.contact-section {
    display: flex;
    flex-direction: column;
    height: auto !important;
    position: relative;
    overflow: visible;
  }

  /* Resetujemy kolumny, aby stopka nie była traktowana jako "jedna z nich" */
  .contact-columns {
    display: block;
    width: 100%;
  }

  /* FIX: Stopka na samym dole */
  .social-section {
    display: flex !important; /* Przywracamy widoczność */
    flex-direction: column;
    align-items: center;
    
    /* To sprawi, że stopka "wypchnie" się pod dane kontaktowe */
    position: relative; 
    clear: both;
    width: 100%;
    
    margin-top: 40px; /* Odstęp od ostatniej kolumny (dane kontaktowe) */
    padding: 30px 0;
    background-color: #000; /* Wyraźne tło stopki */
    color: #fff;
    z-index: 10;
  }

  /* Stylizacja ikon wewnątrz stopki */
  .social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
  }

  .social a {
    color: #fff !important;
    font-size: 20px;
  }

  .social-left {
    font-size: 12px;
    text-align: center;
    padding: 0 10px;
  }
  /* Wyłączenie cookie banner */
  .cookie-icon-button {
    display: none;
  }

  /* Wyłączenie strzałki powrotu do góry */
  .back-to-top {
    display: none;
  }
}