/* ======================
   FONT & ZMIENNE KOLORÓW
====================== */
:root {
  --color-accent: #e2611e;
  --color-accent-dark: #b24914;
  --color-accent-hover: #b24914;
  --color-accent-light: #fd7e3b;
  --color-accent-soft: #fff1e8;
  --color-secondary: #0d6986;
  --color-secondary-dark: #07485b;
  --color-secondary-soft: #eaf5f7;
  --color-sage: #2a4858;
  --color-sage-light: #8ec7d2;
  --color-wood: #7d5742;
  --color-wood-dark: #4a3d36;
  --color-text-strong: #332f2c;
  --color-text-muted: #6b5f57;
  --color-bg-warm: #faf7f3;
  --color-bg-cream: #fff8f2;
  --color-bg-green-soft: #f6fbf3;
  --color-bg: #faf9f6;
  --color-bg-hero: #fff;
  --color-bg-menu: rgba(255,255,252,0.93);
  --color-bg-overlay: rgba(34,30,28,0.22);
  --color-bg-glass: rgba(255,255,255,0.68);
  --color-text: #1b1a18;
  --color-text-light: #fff;
  --shadow-hero: 0 10px 40px #0002,0 2px 12px #e2611e10;
  --shadow-menu: 8px 0 36px #0002,0 8px 28px #e2611e18;
  --border-radius-xl: 32px;
  --border-radius-m: 14px;
  --font-family: 'Inter',Arial,sans-serif;
  --heading-align: center;
  --heading-color: #e2611e;
  --heading-size: 2.4em;
  --heading-weight: 800;
  --heading-margin-bottom: 30px;
  --heading-letter-spacing: -0.02em;
  --heading1-color-dark: var(--color-accent-dark);
  --heading1-color-complement: var(--color-secondary);
  --heading1-color-accent: var(--color-accent);    /* #e2611e */
  --heading1-color-neutral: var(--color-text);     /* #1b1a18 (czarny) */
  --container-min: 320px;
  --container-max: 1200px;
  --container-padding-block: 40px;
  --container-padding-inline: 20px;
  --baseline-gap: 2rem;
  --radius: 14px;
  --border-radius-s: 10px;
}

/* ======================
   KONTENER DLA PODSTRON
====================== */
.container_site {
  width: clamp(var(--container-min), 90%, var(--container-max));
  margin-inline: auto;
  padding: var(--container-padding-block) var(--container-padding-inline);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--baseline-gap);
  min-width: 0; /* zapobiega wycinaniu flex/grid children */
}


/* ======================
   RESET & GLOBAL
====================== */
html,body {
  margin:0;
  padding:0;
  font-family:var(--font-family);
  font-size:17px;
  color:var(--color-text);
  background:var(--color-bg);
  scroll-behavior:smooth;
  overflow-x: hidden;
}
*,*:before,*:after { box-sizing:border-box; }
.site-icon { display:inline-block; width:1em; height:1em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:-.125em; flex:none; }
.form-feedback { position:fixed; z-index:2000; top:120px; right:20px; display:grid; gap:.35rem; max-width:min(440px,calc(100vw - 40px)); padding:1rem 2.75rem 1rem 1.2rem; border:1px solid #b8dcc3; border-left:5px solid #25814c; border-radius:12px; color:#163824; background:#fff; box-shadow:0 12px 34px #0003; }
.form-feedback--error { border-color:#eac3b7; border-left-color:#bb4437; color:#571f1a; }
.form-feedback ul { margin:.2rem 0 0; padding-left:1.2rem; }
.form-feedback button { position:absolute; top:.4rem; right:.6rem; padding:.2rem .45rem; border:0; background:transparent; color:inherit; font-size:1.5rem; cursor:pointer; }
@media (max-width:600px) { .form-feedback { top:74px; right:10px; max-width:calc(100vw - 20px); } }
*:focus-visible {
  outline:2px solid var(--color-accent);
  outline-offset:1.5px;
}
img { max-width:100%; height:auto; display:block; }
a {
  color:var(--color-accent);
  text-decoration:none;
  transition:color .2s;
}
a:hover,a:focus { color:var(--color-accent-dark); text-decoration:underline; }
.text-center { text-align:center; }
.container,.container1,.full-width-container {
  width:94%;
  max-width:1200px;
  margin:0 auto;
}




/* ======================
   HEADER – LAYOUT
====================== */
body {
  padding-top: 120px;     
}

@media (max-width: 767px) {
  body {
    padding-top: 76px;
  }

  .main-header {
    padding: 6px 0;
  }

  .header-inner {
    padding: 8px 18px;
  }

  .logo-header img {
    height: 44px;
  }

  .home-hero,
  .offer-hero,
  .realizations-hero,
  .site-contact-hero,
  .faq-page-hero,
  .seo-hero {
    padding-top: 26px !important;
  }

  .about-name-section {
    padding-top: 1.1rem !important;
  }

  .container_site.wycena-page {
    padding-top: 20px !important;
  }
}

h2 {
  text-align: var(--heading-align);
  color: var(--heading-color);
  font-size: var(--heading-size);
  font-weight: var(--heading-weight);
  margin-bottom: var(--heading-margin-bottom);
  letter-spacing: var(--heading-letter-spacing);
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  h2 {
    font-size: 1.8em; 
    margin-bottom: 20px; 
  }
}

.main-header {
  position: fixed;
  top:0;
  z-index:999;
  width:100%;
  background:transparent;
  padding:22px 0 10px 0;
  transition:background .3s ease,box-shadow .3s ease,backdrop-filter .3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.42);
}
.main-header::after {
  content:"";
  position:absolute;
  inset-inline:0;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,#0002 50%,transparent);
  pointer-events:none;
}
.main-header.scrolled {
  background:rgba(33,33,33,.9);
  backdrop-filter:blur(10px);
  box-shadow:0 4px 16px rgba(0,0,0,.25);
}
.main-header.scrolled .main-nav a,
.main-header.scrolled .btn-primary.header-cta {
  color:#fff;
}
.main-header.scrolled .btn-primary.header-cta {
  background:var(--color-accent);
}
.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
    flex-wrap:nowrap;        /* wymusza jeden wiersz */
  column-gap:56px;         /* odstęp między logo a następnym blokiem */
  max-width:1240px;
  margin:0 auto;
  padding:16px 24px;
}

/* === LOGO === */
.logo-header img {
  height:68px;
  width:auto;
  filter:drop-shadow(0 14px 34px rgba(226,97,30,.22));
  transition:filter .22s ease;
}
.logo-header:hover img,
.logo-header:focus img {
  filter:drop-shadow(0 15px 34px rgba(226,97,30,.26)) drop-shadow(0 2px 10px rgba(30,30,30,.14));
}
@media (max-width:600px) {
  .logo-header img { height:46px; }
}

/* ===== LOGO kolor & rozmiar po scrollu ===== */
.logo-header svg{
  height:58px;                       /* wysokość startowa */
}

.main-header.scrolled .logo-header svg{
  height:42px;                       /* mniejsze logo po scrollu */
}

/* ===== Header: mniejszy padding po przewinięciu ===== */
.main-header{ padding:18px 0 8px 0; transition:padding .25s; }
.main-header.scrolled{ padding:8px 0; }


/* === MOBILE WRAP & HAMBURGER === */
.header-mobile-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  position:relative;
}
.logo-header {
  flex:1 1 0;
  display:flex;
  justify-content:center;
}
.hamburger {
  display:none;
  background:none;
  border:none;
  font-size:2em;
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  color:var(--color-accent);
  cursor:pointer;
  transition:color .19s;
  z-index:30;
}
.hamburger .site-icon { transition:transform .25s ease; }
.hamburger:active .site-icon,
.hamburger:focus .site-icon { transform:scale(1.15) rotate(90deg); }
.hamburger.active .site-icon,
.hamburger:hover .site-icon { color:var(--color-accent-dark); }
@media (max-width:950px) { .hamburger { display:block; } }

/* === CTA BUTTON (HEADER) === */
.btn-primary.header-cta{
  /* wygląd podstawowy */
  display:inline-block;
  background:var(--color-accent);
  color:var(--color-text-light);
  white-space:nowrap;
  padding:15px 36px;          /* wygodny „klik” */
  border-radius:36px;         /* pełniejsze zaokrąglenie */
  font-size:1.15em;
  font-weight:700;
  border:none;
  box-shadow:0 3px 18px rgba(226,97,30,.45);
  transition:
    background   .22s,
    transform    .18s,
    box-shadow   .22s;
}

.btn-primary.header-cta:hover,
.btn-primary.header-cta:focus{
  background:#fd7e3b;                          /* jaśniejszy accent */
  box-shadow:0 7px 26px rgba(226,97,30,.55);   /* mocniejszy cień */
  transform:translateY(-2px) scale(1.05);      /* lekki „podskok” */
}

/* — responsywnie: przycisk w jednej kolumnie pod hamburgerem — */
@media (max-width:950px){
  .btn-primary.header-cta{
    display:block;
    width:92%;
    margin:12px auto 14px;
    font-size:1.1em;
    padding:15px 0;
    text-align:center;
    box-shadow:0 4px 20px rgba(226,97,30,.5);
  }
}



/* === MAIN NAV (DESKTOP) === */
.main-nav ul {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:38px;
}
.main-nav a {
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:600;
  font-size:1.14em;
  color:var(--color-accent);
  position:relative;
  transition:color .2s;
   white-space: nowrap;
}
.main-nav a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--color-accent);
  transition:width .25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus::after { width:100%; }
.main-nav a:hover,
.main-nav a:focus { color:var(--color-accent-dark); }
@media (max-width:950px) { .main-nav { display:none; } }

/* ======================
   MOBILE NAV OVERLAY & PANEL
====================== */
#mobileOverlay,
.mobile-overlay {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background:var(--color-bg-overlay);
  opacity:0;
  transition:opacity .35s cubic-bezier(.25,.1,.25,1);
  z-index:998;
}
#mobileOverlay.active,
.mobile-overlay.active {
  display:block;
  opacity:1;
  pointer-events:all;
}
.mobile-nav {
  position:fixed;
  top:0;
  left:0;
  width:84vw;
  max-width:370px;
  height:100vh;
  background:var(--color-bg-menu);
  backdrop-filter:blur(18px) saturate(1.7);
  -webkit-backdrop-filter:blur(18px) saturate(1.7);
  box-shadow:var(--shadow-menu);
  padding:48px 30px 0 30px;
  display:flex;
  flex-direction:column;
  pointer-events:none;
  opacity:0;
  transform:translateX(-100px) scale(.97);
  transition:opacity .24s cubic-bezier(.36,1.07,.76,1.04),transform .31s cubic-bezier(.36,1.07,.76,1.04);
  z-index:1000;
}
.mobile-nav.active {
  opacity:1;
  transform:translateX(0) scale(1);
  pointer-events:all;
}
#mobileClose,
.mobile-close {
  background:none;
  border:none;
  font-size:2.2em;
  color:var(--color-accent);
  position:absolute;
  top:22px;
  right:26px;
  cursor:pointer;
  transition:color .16s;
}
#mobileClose:hover,
#mobileClose:focus,
.mobile-close:hover,
.mobile-close:focus { color:var(--color-accent-dark); }

/* --- Mobile nav list --- */
.mobile-nav ul {
  list-style:none;
  margin:58px 0 0 0;
  padding:0;
  width:100%;
  display:flex;
  flex-direction:column;
  animation:fadeInUp .48s cubic-bezier(.44,1.14,.82,.98) both;
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(38px); }
  to   { opacity:1; transform:none; }
}
.mobile-nav li { position:relative; border-bottom:1.5px solid #f3ece6; }
.mobile-nav li:last-child { border-bottom:none; }
.mobile-nav li a {
  display:block;
  color:var(--color-accent);
  font-size:1.22em;
  font-weight:700;
  padding:18px 0 18px 2px;
  transition:background .19s,color .16s,padding-left .17s,box-shadow .14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background:#fff6ef;
  color:var(--color-accent-dark);
  padding-left:14px;
  box-shadow:0 2px 16px #e2611e13;
  text-decoration:none;
}
body.mobile-nav-open { overflow:hidden; }

/* small mobile tweaks */
@media (max-width:600px) {
  .mobile-nav {
    width:97vw;
    max-width:99vw;
    padding:38px 9px 0 9px;
  }
  .mobile-nav ul { margin-top:39px; }
  #mobileClose { top:13px; right:13px; font-size:2em; }
}


/* ======================
   HERO SECTION
====================== */

.hero-section {
  position: relative;
  min-height: 480px;
  background: var(--color-bg-hero);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text-only {
  display: none;
}

.slideshow-bg {
	  background-image: url('/img/hero1.webp');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: background-image 1s, opacity 1s;
  will-change: background-image, opacity;
  z-index: 0;
}


.slideshow-bg.fade-out {
  opacity: 0;
}

.slideshow-bg.fade-in {
  opacity: 1;
}

@media (max-width: 600px) {
  .slideshow-bg {
    background-image: url('/img/hero1_m.webp');
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* HERO BOX */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: clamp(280px, 60%, 90%);
  margin: 40px auto;
  padding: 50px 36px 36px 36px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: scaleIn 0.7s cubic-bezier(.4, 0, .2, 1);
  transition: box-shadow 0.25s;
}

@keyframes scaleIn {
  from {
    transform: scale(.96);
    opacity: .7;
    border-radius: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
    border-radius: var(--border-radius-xl);
  }
}

.hero-content h1 {
  font-size: 2.7em;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: -0.5px;
  color: var(--heading1-color-neutral);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

.hero-content span {
  display: block;
  font-size: .63em;
  color: #252525;
  font-weight: 500;
  margin-bottom: 6px;
}

.hero-content p {
  color: #222;
  font-size: 1.17em;
  margin: 0 0 22px 0;
}

/* CTA – przycisk */
.btn-primary.hero-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-light);
  padding: 16px 38px;
  border-radius: 36px;
  font-size: 1.18em;
  font-weight: 700;
  box-shadow: 0 3px 18px rgba(226, 97, 30, .27);
  cursor: pointer;
  transition: background .2s, transform .16s, box-shadow .2s;
  animation: heroPulse 2.8s ease-in-out infinite;
  border: none;
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(226, 97, 30, .5);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 18px rgba(226, 97, 30, 0);
  }
  100% {
    transform: scale(1);
  }
}

.btn-primary.hero-btn:hover,
.btn-primary.hero-btn:focus {
  background: #fd7e3b;
  transform: scale(1.065);
  box-shadow: 0 9px 28px rgba(226, 97, 30, .4);
}

/* HERO ICONS */
.hero-icons {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.hero-icons span {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 23px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  font-size: 1.14em;
  font-weight: 600;
  color: #2a2a2a;
  transition: box-shadow .18s, transform .18s;
}

.hero-icons span:hover {
  box-shadow: 0 6px 26px rgba(230, 97, 30, .14);
  transform: translateY(-4px) scale(1.08) rotate(-2deg);
  background: #fff8f4;
}

.hero-icons .site-icon {
  color: var(--color-accent);
  font-size: 1.19em;
  transition: color .17s, transform .22s;
}

.hero-icons span:hover .site-icon {
  color: var(--color-accent-dark);
  transform: scale(1.15) rotate(9deg);
}

/* Fade-in (Intersection Observer) */
.fade-in-element {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s ease-out, transform .42s ease-out;
}

.fade-in-element.in-view {
  opacity: 1;
  transform: none;
}





/* Stare sekcje WHY/ATUTY usunięte wraz z poprzednią stroną /konstrukcje/. */

/* Galeria została przeniesiona do /css/gallery.css i jest ładowana warunkowo. */

/* Nowa oferta ma osobny arkusz: /css/oferta.css. */

/* ======================
   SEKJA CTA (CALL TO ACTION)
====================== */
.cta-section {
    padding: 50px 0;
    background: #f6f6f6;
    text-align: center;
}
.cta-section h2 {
    color: #e2611e;
    font-size: 2em;
    margin-bottom: 12px;
    font-weight: 700;
}
.cta-section p {
    color: #333;
    font-size: 1.13em;
    margin-bottom: 18px;
}
.cta-section .btn-primary {
    margin-top: 14px;
    text-align: center;
}

/* Stara sekcja etapów usunięta wraz z poprzednią stroną /konstrukcje/. */

/* Modal PDF nie jest obecnie ładowany przez osobny arkusz starej strony. */

/* Strona wyceny korzysta z własnych stylów inline w tresc_wycena.php. */

/* ======================
   SEKJA STOPKA (FOOTER)
====================== */
.footer-wrapper {
    background: #212121;
    color: #eee;
    padding: 38px 0 20px 0;
    margin-top: 44px;
}
.footer-container {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}
.footer-column {
    flex: 1 1 200px;
    max-width: 340px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column li {
    margin-bottom: 9px;
    color: #fff;
    font-size: 1.04em;
}
.footer-column a {
    color: #ff8833;
    font-weight: 500;
}
.footer-column a:hover {
    color: #fff;
}


/* Fade-in bazowe */
.fade-in-element{
  opacity:0;
  transition:opacity .55s ease-out, transform .55s ease-out;
}

/* ► klasy kierunkowe / efektowe ••••••••••••••••• */

/* domyślne (z dołu) — nic nie zmieniamy, bo używa translateY z JS */
.fade-up      { transform:translateY(40px); }

.fade-left    { transform:translateX(-40px); }
.fade-right   { transform:translateX(40px);  }

.fade-zoom    { transform:scale(.85);        }

/* ► stan po wejściu */
.fade-in-element.in-view{
  opacity:1;            /* wspólne */
  transform:none;       /* zeruje translate / scale */
}


/* ===== UNIWERSALNE SEKCJE ===== */
section{
  padding: 30px 0;               
}
section + section{               
  margin-top: 20px;
}

/* Jasne tło naprzemiennie (dodaj klasę .section-alt) */
.section-alt {
  background: #fffaf7;
}

.section-title {
  color: #e2611e;
  text-align: center;
}

/* Delikatny separator (użyj <div class="section-separator"></div>) */
.section-separator{
  height:1px;
  width:92%;
  max-width:1240px;
  margin:0 auto;
  background:linear-gradient(90deg,transparent,#e6e6e6 15%,#e6e6e6 85%,transparent);
}


/* Bloki czysto-tekstowe – zawęź kolumnę i zwiększ leading */
.info-section,
.audience-section,
.offer-section{
  max-width: 960px;
  margin: 0 auto;        /* wyśrodkowanie */
  line-height: 1.65;
  font-size: 1.05em;
}
.info-section h2,
.audience-section h2,
.offer-section h2{
  text-align:center;
  color:var(--color-accent);
  margin-bottom:34px;
  font-size:2.1em;
  font-weight:800;
}
.info-section ul{ padding-left: 1.3em; }
.info-section li{ margin-bottom: 6px; }


/* Układ: grid (≥740 px  --> 2 kolumny) */
.form-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:48px;
}

/* Karta formularza */
.contact-card{
  padding:40px 32px;
  border-radius:20px;
  box-shadow:0 6px 26px rgba(0,0,0,.05);
  background:#fff;
  max-width:100%;
}
.contact-card h3{ font-size:1.4em; margin-bottom:22px; color:var(--color-accent); }

/* Grupa pola */
.form-group{ margin-bottom:20px; }
.form-group label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
}
input[type=text],
input[type=email],
input[type=tel],
textarea,
select{
  width:100%;
  font-size:1em;
  padding:12px 14px;
  border:1.5px solid #ddd;
  border-radius:10px;
  transition:border-color .22s, box-shadow .22s;
  appearance:none;
}
input:focus,
textarea:focus,
select:focus{
  border-color:var(--color-accent);
  box-shadow:0 0 0 3px rgba(226,97,30,.18);
  outline:none;
}

/* Przycisk Wyślij */
.submit-btn{
  display:inline-block;
  width:100%;
  padding:16px 28px;
  font-size:1.1em;
  font-weight:700;
  border:none;
  border-radius:36px;
  background:var(--color-accent);
  color:#fff;
  box-shadow:0 4px 18px rgba(226,97,30,.45);
  cursor:pointer;
  transition:background .22s, box-shadow .22s, transform .18s;
}
.submit-btn:hover,
.submit-btn:focus{
  background:#fd7e3b;
  box-shadow:0 7px 28px rgba(226,97,30,.55);
  transform:translateY(-2px);
}







/* ======================
   scroll-to-top
====================== */

.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: #fff;
    color: #e2611e;
    border-radius: 50%;
    box-shadow: 0 2px 15px #e2611e1f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1em;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 1999;
    transition: opacity 0.2s, background 0.18s;
    border: 2px solid #ffe6db;
}
.scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
.scroll-to-top:hover {
    background: #ffe6db;
}
@media (max-width: 600px) {
    .scroll-to-top { width: 38px; height: 38px; font-size: 1.4em; bottom: 18px; right: 12px; }
}



/* ======================
   STOPKA: CIEMNA WERSJA
====================== */

.footer-wrapper {
  background: #222;         /* bardzo ciemne tło */
  color: #eee;              /* jasny tekst */
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 40px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pionowa kreska między kolumnami */
.footer-column + .footer-column {
  border-left: 1px solid #444;
  padding-left: 2rem;
}

/* Nagłówki sekcji */
.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e2611e;           /* akcentowy pomarańcz */
}

/* Kontakt */
.contact-info p {
  margin: 0 0 0.5rem;
}
.contact-info .nip {
  margin-top: 1rem;
  color: #ccc;
  font-weight: 400;
}

/* Linki */
.contact-info a,
.footer-nav a {
  color: #e2611e;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-info a:hover,
.footer-nav a:hover {
  color: #ff8a4c;
}

/* Nawigacja */
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  margin-bottom: 0.5rem;
}

/* Dolna stopka */
.footer-bottom {
  text-align: center;
  padding: 1rem 2rem;
  background: #111;
  font-size: 0.85rem;
  color: #888;
}

.footer-bottom p {
  margin: 0;
}

/* Responsywność */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
  }
  .footer-column + .footer-column {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
  }
}


/* Mobile: spokojniejsze wyróżnienie „Szybkich linków” w stopce */
@media (max-width: 600px) {
  .footer-column--quick-links {
    width: 100%;
    max-width: 100%;
    padding: 18px 18px 16px;
    border: 1px solid rgba(13, 105, 134, 0.26);
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(13, 105, 134, 0.16), rgba(13, 105, 134, 0.07)),
      rgba(255, 255, 255, 0.035);
  }

  .footer-column--quick-links .footer-heading {
    color: #9fd4e2;
    text-align: center;
  }

  .footer-column--quick-links .footer-nav {
    display: grid;
    gap: 8px;
  }

  .footer-column--quick-links .footer-nav li {
    margin: 0;
  }

  .footer-column--quick-links .footer-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    color: #eaf7fb;
    background: rgba(13, 105, 134, 0.18);
    text-align: center;
  }

  .footer-column--quick-links .footer-nav a:hover,
  .footer-column--quick-links .footer-nav a:focus-visible {
    color: #ffffff;
    background: rgba(13, 105, 134, 0.34);
  }
}

/* GLightbox touch-action przeniesiony do /css/gallery.css */



/* ======================
   RESPONSYWNOŚĆ – WSPÓLNA
====================== */


/* Stary flip hint dla sekcji WHY usunięty wraz z poprzednią stroną /konstrukcje/. */

/* 1) Tablety / małe desktopy */
@media (max-width: 950px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 6px;
    column-gap: 0;
  }

  .header-mobile-wrap {
    margin-bottom: 12px;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    display: block; /* zamiast flex na mobile */
    margin: 16px auto;
    padding: 28px 8px 20px;
    border-radius: var(--border-radius-xl);
    max-width: 95vw;
    box-sizing: border-box;
    text-align: center;
    background: var(--color-bg-glass);
    box-shadow: var(--shadow-hero);
    backdrop-filter: blur(4px);
  }

  .hero-content h1 {
    font-size: 1.1em;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1em;
  }

  .hero-icons {
    flex-direction: column;
    gap: 8px;
  }
}

/* 2) Kompaktowy footer (≤700px) */
@media (max-width: 700px) {
  .footer-wrapper {
    padding: 18px 0 8px;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}

/* 3) Pełna przebudowa hero na telefonie (≤600px) */
@media (max-width: 600px) {
  /* Header mobilny jest stały, ale nie powinien tworzyć dużej pustki nad treścią. */
  body {
    padding-top: clamp(74px, 16vw, 92px);
  }

  /* hero-section jako statyczne tło */
  .hero-section {
    min-height: 340px;
    display: block;
    overflow: hidden;
    position: relative;
    background-attachment: scroll; /* wyłącz parallax */
  }

  /* ukrywamy ciemny overlay */
  .hero-overlay {
    display: none !important;
  }

  /* hero-content jako statyczny kontener pod zdjęciem */
  .hero-content {
    position: static !important;
    width: 96vw !important;
    max-width: none !important;
    margin: 12px auto 24px !important;
    padding: 24px 16px !important;
    background: rgba(255, 255, 255, 0.50) !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1) !important;
    backdrop-filter: blur(4px) !important;
  }

  .hero-content h1 { font-size: 1.2em; }
  .hero-content p  { font-size: 1em; }

  /* przycisk “Bezpłatna wycena” w headerze */
  .btn-primary.header-cta {
    padding: 10px 28px !important; /* 10px pionowo, 28px w poziomie */
    font-size: 1em !important;
  }

  /* logotyp i ikony w hero */
  .logo-header img {
    height: 46px;
  }
  .hero-icons span {
    font-size: 0.96em;
    padding: 8px 13px;
    border-radius: 13px;
    text-align: center;
  }
}
/* Mobilne kafelki nowej oferty są w /css/oferta.css. */


/* Przycisk CTA (opcja) */
.cta-btn {
  display: inline-block;
  background: #ea711b;
  color: #fff;
  font-weight: bold;
  border-radius: 2em;
  padding: 0.9em 2em;
  box-shadow: 0 2px 12px rgba(234,113,27,0.12);
  text-decoration: none;
  margin-top: 16px;
  transition: background 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: #d35e08;
  box-shadow: 0 4px 24px rgba(234,113,27,0.15);
}




/* ===== HERO MOBILE ===== */
@media (max-width: 600px) {
  /* Hero sekcja – mobile: pionowo, pełna szerokość */
  .hero-section.hero-slideshow {
    width: 100vw !important;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 0;
    height: auto;
    background: transparent;
    overflow: visible;
  }
  /* Pokazuj tylko tło/slideshow, bez nakładek i contentu */
  .hero-section.hero-slideshow .hero-overlay,
  .hero-section.hero-slideshow .hero-gradient,
  .hero-section.hero-slideshow .hero-content,
  .hero-section.hero-slideshow .hero-video {
    display: none !important;
  }
  .hero-section.hero-slideshow .slideshow-bg {
    display: block !important;
    position: relative !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 95vh !important;          /* Główna wysokość hero – 95% ekranu */
    min-height: 620px !important;     /* Minimum, jeśli ekran niski */
    max-height: 100vw !important;     /* opcjonalnie: nie rośnij za bardzo na bardzo wysokich ekranach */
    padding: 0 !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  /* Ukryj sekcję tekstową na overlayu (desktop hero-content) */
  .hero-section.hero-slideshow .hero-content {
    display: none !important;
  }
  /* Wyświetl sekcję z tekstem pod spodem */
  .hero-section.hero-text-only {
    display: block !important;
    width: 100vw;
     margin: 20px auto 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
  }
  .hero-section.hero-text-only .hero-content {
    display: block !important;
    margin: 0 auto 32px auto !important;
    width: 95vw !important;
    padding: 24px 12px !important;
    background: rgba(255,255,255,0.93) !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(6px) !important;
    text-align: center;
    color: #232323;
  }
}





/* ======================
   DODATKOWE STYLE: HOME / A11Y / THANK YOU
====================== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Style HOME przeniesione do /css/home.css */

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 20px;
  text-align: center;
  padding: 32px;
}

.thank-you-message {
  max-width: 720px;
  background: #fff;
  padding: 34px 28px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.thank-you-title {
  color: var(--color-accent);
  margin: 0 0 12px;
}

.thank-you-text {
  margin: 0;
  font-size: 1.1em;
}

.thank-you-back-home {
  display: inline-block;
  justify-self: center;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.thank-you-back-home:hover,
.thank-you-back-home:focus {
  color: #fff;
  background: var(--color-accent-dark);
  text-decoration: none;
}

.site-contact__map-address {
  text-align: center;
  margin-top: -18px;
  margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* Mobile HOME przeniesione do /css/home.css */



/* =========================================================
   DAPAL — FINAL HEADER FIX /konstrukcje
   ========================================================= */

/* Header po przewinięciu — działa tylko, gdy JS doda .scrolled. */
.main-header.scrolled {
  background: rgba(33, 33, 33, .94) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25) !important;
}

.main-header.scrolled .main-nav a,
.main-header.scrolled .btn-primary.header-cta {
  color: #fff !important;
}

.main-header.scrolled .main-nav a::after {
  background: #fff !important;
}

.main-header.scrolled .btn-primary.header-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
}

/* Desktop header: logo nie może zajmować 100% szerokości. */
@media (min-width: 951px) {
  .main-header {
    left: 0;
    right: 0;
  }

  .header-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(24px, 4vw, 56px) !important;
    flex-wrap: nowrap !important;
  }

  .header-mobile-wrap {
    width: auto !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
  }

  .logo-header {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .logo-header img {
    display: block !important;
    width: auto !important;
    max-width: 220px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .main-header:not(.scrolled) .logo-header img {
    height: 58px !important;
  }

  .main-nav {
    display: block !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .main-nav ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(20px, 2.4vw, 38px) !important;
  }

  .main-nav a {
    white-space: nowrap !important;
  }

  .btn-primary.header-cta {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 951px) and (max-width: 1180px) {
  .header-inner {
    gap: 20px !important;
    padding-inline: 16px !important;
  }

  .logo-header img {
    height: 48px !important;
    max-width: 180px !important;
  }

  .main-nav ul {
    gap: 20px !important;
  }

  .main-nav a {
    font-size: 1.02em !important;
  }

  .btn-primary.header-cta {
    padding-inline: 22px !important;
    font-size: 1.04em !important;
  }
}

/* Kotwice galerii nie powinny chować się pod fixed headerem. */
#galeria,
.gallery-section[id] {
  scroll-margin-top: 130px;
}

/* Nie tworzymy osobnego pionowego scrolla dla sekcji galerii. */
.gallery-section,
.gallery-grid-section,
.gallery-grid {
  overflow-y: visible !important;
}


/* ======================
   MOBILE — kompaktowy header i menu w kolorystyce pomocniczej
   Tylko urządzenia mobilne/tabletowe.
====================== */
@media (max-width: 950px) {
  .mobile-nav {
    background:
      radial-gradient(circle at 18% 8%, rgba(142, 199, 210, 0.34), transparent 34%),
      linear-gradient(180deg, rgba(234, 245, 247, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-right: 1px solid rgba(13, 105, 134, 0.16);
    box-shadow: 10px 0 36px rgba(7, 72, 91, 0.18);
  }

  #mobileClose,
  .mobile-close {
    color: var(--color-secondary-dark);
  }

  #mobileClose:hover,
  #mobileClose:focus,
  .mobile-close:hover,
  .mobile-close:focus {
    color: var(--color-secondary);
  }

  .mobile-nav li {
    border-bottom-color: rgba(13, 105, 134, 0.14);
  }

  .mobile-nav li a {
    color: var(--color-secondary-dark);
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: rgba(234, 245, 247, 0.86);
    color: var(--color-secondary);
    box-shadow: 0 2px 16px rgba(13, 105, 134, 0.10);
  }

  .mobile-nav li:last-child {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(13, 105, 134, 0.14);
    border-bottom: 0;
  }

  .mobile-nav li:last-child a.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 270px);
    min-height: 48px;
    margin: 0 auto;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    line-height: 1.18;
    box-shadow: 0 12px 24px rgba(226, 97, 30, 0.24);
  }

  .mobile-nav li:last-child a.hero-btn:hover,
  .mobile-nav li:last-child a.hero-btn:focus {
    background: var(--color-accent-dark);
    color: #fff;
    padding-left: 22px;
    text-decoration: none;
  }
}

@media (max-width: 600px) {
  .mobile-nav li:last-child {
    margin-top: 22px;
    padding-top: 20px;
  }
}


/* =========================================================
   V16 — mobile: stabilna wysokość nagłówka i odstęp treści
   Cel: pierwsza sekcja nie wchodzi wizualnie pod fixed header
   na różnych szerokościach telefonu.
========================================================= */
@media (max-width: 767px) {
  :root {
    --dapal-mobile-header-height: clamp(82px, 17.5vw, 100px);
  }

  body {
    padding-top: calc(var(--dapal-mobile-header-height) + env(safe-area-inset-top, 0px)) !important;
  }

  .main-header {
    padding: env(safe-area-inset-top, 0px) 0 0 !important;
    min-height: calc(var(--dapal-mobile-header-height) + env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 252, 0.96);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: 0 6px 20px rgba(42, 72, 88, 0.12);
  }

  .main-header.scrolled {
    background: rgba(32, 38, 39, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    backdrop-filter: blur(14px) saturate(1.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }

  .header-inner {
    min-height: var(--dapal-mobile-header-height);
    padding: 9px 16px !important;
    align-items: center;
    justify-content: center;
  }

  .header-mobile-wrap {
    min-height: 62px;
    margin-bottom: 0 !important;
    align-items: center;
  }

  .logo-header img {
    height: clamp(46px, 11.4vw, 54px) !important;
  }

  .hamburger {
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 105, 134, 0.08);
    color: var(--color-secondary);
    font-size: 1.64em;
    line-height: 1;
  }

  .hamburger .site-icon {
    color: currentColor;
  }

  .main-header.scrolled .hamburger {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
  }

  .hamburger:hover,
  .hamburger:focus,
  .hamburger.active {
    color: var(--color-secondary-dark);
    background: rgba(13, 105, 134, 0.13);
  }

  .main-header.scrolled .hamburger:hover,
  .main-header.scrolled .hamburger:focus,
  .main-header.scrolled .hamburger.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
  }

  .home-hero,
  .offer-hero,
  .realizations-hero,
  .site-contact-hero,
  .faq-page-hero,
  .seo-hero {
    padding-top: clamp(12px, 3vw, 20px) !important;
  }

  .about-name-section {
    padding-top: clamp(12px, 3vw, 18px) !important;
  }

  .container_site.wycena-page {
    padding-top: clamp(12px, 3vw, 18px) !important;
  }
}

@media (max-width: 380px) {
  :root {
    --dapal-mobile-header-height: 78px;
  }

  .logo-header img {
    height: 42px !important;
  }

  .hamburger {
    width: 42px;
    height: 42px;
    font-size: 1.5em;
  }

  .header-mobile-wrap {
    min-height: 58px;
  }
}


/* v18 — mobile: stabilny przycisk powrotu do góry */
.scroll-to-top {
  display: grid;
  place-items: center;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-weight: 900;
  z-index: 6000;
}
.scroll-to-top svg { display: block; flex: none; width: 22px; height: 22px; }
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (max-width: 700px) {
  .scroll-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
    border-color: rgba(13, 105, 134, .20);
    color: var(--color-secondary-dark, #07485b);
    box-shadow: 0 10px 26px rgba(13, 105, 134, .18);
  }
}
