@font-face {
    font-family: 'ArialNova';
    src: url('fonts/ArialNova.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cardo-Regular';
    src: url('fonts/Cardo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/*index.html*/

body {
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    padding: 0 100px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background-color: transparent;
    font-family: 'ArialNova', sans-serif;
}

header .logo img {
    height: 80px;
    position: relative;
    margin-left: 200px;

}

header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

header.scrolled .logo img {
    filter: brightness(0.2); /* grafitowe logo */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
    margin-left: 140px;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: lighter;
    transition: color 0.3s ease;
    display: inline-block;
}

header.scrolled nav ul li a {
    color: black;
}

header nav ul li a:hover {
    color: #900000;
}

header nav  p {
    color: #900000;
}

/* Separator (linia) */
.nav-separator {
  height: 1px;
  background-color: white;
  width: 100%;
  max-width: 1150px; /* dopasuj do dystansu między nav a kontaktem */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  align-self: center;
  animation: drawFullLine 1s ease forwards;
  animation-delay: 0.4s;
  margin-left: 55px;
}

/* Po scrollu zmiana koloru */
header.scrolled .nav-separator {
  background-color: black;
}

/* Animacja: od prawej do lewej */
@keyframes drawFullLine {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.nav-contact {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-left: 930px;
  margin-top: 5px;
  list-style: none;
}

.nav-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  font-size: 12px;
  transition: color 0.3s ease;
  font-weight: lighter;
  
}

.nav-contact li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.3s ease;
  filter: brightness(0) invert(1); /* biały */
}

/* Po scrollu: czarny tekst i czarne ikony */
header.scrolled .nav-contact li {
  color: black;
}

header.scrolled .nav-contact li img {
  filter: none; /* or filter: brightness(0); */
}

/* Hero Section */
.hero {
    margin-top: 0px;
    position: relative;
    height: 100vh;
    overflow: hidden;
    font-family: 'Cardo-Regular', sans-serif;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
    padding-top: 120px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
}

.hero-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 30%);
}

.hero-text {
    position: absolute;
    bottom: 150px;
    margin-left: 300px;
    z-index: 3;
    color: white;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-text p  {
    font-size: 1.5rem;
    margin-top: -30px;
    margin-bottom: 20px;
    max-width: 800px;
    font-family: 'ArialNova', sans-serif;
}

.scroll-to-contact {
    background-color: #b40000;
    border: none;
    padding: 20px 35px;
    color: white;
    font-size: 0,9rem;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-family: 'ArialNova', sans-serif;
}

.scroll-to-contact:hover {
    background-color: #900000;
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  right: 20px;          /* <-- zamiast margin-left: 1450px */
  left: auto;           /* upewnij się, że lewa nie trzyma */
  z-index: 3;
  display: flex;
  gap: 10px;
  margin-left: 0;       /* usuń stary margines */
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;

}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* About Us Section */

.about-us {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 100px 300px;
    
}

.about-text {
    flex: 1;
    max-width: 50%;
    margin-top: 100px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Cardo-Regular', sans-serif;
}

.about-us .line-about {
  margin-left: 0px;
  width: 630px;
}

.about-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-family: 'ArialNova', sans-serif;
}

.about-gallery {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.gallery-image.active {
    opacity: 1;
    z-index: 1;
}

/* PODMIEŃ ten blok – usuń margin-left:-550px */
.gallery-controls {
  position: absolute;        /* NOWE */
  left: 50%;                 /* NOWE */
  transform: translateX(-50%); /* NOWE */
  bottom: 5px;              /* NOWE (albo margin-top:10px, ale absolut lepszy) */
  display: flex;
  gap: 20px;
  margin: 0;                 /* WAŻNE: usuń ujemne marginesy */
}


.gallery-controls button {
    background: none;
    border: none;
    font-size: 24px;
    color: #b40000;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-controls button:hover {
    transform: scale(1.2);
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #eee;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #b40000;
    transition: width 0.5s ease-in-out;
}

/* Offer Section */

.offer-section {
  position: relative;
  background-color: #1f1f1f;
  color: white;
  padding: 170px 0;
  overflow: hidden;
}

.offer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/index/offer-background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

.offer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.offer-title {
  font-size: 32px;
  margin-bottom: 60px;
  font-weight: 600;
  font-family: 'Cardo-Regular', sans-serif;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.offer-box {
  text-align: center;
}

.offer-icon {
  height: 150px;
  margin-bottom: 10px;
}

.offer-box h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: 'Cardo-Regular', sans-serif;
}

.offer-line {
  border: none;
  border-top: 1px solid #555;
  margin-top: 5px;
  margin-bottom: 5px;
}

.offer-box p {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  font-family: 'ArialNova', sans-serif;
}

.offer-btn-wrapper {
  text-align: center;
}

.offer-button {
  background-color: #b70000;
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  font-family: 'ArialNova', sans-serif;
  font-weight: lighter;
}

.offer-button:hover {
  background-color: #e00000;
}

/* Meeting Section */

.meeting {
  display: flex;
  margin-top: 100px;
  padding: 0 80px;
}

.meeting .meeting-img {

}

.meeting .meeting-desc {
  width: 500px;
  margin-top: 200px;
}

.meeting .meeting-desc h2 {
  margin-bottom: 20px;
  font-size: 40px;
  font-family: 'Cardo-Regular', sans-serif;
}

.meeting .meeting-desc p {
  font-family: 'ArialNova', sans-serif;
}

.meeting .meeting-desc .meeting-btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

.meeting .meeting-desc .meeting-btn-wrapper .meeting-button {
  background-color: #b70000;
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  font-family: 'ArialNova', sans-serif;
  font-weight: lighter;
}


.meeting .meeting-desc .meeting-btn-wrapper .meeting-button:hover {
  background-color: #e00000;
}

/* Opinion Section */

.testimonials {
  position: relative;
  overflow: hidden;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background: url('images/index/opinion-background.jpeg') center/cover no-repeat;
  filter: brightness(0.4);
  z-index: 0;
}

.testimonial-container {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 60px 150px;
  text-align: center;
  width: 800px;
  height: 400px;
  margin: 0 auto;
  transition: all 0.5s ease;
}

.testimonial-heading {
  font-size: 28px;
  margin-bottom: 20px;
  color: #000;
  font-family: 'Cardo-Regular', sans-serif;
}

.testimonial-slider {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: all 0.6s ease;
}

.testimonial.active {
  left: 0;
  opacity: 1;
  
}

.testimonial.left-exit {
  left: -100%;
  opacity: 0;
}

.testimonial.right-exit {
  left: 100%;
  opacity: 0;
}

.testimonial p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
   min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ArialNova', sans-serif;
}

.testimonial h4 {
  margin-top: 10px;
  font-weight: 600;
  color: #000;
  font-family: 'ArialNova', sans-serif;
}

.testimonial-nav {
  margin-top: 5px;
}

.testimonial-nav button {
  background: none;
  border: none;
  font-size: 28px;
  margin: 0 20px;
  cursor: pointer;
  color: #333;
  transition: transform 0.2s;
}

.testimonial-nav button:hover {
  transform: scale(1.3);
}


/* Contact Section */ 

.contact-section {
  background-color: #fff;
  padding: 100px 40px;
  font-family: 'Helvetica Neue', sans-serif;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;
  gap: 80px;
}

.contact-info {
  flex: 1;
}

.contact-info h2,
.contact-form h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-family: 'Cardo-Regular', sans-serif;
}

.contact-logo {
  width: 100px;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 16px;
  font-family: 'ArialNova', sans-serif;
}

.contact-info a {
  color: #000;
  text-decoration: none;
}

.contact-form {
  flex: 2;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid #999;
  padding: 10px 0;
  font-size: 16px;
  outline: none;
  font-family: 'ArialNova', sans-serif;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 5px;
  transform: scale(1.2);
}

.submit-btn {
  margin-top: 20px;
  background-color: #a00000;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
  font-family: 'ArialNova', sans-serif;
  font-weight: lighter;
}

.submit-btn:hover {
  background-color: #800000;
}

/* BUDOWA DOMU */

/* Etapy Budowy */

/* Kontener */
.timeline-section {
  padding: 80px 0 40px;
  background: #fff;
  text-align: center;
  height: 600px;
}

.timeline-section .title-timeline {
  font-size: 40px;
  font-family: 'Cardo-Regular', sans-serif;
}

.timeline-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 220px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 4px;
  background: #222;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s ease;
  z-index: 0;
  margin-top: 22px;
}

.timeline-step {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-step.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.icon-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.icon {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.dot {
  width: 14px;
  height: 14px;
  background: #222;
  border-radius: 50%;
  margin-top: 5px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.label {
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'ArialNova', sans-serif;
}

.timeline-step.active .icon {
  transform: scale(1.2);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}

.timeline-step.active .dot {
  background: #b70000;
  box-shadow: 0 0 0 6px rgba(183,0,0,0.08);
}

.timeline-step[data-step="1"] { left: 4%; }
.timeline-step[data-step="2"] { left: 26%; }
.timeline-step[data-step="3"] { left: 50%; }
.timeline-step[data-step="4"] { left: 74%; }
.timeline-step[data-step="5"] { left: 96%; }

.description-box {
  max-width: 900px;
  margin: 5px auto 0;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.description-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.description-box h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: 'Cardo-Regular', sans-serif;
}

.description-box p {
  font-size: 18px;
  font-family: 'ArialNova', sans-serif;
}

.description-box .line-timeline {
  width: 100%;
  margin-bottom: 10px;
  margin-top: 10px;
}

.timeline-btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

.timeline-button {
  background-color: #b70000;
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  font-family: 'ArialNova', sans-serif;
  font-weight: lighter;
}

.timeline-button:hover {
  background-color: #e00000;
}

/* Responsywność */
@media (max-width: 900px) {
  .timeline-step { width: 100px; }
  .icon { width: 56px; height: 56px; }
  .timeline-step[data-step="2"] { left: 25%; }
  .timeline-step[data-step="4"] { left: 75%; }
  .timeline-step[data-step="1"] { left: 8%; }
  .timeline-step[data-step="5"] { left: 92%; }
}


/* Build with US Section */

.compare {
  padding: 60px 20px;
  background: #333; /* ciemne tło całej sekcji */
}

/* GŁÓWNY NAGŁÓWEK */
.compare-header {
  display: grid;
  grid-template-columns: 1fr 200px 1fr; /* lewa | środek | prawa */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 20px;
  align-items: stretch;
}

.header-box {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-family: 'ArialNova', sans-serif;
}

.header-box.left {
  background: #444;
  width: 480px;
}

.header-box.right {
  background: #444;
  width: 480px;
}

.header-box.vs {
  background: #444;
  color: #fff;
  width: 200px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 200px 1fr; /* lewa | środek | prawa */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.compare-card {
  border-radius: 12px;
  padding: 20px;
  text-align: center; /* wyśrodkowany tekst w blokach */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #fff;
}

/* Blok pozytywny – Z NAMI */
.compare-card.positive {
  background: #444; /* jaśniejszy od tła */
}

.compare-card.positive li::before {
  content: "✔";
  color: #6c63ff;

}

/* Blok negatywny – SAMODZIELNIE */
.compare-card.negative {
  background: #444; /* ciemniejszy */
}

.compare-card.negative li::before {
  content: "✖";
  color: #d9534f;

}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  font-family: 'ArialNova', sans-serif;
  text-align: left;
  margin-left: 70px;
}

.compare-card li::before {
  position: absolute;
  left: -20px;
  font-weight: bold;
}

.compare-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #fff;
}

.compare-center img {
  width: 60px;
  height: auto;
  margin-bottom: 12px;
}

.compare-center h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  font-family: 'ArialNova', sans-serif;
}

/* FAQs section */ 

.faq {
  background: #fff;
  padding: 60px 20px;
  color: #000;
  text-align: center;
}

.faq-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  font-family: 'Cardo-Regular', sans-serif;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* pytanie */
.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  position: relative;
  font-family: 'ArialNova', sans-serif;
}

/* ikona + / - po prawej */
.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "-";
}

/* odpowiedź */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  background: #dbdbdb;
}

.faq-answer p {
  margin: 15px 0;
  line-height: 1.4;
  font-family: 'ArialNova', sans-serif;
}

/* aktywne rozwinięcie */
.faq-item.active .faq-answer {
  max-height: 120px; /* miejsce na ok. 2 linijki */
}

/* Photo Section */

.photo {
  margin-bottom: -10px;
}

.photo img{
  width: 100%;
   height: auto;
  }

/* OFERTA */

/*Info Section*/

.info {
  width: 100%;
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 50px 300px;
  z-index: 0;
  margin-bottom: -50px;
}

.info .text-top{
  margin-left: -50px;
}

.info .text-top img{
  width: 700px;
  height: 400px;
  object-fit: cover;

}

.info .text-bottom img{
  width: 700px;
  margin-top: 150px;
  height: 400px;
  object-fit: cover;
}

.info .text-top .text-right {
  margin-top: 150px;
}

.info .text-top h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
  z-index: 1;
  font-family: 'Cardo-Regular', sans-serif;
}

.info .text-top p {
  color: white;
  font-family: 'ArialNova', sans-serif;
}

.info .text-bottom .text-left {
  margin-top: 150px;
}

.info .text-bottom h2 {
  font-size: 2rem;
  margin-bottom: 20px;
   color: white;
}

.info .text-bottom p {
 color: white;
}

/* Początkowy stan (ukryte elementy) */
.info .photo-left,
.info .photo-right,
.info .text-left,
.info .text-right {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* Po pojawieniu się w widoku */
.info.show .photo-left,
.info.show .photo-right,
.info.show .text-left,
.info.show .text-right {
  opacity: 1;
  transform: translateY(0);
}

.info.show .photo-left { transition-delay: 0.1s; }
.info.show .text-right { transition-delay: 0.3s; }
.info.show .text-left  { transition-delay: 0.1s; }
.info.show .photo-right{ transition-delay: 0.3s; }


/* Frame Houses Section*/
/* Sekcja główna */
.frame-houses {
  max-width: 1000px;
  margin: 60px auto;
  font-family: "Georgia", serif;
  line-height: 1.6;
  color: #111;
  margin-top: 100px;
}

/* Tytuł główny */
.title-frame-house h4 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: 'Cardo-Regular', sans-serif;
}

/* Podtytuł */
.description-frame-house h5 {
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: 'Cardo-Regular', sans-serif;
}

.description-frame-house p {
  text-align: left;
  font-size: 15px;
  margin-bottom: 40px;
  font-family: 'ArialNova', sans-serif;
}

/* Bloki UP i DOWN */
.UP, .DOWN {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
}

.text-box {
  flex: 1;            /* zajmuje resztę miejsca obok obrazka */
}

.text-box h6 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.UP img, .DOWN img {
  width: 45%;
  max-width: 420px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.UP ul, .DOWN ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
}

.UP ul li, .DOWN ul li {
  margin-bottom: 6px;
}

/* Naprzemienne ustawienie obrazów */
.UP { flex-direction: row; }
.DOWN { flex-direction: row-reverse; }

/* Stopka tekstowa */
.footer-frame-house {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 20px;
}

.footer-frame-house p {
  margin-bottom: 12px;
  text-align: justify;
}

.footer-frame-house .heavy {
  font-weight: bolder;
}



/* REALIZACJE */

.realizations {
  background-color: #f9f9f9;  
  padding: 80px 0;          
  display: flex;
  justify-content: center;
}

.realization {
  width: 80%;
  max-width: 1200px;
}

.text-block {
  text-align: left;
}

.text-block h1 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #222;
  line-height: 1.3;
  font-weight: 600;
  font-family: 'Cardo-Regular', sans-serif;
}

.text-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  font-family: 'ArialNova', sans-serif;
}

.text-block img {
  display: block;
  max-width: 100%;
  margin: 40px auto;           /* wyśrodkowany obrazek */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.text-block img:hover {
  transform: scale(1.02);
}

/* Responsywność */
@media (max-width: 768px) {
  .realization {
    width: 90%;                /* na telefonie trochę węższe */
  }

  .text-block h1 {
    font-size: 1.5rem;
  }

  .text-block p {
    font-size: 0.95rem;
  }
}

/* Gallery Section */

/* Sekcja galerii */
.gallery {
  position: relative;
  width: 80%;
  margin: 80px auto;
  text-align: center;
  margin-top: -50px;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
  font-family: 'Cardo-Regular', sans-serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Lightbox */
.lightbox {
  display: none; /* ukryte domyślnie */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.controls {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
}

.controls .prev,
.controls .next {
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.controls .prev:hover,
.controls .next:hover {
  color: #aaa;
}


/* Footer Section */

.footer {
  background-color: #2c2c2c;
  color: #fff;
  padding: 30px 60px;
  font-family: 'ArialNova', sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 120px;
  margin-left: 320px;
}

.footer-contact,
.footer-links {
  max-width: 300px;
}

.footer-contact{
  margin-left: 0;
}

.footer-contact h3,
.footer-links h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.footer-contact p,
.footer-links ul {
  margin: 5px 0;
  font-size: 14px;
}

.footer-contact img {
  width: 20px;
  height: auto;
  margin-bottom: -6px;
}

.footer-links{
  margin-right: 300px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-line {
  border: none;
  border-top: 1px solid #555;
  margin: 15px 0;
  width: 80%;
  margin-left: 200px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom .copyright{
  margin-left: 320px;
}

.footer-bottom .copyright span {
  font-weight: bold;
}

.footer-policy{
  margin-right: 200px;
}

.footer-policy a {
  color: #fff; /* złotawy jak na screenie */
  text-decoration: none;
  margin: 0 3px;
}

.footer-policy a:hover {
  text-decoration: underline;
}

/* Hamburger default hidden on desktop */
/* bazowe do hamburgera */
.hamburger{
  --w: 24px; --h: 2px; --g: 6px;
  width: var(--w);
  height: calc(var(--h)*3 + var(--g)*2);
  display:none; position:relative; cursor:pointer;
}
.hamburger span{
  position:absolute; left:0; right:0; height:var(--h);
  background:#333; border-radius:2px; transition:.3s ease;
}
.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top: calc(var(--h) + var(--g)); }
.hamburger span:nth-child(3){ top: calc((var(--h) + var(--g)) * 2); }

.hamburger.active span:nth-child(1){
  top: calc(var(--h) + var(--g)); transform: rotate(45deg);
}
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){
  top: calc(var(--h) + var(--g)); transform: rotate(-45deg);
}

/* MOBILE MENU */
@media (max-width: 1023px) {
  header {
    padding: 0 20px;
    height: 90px;
    background:white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    justify-content: space-between;
  }

  header .logo img {
    filter: brightness(0.2);
    margin-left: 0;
    height: 60px;
  }

  .hamburger { display:flex; }

  /* blokada scrolla tła tylko gdy menu otwarte */
  body.menu-open { overflow:hidden; }

  /* SZUFLADA – zero wpływu na szerokość dokumentu */
  header nav{
    position: fixed;
    top: 0;
    right: calc(-1 * min(70vw, 300px)); /* całe menu poza ekranem */
    width: min(70vw, 300px);
    height: 100dvh;
    background: #fff;
    transition: right .3s ease;
    box-shadow: none;
    display:flex; flex-direction:column;
    justify-content:flex-start; align-items:center;
    padding-top: 100px;
    z-index: 25;
    overflow-y:auto; /* przewijanie zawartości, ale bez poziomu */
    overflow-x:hidden;
  }

  /* otwarte menu */
  nav.active{
    right: 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.4);
  }

  header nav ul{
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
  }

  header nav ul li a{
    font-size: 20px;
    margin: 0;
    color: #000;
  }

  .nav-contact{
    flex-direction: column;
    gap: 15px;
    margin: 20px 0 0 0;
    color: #000;
  }
  .nav-contact li img{ filter:none; }
  .nav-separator{ background-color:#000; }

  .slider-controls { display: none; }
}





/* ================== RESPONSYWNOŚĆ - INDEX ================== */

/* Mobile (domyślny styl – zaczynamy od najmniejszych ekranów) */
@media (max-width: 480px) {

  *{
    overflow-x: hidden;
  }


  header {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0 20px;
    height: 70px;
  }

  header .logo img {
    height: 40px;
  }
  

  /* hamburger kreski też zawsze ciemne */
  .hamburger span {
    background: #333;
  }

  /*HERO SECTION*/

  .hero .hero-slider .hero-image {
    height: 100%;
  }

  .hero .hero-slider .hero-overlay {
    height: 100%;
  }

  .hero .hero-text {
    margin-left: 10px;
    margin-bottom: -60px;
    height: 150px;
  }

  .hero .hero-text h1 {
    font-size: 20px;
  }

  .hero .hero-text .offer-button {
    padding:  10px 20px;
    font-size: 0.7rem;
  }

  .hero .hero-slider .slider-controls {
    opacity: 0;
  }

  /*ABOUT US*/

  .about-us {
    padding: 0 10px;
    display: block;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  .about-us .about-text {
      width: 100%;
      max-width: 1200px; /* opcjonalnie ograniczenie, żeby nie było za szeroko */
      margin: 0 auto;     /* wycentrowanie przy max-width */
  }

  .about-us .about-text .line-about {
    height: 2px;
    color: #000;
  }


  .about-us h2 {
    font-size: 30px;
  }

  .about-us .gallery-controls {
    position: static;        /* albo zostaw absolut, jak wolisz */
    transform: none;
    margin: 10px auto 0;     /* wyśrodkuj bez „ciągnięcia” */
    overflow-x: visible;
  }

  /*OFFER SECTION*/

  .offer-section {
    padding: 40px 15px; /* mniej przestrzeni po bokach */
  }

  .offer-content {
    padding: 0;
  }

  .offer-content.container{
    overflow-x: visible;
  }

  .offer-title {
    font-size: 24px; /* mniejszy nagłówek */
    text-align: center;
    margin-bottom: 30px;
  }

  .offer-grid {
    display: flex;
    flex-direction: column; /* jeden box na wiersz */
    gap: 25px;

  }

  .offer-box {
    text-align: center;
    padding: 15px;
    border-radius: 8px; /* opcjonalnie, jeśli chcesz boxy z zaokrąglonymi rogami */
  }

  .offer-icon {
    width: 60px; /* zmniejszone ikony */
    height: auto;
    margin-bottom: 15px;
  }

  .offer-box h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .offer-line {
    width: 250px;
    margin: 10px auto;
  }

  .offer-box p {
    font-size: 14px;
    line-height: 1.5;
  }

  .offer-btn-wrapper {
    margin-top: 25px;
    text-align: center;
    overflow-x: visible;
  }

  .offer-btn-wrapper .offer-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  /*MEETING SECTION*/


  .meeting {
    display: flex;
    flex-direction: column; /* obraz nad opisem */
    align-items: center;
    padding: 0 15px;
    gap: 20px;
    margin-top: 0;
  }

  .meeting-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: -200px;
  }

  .meeting-desc {
    text-align: center;
    max-width: 350px;
  }

  .meeting-desc h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .meeting-desc p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .meeting-btn-wrapper {
    text-align: center;
    margin-top: 30px;
    height: 70px;
    z-index: 20;
    overflow-x: visible;
  }

  a.meeting-button {
    padding: 10px 20px;
    font-size: 14px;
    height: 70px;
  }

/* ETAPY BUDOWY */
  .timeline-inner {
    padding: 0 10px;
    height: 150px; /* mniejsza wysokość na telefonie */
  }

  .timeline-step {
    width: 80px; /* mniejsze kroki */
  }

  .timeline-step .icon {
    width: 50px;
    height: 50px;
    margin-top: 20px;
  }

  .timeline-step .dot {
    width: 10px;
    height: 10px;
  }

  .timeline-step .label {
    font-size: 12px;
    margin-top: 6px;
  }

  /* nowe wartości left dla równomiernych odstępów */
  .timeline-step[data-step="1"] { left: 10%; }
  .timeline-step[data-step="2"] { left: 30%; }
  .timeline-step[data-step="3"] { left: 50%; }
  .timeline-step[data-step="4"] { left: 70%; }
  .timeline-step[data-step="5"] { left: 90%; }

  .timeline-line {
    top: 50%;
    margin-top: 22px;
  }

  .description-box {
    padding: 15px;
  }

  .description-box h2 {
    font-size: 18px;
  }

  .description-box p {
    font-size: 14px;
  }

  .timeline-btn-wrapper {
        overflow-x: visible;
  }

  .timeline-button {
    padding: 10px 24px;
    font-size: 14px;
  }

/*OPINION SECTION*/

  .testimonials {
    height: auto;
    padding: 50px 15px;
    margin-top: 100px;
  }

  .testimonial-container {
    width: 100%;
    padding: 20px 15px;
    height: auto;
  }

  .testimonial-heading {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .testimonial-slider {
    height: 180px;
    position: relative;
    margin: 0 auto;
  }

  .testimonial {
    position: absolute; /* zachowujemy animacje slidera */
    top: 0;
    left: 100%;
    width: 100%;
    opacity: 0;
    transition: all 0.6s ease;
    text-align: center;
    padding: 10px 0;
  }

  .testimonial.active {
    left: 0;
    opacity: 1;
  }

  .timeline-line {
    opacity: 0;
  }

  .testimonial.left-exit {
    left: -100%;
    opacity: 0;
  }

  .testimonial.right-exit {
    left: 100%;
    opacity: 0;
  }

  .testimonial p {
    font-size: 14px;
    line-height: 1.4;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .testimonial h4 {
    font-size: 16px;
    margin-top: 8px;
  }

  .testimonial-nav button {
    font-size: 24px;
    margin: 0 10px;
  }

  .description-box {
    max-width: 900px;
    margin: 5px auto 0;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    height: 160px; /* stała wysokość dopasowana do najdłuższego tekstu */
    overflow: hidden; /* żeby dłuższy tekst nie wychodził poza box */
  }

  .timeline-btn-wrapper {
    margin-top: 50px;
  }

  .testimonial-nav {
        overflow-x: visible;

  }



  /*CONTACT SECTION*/

  .contact-container {
    flex-direction: column; /* bloki jeden nad drugim */
    align-items: center;    /* wyśrodkowanie poziome */
    gap: 20px;
    width: 100%;
    padding: 0 10px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 350px; /* ograniczenie szerokości dla czytelności */
    padding: 20px;
    box-sizing: border-box;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* wyśrodkowanie elementów wewnątrz bloku */
    text-align: center;  /* tekst wyśrodkowany */
  }

  .contact-info h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .contact-logo {
    width: 120px;
    margin-bottom: 15px;
  }

  .contact-info p,
  .contact-info a {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .contact-form h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .checkbox-container {
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
  }

  .checkbox-container input {
    margin-top: 2px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 10px;
  }

  .footer {
    padding: 20px;
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo img {
    margin: 0 auto 20px;
  }
  .footer-links {
    margin: 20px 0 0 0;
  }
  .footer-line {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-bottom .copyright {
    margin-left: 0;
  }
  .footer-policy {
    margin-right: 0;
  }
}

/* Małe telefony w poziomie / średnie telefony */
@media (min-width: 481px) and (max-width: 767px) {
    /* HEADER */
  header {
    background: #fff !important;
    height: 80px;
    padding: 0 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 50px; margin-left: 0; filter: brightness(.2); }
  .hamburger { display: flex; }
  /* (szuflada z nawigacją zostaje z reguł <=1023px) */

  /* HERO */
  .hero { height: 80vh; }
  .hero-slider { padding-top: 80px; }
  .hero-text {
    bottom: 120px;
    margin-left: 24px;
  }
  .hero-text h1 { font-size: 28px; max-width: 520px; }
  .offer-button { padding: 12px 26px; font-size: .9rem; }
  /* pokaż strzałki na tablecie, ale mniejsze */
  .slider-controls { display: flex; bottom: 24px; right: 16px; }
  .slider-controls button { font-size: 1.6rem; padding: 8px 14px; }

  /* ABOUT US */
  .about-us {
    display: block;
    padding: 40px 24px;
    text-align: center;
    gap: 0;
  }
  .about-text {
    max-width: 640px;
    margin: 20px auto 30px;
  }
  .about-us .line-about { width: 100%; max-width: 620px; margin: 10px auto; }
  .about-gallery { width: 100%; max-width: 640px; margin: 0 auto; }
  .image-container { aspect-ratio: 4/3; margin-bottom: 20px;}
  .gallery-controls { bottom: 10px; transform: translateX(-50%); }
  .progress-bar { margin-top: 14px; }

  /* OFFER */
  .offer-section { padding: 80px 0; }
  .offer-title { font-size: 28px; text-align: center; }
  .offer-content { padding: 0 20px; }
  .offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 w rzędzie */
    gap: 24px;
  }
  .offer-icon { height: 110px; }
  .offer-line { width: 220px; margin: 8px auto; }
  .offer-btn-wrapper .offer-button { padding: 12px 28px; }

  /* MEETING */
  .meeting {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
    margin-top: 40px;
    align-items: center;
  }
  .meeting-img { width: 100%; height: auto; object-fit: cover; }
  .meeting .meeting-desc { width: 100%; max-width: 520px; margin-top: 0; text-align: center; }
  .meeting-desc h2 { font-size: 28px; }
  .meeting-btn-wrapper .meeting-button { padding: 12px 28px; }

  /* TIMELINE („Jak budujemy”) */
  .timeline-section { height: auto; padding: 60px 0 40px; }
  .timeline-section .title-timeline { font-size: 32px; }
  .timeline-inner { height: 200px; padding: 0 20px; }
  .timeline-step { width: 90px; }
  .timeline-line {opacity: 0;}
  .icon { width: 56px; height: 56px; }
  .label { font-size: 13px; }
  .timeline-step[data-step="1"] { left: 6%; }
  .timeline-step[data-step="2"] { left: 28%; }
  .timeline-step[data-step="3"] { left: 50%; }
  .timeline-step[data-step="4"] { left: 72%; }
  .timeline-step[data-step="5"] { left: 94%; }
  .description-box { max-width: 680px; margin-top: 10px; }
  .description-box h2 { font-size: 20px; }
  .description-box p { font-size: 16px; }
  .timeline-btn-wrapper { margin-top: 36px; }
  .timeline-button { padding: 12px 28px; }

  /* TESTIMONIALS */
  .testimonials { height: 520px; margin-top: 60px; }
  .testimonial-container {
    width: 90%;
    max-width: 680px;
    padding: 40px 40px;
    height: auto;
  }
  .testimonial-heading { font-size: 24px; }
  .testimonial-slider { height: 160px; }
  .testimonial p { font-size: 15px; min-height: 90px; }
  .testimonial-nav button { font-size: 26px; margin: 0 14px; }

  /* CONTACT */
  .contact-section { padding: 80px 20px; }
  .contact-container {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    max-width: 720px;
  }
  .contact-info {
    align-items: center; /* wyśrodkowanie elementów wewnątrz bloku */
    text-align: center;  /* tekst wyśrodkowany */
  }
  .contact-info, .contact-form { flex: none; width: 100%; }
  .contact-info h2, .contact-form h2 { font-size: 28px; }
  .submit-btn { align-self: center; }

  /* REALIZACJE – tekst */
  .realization { width: 92%; }
  .text-block h1 { font-size: 1.6rem; }
  .text-block p { font-size: 0.98rem; }

  /* FOOTER */
  .footer { padding: 30px 24px; }
  .footer-top { gap: 24px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w pionie */
@media (min-width: 768px) and (max-width: 1023px) {
    /* HEADER */
  header {
    height: 88px;
    padding: 0 32px;
    background:#fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 58px; filter: brightness(.2); }
  .hamburger { display:flex; } /* menu szufladowe do 1023px */

  /* HERO */
  .hero { height: 82vh; }
  .hero-slider { padding-top: 88px; }
  .hero-text {
    bottom: 130px;
    margin-left: 32px;
  }
  .hero-text h1 { font-size: 34px; max-width: 700px; }
  .offer-button { padding: 14px 34px; font-size: 1rem; }
  .slider-controls { display:flex; bottom: 28px; right: 24px; }
  .slider-controls button { font-size: 1.8rem; padding: 10px 16px; }

  /* ABOUT (sekcja z tekstem + galerią) */
.about-us{
  display: grid;
  grid-template-columns: 1.2fr 1fr;   /* tekst trochę szerszy niż obraz */
  align-items: center;
  gap: 40px;
  padding: 60px 32px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.about-text{
  margin: 0;                 /* zero zbędnych przerw po lewej */
  max-width: 620px;
}

.about-text h2{              /* duży tytuł po lewej */
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 20px 0;
}

.about-us .line-about{
  width: 100%;
  max-width: 560px;
  margin: 14px 0 18px;
}

.about-gallery{
  width: 100%;
  margin: 0;
}

.image-container{
  width: 100%;
  aspect-ratio: 4/3;         /* proporcje, żeby nie skakało */
  overflow: hidden;
  margin-bottom: 20px;
}

.gallery-controls{
  bottom: 12px;              /* nasze wcześniejsze absolutne centrowanie zostaje */
  transform: translateX(-50%);
}

.progress-bar{ margin-top: 14px; }

/* OFFER (kafelki „Co oferujemy”) */
.offer-section{
  padding: 90px 0;
  background-position: center; /* żeby tło nie „uciekało” */
}

.offer-title{
  font-size: 36px;
  text-align: center;
  margin-bottom: 36px;
}

.offer-content{
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}

  .offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* <-- 2 kolumny */
    gap: 36px 32px; /* pionowy / poziomy odstęp */
    justify-items: center;
    align-items: start;
    max-width: 800px;      /* wyśrodkuj ładnie */
    margin: 0 auto;
  }

.offer-card{                 /* jeżeli masz wrapper na pojedynczy element */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-icon{ height: 112px; margin-bottom: 10px; }

  .offer-item h3 {
    font-size: 22px;
    min-height: unset;     /* pozwól rosnąć naturalnie */
    margin-bottom: 8px;
  }

.offer-line{
  width: 240px;
  height: 1px;
  margin: 8px auto 12px;
  opacity: .6;
}


  .offer-item p {
    font-size: 16px;
    max-width: 360px;
  }

.offer-btn-wrapper{
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.offer-btn-wrapper .offer-button{ padding: 14px 34px; }

  /* MEETING */
  .meeting {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0 32px;
    margin-top: 0;
  }
  .meeting-img { width: 50%; height: auto; object-fit: cover; }
  .meeting-desc { width: 50%; margin-top: 0; text-align: left; }
  .meeting-desc h2 { font-size: 34px; }

  /* TIMELINE – „Jak budujemy” */
  .timeline-section { height: auto; padding: 70px 0 50px; }
  .timeline-section .title-timeline { font-size: 36px; }
  .timeline-inner { height: 220px; padding: 0 32px; }
  .timeline-step { width: 100px; }
  .timeline-line { opacity: 0;}
  .icon { width: 64px; height: 64px; }
  .label { font-size: 14px; }
  .timeline-step[data-step="1"] { left: 8%; }
  .timeline-step[data-step="2"] { left: 30%; }
  .timeline-step[data-step="3"] { left: 50%; }
  .timeline-step[data-step="4"] { left: 70%; }
  .timeline-step[data-step="5"] { left: 92%; }
  .description-box { max-width: 820px; margin-top: 12px; }
  .description-box h2 { font-size: 22px; }
  .description-box p { font-size: 17px; }
  .timeline-btn-wrapper { margin-top: 40px; }
  .timeline-button { padding: 14px 34px; }

  /* TESTIMONIALS */
  .testimonials { height: 540px; margin-top: 70px; }
  .testimonial-container {
    width: 88%;
    max-width: 860px;
    padding: 48px 56px;
    height: auto;
  }
  .testimonial-heading { font-size: 26px; }
  .testimonial-slider { height: 170px; }
  .testimonial p { font-size: 16px; min-height: 100px; }
  .testimonial-nav button { font-size: 28px; margin: 0 16px; }

  /* REALIZACJE – tekst wstępny */
  .realization { width: 88%; }
  .text-block h1 { font-size: 1.9rem; }
  .text-block p { font-size: 1.05rem; }

  /* CONTACT */
  .contact-section { padding: 90px 32px; }
  .contact-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .contact-info, .contact-form { width: 50%; }
  .contact-info h2, .contact-form h2 { font-size: 32px; }
  .submit-btn { align-self: flex-start; }

  /* FOOTER */
  .footer { padding: 36px 32px; }
  .footer-top { gap: 32px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w poziomie / małe laptopy */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Header */
  header {
    height: 80px;                  /* było 100px */
    padding: 0 40px;
  }
  header .logo img {
    height: 55px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  header nav ul li a{
      font-size: 13px;
  }

  .nav-separator {
    max-width: 820px;
    margin-left: 0px;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 500px;
    margin-top: 2px;
  }

  /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }

  /* About us */
  .about-us{
    display: grid;
    grid-template-columns: 1.2fr 1fr;   /* tekst trochę szerszy niż obraz */
    align-items: center;
    gap: 40px;
    padding: 60px 32px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
  }

  .about-text{
    margin: 0;                 /* zero zbędnych przerw po lewej */
    max-width: 620px;
  }

  .about-text h2{              /* duży tytuł po lewej */
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 20px 0;
  }

  .about-us .line-about{
    width: 100%;
    max-width: 560px;
    margin: 14px 0 18px;
  }

  .about-gallery{
    width: 100%;
    margin: 0;
  }

  .image-container{
    width: 100%;
    aspect-ratio: 4/3;         /* proporcje, żeby nie skakało */
    overflow: hidden;
    margin-bottom: 20px;
  }

  .gallery-controls{
    bottom: 12px;              /* nasze wcześniejsze absolutne centrowanie zostaje */
    transform: translateX(-50%);
  }

.progress-bar{ margin-top: 14px; }

  /* Gallery controls już masz wycentrowane absolutnie – tylko delikatny dół */
  .gallery-controls { bottom: 10px; }

  /* Offer – 2 kolumny */
  .offer-content {
    max-width: 900px;
  }
  .offer-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .offer-grid {
    grid-template-columns: repeat(2, 1fr); /* zmiana 3 → 2 */
    gap: 32px;
    justify-items: center;
  }
  .offer-box {
    width: 100%;
    max-width: 380px;
  }
  .offer-icon {
    height: 120px;
  }
  .offer-box h3 { font-size: 18px; }
  .offer-box p  { font-size: 14px; }

  /* Meeting – poprawiony układ */
  .meeting {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    gap: 40px;
    margin-top: 0;
  }

  .meeting img {
    width: 45%;
    max-width: 460px;
    height: auto;
    object-fit: cover;
  }

  .meeting .meeting-desc {
    width: 50%;
    margin: 0;
  }
  .meeting .meeting-desc h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .meeting .meeting-desc p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Timeline */
  .timeline-section { height: auto; padding: 70px 0 30px; }
  .timeline-inner { max-width: 1024px; height: 200px; }
  .timeline-step { width: 110px; }
  .icon { width: 64px; height: 64px; }
  .label { font-size: 13px; }
  /* lekkie dopasowanie pozycji */
  .timeline-step[data-step="2"] { left: 27%; }
  .timeline-step[data-step="4"] { left: 73%; }

  .description-box {
    max-width: 820px;
    padding: 18px;
  }
  .description-box h2 { font-size: 20px; }
  .description-box p  { font-size: 16px; }

  /* Opinie */
  .testimonials { margin-top: 80px; }
  .testimonial-container {
    width: 700px;                 /* było 800px */
    height: 360px;                /* było 400px */
    padding: 50px 90px;
  }
  .testimonial-heading { font-size: 26px; }
  .testimonial p { font-size: 15px; min-height: 90px; }
  .testimonial-nav button { font-size: 26px; }

  /* Kontakt */
  .contact-section { padding: 80px 30px; }
  .contact-container {
    max-width: 1100px;
    gap: 60px;                    /* było 80px */
  }
  .contact-info h2, .contact-form h2 { font-size: 28px; }
  .contact-logo { width: 90px; }

  /* Sekcja porównawcza (Build with Us) */
  .compare-header, .compare-grid {
    max-width: 1100px;
    grid-template-columns: 1fr 180px 1fr;
    gap: 16px;
  }
  .header-box.left, .header-box.right { width: auto; }
  .header-box.vs { width: auto; }
  .compare-center img { width: 52px; }
  .compare-card li { margin-left: 56px; }

  /* FAQ */
  .faq-list { max-width: 760px; }

  /* Galerie (realizacje) */
  .gallery { width: 86%; }
  .gallery-grid { gap: 12px; }
  .gallery-grid img { height: 190px; }

  /* Realizacje – tekst */
  .realization { width: 86%; }
  .text-block h1 { font-size: 1.65rem; }
  .text-block p  { font-size: 0.98rem; }

  /* Frame houses */
  .frame-houses { max-width: 920px; }
  .UP, .DOWN { gap: 24px; }
  .UP img, .DOWN img { max-width: 380px; }

  /* Stopka */
  .footer { padding: 30px 40px; }
  .footer-logo img { margin-left: 140px; }     /* było 320px */
  .footer-line { width: 86%; margin-left: 140px; }
  .footer-links { margin-right: 120px; }       /* było 300px */
  .footer-bottom .copyright { margin-left: 140px; }
  .footer-policy { margin-right: 120px; }
}

/* Laptopy / mniejsze monitory */
@media (min-width: 1280px) and (max-width: 1535px) {
    /* Header */
  header {
    height: 100px;                  /* było 100px */
    padding: 0 100px;
  }
  header .logo img {
    height: 70px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  .nav-separator {
    max-width: 1000px;
    margin-left: 0;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 720px;
    margin-top: 2px;
  }


  /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }

  /* About us */
  .about-us{
    display: grid;
    grid-template-columns: 1.2fr 1fr;   /* tekst trochę szerszy niż obraz */
    align-items: center;
    gap: 40px;
    padding: 60px 32px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
  }

  .about-text{
    margin: 0;                 /* zero zbędnych przerw po lewej */
    max-width: 620px;
  }

  .about-text h2{              /* duży tytuł po lewej */
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 20px 0;
  }

  .about-us .line-about{
    width: 100%;
    max-width: 560px;
    margin: 14px 0 18px;
  }

  .about-gallery{
    width: 100%;
    margin: 0;
  }

  .image-container{
    width: 100%;
    aspect-ratio: 4/3;         /* proporcje, żeby nie skakało */
    overflow: hidden;
    margin-bottom: 20px;
  }

  .gallery-controls{
    bottom: 12px;              /* nasze wcześniejsze absolutne centrowanie zostaje */
    transform: translateX(-50%);
  }

.progress-bar{ margin-top: 14px; }

  /* Gallery controls już masz wycentrowane absolutnie – tylko delikatny dół */
  .gallery-controls { bottom: 10px; }

    /* Meeting – poprawiony układ */
  .meeting {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    gap: 40px;
    margin-top: 0;
  }

  .meeting img {
    width: 45%;
    max-width: 460px;
    height: auto;
    object-fit: cover;
  }

  .meeting .meeting-desc {
    width: 50%;
    margin: 0;
  }
  .meeting .meeting-desc h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .meeting .meeting-desc p {
    font-size: 15px;
    line-height: 1.6;
  }
}

/* Minitory duże */
@media (min-width: 1921px) {

}


/* Ukryj pasek przewijania, ale pozwól na przewijanie */
body {
  -ms-overflow-style: none;  /* IE i stary Edge */
  scrollbar-width: none;     /* Firefox */
}

body::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, nowy Edge */
}




















/* ================== RESPONSYWNOŚĆ - OFERTA ================== */

/* Mobile (domyślny styl – zaczynamy od najmniejszych ekranów) */
@media (max-width: 480px) {

  *{
    overflow-x: hidden;
  }


  header {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0 20px;
    height: 70px;
  }

  header .logo img {
    height: 40px;
  }
  

  /* hamburger kreski też zawsze ciemne */
  .hamburger span {
    background: #333;
  }

  /*HERO SECTION*/

  .hero .hero-slider .hero-image {
    height: 100%;
  }

  .hero .hero-slider .hero-overlay {
    height: 100%;
  }

  .hero .hero-text {
    margin-left: 10px;
    margin-bottom: -60px;
    height: 150px;
  }

  .hero .hero-text h1 {
    font-size: 30px;
  }

  .hero .hero-text p {
    font-size: 15px;
    margin-top: -15px;
  }

  .hero .hero-text .offer-button {
    padding:  10px 20px;
    font-size: 0.7rem;
  }

  .hero .hero-slider .slider-controls {
    opacity: 0;
  }

    /* Sekcje INFO (naprzemienne zdjęcie/tekst) */
  .info {
    display: block;            /* zamiast obok siebie – wszystko w kolumnie */
    padding: 24px 16px;        /* ciaśniejsze odstępy na telefonie */
    gap: 0;
    margin-bottom: 0;
    background-color: #333;    /* zachowujemy tło z desktopu */
  }

  .info .text-top,
  .info .text-bottom {
    display: block;
    margin: 0;                 /* usuwamy przesunięcia desktopowe */
  }

  /* Obrazki pełna szerokość, proporcje auto */
  .info .text-top img,
  .info .text-bottom img {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 0 16px 0;
    object-fit: cover;
  }

  /* Porządek kolejności: najpierw zdjęcie, potem tekst */
  .info .photo-left,
  .info .photo-right {
    margin: 0 0 12px 0;
  }

  /* Teksty – zmniejszamy marginesy i rozmiary */
  .info .text-top .text-right,
  .info .text-bottom .text-left {
    margin: 0 0 24px 0;
  }

  .info .text-top h3,
  .info .text-bottom h2 {
    font-size: 1.25rem;  /* ~20px */
    margin-bottom: 12px;
  }

  .info .text-top p,
  .info .text-bottom p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Animacje wejścia – delikatniejsze na mobile */
  .info .photo-left,
  .info .photo-right,
  .info .text-left,
  .info .text-right {
    transform: none;
    opacity: 1;
    transition: none;
  }

  /* ===== Domy szkieletowe ===== */
  .frame-houses {
    max-width: 100%;
    margin: 32px 0 0 0;
    padding: 0 16px;
    line-height: 1.55;
  }

  .title-frame-house h4 {
    font-size: 18px;
    margin-bottom: 12px;
    text-align: center;
  }

  .description-frame-house h5 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .description-frame-house p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .UP,
  .DOWN {
    flex-direction: column;  /* obraz nad tekstem */
    gap: 16px;
    margin-bottom: 28px;
  }

  .UP img,
  .DOWN img {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
  }

  .text-box {
    flex: unset;
  }

  .text-box h6 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .UP ul,
  .DOWN ul {
    font-size: 14px;
    padding-left: 18px;
  }

  .UP ul li,
  .DOWN ul li {
    margin-bottom: 6px;
  }

  .footer-frame-house {
    font-size: 14px;
    margin-top: 8px;
  }

  /* ===== Sekcja zdjęcia na dole ===== */
  .photo .footer-photo,
  .photo img.footer-photo {
    width: 100%;
    height: auto;
    display: block;
  }




  .footer {
    padding: 20px;
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo img {
    margin: 0 auto 20px;
  }
  .footer-links {
    margin: 20px 0 0 0;
  }
  .footer-line {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-bottom .copyright {
    margin-left: 0;
  }
  .footer-policy {
    margin-right: 0;
  }
}

/* Małe telefony w poziomie / średnie telefony */
@media (min-width: 481px) and (max-width: 767px) {
    /* HEADER */
  header {
    background: #fff !important;
    height: 80px;
    padding: 0 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 50px; margin-left: 0; filter: brightness(.2); }
  .hamburger { display: flex; }
  /* (szuflada z nawigacją zostaje z reguł <=1023px) */

  /* HERO */
  .hero { height: 80vh; }
  .hero-slider { padding-top: 80px; }
  .hero-text {
    bottom: 120px;
    margin-left: 24px;
  }
  .hero-text h1 { font-size: 28px; max-width: 520px; }
  .offer-button { padding: 12px 26px; font-size: .9rem; }
  /* pokaż strzałki na tablecie, ale mniejsze */
  .slider-controls { display: flex; bottom: 24px; right: 16px; }
  .slider-controls button { font-size: 1.6rem; padding: 8px 14px; }

    /* Sekcje INFO (naprzemienne zdjęcie/tekst) */
  .info {
    display: block;
    padding: 32px 24px;      /* luźniej niż mobile */
    gap: 0;
    margin-bottom: 0;
    background-color: #333;  /* jak desktop */
  }

  .info .text-top,
  .info .text-bottom {
    display: block;
    margin: 0;
  }

  .info .text-top img,
  .info .text-bottom img {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 0 18px 0;
    object-fit: cover;
  }

  .info .text-top .text-right,
  .info .text-bottom .text-left {
    margin: 0 0 28px 0;      /* oddech pod akapitami */
  }

  .info .text-top h3,
  .info .text-bottom h2 {
    font-size: 1.35rem;      /* ~22px */
    margin-bottom: 12px;
  }

  .info .text-top p,
  .info .text-bottom p {
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Animacje – bez przesunięć na tym progu */
  .info .photo-left,
  .info .photo-right,
  .info .text-left,
  .info .text-right {
    transform: none;
    opacity: 1;
    transition: none;
  }

  /* ===== Domy szkieletowe ===== */
  .frame-houses {
    max-width: 640px;        /* wygodna szerokość dla 481–767px */
    margin: 40px auto 0 auto;
    padding: 0 24px;
    line-height: 1.6;
  }

  .title-frame-house h4 {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
  }

  .description-frame-house h5 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .description-frame-house p {
    font-size: 15px;
    margin-bottom: 26px;
  }

  /* Bloki naprzemienne – nadal pionowo, ale z większą siatką */
  .UP,
  .DOWN {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
  }

  .UP img,
  .DOWN img {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
  }

  .text-box h6 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .UP ul,
  .DOWN ul {
    font-size: 15px;
    padding-left: 20px;
  }

  .UP ul li,
  .DOWN ul li {
    margin-bottom: 6px;
  }

  .footer-frame-house {
    font-size: 15px;
    margin-top: 8px;
  }

  /* ===== Zdjęcie na dole ===== */
  .photo .footer-photo,
  .photo img.footer-photo {
    width: 100%;
    height: auto;
    display: block;
  }


  /* FOOTER */
  .footer { padding: 30px 24px; }
  .footer-top { gap: 24px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w pionie */
@media (min-width: 768px) and (max-width: 1023px) {
    /* HEADER */
  header {
    height: 88px;
    padding: 0 32px;
    background:#fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 58px; filter: brightness(.2); }
  .hamburger { display:flex; } /* menu szufladowe do 1023px */

  /* HERO */
  .hero { height: 82vh; }
  .hero-slider { padding-top: 88px; }
  .hero-text {
    bottom: 130px;
    margin-left: 32px;
  }
  .hero-text h1 { font-size: 34px; max-width: 700px; }
  .offer-button { padding: 14px 34px; font-size: 1rem; }
  .slider-controls { display:flex; bottom: 28px; right: 24px; }
  .slider-controls button { font-size: 1.8rem; padding: 10px 16px; }

    /* ===== Sekcje INFO (naprzemienne zdjęcie/tekst) ===== */
  .info {
    width: 100%;
    background-color: #333;
    display: block;              /* na tablecie pion – czytelna kolumna */
    padding: 40px 32px;          /* było 50px 300px na desktopie */
    margin: 0;
    gap: 0;
  }

  .info .text-top,
  .info .text-bottom {
    display: grid;
    grid-template-columns: 1fr;  /* jedna kolumna */
    align-items: start;
    margin: 0 0 40px 0;
  }

  /* obrazy pełna szerokość */
  .info .text-top img,
  .info .text-bottom img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    margin: 0 0 16px 0;
  }

  /* porządkujemy duże desktopowe przesunięcia */
  .info .text-top { margin-left: 0; }
  .info .text-top .text-right,
  .info .text-bottom .text-left { margin-top: 0; }

  .info .text-top h3,
  .info .text-bottom h2 {
    font-size: 1.5rem;           /* ~24px */
    margin-bottom: 12px;
    color: #fff;
  }
  .info .text-top p,
  .info .text-bottom p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
  }

  /* animacje – bez przesunięć na tym progu */
  .info .photo-left,
  .info .photo-right,
  .info .text-left,
  .info .text-right {
    transform: none;
    opacity: 1;
    transition: none;
  }

  /* ===== DOMY SZKIELETOWE ===== */
  .frame-houses {
    max-width: 820px;            /* wygodna szerokość w pionie */
    margin: 56px auto;
    padding: 0 24px;
    line-height: 1.6;
  }

  .title-frame-house h4 { font-size: 22px; margin-bottom: 16px; }
  .description-frame-house h5 { font-size: 18px; margin-bottom: 10px; }
  .description-frame-house p { font-size: 15px; margin-bottom: 28px; }

  /* Na tym progu zostawiamy pion (obraz nad tekstem) dla lepszej czytelności */
  .UP, .DOWN {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
  }

  .UP img, .DOWN img {
    width: 100%;                 /* zamiast 45% */
    max-width: none;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
  }

  .text-box { flex: unset; }
  .text-box h6 { font-size: 18px; margin-bottom: 10px; }
  .UP ul, .DOWN ul { font-size: 15px; padding-left: 20px; }
  .UP ul li, .DOWN ul li { margin-bottom: 6px; }

  .footer-frame-house { font-size: 15px; margin-top: 8px; }

  /* ===== Zdjęcie na dole ===== */
  .photo .footer-photo,
  .photo img.footer-photo {
    width: 100%;
    height: auto;
    display: block;
  }


  /* FOOTER */
  .footer { padding: 36px 32px; }
  .footer-top { gap: 32px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w poziomie / małe laptopy */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Header */
  header {
    height: 80px;                  /* było 100px */
    padding: 0 40px;
  }
  header .logo img {
    height: 55px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  header nav ul li a{
      font-size: 13px;
  }

  .nav-separator {
    max-width: 820px;
    margin-left: 0px;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 500px;
    margin-top: 2px;
  }

    /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }

    /* ===== Sekcje INFO (naprzemienne zdjęcie/tekst) ===== */
  .info {
    width: 100%;
    background-color: #333;
    padding: 60px 120px;           /* mniej niż desktopowe 300px */
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  .info .text-bottom img {
    margin-top: 0;
  }

  .info .text-top,
  .info .text-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* dwie kolumny obok siebie */
    align-items: center;
    gap: 32px;
  }

  /* Odwracanie kolejności co sekcję */
  .info .text-bottom {
    grid-template-areas: "text-left photo-right";
  }

  .info img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }

  .info .text-top h3,
  .info .text-bottom h2 {
    font-size: 1.65rem;
    margin-bottom: 14px;
    color: #fff;
  }

  .info .text-top p,
  .info .text-bottom p {
    font-size: 1rem;
    line-height: 1.65;
    color: #fff;
  }

  /* animacje – włączamy lekko */
  .info .photo-left,
  .info .photo-right,
  .info .text-left,
  .info .text-right {
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
  }

  /* ===== DOMY SZKIELETOWE ===== */
  .frame-houses {
    max-width: 1000px;
    margin: 64px auto;
    padding: 0 40px;
    line-height: 1.65;
  }

  .title-frame-house h4 {
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
  }

  .description-frame-house h5 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .description-frame-house p {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Układ 50/50 – wracamy do dwóch kolumn */
  .UP,
  .DOWN {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 32px;
    margin-bottom: 48px;
  }

  /* Odwrócenie dla sekcji DOWN */
  .DOWN {
    flex-direction: row-reverse;
  }

  .UP img,
  .DOWN img {
    width: 48%;
    max-width: none;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
  }

  .text-box {
    flex: 1;
  }

  .text-box h6 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .UP ul,
  .DOWN ul {
    font-size: 15px;
    padding-left: 22px;
  }

  .UP ul li,
  .DOWN ul li {
    margin-bottom: 8px;
  }

  .footer-frame-house {
    font-size: 15px;
    margin-top: 12px;
  }

  /* ===== Zdjęcie na dole ===== */
  .photo .footer-photo,
  .photo img.footer-photo {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
  }


  /* Stopka */
  .footer { padding: 30px 40px; }
  .footer-logo img { margin-left: 140px; }     /* było 320px */
  .footer-line { width: 86%; margin-left: 140px; }
  .footer-links { margin-right: 120px; }       /* było 300px */
  .footer-bottom .copyright { margin-left: 140px; }
  .footer-policy { margin-right: 120px; }
}

/* Laptopy / mniejsze monitory */
@media (min-width: 1280px) and (max-width: 1535px) {
    /* Header */
  header {
    height: 100px;                  /* było 100px */
    padding: 0 100px;
  }
  header .logo img {
    height: 70px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  .nav-separator {
    max-width: 1000px;
    margin-left: 0;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 720px;
    margin-top: 2px;
  }

    /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }

    /* ===== Sekcje INFO (naprzemienne zdjęcie/tekst) ===== */
  .info {
    width: 100%;
    background-color: #333;
    padding: 70px 180px;            /* szerzej niż 1024–1279, wężej niż pełny desktop */
    display: flex;
    flex-direction: column;
    gap: 72px;
  }

  .info .text-top,
  .info .text-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr; /* dwie równe kolumny */
    align-items: center;
    gap: 40px;
  }

  .info img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
  }

  .info .text-bottom img {
    margin-top: 0;
  }

  .info .text-top h3,
  .info .text-bottom h2 {
    font-size: 1.75rem;             /* ~28px */
    margin-bottom: 14px;
    color: #fff;
  }
  .info .text-top p,
  .info .text-bottom p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #fff;
  }

  /* subtelne animacje ok */
  .info .photo-left,
  .info .photo-right,
  .info .text-left,
  .info .text-right {
    opacity: 1;
    transform: none;
    transition: all .35s ease;
  }

  /* ===== DOMY SZKIELETOWE ===== */
  .frame-houses {
    max-width: 1140px;              /* wygodna szerokość kontenera */
    margin: 72px auto;
    padding: 0 32px;
    line-height: 1.7;
  }

  .title-frame-house h4 { font-size: 24px; margin-bottom: 18px; text-align: center; }
  .description-frame-house h5 { font-size: 19px; margin-bottom: 12px; }
  .description-frame-house p { font-size: 16px; margin-bottom: 32px; }

  /* 50/50 z większym „oddechem” */
  .UP,
  .DOWN {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 56px;
    flex-direction: row;
  }
  .DOWN { flex-direction: row-reverse; }

  .UP img,
  .DOWN img {
    width: 48%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,.18);
  }

  .text-box { flex: 1; }
  .text-box h6 { font-size: 19px; margin-bottom: 12px; }
  .UP ul, .DOWN ul { font-size: 16px; padding-left: 24px; }
  .UP ul li, .DOWN ul li { margin-bottom: 8px; }
  .footer-frame-house { font-size: 16px; margin-top: 12px; }

  /* ===== Zdjęcie na dole ===== */
  .photo .footer-photo,
  .photo img.footer-photo {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 48px;
  }



}

/* Minitory duże */
@media (min-width: 1921px) {

}


/* ================== RESPONSYWNOŚĆ - REALIZACJE ================== */

/* Mobile (domyślny styl – zaczynamy od najmniejszych ekranów) */
@media (max-width: 480px) {

  *{
    overflow-x: hidden;
  }


  header {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0 20px;
    height: 70px;
  }

  header .logo img {
    height: 40px;
  }
  

  /* hamburger kreski też zawsze ciemne */
  .hamburger span {
    background: #333;
  }

  /*HERO SECTION*/

  .hero .hero-slider .hero-image {
    height: 100%;
  }

  .hero .hero-slider .hero-overlay {
    height: 100%;
  }

  .hero .hero-text {
    margin-left: 10px;
    margin-bottom: -60px;
    height: 150px;
  }

  .hero .hero-text h1 {
    font-size: 20px;
  }

  .hero .hero-text .offer-button {
    padding:  10px 20px;
    font-size: 0.7rem;
  }

  .hero .hero-slider .slider-controls {
    opacity: 0;
  }

  /* Sekcja tekstowa */
  .realizations {
    padding: 32px 0;                 /* było 80px – ciaśniej na telefonie */
  }
  .realization {
    width: 92%;                      /* było 80% */
    max-width: 720px;
  }

  .text-block h1 {
    font-size: 1.35rem;              /* z 1.8rem */
    margin: 16px 0 10px;
    line-height: 1.3;
  }
  .text-block p  {
    font-size: .95rem;               /* z 1rem */
    line-height: 1.6;                /* z 1.7 */
    margin-bottom: 18px;
  }
  .text-block img {
    margin: 16px auto;               /* z 40px */
    border-radius: 10px;             /* delikatniej na mobile */
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
  }

  /* Galeria */
  .gallery {
    width: 92%;                      /* było 80% + miało ujemny top */
    margin: 32px auto 0;             /* zero ujemnych przesunięć */
    text-align: center;
    margin-bottom: 20px;
  }
  .gallery h2 {
    font-size: 1.25rem;              /* z 2rem */
    margin-bottom: 14px;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 kolumny na telefonie */
    gap: 10px;
  }
  .gallery-grid img {
    height: 140px;                   /* z 200px */
    border-radius: 8px;
  }

  /* Lightbox (mniejsze ograniczenia, żeby mieściło się na ekranie) */
  .lightbox-img {
    max-width: 92%;
    max-height: 72vh;                /* z 80% */
  }
  .close {
    top: 12px;
    right: 16px;
    font-size: 1.6rem;               /* z 2rem */
  }
  .controls {
    padding: 0 8px;                  /* było 40px */
  }
  .controls .prev,
  .controls .next {
    font-size: 2rem;                 /* z 2.5rem */
  }




  .footer {
    padding: 20px;
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo img {
    margin: 0 auto 20px;
  }
  .footer-links {
    margin: 20px 0 0 0;
  }
  .footer-line {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-bottom .copyright {
    margin-left: 0;
  }
  .footer-policy {
    margin-right: 0;
  }
}

/* Małe telefony w poziomie / średnie telefony */
@media (min-width: 481px) and (max-width: 767px) {
    /* HEADER */
  header {
    background: #fff !important;
    height: 80px;
    padding: 0 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 50px; margin-left: 0; filter: brightness(.2); }
  .hamburger { display: flex; }
  /* (szuflada z nawigacją zostaje z reguł <=1023px) */

  /* HERO */
  .hero { height: 80vh; }
  .hero-slider { padding-top: 80px; }
  .hero-text {
    bottom: 120px;
    margin-left: 24px;
  }
  .hero-text h1 { font-size: 28px; max-width: 520px; }
  .offer-button { padding: 12px 26px; font-size: .9rem; }
  /* pokaż strzałki na tablecie, ale mniejsze */
  .slider-controls { display: flex; bottom: 24px; right: 16px; }
  .slider-controls button { font-size: 1.6rem; padding: 8px 14px; }

    /* Sekcja tekstowa */
  .realizations {
    padding: 40px 0;
  }
  .realization {
    width: 90%;
    max-width: 820px;
    margin: 0 auto;
  }

  .text-block h1 {
    font-size: 1.45rem;
    margin: 18px 0 10px;
    line-height: 1.35;
  }
  .text-block p  {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 18px;
  }
  .text-block img {
    margin: 18px auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
  }

  /* Galeria */
  .gallery {
    width: 90%;
    margin: 36px auto 0;
    text-align: center;
    margin-bottom: 20px;
  }
  .gallery h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny w tym progu */
    gap: 12px;
  }
  .gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
  }

  /* Lightbox */
  .lightbox-img {
    max-width: 90%;
    max-height: 76vh;
  }
  .close {
    top: 12px;
    right: 16px;
    font-size: 1.8rem;
  }
  .controls {
    padding: 0 12px;
  }
  .controls .prev,
  .controls .next {
    font-size: 2.2rem;
  }


  /* FOOTER */
  .footer { padding: 30px 24px; }
  .footer-top { gap: 24px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w pionie */
@media (min-width: 768px) and (max-width: 1023px) {
    /* HEADER */
  header {
    height: 88px;
    padding: 0 32px;
    background:#fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 58px; filter: brightness(.2); }
  .hamburger { display:flex; } /* menu szufladowe do 1023px */

  /* HERO */
  .hero { height: 82vh; }
  .hero-slider { padding-top: 88px; }
  .hero-text {
    bottom: 130px;
    margin-left: 32px;
  }
  .hero-text h1 { font-size: 34px; max-width: 700px; }
  .offer-button { padding: 14px 34px; font-size: 1rem; }
  .slider-controls { display:flex; bottom: 28px; right: 24px; }
  .slider-controls button { font-size: 1.8rem; padding: 10px 16px; }



  /* FOOTER */
  .footer { padding: 36px 32px; }
  .footer-top { gap: 32px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w poziomie / małe laptopy */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Header */
  header {
    height: 80px;                  /* było 100px */
    padding: 0 40px;
  }
  header .logo img {
    height: 55px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  header nav ul li a{
      font-size: 13px;
  }

  .nav-separator {
    max-width: 820px;
    margin-left: 0px;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 500px;
    margin-top: 2px;
  }

    /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }



  /* Stopka */
  .footer { padding: 30px 40px; }
  .footer-logo img { margin-left: 140px; }     /* było 320px */
  .footer-line { width: 86%; margin-left: 140px; }
  .footer-links { margin-right: 120px; }       /* było 300px */
  .footer-bottom .copyright { margin-left: 140px; }
  .footer-policy { margin-right: 120px; }
}

/* Laptopy / mniejsze monitory */
@media (min-width: 1280px) and (max-width: 1535px) {
    /* Header */
  header {
    height: 100px;                  /* było 100px */
    padding: 0 100px;
  }
  header .logo img {
    height: 70px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  .nav-separator {
    max-width: 1000px;
    margin-left: 0;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 720px;
    margin-top: 2px;
  }

    /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }




}

/* Minitory duże */
@media (min-width: 1921px) {

}


/* ================== RESPONSYWNOŚĆ - BUDOWA DOMU ================== */

/* Mobile (domyślny styl – zaczynamy od najmniejszych ekranów) */
@media (max-width: 480px) {

  *{
    overflow-x: hidden;
  }


  header {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0 20px;
    height: 70px;
  }

  header .logo img {
    height: 40px;
  }
  

  /* hamburger kreski też zawsze ciemne */
  .hamburger span {
    background: #333;
  }

  /*HERO SECTION*/

  .hero .hero-slider .hero-image {
    height: 100%;
  }

  .hero .hero-slider .hero-overlay {
    height: 100%;
  }

  .hero .hero-text {
    margin-left: 10px;
    margin-bottom: -60px;
    height: 150px;
  }

  .hero .hero-text h1 {
    font-size: 20px;
  }

  .hero .hero-text .offer-button {
    padding:  10px 20px;
    font-size: 0.7rem;
  }

  .hero .hero-slider .slider-controls {
    opacity: 0;
  }


  /* ===== PORÓWNANIE: Z NAMI vs SAMODZIELNIE ===== */

  .compare { padding: 28px 12px; }

  .compare-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;            /* bez zawijania */
  }

  .header-box {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    line-height: 1;               /* kompaktowo */
    white-space: nowrap;          /* nie łamie słów */
    font-size: clamp(12px, 3.2vw, 16px);  /* skaluje się na małych ekranach */
  }

  /* lewa i prawa dzielą równo miejsce, środkowe VS ma stałą, wąską szerokość */
  .header-box.left,
  .header-box.right { flex: 1 1 0; }

  .header-box.vs {
    flex: 0 0 52px;               /* wąski środek, zawsze w jednej linii */
    padding-left: 0;
    padding-right: 0;
  }

  /* 1) Środkowy element (pasek/ikona) – wyłącz z layoutu */
  .compare-center,
  .compare-grid > :nth-child(3n+2) {  /* środkowy element w każdej trójce */
    display: none !important;
  }

  /* 2) Siatka dwóch kolumn dla kart (lewa/prawa) */
  .compare-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* 3) Umieszczenie kart: 3n+1 -> lewa (Z NAMI), 3n -> prawa (SAMODZIELNIE) */
  .compare-grid > :nth-child(3n+1) { grid-column: 1; }  /* Z NAMI */
  .compare-grid > :nth-child(3n)   { grid-column: 2; }  /* SAMODZIELNIE */

  /* (opcjonalnie) odrobinę ciaśniejsze karty na bardzo wąskich ekranach */
  .compare-card {
    padding: 12px 12px 12px 14px;
    border-radius: 12px;
  }
  .compare-card li {
    margin: 0 0 8px 24px;
    font-size: .95rem;
    line-height: 1.55;
  }

  /* ===== FAQ ===== */
  .faq {
    padding: 32px 12px;          /* z 60px 20px */
  }
  .faq-title {
    font-size: 1.4rem;           /* z 2rem */
    margin-bottom: 20px;
  }
  .faq-list { max-width: 92%; }
  .faq-item { margin-bottom: 12px; box-shadow: 0 3px 8px rgba(0,0,0,.22); }
  .faq-question { font-size: 1rem; padding: 14px 16px; }
  .faq-question::after { right: 14px; font-size: 1.3rem; }
  .faq-answer { padding: 0 16px; }
  .faq-item.active .faq-answer { max-height: 240px; } /* więcej miejsca na treść */

  /* ===== PHOTO (dół strony) ===== */
  .photo { margin-bottom: 0; }
  .photo img.footer-photo {
    width: 100%;
    height: auto;
    display: block;
  }


  .footer {
    padding: 20px;
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo img {
    margin: 0 auto 20px;
  }
  .footer-links {
    margin: 20px 0 0 0;
  }
  .footer-line {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-bottom .copyright {
    margin-left: 0;
  }
  .footer-policy {
    margin-right: 0;
  }
}

/* Małe telefony w poziomie / średnie telefony */
@media (min-width: 481px) and (max-width: 767px) {
    /* HEADER */
  header {
    background: #fff !important;
    height: 80px;
    padding: 0 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 50px; margin-left: 0; filter: brightness(.2); }
  .hamburger { display: flex; }
  /* (szuflada z nawigacją zostaje z reguł <=1023px) */

  /* HERO */
  .hero { height: 80vh; }
  .hero-slider { padding-top: 80px; }
  .hero-text {
    bottom: 120px;
    margin-left: 24px;
  }
  .hero-text h1 { font-size: 28px; max-width: 520px; }
  .offer-button { padding: 12px 26px; font-size: .9rem; }
  /* pokaż strzałki na tablecie, ale mniejsze */
  .slider-controls { display: flex; bottom: 24px; right: 16px; }
  .slider-controls button { font-size: 1.6rem; padding: 8px 14px; }

    .compare-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;            /* bez zawijania */
  }

  .header-box {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    line-height: 1;               /* kompaktowo */
    white-space: nowrap;          /* nie łamie słów */
    font-size: clamp(12px, 3.2vw, 16px);  /* skaluje się na małych ekranach */
  }

  /* lewa i prawa dzielą równo miejsce, środkowe VS ma stałą, wąską szerokość */
  .header-box.left,
  .header-box.right { flex: 1 1 0; }

  .header-box.vs {
    flex: 0 0 200px;               /* wąski środek, zawsze w jednej linii */
    padding-left: 0;
    padding-right: 0;
  }
  





  /* FOOTER */
  .footer { padding: 30px 24px; }
  .footer-top { gap: 24px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w pionie */
@media (min-width: 768px) and (max-width: 1023px) {
    /* HEADER */
  header {
    height: 88px;
    padding: 0 32px;
    background:#fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
  }
  header .logo img { height: 58px; filter: brightness(.2); }
  .hamburger { display:flex; } /* menu szufladowe do 1023px */

  /* HERO */
  .hero { height: 82vh; }
  .hero-slider { padding-top: 88px; }
  .hero-text {
    bottom: 130px;
    margin-left: 32px;
  }
  .hero-text h1 { font-size: 34px; max-width: 700px; }
  .offer-button { padding: 14px 34px; font-size: 1rem; }
  .slider-controls { display:flex; bottom: 28px; right: 24px; }
  .slider-controls button { font-size: 1.8rem; padding: 10px 16px; }

      .compare-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;            /* bez zawijania */
  }

  .header-box {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    line-height: 1;               /* kompaktowo */
    white-space: nowrap;          /* nie łamie słów */
    font-size: clamp(12px, 3.2vw, 16px);  /* skaluje się na małych ekranach */
  }

  /* lewa i prawa dzielą równo miejsce, środkowe VS ma stałą, wąską szerokość */
  .header-box.left,
  .header-box.right { flex: 1 1 0; }

  .header-box.vs {
    flex: 0 0 200px;               /* wąski środek, zawsze w jednej linii */
    padding-left: 0;
    padding-right: 0;
  }



  /* FOOTER */
  .footer { padding: 36px 32px; }
  .footer-top { gap: 32px; }
  .footer-logo img { margin-left: 0; }
  .footer-links { margin-right: 0; }
  .footer-line { width: 100%; margin-left: 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .copyright { margin-left: 0; }
  .footer-policy { margin-right: 0; text-align: left; }
}

/* Tablety w poziomie / małe laptopy */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Header */
  header {
    height: 80px;                  /* było 100px */
    padding: 0 40px;
  }
  header .logo img {
    height: 55px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  header nav ul li a{
      font-size: 13px;
  }

  .nav-separator {
    max-width: 820px;
    margin-left: 0px;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 500px;
    margin-top: 2px;
  }

    /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }



  /* Stopka */
  .footer { padding: 30px 40px; }
  .footer-logo img { margin-left: 140px; }     /* było 320px */
  .footer-line { width: 86%; margin-left: 140px; }
  .footer-links { margin-right: 120px; }       /* było 300px */
  .footer-bottom .copyright { margin-left: 140px; }
  .footer-policy { margin-right: 120px; }
}

/* Laptopy / mniejsze monitory */
@media (min-width: 1280px) and (max-width: 1535px) {
    /* Header */
  header {
    height: 100px;                  /* było 100px */
    padding: 0 100px;
  }
  header .logo img {
    height: 70px;
    margin-left: 20px;
  }
  header nav ul {
    gap: 24px;
    margin-left: 40px;
  }

  .nav-separator {
    max-width: 1000px;
    margin-left: 0;
  }
  .nav-contact {
    gap: 20px;
    margin-left: 720px;
    margin-top: 2px;
  }

    /* Hero */
  .hero { height: 92vh; }
  .hero-slider { padding-top: 100px; }
  .hero-text {
    bottom: 120px;               /* było 150px */
    margin-left: 140px;          /* było 300px */
    max-width: 70ch;
  }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p  { font-size: 1.2rem; margin-top: -10px; }
  .slider-controls { bottom: 28px; right: 16px; }
  .slider-controls button { font-size: 1.8rem; }




}

/* Minitory duże */
@media (min-width: 1921px) {

}
