/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  background: #fff;
}

a {
  color: #e8710a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #c55e08;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 26px; margin-bottom: 1.2rem; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }

p {
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}

/* ---------- Container ---------- */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================
   HEADER – sticky, kurczy się przy scrollu
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── Górny pasek: logo + kontakt ── */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  max-width: 1170px;
  margin: 0 auto;
  transition: padding 0.35s;
}

header.scrolled .header-top {
  padding: 6px 15px;
}

/* Logo */
.header-logo img {
  height: 80px;
  width: auto;
  transition: height 0.35s;
}

header.scrolled .header-logo img {
  height: 52px;
}

/* Prawa strona: telefon + CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Blok telefonu */
.header-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.header-phone:hover {
  color: #e8710a;
  text-decoration: none;
}

/* Okrągła ikona telefonu */
.header-phone-icon {
  background: #e8710a;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.header-phone:hover .header-phone-icon {
  transform: scale(1.1) rotate(-10deg);
  background: #c55e08;
}

.header-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-phone-label {
  font-size: 11px;
  color: #454545;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.3s, max-height 0.3s;
  overflow: hidden;
  max-height: 20px;
}

header.scrolled .header-phone-label {
  opacity: 0;
  max-height: 0;
}

.header-phone-number {
  font-size: 20px;
  font-weight: 700;
  color: #454545;
  transition: font-size 0.35s, color 0.2s;
}

.header-phone:hover .header-phone-number {
  color: #e8710a;
}

header.scrolled .header-phone-number {
  font-size: 16px;
}

/* Przycisk CTA */
.header-cta-btn {
  display: inline-block;
  background: #e8710a;
  color: #fff;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, opacity 0.35s, max-width 0.35s, padding 0.35s;
  overflow: hidden;
  max-width: 200px;
}

.header-cta-btn:hover {
  background: #c55e08;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

header.scrolled .header-cta-btn {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}

/* ============================================================
   PŁYWAJĄCY PRZYCISK TELEFONU (FAB)
   ============================================================ */
.fab-phone {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8710a;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 12px 22px 12px 16px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(232, 113, 10, 0.5);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  animation: fab-pulse 2.8s ease-in-out infinite;
}

.fab-phone:hover {
  background: #c55e08;
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(232, 113, 10, 0.65);
  animation: none;
}

.fab-phone svg {
  flex-shrink: 0;
}

.fab-phone-label {
  white-space: nowrap;
}

.fab-phone.fab-hidden {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232, 113, 10, 0.5); }
  50%       { box-shadow: 0 4px 32px rgba(232, 113, 10, 0.85); }
}

/* ---------- Navigation ---------- */
nav.main-nav {
  background: #1a252f;
  border-top: 1px solid #34495e;
}

.nav-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: stretch;
}

nav.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
}

nav.main-nav > .nav-inner > ul > li {
  position: relative;
}

nav.main-nav a {
  display: block;
  padding: 14px 16px;
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav li:hover > a {
  background: #e8710a;
  color: #fff;
  text-decoration: none;
}

nav.main-nav a.active {
  background: #e8710a;
  color: #fff;
}

/* Dropdown */
nav.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a252f;
  min-width: 260px;
  z-index: 999;
  border-top: 3px solid #e8710a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-direction: column;
}

nav.main-nav li:hover > .dropdown {
  display: flex;
}

nav.main-nav .dropdown li {
  border-bottom: 1px solid #2c3e50;
}

nav.main-nav .dropdown a {
  padding: 10px 16px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

/* Mobile nav toggle – hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(0,0,0,0.2);
  color: #555;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  margin: 8px 0;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

.nav-toggle:hover {
  border-color: #e8710a;
  color: #e8710a;
}

/* Animowane trzy kreski */
.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.header-phone-icon svg {
  color: #fff !important;
}
.nav-toggle.open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   SLIDER / HERO (strona główna)
   ============================================================ */
.slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  position: relative;
  min-width: 100%;
  overflow: hidden;
  max-height: 480px;
}

.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.slide-content {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 42%;
  background: rgba(26, 37, 47, 0.88);
  color: #fff;
  padding: 30px 35px;
}

.slide-content h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e8710a;
  padding-bottom: 10px;
}

.slide-content p {
  font-size: 13px;
  color: #ddd;
  margin-bottom: 16px;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.slider-dot.active {
  background: #e8710a;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,37,47,0.7);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover { background: #e8710a; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

/* ============================================================
   PRZYCISK „Czytaj więcej"
   ============================================================ */
.btn, a.btn {
  display: inline-block;
  background: #e8710a;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover, a.btn:hover {
  background: #c55e08;
  text-decoration: none !important;
}

/* ============================================================
   SIATKA USŁUG — strona główna
   ============================================================ */

.service-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row .service-img {
  flex: 0 0 45%;
  max-width: 45%;
  overflow: hidden;
}

.service-row .service-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-row .service-img:hover img {
  transform: scale(1.03);
}

.service-row .service-text {
  flex: 0 0 55%;
  max-width:520px;
  box-sizing: content-box;
  padding: 36px 40px;
}

.service-row .service-text h2 {
  font-size: 19px;
  color: #2c3e50;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8710a;
}

.service-row .service-text h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.service-row .service-text h2 a:hover {
  color: #e8710a;
}

.service-row .service-text p {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 18px;
}

/* Naprzemienne — obraz po prawej */
.service-row.reversed {
  flex-direction: row-reverse;
}

/* ============================================================
   O FIRMIE — sekcja na stronie głównej
   ============================================================ */
.about-summary {
  background: #f5f5f5;
  padding: 50px 15px;
  text-align: center;
}

.about-summary > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.about-summary h1 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 18px;
}

.about-summary p {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 15px;
  font-size: 12px;
  color: #888;
  max-width: 100%;
}

.breadcrumb-inner {
  max-width: 1170px;
  margin: 0 auto;
}

.breadcrumb a {
  color: #888;
}

.breadcrumb a:hover {
  color: #e8710a;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 6px;
}

/* ============================================================
   TREŚĆ STRONY WEWNĘTRZNEJ
   ============================================================ */
.page-wrapper {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 15px 60px;
}

.page-content h1 {
  font-size: 26px;
  color: #2c3e50;
  border-bottom: 3px solid #e8710a;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 18px;
  color: #2c3e50;
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 15px;
  color: #2c3e50;
  margin-top: 18px;
  margin-bottom: 8px;
}

.page-content p {
  color: #555;
  font-size: 14px;
  margin-bottom: 14px;
}

.page-content ul,
.page-content ol {
  color: #555;
  font-size: 14px;
  margin-bottom: 14px;
  padding-left: 1.6rem;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content strong {
  color: #333;
}

.page-content a {
  color: #e8710a;
}

/* ============================================================
   STRONA OFERTY — lista usług z kafelkami
   ============================================================ */
.services-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.service-link {
  display: block;
  background: #2c3e50;
  color: #fff;
  padding: 24px 22px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-bottom: 4px solid #e8710a;
}

.service-link:hover {
  background: #1a252f;
  transform: translateY(-3px);
  text-decoration: none;
  color: #fff;
}

.service-link h2 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}

.service-link p {
  font-size: 13px;
  color: #adc6df;
  margin: 0;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.blog-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 28px;
  margin-bottom: 28px;
}

.blog-item-img {
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: 3px;
}

.blog-item-img img {
  width: 300px;
  height:200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.blog-item-img:hover img {
  transform: scale(1.04);
}

.blog-item-content {
  flex: 1;
}

.blog-item h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.blog-item h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.blog-item h2 a:hover {
  color: #e8710a;
}

.blog-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .blog-item {
    flex-direction: column;
  }
  .blog-item-img {
    flex: 0 0 auto;
    width: 100%;
  }
  .blog-item-img img {
    width: 100%;
    height: 200px;
  }
}

/* Blog post */
.blog-post {
  max-width: 820px;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-info {
  background: #f9f9f9;
  border-left: 4px solid #e8710a;
  padding: 28px 32px;
  margin-top: 20px;
  max-width: 480px;
}

.contact-info h2 {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 4px;
}

.contact-info p {
  color: #666;
  margin-bottom: 16px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
  color: #444;
}

.contact-info li:last-child {
  border-bottom: none;
}

.contact-info a {
  color: #e8710a;
  font-weight: 700;
  font-size: 17px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #1a252f;
  color: #aaa;
  padding: 30px 15px 20px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1170px;
  margin: 0 auto;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

footer nav ul li {
  border-right: 1px solid #34495e;
}

footer nav ul li:last-child {
  border-right: none;
}

footer nav a {
  display: block;
  padding: 6px 16px;
  color: #aaa;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

footer nav a:hover {
  color: #e8710a;
  text-decoration: none;
}

footer .footer-credits {
  text-align: center;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #2c3e50;
  padding-top: 16px;
  margin-top: 8px;
}

footer .footer-credits a {
  color: #888;
}

footer .footer-credits a:hover {
  color: #e8710a;
}

/* ============================================================
   GALERIA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.gallery-grid img:hover {
  opacity: 0.85;
}

/* ============================================================
   OFERTA — lista punktowana na stronie /oferta
   ============================================================ */
.offer-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.offer-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
}

.offer-list li::before {
  content: '›';
  position: absolute;
  left: 6px;
  color: #e8710a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .service-row,
  .service-row.reversed {
    flex-direction: column;
  }

  .service-row .service-img,
  .service-row .service-text {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .service-row .service-img img {
    height: 220px;
  }

  .service-row .service-text {
    padding: 24px 20px;
  }

  .slide-content {
    width: 60%;
  }

  .services-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* Header mobile */
  .header-top {
    padding: 10px 15px;
  }

  .header-logo img {
    height: 52px;
  }

  header.scrolled .header-logo img {
    height: 38px;
  }

  .header-right {
    gap: 10px;
  }

  .header-phone-label {
    display: none;
  }

  .header-phone-number {
    font-size: 15px;
  }

  .header-cta-btn {
    display: none;
  }

  .header-phone-icon {
    width: 38px;
    height: 38px;
  }

  /* FAB na mobile – tylko ikona, okrągły */
  .fab-phone {
    bottom: 18px;
    right: 18px;
    padding: 14px;
    border-radius: 50%;
  }

  .fab-phone-label {
    display: none;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  nav.main-nav ul {
    flex-direction: column;
    display: none;
  }

  nav.main-nav ul.open {
    display: flex;
  }

  nav.main-nav .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    display: none;
  }

  nav.main-nav li.open > .dropdown {
    display: flex;
  }

  .nav-inner {
    flex-direction: column;
  }

  /* Slider */
  .slide img {
    height: 260px;
  }

  .slide-content {
    position: static;
    width: 100%;
    transform: none;
    padding: 20px;
  }

  /* Services */
  .services-nav {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 { font-size: 21px; }
  h2 { font-size: 17px; }
}