:root {
  --blue: #004c97;
  --blue-light: #5da9e9;
  --yellow: #ffd400;
  --text: #ffffff;
  --muted: #dbeafe;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  background: #0b1a33;
}

/* Layout helpers */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}
.section {
  padding: 64px 0;
}
.section--dark {
  background: #0f274a;
}
.section__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 28px;
  color: #fff;
}
.section__title--accent {
  color: var(--yellow);
}

/* HERO */
.hero {
  background: linear-gradient(
    180deg,
    var(--blue-light) 0%,
    #2b6cb0 35%,
    #0b3a7a 70%,
    #062349 100%
  );
  padding: 48px 0 64px;
  position: relative; /* dla fade overlay */
  overflow: hidden; /* dla fade overlay */
}
.hero__inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; /* ponad overlay */
  z-index: 1; /* ponad overlay */
}
.hero__logo {
  width: min(320px, 42vw);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}
.hero__text {
  max-width: 640px;
  text-align: center;
}
.hero__text h1 {
  font-size: clamp(30px, 5vw, 56px);
  margin: 0 0 12px;
}
.hero__text p {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 20px);
  margin: 0 0 20px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}
.btn--primary {
  background: var(--yellow);
  color: #0a2450;
}
.btn--primary:hover {
  filter: brightness(1.05);
}
.btn--ghost {
  border: 2px solid var(--yellow);
  color: var(--yellow);
}
.btn--ghost:hover {
  background: var(--yellow);
  color: #0a2450;
}

/* Services */
.services {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 700px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0e2a53;
}
.service__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  filter: grayscale(20%);
}
.service__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 18px 22px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}
.service__desc {
  margin: 10px 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Podmień poniższe tła na własne zdjęcia */
.service__image--hydro {
  background-image: url("../assets/images/realizacje/hydro.webp");
}
.service__image--gas {
  background-image: url("../assets/images/realizacje/gazy.webp");
}
.service__image--elec {
  background-image: url("../assets/images/realizacje/elektryk.webp");
}
.service__image--ac {
  background-image: url("../assets/images/realizacje/klima.webp");
}

/* Why us */
.why {
  max-width: 900px;
}
.why__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 700px) {
  .why__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .why__list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.why__list li {
  background: #113361;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
}

/* Kontakt */
.contact__grid {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1d3f73;
  background: #0d2345;
  color: #fff;
}
.footer__copy {
  margin-top: 24px;
  color: #b4d1ff;
  text-align: center;
  font-size: 13px;
}

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  background: var(--yellow);
  color: #0a2450;
  font-weight: 800;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}
@media (max-width: 820px) {
  .sticky-cta {
    display: block;
  }
}

/* Kontakt (duplikat sekcji – pozostawione jak w oryginale) */
.contact h2,
.pricing h2,
.about h2 {
  text-align: center;
  margin-bottom: 18px;
}
.contact__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.contact__form {
  background: #0d2345;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact__form label {
  font-size: 14px;
  opacity: 0.9;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  margin: 6px 0 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #1d3f73;
  background: #0b1e3a;
  color: #fff;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
}
@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cennik */
.pricing__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.price {
  background: #113361;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.price__icon {
  font-size: 40px;
  margin-bottom: 6px;
}
.pricing__note {
  opacity: 0.8;
  text-align: center;
  margin-top: 8px;
}

/* O nas */
.about__wrap {
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: 1fr;
}
.about__logo {
  width: 160px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.about__bullets {
  margin: 10px 0 16px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
@media (min-width: 900px) {
  .about__wrap {
    grid-template-columns: 220px 1fr;
  }
}

/* Referencje */
.testimonials h2,
.gallery h2,
.faq h2 {
  text-align: center;
  margin-bottom: 18px;
}
.testi__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .testi__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testi {
  background: #113361;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}
.testi blockquote {
  margin: 0 0 10px;
  font-style: italic;
  color: #e6f0ff;
}

/* Galeria */
.gallery__grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* FAQ */
.faq details {
  background: #113361;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq summary::-webkit-details-marker {
  display: none;
}

/* === LOGO: responsywne skalowanie, bez znikania === */
.hero__logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto 1.5rem auto;
  aspect-ratio: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}
/* Telefony */
@media (max-width: 600px) {
  .hero__logo {
    width: 85%;
    max-width: 320px;
  }
}
/* Laptopy i desktopy */
@media (min-width: 601px) {
  .hero__logo {
    width: clamp(280px, 30vw, 420px);
  }
}
/* Duże monitory */
@media (min-width: 1400px) {
  .hero__logo {
    width: 460px;
  }
}
/* Mały efekt hover (opcjonalnie) */
.hero__logo:hover {
  transform: scale(1.03);
}

/* === SUBTELNY FADE GRADIENT POD LOGO (wys. 46%) === */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  background: linear-gradient(
    to bottom,
    rgba(11, 26, 51, 0) 0%,
    rgba(11, 26, 51, 0.4) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* === HERO micro-UX (mobile) === */
@media (max-width: 600px) {
  .hero {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }
  .hero__logo {
    margin-top: 0.1rem !important;
    margin-bottom: 0.4rem !important;
  }
  .hero__text h1 {
    margin-bottom: 0.4rem !important;
  }
  .hero__text p {
    margin-bottom: 0.6rem !important;
  }
  .hero__cta {
    margin-top: 0.6rem !important;
  }
}

/* --- WERSJA JAŚNIEJSZA I CZYTELNA --- */

.service__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  opacity: 0.85;                   /* było 0.6 → podnosimy jasność */
  filter: brightness(1.05) contrast(1.05);
  position: relative;
}

.service__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  
  background: rgba(0, 0, 0, 0.85);  /* było 0.85 → rozjaśniamy */
  padding: 12px 18px;
  border-radius: 30px;
  
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 14px;
  line-height: 1.2;
  
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  
  z-index: 1;
}

/* --- Ukrycie górnego przycisku "Zadzwoń" na telefonie --- */
@media (max-width: 600px) {
  .hero__cta .btn--primary {
    display: none;
  }

  .hero__cta {
    justify-content: center;
  }
}
