/* ==========================================================================
   dobra-klima.pl - statyczna wersja HTML
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; border: 0; display: block; }
iframe { border: 0; max-width: 100%; }

/* ---------- Podstawy ---------- */
html, body {
  font-size: 15px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #000;
  background-color: #f0f0f0;
  line-height: 1.5;
}
a { text-decoration: none; color: #3a3a3a; outline: none; }
a:hover { color: #000; text-decoration: underline; }
p { font-size: 20px; font-weight: 300; }
h1 { font-size: 45px; font-weight: 400; }

/* Ikony SVG (sprite wklejany przez tools/ikony.py, zamiast Font Awesome z CDN).
   Skaluja sie z rozmiarem tekstu i dziedzicza jego kolor. */
.ico {
  width: 1em; height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -.125em;
  flex: 0 0 auto;
}

.clear { clear: both; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* Kontenery */
#page { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.layout-container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ==========================================================================
   NAGLOWEK / TLO
   ========================================================================== */
#background {
  background-color: #15375C;
  background-image: url(../images/backs.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 35px 0;
}

#logo { flex: 0 0 auto; line-height: 0; }
#logo img { max-height: 90px; width: auto; }

/* ---------- Menu ---------- */
#menus { flex: 0 0 auto; }
#menus ul { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
#menus a {
  display: inline-block;
  border-radius: 10px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 18px;
  padding: 10px;
  transition: all .2s linear;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
#menus a:hover { color: #000; background-color: #fff; }
#menus a.is-active { color: #fff; background-color: #fab500; }
#menus a.is-active:hover { color: #000; background-color: #fff; }

/* Facebook w menu - na desktopie sama ikona w kolku, obok pozycji tekstowych */
#menus .menu-fb a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
}
#menus .menu-fb a:hover { background-color: #fff; color: #15375C; border-color: #fff; }
#menus .menu-fb .ico { width: 1.1em; height: 1.1em; }
#menus .menu-fb span { display: none; }

/* Przycisk hamburger (tylko mobile) */
#menu-toggle {
  display: none;
  background: #152f5b;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
  padding: 10px 16px;
  cursor: pointer;
}

/* ==========================================================================
   HERO - strona glowna
   ========================================================================== */
#top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }

#top-left { flex: 1 1 0; min-width: 320px; margin-top: 100px; }
#top-left span.kicker { color: #fff; font-size: 22px; display: inline-flex; align-items: center; gap: 10px; }
#top-left h1 { color: #fff; padding-top: 20px; max-width: 420px; font-size: 60px; line-height: 1.1; }
#top-left p { color: #fff; max-width: 550px; text-align: justify; margin-top: 20px; }

#top-right { flex: 0 1 auto; margin: 160px 0 200px auto; }
#top-right img { border-radius: 20px; }

#buta, #but { padding-bottom: 100px; margin-top: 60px; }
#but { text-align: center; }
#buta { text-align: left; }
#buta a, #but a {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; background-color: #fab500;
  padding: 10px 20px; border-radius: 20px 10px;
  font-size: 22px; text-decoration: none;
  transition: all .2s linear;
}
#buta a:hover, #but a:hover { color: #000; background-color: #fff; text-decoration: none; }

/* ==========================================================================
   NAGLOWEK PODSTRON
   ========================================================================== */
#naglowek h1 {
  font-weight: normal; font-size: 56px; color: #fff;
  margin: 80px 0 20px; text-align: center;
  animation-name: fadeInLeft;
  display: flex; align-items: center; justify-content: center; gap: 15px;
}
#naglowek p { text-align: center; color: #fff; max-width: 500px; margin: 0 auto; font-size: 22px; }
#naglowek .ico { color: #fab500; }
#bra { padding-bottom: 100px; }

/* ==========================================================================
   PASEK LOGOTYPOW
   ========================================================================== */
#blok-info { background-color: #fff; }
#blok-info ul {
  display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: 10px;
  padding: 50px 0;
}
/* Kazde logo ma jednakowe plotno 160x64 z wbudowanym marginesem
   (patrz tools/logotypy.py), wiec wystarczy rowny podzial szerokosci. */
#blok-info li { flex: 1 1 0; min-width: 0; }
#blok-info li img { width: 100%; max-width: 160px; height: auto; margin: 0 auto; }

/* ==========================================================================
   BLOK USLUG
   ========================================================================== */
#blok-serwis {
  padding: 30px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
}
#blok-serwis .layout-container {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
}
.flex {
  background-color: #fff;
  border-radius: 40px;
  flex: 1 1 300px;
  max-width: 340px;
  margin-bottom: 60px;
  padding: 22px;
  text-align: center;
}
.flex img { margin: 0 auto; }
.flex h3 { padding: 30px 0; font-size: 20px; }
.flex p { font-size: 18px; text-align: justify; }

/* ==========================================================================
   OPINIE GOOGLE (zamiast widzetu Elfsight - patrz tools/opinie.py)
   ========================================================================== */
#opinie { background-color: #fff; padding: 60px 0 70px; }

.opinie-glowa {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px; margin-bottom: 35px;
}
.opinie-glowa h2 { font-size: 32px; font-weight: 400; color: #15375C; }
.opinie-ocena {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 8px; font-size: 17px; color: #6b7280;
}
.opinie-ocena strong { font-size: 30px; color: #15375C; font-weight: 400; }

.gwiazdki { display: inline-flex; gap: 2px; color: #fab500; }
.gwiazdki .ico { width: 1.05em; height: 1.05em; }

.opinie-przyciski { display: flex; flex-wrap: wrap; gap: 12px; }
.opinie-link {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid #dde4ec; border-radius: 999px;
  padding: 11px 22px; font-size: 16px; color: #15375C;
  transition: all .2s linear; white-space: nowrap;
}
.opinie-link:hover { background: #15375C; color: #fff; text-decoration: none; }
.opinie-link--akcent { background: #fab500; border-color: #fab500; color: #fff; }
.opinie-link--akcent:hover { background: #15375C; border-color: #15375C; }

/* Siatka opinii.
   Uzywamy kolumn CSS zamiast grida: karty maja rozna dlugosc tekstu,
   a kolumny ukladaja je ciasno, bez dziur i bez przycinania tresci. */
.opinie-siatka { column-count: 4; column-gap: 22px; }
.opinia {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  background: #fff; border: 1px solid #e6ebf1; border-radius: 24px;
  padding: 24px; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.opinia--ukryta { display: none; }

/* Przycisk "Zobacz wiecej opinii" */
.opinie-wiecej { text-align: center; margin-top: 10px; }
.opinie-wiecej button {
  font-family: inherit; font-size: 18px; cursor: pointer;
  color: #fff; background-color: #fab500; border: 0;
  padding: 13px 30px; border-radius: 20px 10px;
  transition: all .2s linear;
}
.opinie-wiecej button:hover { background-color: #15375C; }
.opinia-glowa { display: flex; align-items: center; gap: 14px; }
.awatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: #15375C; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.opinia figcaption { color: #15375C; font-size: 17px; }
.opinia-data { color: #94a3b8; font-size: 14px; font-weight: 300; }
.opinia blockquote {
  margin: 0; font-size: 16px; font-weight: 300;
  color: #34322f; line-height: 1.55;
}

/* Przycisk Facebooka w stopce */
#menux .fb { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
#menux .fb .ico {
  width: 38px; height: 38px; padding: 10px; margin: 0;
  border-radius: 50%; background: #fab500; color: #2f2f2f;
  transition: all .2s linear;
}
#menux .fb:hover { text-decoration: none; color: #fab500; }
#menux .fb:hover .ico { background: #fff; }

/* ==========================================================================
   BLOK "SPECJALISCI OD KLIMATYZACJI"
   ========================================================================== */
#wpp {
  background-color: #15375C;
  background-image: url(../images/ws.svg);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: cover;
}
#wpp h2 {
  font-size: 56px; color: #fff; margin-bottom: 20px;
  text-align: center; padding-top: 100px; padding-bottom: 50px;
}
#wpp p { text-align: center; color: #fff; max-width: 500px; margin: 0 auto; font-size: 22px; }

/* ==========================================================================
   TRESC PODSTRON
   ========================================================================== */
#blok-tekst { background-color: #f0f0f0; }
#contect { color: #34322f; margin: 40px 0; padding-bottom: 20px; }
/* tytul strony w tresci - wizualnie jak h1, ale semantycznie h2,
   bo jedynym h1 na stronie jest tytul w niebieskim naglowku */
#contect > h2 { font-size: 45px; font-weight: 400; margin-bottom: 25px; }
#contect p { margin-bottom: 18px; text-align: justify; }
#contect strong { font-weight: 700; }

/* ==========================================================================
   KOMPONENTY PODSTRON (o firmie / oferta / jak dzialamy)
   ========================================================================== */

/* Akapit wprowadzajacy */
.lead {
  font-size: 22px; font-weight: 300; color: #15375C;
  max-width: 900px; text-align: left !important;
}

/* Sekcja z naglowkiem */
.sekcja { margin: 55px 0; }
.sekcja > h2 {
  font-size: 32px; font-weight: 400; color: #15375C; line-height: 1.35;
  margin-bottom: 6px; display: flex; align-items: flex-start; gap: 12px;
}
/* ikona wyrownana do pierwszej linii naglowka, nie do srodka calosci */
.sekcja > h2 .ico { color: #fab500; font-size: 26px; line-height: inherit; }
.sekcja > .podtytul {
  color: #6b7280; font-size: 17px; font-weight: 300;
  margin-bottom: 28px; text-align: left !important;
}

/* Siatka kart */
.karty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 25px;
}
.karta {
  background: #fff; border-radius: 30px; padding: 32px;
  box-shadow: 0 4px 22px rgba(21, 55, 92, .07);
}
.karta h3 { font-size: 20px; font-weight: 400; color: #15375C; margin-bottom: 14px; }
.karta p { font-size: 17px; margin: 0; text-align: left; }
.karta .ikona {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fab500; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}

/* Pastylki - miasta, marki */
.tagi { display: flex; flex-wrap: wrap; gap: 10px; }
.tagi li {
  background: #fff; border: 1px solid #dde4ec; border-radius: 999px;
  padding: 9px 18px; font-size: 16px; font-weight: 300; color: #15375C;
}
.tagi li .ico { color: #fab500; margin-right: 7px; }
.tagi.akcent li { background: #15375C; border-color: #15375C; color: #fff; }

/* Lista z ptaszkami */
.check {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 13px 34px;
}
.check li {
  position: relative; padding-left: 32px;
  font-size: 17px; font-weight: 300; line-height: 1.45;
}
.check li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23fab500'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Wyrozniona cena */
.cena {
  background: #15375C; border-radius: 30px; padding: 35px 40px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 25px;
}
.cena .kwota { color: #fab500; font-size: 42px; line-height: 1.1; }
.cena .kwota small { display: block; font-size: 17px; color: #fff; font-weight: 300; }
.cena p { color: #fff; margin: 0; font-size: 18px; text-align: left; max-width: 520px; }

/* Ramka z uwaga techniczna */
.uwaga {
  background: #fff; border-left: 5px solid #fab500;
  border-radius: 0 20px 20px 0; padding: 28px 32px;
}
.uwaga p { margin: 0; font-size: 17px; }

/* Etapy wspolpracy */
.etap {
  display: flex; gap: 30px; align-items: flex-start;
  background: #fff; border-radius: 30px; padding: 32px;
  margin-bottom: 25px;
  box-shadow: 0 4px 22px rgba(21, 55, 92, .07);
}
.etap-nr {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%;
  background: #fab500; color: #fff; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.etap h3 { font-size: 22px; font-weight: 400; color: #15375C; margin-bottom: 12px; }
.etap p { margin: 0; font-size: 17px; }

/* ==========================================================================
   GALERIA
   ========================================================================== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding-bottom: 20px;
}
.galeria a { display: block; overflow: hidden; border-radius: 10px; background: #ddd; }
.galeria img {
  width: 100%; height: 250px; object-fit: cover;
  transition: transform .3s ease;
}
.galeria a:hover img { transform: scale(1.06); }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999;
  background: rgba(0,0,0,.9);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 6px; }
#lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 46px; line-height: 1; cursor: pointer; padding: 10px 18px;
  font-family: Arial, sans-serif;
}
#lb-close { top: 10px; right: 15px; font-size: 42px; }
#lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
#lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
#lb-counter {
  position: absolute; bottom: 15px; left: 0; right: 0;
  text-align: center; color: #fff; font-size: 16px;
}

/* ==========================================================================
   STOPKA
   ========================================================================== */
#stopka { background-color: #2f2f2f; }
#wp { padding: 60px 40px 0 40px; }
#stopka-kolumny { display: flex; flex-wrap: wrap; gap: 20px 90px; }
#menux { color: #fff; margin-bottom: 20px; }
#menux h5 { margin-bottom: 20px; font-size: 20px; font-weight: 400; }
#menux span { display: inline-block; vertical-align: middle; }
#menux a { color: #fff; }
#menux a:hover { color: #fab500; }
#menux .ico { color: #fab500; margin-right: 8px; vertical-align: middle; }

#ffa {
  border-style: solid; border-width: 1px 0 0 0; border-color: #FFFFFF1A;
  clear: both; padding: 40px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
#ffa span { color: #7a7a7a; font-size: 15px; }
#stopkaprawa { color: #7a7a7a; text-align: right; }
#stopkaprawa a { color: #7a7a7a; }

/* ==========================================================================
   ANIMACJE
   ========================================================================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-100px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { transform: translate3d(0,40px,0); opacity: 0; }
  to   { transform: translate3d(0,0,0); opacity: 1; }
}
.in-down { animation: fadeInDown 1s both; }
.in-left { animation: fadeInLeft 1s both; }
.animated { animation-duration: 1s; animation-fill-mode: both; }
.animatedFadeInUp { opacity: 0; }
.fadeInUp { opacity: 0; animation-name: fadeInUp; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .animatedFadeInUp, .fadeInUp, .in-down, .in-left { opacity: 1; }
}

/* ==========================================================================
   RESPONSYWNOSC
   ========================================================================== */
@media only screen and (max-width: 1100px) {
  .opinie-siatka { column-count: 3; }
  #menus ul { gap: 8px; }
  #menus a { font-size: 16px; padding: 8px; }
  #top { display: block; }
  #top-left { margin-top: 60px; }
  #top-left h1 { font-size: 48px; max-width: 100%; }
  #top-left p { max-width: 100%; }
  #top-right { margin: 40px 0 60px 0; }
  #top-right img { width: 100%; }
  #buta, #but { padding-bottom: 60px; margin-top: 40px; }
}

@media only screen and (max-width: 900px) {
  .opinie-siatka { column-count: 2; }
  #naglowek h1 { font-size: 42px; margin-top: 50px; }
  #wpp h2 { font-size: 42px; padding-top: 60px; padding-bottom: 30px; }
  #bra { padding-bottom: 60px; }
  #wp { padding: 40px 0 0 0; }
  #stopka-kolumny { gap: 20px 50px; }
}

/* --- Menu mobilne --- */
@media only screen and (max-width: 768px) {
  #topbar { flex-wrap: wrap; }
  #menu-toggle { display: block; }
  #menus {
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin-top: 10px;
    background: #152f5b;
    border-radius: 8px;
    padding: 10px;
  }
  #menus.open { display: block; }
  #menus ul { display: block; }
  #menus li { margin: 0; }
  #menus a { display: block; width: 100%; border-radius: 6px; }

  /* w rozwinietym menu Facebook wyglada jak reszta pozycji - ikona + napis */
  #menus .menu-fb a {
    display: flex; justify-content: flex-start; gap: 10px;
    width: 100%; height: auto; padding: 10px;
    border: 0; border-radius: 6px;
  }
  #menus .menu-fb span { display: inline; }

  #top { display: block; }
  #top-left { margin-top: 30px; }
  #top-left h1 { padding-top: 20px; max-width: 100%; font-size: 34px; }
  #top-left p { max-width: 100%; text-align: left; }
  #top-right { margin: 0 0 40px 0; }
  #buta { text-align: center; }

  #naglowek h1 { font-size: 30px; flex-wrap: wrap; margin-top: 40px; }
  #naglowek p { max-width: 100%; font-size: 18px; }

  #wpp h2 { font-size: 30px; }
  #wpp p { max-width: 100%; font-size: 18px; }
  #but { padding-bottom: 60px; }

  .flex { max-width: 100%; margin-bottom: 30px; }

  /* na telefonie logotypy po dwa w rzedzie, nadal jednakowej wielkosci */
  #blok-info ul { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 30px 0; }
  #blok-info li { flex: 0 0 calc(50% - 5px); }
  #blok-info li img { width: 100%; max-width: 150px; }

  h1 { font-size: 32px; }
  p { font-size: 18px; }

  #contect p, .flex p { text-align: left; }
  #stopkaprawa { text-align: left; }

  /* komponenty podstron */
  .lead { font-size: 19px; }
  .sekcja { margin: 40px 0; }
  .sekcja > h2 { font-size: 24px; }
  .sekcja > h2 i { font-size: 20px; }
  .karta { padding: 24px; border-radius: 24px; }
  .cena { padding: 28px 24px; border-radius: 24px; }
  .cena .kwota { font-size: 34px; }
  .uwaga { padding: 22px 24px; }
  .etap { flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; }
  .etap-nr { width: 58px; height: 58px; font-size: 25px; }
  .etap h3 { font-size: 20px; }
  #ffa { padding: 25px 0; }

  .galeria { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .galeria img { height: 190px; }

  #opinie { padding: 40px 0 45px; }
  .opinie-glowa h2 { font-size: 24px; }
  .opinie-siatka { column-count: 1; }
  .opinia { padding: 22px; margin-bottom: 16px; }
  .opinie-link { padding: 9px 18px; font-size: 15px; }
  .opinie-wiecej button { font-size: 16px; padding: 12px 24px; }
}

@media only screen and (max-width: 480px) {
  #logo img { max-height: 60px; }
  #top-left h1 { font-size: 28px; }
  #naglowek h1 { font-size: 26px; }
  #wpp h2 { font-size: 26px; }
  #buta a, #but a { font-size: 18px; }
  .galeria { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .galeria img { height: 130px; }
  #lightbox button { font-size: 34px; }
}
