/* Font Awesome Fallback Font Face z optimizacją swap */
/* Zapobiega CLS (Cumulative Layout Shift) podczas ładowania ikon */
@font-face {
  font-family: 'Font Awesome 6 Brands';
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/webfonts/fa-brands-400.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/webfonts/fa-solid-900.woff2') format('woff2');
  font-display: swap;
  font-weight: 900;
  font-style: normal;
  font-stretch: normal;
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/webfonts/fa-regular-400.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
}

/* Placeholder styling dla ikon Font Awesome podczas ładowania */
i[class*="fas"],
i[class*="fab"] {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  margin-right: 0.1em;
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', sans-serif;
  font-size-adjust: none;
  /* Nie skaluj ikon */
}

/* Font Awesome font-face – duplikat usunięty, definicje w liniach 3-28 */

/* --- RESET I PODSTAWY --- */
* {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Smooth scrolling dla wszystkich przeglądarek */
}

body,
html {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Lepsza stabilność na iOS (Safari) */
body {
  font-size: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  position: relative;
  width: 100%;
}

/* --- HERO SECTION / SLIDE --- */
.slide {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh + 1px);
  height: calc(100svh + 1px);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* --- HERO SECTION - NAPRAWIONY TEKST --- */
.hero-content {
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 2;
  width: 40vw;
  max-width: 900px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.slide .hero-content h1 {
  position: static !important;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  font-size: 3.2rem;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-variation-settings: "wght" 400;
  transition: font-variation-settings 1s ease-out;
}

.slide .hero-content h1:hover {
  font-variation-settings: "wght" 600;
}

.hero-subtitle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
}

/* --- HEADER I NAWIGACJA (1:1 z pierwotnej wersji) --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px 15px 15px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  transition: background 0.3s, box-shadow 0.3s;
}

header.header-overlay {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.header-left {
  flex: 2;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4d3c21;
  max-width: 400px;
}

.logo,
.company-name {
  transition: all 0.4s ease-out;
}

.header-left:hover .logo,
.header-left:hover .company-name {
  transform: scale(1.08);
}

.logo {
  margin-right: 10px;
}

.company-name {
  font-weight: bold;
  font-size: 40px;
  color: #4d3c21;
  padding-bottom: 2px;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-right ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-right a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 28px;
  min-width: 60px;
  vertical-align: middle;
}

header.header-overlay .nav-right a {
  color: #4d3c21;
}

.nav-right a:hover {
  color: #fff;
}

header.header-overlay .nav-right a:hover {
  color: #8c6b3f;
}

.nav-text-default {
  display: block;
  transition: transform 0.35s cubic-bezier(.77, 0, .18, 1), opacity 0.2s;
  will-change: transform, opacity;
  font-size: 1.1rem;
  line-height: 28px;
  pointer-events: none;
  white-space: nowrap;
}

.nav-text-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #fff;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.77, 0, .18, 1), opacity 0.2s;
  will-change: transform, opacity;
  line-height: 28px;
  font-size: 1.1rem;
  text-align: center;
  pointer-events: none;
}

header.header-overlay .nav-right a:hover .nav-text-hover {
  color: #8c6b3f;
}

.nav-right a:hover .nav-text-default,
.nav-right a:focus .nav-text-default {
  transform: translateY(100%);
  opacity: 0;
}

.nav-right a:hover .nav-text-hover,
.nav-right a:focus .nav-text-hover {
  transform: translateY(0%);
  opacity: 1;
}

/* --- PRZYCISK (icon wrapper) --- */
.button__icon-wrapper {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  position: relative;
  color: var(--clr, #8c6b3f);
  background-color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.button__icon-svg--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.button-primary:hover .button__icon-svg:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.button-primary:hover .button__icon-svg--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.77, 0, .18, 1), visibility 0.7s;
  animation: preloader-bg-pulse 2.2s ease-in-out infinite alternate;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.preloader-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 16px rgba(77, 60, 33, 0.10));
  animation: logo-pop 1s cubic-bezier(.77, 0, .18, 1);
}

.preloader-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: bold;
  color: #4d3c21;
  letter-spacing: 0.12em;
  display: flex;
  gap: 0.05em;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.10));
}

.preloader-text span {
  opacity: 0;
  transform: translateY(60px) scale(0.8) skewY(8deg);
  animation: preloader-fade-in 0.7s cubic-bezier(.77, 0, .18, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

.preloader-text span:nth-child(1) {
  --i: 0;
}

.preloader-text span:nth-child(2) {
  --i: 1;
}

.preloader-text span:nth-child(3) {
  --i: 2;
}

.preloader-text span:nth-child(4) {
  --i: 3;
}

.preloader-text span:nth-child(5) {
  --i: 4;
}

.preloader-text span:nth-child(6) {
  --i: 5;
}

.preloader-text span:nth-child(7) {
  --i: 6;
}

.preloader-text span:nth-child(8) {
  --i: 7;
}

.preloader-text span:nth-child(9) {
  --i: 8;
}

.preloader-text span:nth-child(10) {
  --i: 9;
}

.preloader-text span:nth-child(11) {
  --i: 10;
}

.preloader-text span:nth-child(12) {
  --i: 11;
}

.preloader-text span:nth-child(13) {
  --i: 12;
}

/* --- SEKCJE I UKŁAD --- */
.image-overlay {
  position: relative;
  width: 100%;
  height: auto;
  background: white;
  z-index: 2;
  padding-bottom: 1px;
}

.white-gap {
  width: 100%;
  height: 64px;
  background: #fff;
  display: block;
}

.overlay-section {
  max-width: 90vw;
  width: 100%;
  margin: 0 auto 40px auto;
  padding: 60px 48px 0 48px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(77, 60, 33, 0.06);
  position: relative;
  z-index: 10;
  scroll-margin-top: 120px;
}

.overlay-section:last-child {
  margin-bottom: 60px;
}

.overlay-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4d3c21;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  border-bottom: 2px solid #e5dccb;
  padding-bottom: 8px;
}

.overlay-section p,
.overlay-section ul {
  font-size: 1.15rem;
  color: #4d3c21;
  line-height: 1.7;
  margin-bottom: 18px;
}

.overlay-section ul {
  padding-left: 1.2em;
}

.overlay-section ul li {
  margin-bottom: 6px;
  list-style: disc inside;
}

/* --- KOMPONENTY: GALERIA I KARTY --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 auto;
  max-width: 1200px;
}

.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: #232428;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
}

.gallery-img-wrap:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.gallery-img-wrap:hover img {
  filter: brightness(1.08) saturate(1.1);
}

.saunas-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 24px;
  justify-content: center;
}

.sauna-type-card {
  background: #f6eee3;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(77, 60, 33, 0.10);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
  color: #4d3c21;
}

.sauna-type-card:hover {
  box-shadow: 0 8px 32px rgba(77, 60, 33, 0.18);
  transform: translateY(-6px) scale(1.03);
}

.sauna-type-card i {
  color: #8c6b3f;
  margin-bottom: 16px;
  font-size: 2.2rem;
}

.sauna-type-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sauna-benefits-list {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.sauna-benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 1rem;
}

.sauna-benefits-list li i {
  margin-right: 8px;
  color: #6a9955;
  font-size: 1.1rem;
  margin-top: 3px;
}

/* --- PROJEKTY I OFERTA --- */

/* Czarne sekcje - 100% szerokości, kanciaste */
.projects-dark-section {
  background: #18191c;
  color: #fff;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 64px 0;
  margin-bottom: 60px;
  border-radius: 0;
}

.projects-dark-section h2 {
  font-size: 1.8rem;
  color: #fff;
  border-bottom: none;
  margin-left: 7vw;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}

.about-white-section {
  background: #fff;
  color: #4d3c21;
  max-width: 90vw;
  width: 100%;
  margin: 0 auto 60px auto;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(77, 60, 33, 0.06);
  padding: 64px 48px 21px 48px;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-text {
  flex: 2 1 320px;
  font-size: 1.18rem;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-imgs {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-imgs img {
  width: 220px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(77, 60, 33, 0.10);
  object-fit: cover;
}

.oferta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.oferta-card {
  background: #f5ede2;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
  padding: 36px 24px 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
  color: #4d3c21 !important;
}

.oferta-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 32px 0 rgba(0, 0, 0, 0.13);
}

.oferta-card i {
  font-size: 2.5rem;
  color: #8c6b3f;
  margin-bottom: 14px;
}

.oferta-card h3,
.oferta-card p {
  color: #4d3c21 !important;
}

.oferta-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* --- FORMULARZ KONTAKTOWY --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.contact-intro-text,
.contact-info {
  grid-column: 1;
  margin-top: 18px;
}

.contact-info {
  padding-left: 20px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-info p {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.contact-info i {
  margin-right: 10px;
  color: #8c6b3f;
  width: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1.5px solid #e5dccb;
  border-radius: 8px;
  font-size: 1rem;
  background: #faf7f2;
  color: #4d3c21;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4d3c21;
  outline: none;
  box-shadow: 0 2px 12px rgba(77, 60, 33, 0.08);
}

.contact-form button[type="submit"] {
  align-self: center;
  background: linear-gradient(135deg, #8c6b3f 0%, #b8945a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 40px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(140, 107, 63, 0.3);
  letter-spacing: 0.04em;
  margin-top: 10px;
  width: 100%;
  max-width: 320px;
}

.contact-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #6b4f2d 0%, #8c6b3f 100%);
  box-shadow: 0 6px 28px rgba(140, 107, 63, 0.4);
  transform: translateY(-2px);
}

.terms-box {
  margin-bottom: 15px;
}

#terms-label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  cursor: pointer;
}

#terms-label input {
  order: 1;
  margin-top: 4px;
  margin-right: 10px;
}

#terms-label span:not(.error-text) {
  order: 2;
  flex: 1;
  font-size: 0.95rem;
  color: #4d3c21;
  line-height: 1.5;
}

#terms-label .error-text {
  order: 3;
  flex-basis: 100%;
  margin-left: 24px;
  margin-top: 6px;
  color: #d9534f;
  font-size: 0.85rem;
  font-weight: 600;
}

.terms-box a {
  text-decoration: none !important;
  color: #8c6b3f;
  font-weight: bold;
}

.input-error {
  border-color: #d9534f !important;
  box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.15) !important;
}

form>.error-text {
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: -14px;
  margin-bottom: 12px;
  display: block;
  font-weight: 500;
}

/* --- MODAL GALERII ZAKTUALIZOWANY --- */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  /* Ciemne tło galerii */
  animation: fadeInBackdrop 0.4s;
}

.gallery-modal__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: modalZoomIn 0.35s cubic-bezier(.77, 0, .18, 1);
}

.gallery-modal__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-modal__img {
  border: 5px solid #fff;
  border-radius: 2px;
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  align-self: center;
  width: auto;
}

.gallery-modal__desc {
  background: transparent;
  padding: 0;
  text-align: center;
  max-width: 100%;
}

.gallery-modal__text {
  color: #fff;
  /* Biały tekst pod zdjęciem */
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

/* Krzyżyk w prawym górnym rogu */
.gallery-modal__close {
  position: fixed;
  top: 25px;
  right: 30px;
  background: transparent;
  border: none;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.2s;
  pointer-events: auto;
}

.gallery-modal__close:hover {
  transform: scale(1.15);
  color: #ccc;
}

/* Przyciski Następny/Poprzedni */
.gallery-modal__nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 3vw;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 10000;
}

.gallery-modal__nav button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid transparent;
  color: #fff;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, border 0.3s;
}

.gallery-modal__nav button:hover {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #fff;
  transform: scale(1.1);
}

/* --- ANIMACJE I EFEKTY --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.77, 0, .18, 1), transform 0.8s cubic-bezier(.77, 0, .18, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

.fade-in-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.77, 0, .18, 1) 0.4s, transform 0.8s cubic-bezier(.77, 0, .18, 1) 0.4s;
}

.fade-in-section.is-visible .fade-in-text {
  opacity: 1;
  transform: none;
}

.fade-in-img {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: fadeInImg 0.9s cubic-bezier(.77, 0, .18, 1) forwards;
}

/* --- FOOTER (1:1 z pierwotnej wersji) --- */
.main-footer {
  background: #18191c;
  color: #d6d6d6;
  padding: 60px 4vw 30px 4vw;
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.footer-section h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li a {
  color: #d6d6d6;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: #8c6b3f;
}

.social-icons-footer {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon-footer {
  font-size: 1.5rem;
  color: #d6d6d6;
  transition: color 0.2s;
}

.social-icon-footer:hover {
  color: #8c6b3f;
}

.footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding-top: 20px;
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
}

.creator-link {
  color: #d6d6d6;
  text-decoration: none;
  transition: color 0.3s;
}

.creator-link:hover {
  color: #fff;
}

#status-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #4d3c21;
  color: #fff;
  padding: 24px 32px;
  border-radius: 8px;
  z-index: 10001;
  box-shadow: 0 4px 24px rgba(77, 60, 33, 0.3);
  text-align: center;
  animation: popupFadeIn 0.4s ease-out;
}

#status-popup.hidden {
  display: none !important;
}

.nowrap-desktop {
  white-space: nowrap;
}

.footer-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.contact-info-footer i {
  color: #8c6b3f;
  margin-right: 5px;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1400px) {
  .saunas-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .about-content {
    flex-direction: column;
    gap: 24px;
  }

  .about-imgs {
    flex-direction: row;
    gap: 12px;
  }

  .about-imgs img {
    width: 48vw;
    min-width: 120px;
  }
}

@media (max-width: 900px) {
  .about-white-section {
    padding: 32px 4vw;
    width: 100%;
  }

  .oferta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {

  /* NAWIGACJA MOBILNA WIDOK 1:1 z pierwotnej wersji */
  header {
    padding: 10px 20px;
  }

  .header-left {
    font-size: 0.85rem;
  }

  .header-left .logo {
    height: 2.5rem;
    width: auto;
  }

  .company-name {
    font-size: 24px;
  }

  .nowrap-desktop {
    white-space: normal;
  }

  .saunas-types-grid,
  .oferta-grid,
  .gallery {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .projects-dark-section h2,
  #services h2 {
    margin-left: 20px;
    font-size: 2rem;
    margin-right: 80px;
  }

  .overlay-section h2 {
    font-size: 2rem;
  }

  .nav-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 1000;
  }

  .nav-right.active {
    transform: translateX(0);
  }

  .nav-right ul {
    flex-direction: column;
    text-align: center;
  }

  .nav-right ul li a {
    font-size: 1.5rem;
    color: #4d3c21;
    text-shadow: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #4d3c21;
    transition: all 0.3s;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .hero-content {
    left: 50%;
    bottom: auto;
    transform: translateX(-50%);
    text-align: center;
    align-items: center;
    gap: 10px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .contact-form,
  .contact-intro-text,
  .contact-info {
    grid-column: 1;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-info {
    padding-left: 0;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .contact-info p {
    justify-content: center;
  }

  .overlay-section {
    padding: 60px 20px;
  }

  .about-imgs img {
    width: 100%;
    max-width: 350px;
  }

  /* Kontakt - centering na mobile */
  .contact-form button[type="submit"] {
    align-self: center;
  }

  .map-container {
    text-align: center;
  }

  .map-container h3 {
    text-align: center;
  }

  .map-area-text {
    text-align: center;
  }

  .local-badge {
    justify-content: center;
    display: flex;
    width: 100%;
  }

  .local-highlight {
    text-align: center;
  }

  /* FOOTER MOBILNY */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons-footer {
    justify-content: center;
  }

  .main-footer {
    padding-bottom: 90px;
  }

  /* Miejsce na floating CTA */
}

@media (max-width: 480px) {
  .header-left .logo {
    height: 2.2rem;
    width: auto;
  }

  .company-name {
    font-size: 20px;
  }
}

@media (max-width: 330px) {

  .header-left .logo {
    height: 2rem;
    width: auto;
  }

  .company-name {
    font-size: 18px;
  }
}

/* --- HERO CTA GROUP --- */
.hero-cta-group {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
}

.button-primary {
  --clr: #8c6b3f;
  position: relative;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #8c6b3f 0%, #b8945a 100%);
  color: #fff;
  border-radius: 10rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  padding-left: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s, transform 0.15s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(140, 107, 63, 0.35);
  font-size: 1.05rem;
}

.button-primary:hover {
  background: linear-gradient(135deg, #6b4f2d 0%, #8c6b3f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(140, 107, 63, 0.45);
}

.button-primary:hover .button__icon-wrapper {
  color: #6b4f2d;
}

.button-phone {
  position: relative;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 10rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  white-space: nowrap;
  transition: background 0.3s, transform 0.15s;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 1rem;
}

.button-phone:hover {
  background: #fff;
  color: #4d3c21;
  border-color: #fff;
  transform: translateY(-2px);
}

.button-phone i {
  font-size: 0.95rem;
}

/* --- HERO PRICE BADGE --- */
.hero-price-badge {
  display: inline-block;
  background: rgba(140, 107, 63, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  align-self: flex-start;
  margin-top: 4px;
}

/* --- PROCESS SECTION --- */
.process-section {
  padding-bottom: 48px !important;
}

.process-subtitle {
  color: #bbb;
  font-size: 1.1rem;
  margin-left: 7vw;
  margin-bottom: 36px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.process-step {
  background: #232428;
  border-radius: 18px;
  padding: 32px 20px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(140, 107, 63, 0.15);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(140, 107, 63, 0.2);
  border-color: rgba(140, 107, 63, 0.4);
}

.process-step-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(140, 107, 63, 0.3);
  margin-bottom: 8px;
  line-height: 1;
}

.process-step i {
  font-size: 2rem;
  color: #8c6b3f;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.5;
}

/* --- FAQ SECTION --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5dccb;
  overflow: hidden;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4d3c21;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #8c6b3f;
}

.faq-chevron {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  color: #8c6b3f;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 8px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 8px 20px;
}

.faq-answer p {
  font-size: 1rem;
  color: #5a4630;
  line-height: 1.7;
}

/* --- CONTACT LINK STYLES --- */
.contact-link {
  color: #4d3c21;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #8c6b3f;
}

.footer-link {
  color: #d6d6d6;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #8c6b3f;
}

/* --- LOCAL BADGE --- */
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f6eee3;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #4d3c21;
  font-weight: 600;
  border: 1px solid #e5dccb;
}

.local-badge i {
  color: #8c6b3f;
  font-size: 1.1rem;
}

.local-highlight {
  background: #f6eee3;
  padding: 14px 20px;
  border-radius: 12px;
  border-left: 4px solid #8c6b3f;
  margin-top: 8px;
}

.local-highlight i {
  color: #8c6b3f;
  margin-right: 6px;
}

/* --- MAP CONTAINER --- */
.map-container {
  margin-top: 40px;
  padding-bottom: 30px;
}

.map-container h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4d3c21;
  margin-bottom: 8px;
}

.map-area-text {
  font-size: 0.95rem;
  color: #5a4630;
  margin-bottom: 16px;
}

.map-area-text i {
  color: #8c6b3f;
  margin-right: 8px;
  flex-shrink: 0;
}

.map-container iframe {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(77, 60, 33, 0.08);
}

/* --- FORM SELECT --- */
.contact-form select {
  padding: 12px 14px;
  border: 1.5px solid #e5dccb;
  border-radius: 8px;
  font-size: 1rem;
  background: #faf7f2;
  color: #4d3c21;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234d3c21'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.contact-form select:focus {
  border-color: #4d3c21;
  outline: none;
  box-shadow: 0 2px 12px rgba(77, 60, 33, 0.08);
}

/* --- FLOATING CTA MOBILE --- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  padding: 10px 16px;
  background: rgba(24, 25, 28, 0.95);
  backdrop-filter: blur(8px);
  gap: 10px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.floating-cta.visible {
  transform: translateY(0);
}

.floating-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4d3c21;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.floating-cta-phone:hover {
  background: #8c6b3f;
}

.floating-cta-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #8c6b3f 0%, #b8945a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.floating-cta-form:hover {
  background: linear-gradient(135deg, #6b4f2d 0%, #8c6b3f 100%);
}

/* --- RESPONSIVE: PROCESS --- */
@media (max-width: 1100px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-cta-group {
    bottom: 30px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
    width: 90vw;
    max-width: 400px;
    justify-content: center;
  }

  .button-primary {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    padding: 14px 16px;
  }

  .button-phone {
    flex-shrink: 0;
    justify-content: center;
    font-size: 0.9rem;
    padding: 14px 18px;
  }

  .hero-price-badge {
    align-self: center;
    font-size: 0.85rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .process-subtitle {
    margin-left: 20px;
    margin-right: 20px;
  }

  .process-section h2 {
    margin-left: 20px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 16px 4px;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }

  .floating-cta {
    display: flex;
  }

  .local-badge {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .local-highlight {
    padding: 12px 16px;
  }

  .map-container iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    bottom: 15vh;
  }

  .slide .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-cta-group {
    bottom: 25px;
    width: 92vw;
    gap: 8px;
  }

  .button-primary {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .button-phone {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .hero-price-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .process-step {
    padding: 24px 16px 22px;
  }

  .process-step-number {
    font-size: 2rem;
  }
}

/* --- KEYFRAMES --- */
@keyframes preloader-bg-pulse {
  0% {
    background: #fff;
  }

  100% {
    background: #f6eee3;
  }
}

@keyframes logo-pop {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-10deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.1) rotate(3deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes preloader-fade-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1) skewY(0deg);
  }
}

@keyframes fadeInImg {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
/* --- OPINIE KLIENTÓW --- */
.opinie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.opinia-card {
  background: #232428;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: left;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(140, 107, 63, 0.15);
}

.opinia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(140, 107, 63, 0.2);
  border-color: rgba(140, 107, 63, 0.4);
}

.opinia-stars {
  color: #f39c12;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.opinia-text {
  font-size: 1rem !important;
  color: #e5dccb !important;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px !important;
}

.opinia-author {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
