:root {
  --orange:    #e8600a;
  --orange-h:  #c94e00;
  --dark-bg:   #1e2a3a;
  --card-head: #28374c;
  --light-bg:  #f2f4f7;
  --text:      #222b38;
  --text-mid:  #4a5568;
  --text-muted:#6b7a90;
  --border:    #dde3ec;
  --fh: 'Oswald', sans-serif;
  --fb: 'Source Sans 3', sans-serif;
}

body { font-family: var(--fb); color: var(--text); background: #b8bec8; margin: 0; }
a { text-decoration: none; }

/* ── PAGE WIDTH ── */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 60px rgba(0,0,0,.3);
  overflow: hidden;
  position: relative;
}

/* ── NAV ── */
.navbar { border-bottom: 1px solid rgba(255,255,255,.08); padding: 0; min-height: 46px; background: linear-gradient(180deg, #16202e 0%, #0f1620 100%);}
.navbar-nav .nav-link {
  color: #c8d4e4 !important;
  font-size: 0.78rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 13px !important; border-radius: 3px;
  transition: color .18s, background .18s;
}
.navbar-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.07); }
.navbar-toggler { border: none; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { filter: invert(1) brightness(2); width: 20px; height: 20px; }

/* ── HERO ── */
.hero { padding: 28px 32px 28px; text-align: center; background: url("../pict/tlo.png") 
center/cover no-repeat;     position: relative;}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35); /* przyciemnienie */
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero-top {
  -max-width: 760px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100%;
}

.hero-text {
  text-align: left; /* teksty obok logo mają być normalnie wyrównane */
}

.hero-logo {
  width: 128px;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--fh); 
  -font-size: clamp(2.2rem,6vw,3.8rem);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; line-height: 1.05;
  animation: fadeUp .65s ease both;
}
.hero-tagline {
  font-family: var(--fh); font-size: clamp(0.95rem,2.2vw,1.25rem);
  font-style: italic; color: #b8cce0; margin-top: 5px;
  animation: fadeUp .65s .1s ease both;
}
.hero-sub {
  color: #8aa1bc; font-size: 0.92rem; font-style: italic;
  max-width: 460px; margin: 14px auto 0;
  animation: fadeUp .65s .2s ease both;
}
.hero-btns { animation: fadeUp .65s .3s ease both; }

/* ── BUTTONS ── */
.btn-orange {
  background: var(--orange); color: #fff; border: none;
  font-family: var(--fh); font-size: 0.9rem; font-weight: 600; letter-spacing: .5px;
  padding: 11px 24px; border-radius: 4px;
  box-shadow: 0 4px 16px rgba(232,96,10,.4);
  transition: background .18s, transform .14s, box-shadow .18s;
  text-decoration: none; display: inline-block;
}
.btn-orange:hover { background: var(--orange-h); color:#fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,96,10,.55); }
.btn-ghost {
  background: transparent; color: #fff;
  font-family: var(--fh); font-size: 0.9rem; font-weight: 600; letter-spacing: .5px;
  padding: 9px 24px; border-radius: 4px; border: 2px solid rgba(255,255,255,.3);
  transition: border-color .18s, background .18s, transform .14s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.05); color:#fff; transform: translateY(-2px); }
.btn-svc, .btn-why {
  background: var(--orange); color: #fff; border: none;
  font-family: var(--fh); font-size: 0.83rem; font-weight: 600; letter-spacing: .4px;
  padding: 8px 18px; border-radius: 4px;
  transition: background .18s, transform .13s;
  text-decoration: none; display: inline-block;
}
.btn-why {    margin-top: auto;
  align-self: flex-start; }

.btn-svc:hover, .btn-why:hover { background: var(--orange-h); color:#fff; transform: translateY(-1px); }
.btn-svc-outline, .btn-why-outline {
  background: transparent; color: var(--text);
  font-family: var(--fh); font-size: 0.83rem; font-weight: 600; letter-spacing: .4px;
  padding: 6px 18px; border-radius: 4px; border: 2px solid #bcc8d8;
  transition: background .18s, border-color .18s;
  text-decoration: none; display: inline-block;
}
.btn-svc-outline:hover, .btn-why-outline:hover { background: var(--light-bg); border-color: #9aaabb; color: var(--text); }

/* ── DARK THIN DIVIDER (between dark sections) ── */
.div-dark {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 30%, rgba(255,255,255,.12) 70%, transparent);
}
/* ── LIGHT THIN DIVIDER (between white sections) ── */
.div-light {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

/* ── SECTION TITLE WITH FLANKING GRADIENT LINES ── */
.titled-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.titled-section-head::before,
.titled-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
}
.titled-section-head::before {
  background: linear-gradient(90deg, transparent 0%, #aab5c2 100%);
}
.titled-section-head::after {
  background: linear-gradient(90deg, #aab5c2 0%, transparent 100%);
}
.titled-section-head h2 {
  font-family: var(--fh); font-size: clamp(1.3rem,3vw,1.75rem);
  font-weight: 700; color: var(--text); letter-spacing: .4px;
  margin: 0; white-space: nowrap;
}

/* ── SERVICE CARDS ── */
.svc-card {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); height: 100%;
  transition: box-shadow .22s, transform .22s;
    display: flex;
    flex-direction: column;
}
.svc-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.11); transform: translateY(-3px); }
.svc-head { background: var(--card-head); padding: 15px 18px; display: flex; align-items: center; gap: 10px; }
.svc-head-title { font-family: var(--fh); font-size: 0.98rem; font-weight: 600; color: #fff; letter-spacing: .3px; margin: 0; }
.svc-body { padding: 16px 18px 20px; display: block; height: 100%; font-size: 0.86rem; color: var(--text-mid); }
.svc-body-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.svc-body .btn-svc,
.svc-body .btn-svc-outline,
.svc-body-inner .btn-svc,
.svc-body-inner .btn-svc-outline
{ margin-top: auto; display: inline-block; width: auto; align-self: flex-start;  }
.svc-list { list-style: none; padding: 0; margin-bottom: 14px; }
.svc-list li { font-size: 0.86rem; color: var(--text-mid); padding: 3px 0 3px 14px; position: relative; }
.svc-list li::before { content: '•'; color: var(--orange); font-weight: 900; position: absolute; left: 0; top: 0.2em;}

.svc-img {
  float: right;           /* Przesuwa obrazek do prawej krawędzi */
  width: 300px;           /* Szerokość obrazka (dostosuj wg uznania) */
  height: auto;           /* Zachowuje proporcje */
  margin-left: 20px;      /* Tworzy odstęp tekstu od lewej krawędzi zdjęcia */
  margin-bottom: 15px;    /* Odstęp od tekstu poniżej */
  border-radius: 8px;     /* Opcjonalnie: zaokrąglone rogi */
}

.svc-img-left {
  float: left;           /* Przesuwa obrazek do prawej krawędzi */
  width: 300px;           /* Szerokość obrazka (dostosuj wg uznania) */
  height: auto;           /* Zachowuje proporcje */
  margin-left: 20px;      /* Tworzy odstęp tekstu od lewej krawędzi zdjęcia */
  margin-bottom: 15px;    /* Odstęp od tekstu poniżej */
  border-radius: 8px;     /* Opcjonalnie: zaokrąglone rogi */
}
/* To ważne: zapobiega "wyciekaniu" obrazka poza tło karty */
.svc-body::after {
  content: "";
  display: table;
  clear: both;
}

/* ── WHY SECTION ── */
.why-wrap { background: var(--light-bg); }
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 18px 10px 14px; text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,.04); height: 100%;
  transition: box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
  display: flex;
  height: 100%; /* upewnij się, że karty w rzędzie mają tę samą wysokość */
}
.why-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.09); transform: translateY(-4px); }
.why-icon {
  width: 46px; height: 46px; aborder-radius: 50%; abackground: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  margin: 0 auto 12px;
  font-size: 2rem;
}
.why-label { font-size: 0.79rem; font-weight: 600; color: var(--text); line-height: 1.35;   min-height: 42px; /* dopasuj do najdłuższego nagłówka */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;}
.why-text  { font-size: 0.79rem; font-weight: normal; color: var(--text); line-height: 1.35; text-align:left; margin-top: 12px;  /* wyrównuje dół */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.why-text .btn-why,
.why-text .btn-why-outline { margin-top: auto;    display: inline-block; width: auto; align-self: flex-start; }

/* ── PORTFOLIO ── */
.port-item {
  border-radius: 5px; overflow: hidden; background: var(--card-head);
  height: 130px; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .22s, box-shadow .22s;
}
.port-item:hover { transform: scale(1.04); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.port-img {
  flex: 1;
  background: linear-gradient(135deg, #1e2d3e, #2c3f55);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.port-label-bar {
  height: 30px; background: #e4e8ed;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.port-label-bar span {
  font-family: var(--fh); font-size: 0.73rem; font-weight: 600;
  color: var(--text); letter-spacing: .3px;
}
.btn-port {
  background: var(--card-head); color: #fff; border: none;
  font-family: var(--fh); font-size: 0.86rem; font-weight: 600; letter-spacing: .4px;
  padding: 11px 24px; border-radius: 4px;
  transition: background .18s, transform .14s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.btn-port:hover { background: #364a62; color:#fff; transform: translateY(-2px); }

/* ── DIY + CONTACT ── */
.diy-contact-wrap {
    padding-left: 24px;
    padding-right: 24px;
    background: url("../pict/tlo.png") center/cover no-repeat;
    position: relative;
}

.diy-contact-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 0;
}

.diy-contact-wrap * {
    position: relative;
    z-index: 1;
}


.diy-title {
  font-family: var(--fh); font-size: clamp(1.8rem,4vw,2.6rem);
  font-weight: 700; color: #fff; text-transform: uppercase;
  letter-spacing: 2px; line-height: 1;
}
.diy-title,
.diy-sub,
.diy-list,
.btn-orange {
    margin-left: 4px;
}

.diy-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, #5a6a7e 55%, transparent 100%);
  margin-bottom: 8px;
}
.diy-sub { color: #d0dce8; font-weight: 600; font-size: 0.9rem; }
.diy-list { list-style: none; padding: 0; }
.diy-list li { color: #94adca; font-size: 0.89rem; padding: 5px 0; display: flex; align-items: center; gap: 9px; }
.diy-list li::before { content: '✓'; color: var(--orange); font-weight: 700; }
.contact-box { background: #fff; border-radius: 7px; box-shadow: 0 4px 30px rgba(0,0,0,.3);      padding: 24px; }
.contact-box h3 { font-family: var(--fb); font-size: 0.95rem; font-weight: 400; color: var(--text); }
.contact-box h3 strong { font-weight: 700; }
.contact-box .form-control {
  border: 1px solid var(--border); border-radius: 4px;
  font-family: var(--fb); font-size: 0.85rem; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.contact-box .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,96,10,.1); }
.attach-row {
  background: none; border: none; font-family: var(--fb);
  font-size: 0.79rem; color: var(--text-muted); cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.btn-send {
  width: 100%; background: var(--orange); color: #fff; border: none;
  font-family: var(--fh); font-size: 0.9rem; font-weight: 600; letter-spacing: .4px;
  padding: 11px; border-radius: 4px; transition: background .18s;
}
.btn-send:hover { background: var(--orange-h); }
.contact-info { border-top: 1px solid var(--border); }
.contact-info p { font-size: 0.83rem; color: var(--text-mid); margin: 0; }

/* ── FOOTER ── */
.footer-wrap { border-top: 1px solid rgba(255,255,255,.07);   border-top: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, #16202e 0%, #0f1620 100%);
  }
.footer-copy { font-size: 0.75rem; color: #94adca; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #94adca; text-decoration: none; transition: color .18s; }
.footer-links a:hover { color: #fff; }

/* ── ANIMATION ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .titled-section-head h2 { font-size: 1.1rem; }
  .port-item { height: 100px; }
}

/* ══════════════════════════════════════════
   NAGŁÓWEK PODSTRONY
══════════════════════════════════════════ */
.page-header { padding: 42px 28px 28px; text-align: center; }
.page-header h1 {
  font-family: var(--fh);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--orange); margin-bottom: 16px;
}
.page-header .div-light { max-width: 380px; margin: 0 auto 16px; }
.page-header .lead-line { font-size: 1rem; color: var(--text-mid); margin-bottom: 4px; }
.page-header .lead-sub  { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }


/* ── NAGŁÓWEK SEKCJI Z LINIĄ ── */
.section-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.section-head h2 {
  font-family: var(--fh); font-size: 1.15rem; font-weight: 700;
  color: var(--text); letter-spacing: .3px; margin: 0; white-space: nowrap;
}
.section-head .sh-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ══════════════════════════════════════════
   KALKULATORY
══════════════════════════════════════════ */
.calc-section { padding: 28px 24px 24px; }

.calc-card {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.05);
  height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.calc-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }

.calc-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .4px; color: var(--text-muted);
  padding: 10px 12px 0; line-height: 1.2;
}
.calc-name {
  font-family: var(--fh); font-size: 0.86rem; font-weight: 600;
  padding: 2px 12px 8px; line-height: 1.25;
}
.calc-name.orange { color: var(--orange); }
.calc-name.dark   { color: var(--text); }

.calc-thumb {
  flex: 1; min-height: 88px;
  background: linear-gradient(135deg, #e8ecf0, #d0d8e4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; overflow: hidden;
}
.calc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.calc-btn {
  display: block; text-align: center;
  background: var(--light-bg); border-top: 1px solid var(--border);
  font-family: var(--fh); font-size: 0.82rem; font-weight: 700;
  letter-spacing: .4px; color: var(--text);
  padding: 9px; text-decoration: none;
  transition: background .18s, color .18s;
}
.calc-btn:hover { background: var(--orange); color: #fff; }

/* ══════════════════════════════════════════
   FILTRY KATEGORII
══════════════════════════════════════════ */
.filters-section { padding: 20px 24px 0; }

.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; padding: 0; margin-bottom: 16px;
}
.cat-tabs li a {
  display: inline-block;
  font-family: var(--fb); font-size: 0.83rem; font-weight: 600;
  padding: 6px 15px; border-radius: 4px; text-decoration: none;
  border: 1px solid var(--border); color: var(--text-mid);
  background: #fff; transition: background .18s, color .18s, border-color .18s;
}
.cat-tabs li a:hover { border-color: var(--orange); color: var(--orange); }
.cat-tabs li a.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── WYSZUKIWARKA ── */
.search-wrap {
  display: flex; max-width: 560px;
  margin: 0 auto 14px;
}
.search-wrap input {
  flex: 1; padding: 10px 16px;
  border: 1px solid var(--border); border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--fb); font-size: 0.88rem; color: var(--text);
  outline: none; transition: border-color .18s;
}
.search-wrap input:focus { border-color: var(--orange); }
.search-wrap button {
  padding: 0 16px; background: var(--orange); color: #fff;
  border: 1px solid var(--orange); border-radius: 0 4px 4px 0;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center;
  transition: background .18s;
}
.search-wrap button:hover { background: var(--orange-h); }

/* ── TAGI ── */
.tag-list {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  list-style: none; padding: 0; margin-bottom: 20px;
}
.tag-list li a {
  display: inline-block; padding: 4px 13px;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.78rem; color: var(--text-muted);
  text-decoration: none; background: #fff;
  transition: all .18s;
}
.tag-list li a:hover,
.tag-list li a.tag-active { border-color: var(--orange); color: var(--orange); background: #fff8f4; }

/* ══════════════════════════════════════════
   KARTY ARTYKUŁÓW
══════════════════════════════════════════ */
.articles-section { padding: 4px 24px 28px; }

.art-card {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.05);
  height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.art-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

.art-thumb {
  height: 175px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #1e2d3e, #2c3f55);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.art-title {
  font-family: var(--fh); font-size: 1rem; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: .3px;
  line-height: 1.25; margin: 0;
}
.art-title a { color: inherit; text-decoration: none; transition: color .18s; }
.art-title a:hover { color: var(--orange); }

.art-excerpt { font-size: 0.85rem; color: var(--text-mid); line-height: 1.55; margin: 0; }

.art-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  list-style: none; padding: 0; margin: 0;
}
.art-tags li a {
  display: inline-block; padding: 3px 10px;
  border: 1px solid var(--border); border-radius: 3px;
  font-size: 0.73rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; background: var(--light-bg);
  transition: border-color .15s, color .15s;
}
.art-tags li a:hover { border-color: var(--orange); color: var(--orange); }

.art-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 4px;
}
.art-date { font-size: 0.76rem; color: var(--text-muted); }

.btn-read {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--fb); font-size: 0.82rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  transition: color .18s; white-space: nowrap;
}
.btn-read:hover { color: var(--orange); }

/* ══════════════════════════════════════════
   PAGINACJA
══════════════════════════════════════════ */
.pagination-wrap { padding: 8px 24px 32px; display: flex; justify-content: center; }
.pg { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.pg li a,
.pg li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 4px; font-family: var(--fb); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; color: var(--text-mid);
  border: 1px solid var(--border); background: #fff;
  transition: all .18s;
}
.pg li a:hover { border-color: var(--orange); color: var(--orange); }
.pg li.active span { background: var(--orange); border-color: var(--orange); color: #fff; }
.pg li.disabled a { color: #bbb; pointer-events: none; }

/* ══════════════════════════════════════════
   RESPONSYWNOŚĆ
══════════════════════════════════════════ */
@media (max-width: 640px) {
  .calc-section, .filters-section, .articles-section { padding-left: 14px; padding-right: 14px; }
  .art-thumb { height: 145px; }
  .page-header h1 { font-size: 1.8rem; }
}
