:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;
  --panel:#f8fafc;

  --accent-orange:#f97316;
  --accent-red:#e11d48;
}

html, body {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size:18px;
  line-height:1.75;
  color:var(--text);
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
  max-width: 100%;

  background: linear-gradient(
          180deg,
          #ffffff 0%,
          #f8fafc 35%,
          #ffffff 100%
  );
}

.container{
  max-width:700px;
  margin:0 auto;
  padding:0 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.header{
  border-bottom:1px solid var(--border);
  background:#fff;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0; /* poprawione: było "10 px" */
}

.logo{
  width:180px;
}

.nav a{
  margin-left:20px;
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
}

@media (max-width:700px){
  body {
    font-size: 14px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav a{
    margin: 0 5px;
    font-size: 14px;
  }

  .hero-text {
    font-size: 14px;
  }

  .section-text {
    font-size: 13px;
  }

  .service-item p {
    font-size: 13px;
  }

  .blog-list h3 {
    font-size: 18px;
  }

  .blog-list p {
    font-size: 13px;
  }

  .accordion summary {
    font-size: 16px;
  }

  .accordion p {
    /* Mobile-first base: full controls for Polish text */
    margin: 14px 0 0;
    padding-left: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    hyphens: auto;      /* Auto Polish hyphenation */
    text-wrap: balance; /* Balanced lines */
    widows: 2;          /* Min 2 lines at bottom */
    orphans: 2;         /* Min 2 lines at top */
    max-width: 100%;
  }

  /* Desktop+ (768px and up): simplified web styles */
  @media (min-width: 768px) {
    .accordion p {
      line-height: 1.8;
      font-size: 16px;
      /* Typography controls auto-disabled for cleaner desktop */
      hyphens: none;
      /* Removing problematic properties */
    }
  }

  /* Optional: Large desktop refinement (1200px+) */
  @media (min-width: 1200px) {
    .accordion p {
      font-size: 17px; /* Slight bump for big screens */
    }
  }
  .contact-person p {
    font-size: 15px;
  }

  /* People section adjustments for mobile */
  .people {
    gap: 20px;
  }

  .people img {
    max-width: 160px;
  }
}

.nav a:hover{
  color:var(--text);
}

.hero{
  padding:70px 0;
}

.hero-center{
  text-align:center;
}

.hero-text {
  max-width: 750px;
  margin: 24px auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

/* Mobile: add padding under 768px */
@media (max-width: 768px) {
  .hero-text {
    padding: 0 7px;
  }
}

.hero-text a{
  color:inherit;
  text-decoration:underline;
}

.hero-text a:hover{
  text-decoration:underline;
}

.btn{
  padding:12px 28px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
}

.btn:hover{
  background:#f1f5f9;
}

.section{
  padding:20px 0;
}

.section.alt{
  background: linear-gradient(
          180deg,
          #f8fafc 0%,
          #f1f5f9 50%,
          #f8fafc 100%
  );
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.center{
  text-align:center;
}

.section-text{
  max-width:760px;
  margin:20px auto;
  padding:0 10px;
  font-size:17px;
  line-height:1.8;
  color:var(--muted);
}

.people{
  display:flex;
  justify-content:center;
  gap:40px;
  margin-top:30px;
}

.people img{
  width:100%;
  max-width:260px;
  height:auto;
  border-radius:12px;
  margin-bottom:12px;
}

@media (max-width:700px){
  .people{
    gap:20px;
  }
  .people img{
    width:160px;
  }
}


/* ========== HERO TILES ========== */

.hero-tiles{
  max-width:900px;
  margin:26px auto 10px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  text-align:left;
}

.tile{
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px 16px;
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tile strong{
  display:block;
  margin-bottom:8px;
}

.tile span{
  display:block;
  color:var(--muted);
  line-height:1.6;
}

.tile:hover{
  border-color:var(--accent-orange);
  box-shadow:0 10px 28px rgba(249,115,22,.14);
  transform:translateY(-2px);
}

@media (max-width:900px){
  .hero-tiles{ grid-template-columns:1fr; }
}

/* ========== ZDJĘCIE POD HERO ========== */

.contact-image{
  max-width:1000px;
  margin:30px auto 0;
  padding:0 20px;
}

.contact-image img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  box-shadow:0 12px 30px rgba(0,0,0,0.06);
}

#o-nas{
  padding-top:0px;
}

/* ========== USŁUGI (karty) ========== */

.services-list{
  max-width:900px;
  margin:40px auto 0;
  display:grid;
  gap:24px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.service-item{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px 28px;
  text-align:left;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  margin-bottom: 5px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.service-item h3{
  margin-top:0;
  margin-bottom:12px;
  color: var(--accent-orange);
  font-size: 20px;
  position: relative;
  padding-bottom: 8px;
}

.service-item h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.service-item p{
  margin:0;
  color:var(--muted);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

.service-item:hover{
  border-color:var(--accent-orange);
  box-shadow:0 14px 36px rgba(249,115,22,.12);
  transform:translateY(-2px);
}

/* Accordion styles for potential future use */

#uslugi{
  padding-top:60px;
  margin-top:0;
  scroll-margin-top:120px;
}

.accordion{
  max-width:800px;
  margin:30px auto 0;
  text-align:left;
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px 20px;
  background:#ffffff;
}

.accordion details{
  padding:18px 0;
  border-bottom:1px solid var(--border);
}

.accordion details:last-child{
  border-bottom:none;
}

.accordion summary{
  font-size:18px;
  font-weight:600;
  cursor:pointer;
  list-style:none;
  position:relative;
  padding-right:30px;
}

.accordion summary::-webkit-details-marker{
  display:none;
}

.accordion summary::after{
  content:"▶";
  position:absolute;
  right:0;
  top:2px;
  font-size:14px;
  color:var(--muted);
}

.accordion details[open] summary::after{
  transform:rotate(90deg);
}

/* ========== KONTAKT ========== */

.contact-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  max-width:700px;
  margin:30px auto 0;
  text-align:left;
}

.contact-person{
  border:1px solid var(--border);
  padding:20px;
  border-radius:8px;
  background:#ffffff;
}

.contact-person p{
  margin:0 0 10px;
  line-height:1.6;
}

.contact-person a{
  color:var(--text);
  text-decoration:none;
}

.contact-person a:hover{
  text-decoration:underline;
}

@media (max-width:700px){
  .contact-columns{
    grid-template-columns:1fr;
    text-align:center;
  }

  .service-item p {
    font-size: 13px;
  }
}

/* ========== BLOG LISTA (TERAZ JAK USŁUGI) ========== */

.blog-list{
  max-width:900px;
  margin:40px auto 0;
  display:grid;
  gap:24px;
  text-align:left;
}

.blog-list article{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:26px 28px;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog-list article:hover{
  border-color:var(--accent-orange);
  box-shadow:0 14px 36px rgba(249,115,22,.12);
  transform:translateY(-2px);
}

.blog-list h3{
  margin:0 0 12px;
  font-size:22px;
  line-height:1.25;
}

.blog-list a{
  color:var(--text);
  text-decoration:none;
}

.blog-list a:hover{
  text-decoration:underline;
}

.blog-list p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

/* ========== BLOG ARTYKUŁ ========== */
/* ========== FORMULARZE (jeśli gdzieś używasz) ========== */

.form{
  max-width:420px;
  margin:30px auto 0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

input,textarea{
  padding:12px;
  border:1px solid var(--border);
  font-family:inherit;
}

textarea{ min-height:120px; }

/* ========== STOPKA ========== */

.footer{
  border-top:1px solid var(--border);
  padding:20px 0;
  text-align:center;
  color:var(--muted);
}
/* AKTYWNA ZAKŁADKA MENU */

.nav a.active{
  color: var(--text);
  position: relative;
}

.nav a.active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}
/* USŁUGI – STYLE ZOSTAŁY PRZENIESIONE WYŻEJ */
/* BLOG – JUSTOWANIE TEKSTU */

.blog-article p,
.blog-article li{
  text-align: justify;
  text-justify: inter-word;
}
.facebook-section {
  text-align: center;
  margin-top: 70px;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #1877f2;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
}

.facebook-link:hover {
  background-color: #145dbf;
}
.company-details {
  font-size: 14px;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.company-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-item h3 a {
  color: inherit;          /* dziedziczy kolor z h3 (czyli pomarańczowy) */
  text-decoration: none;   /* usuwa podkreślenie */
}

.service-item h3 a:hover {
  text-decoration: underline; /* opcjonalnie – podkreślenie po najechaniu */
}
/* ========== USŁUGI – LINK W H3 BEZ NIEBIESKIEGO ========== */

#uslugi .service-item h3 a,
#uslugi .service-item h3 a:link,
#uslugi .service-item h3 a:visited,
#uslugi .service-item h3 a:hover,
#uslugi .service-item h3 a:active {
  color: inherit;
  text-decoration: none;
}
/* ===== FORCE FIX – IBP LINK ===== */

#uslugi .service-item h3 a,
#uslugi .service-item h3 a:link,
#uslugi .service-item h3 a:visited,
#uslugi .service-item h3 a:hover,
#uslugi .service-item h3 a:active {
  color: var(--accent-orange) !important;
  text-decoration: none !important;
