/* ============================================================
   SD PRZEWIERTY – Global Styles
   ============================================================ */
:root {
/*    --org:#e92929;
    --org2: #e92929;*/
}
*, *::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: 15px;
  line-height: 1.75;
  color: #444;
  background: #fff;
}

a { color: #e92929; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c58808; text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }

h1,h2,h3,h4 { font-weight: 700; color: #1a2535; line-height: 1.3; margin-bottom: .75rem; }
h1 { font-size: 28px; margin-bottom: 1.2rem; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p  { margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

strong { color: #222; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: box-shadow 0.3s;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar – telefon i email */
.header-topbar {
  background: #1a2535;
  color: #aab;
  font-size: 13px;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  max-width: 100%;
  transition: max-height 0.35s, padding 0.35s;
  max-height: 40px;
  overflow: hidden;
}

header.scrolled .header-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.header-topbar a {
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s;
}

.header-topbar a:hover { color: #e92929; text-decoration: none; }

/* Logo */
.header-logo {
  padding: 14px 0;
  transition: padding 0.35s;
}

header.scrolled .header-logo {
  padding: 8px 0;
}

.header-logo img {
  height: 52px;
  width: auto;
  transition: height 0.35s;
}

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

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

nav.main-nav a {
  display: block;
  padding: 22px 18px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-decoration: none;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 3px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #e92929;
  border-bottom-color: #e92929;
  text-decoration: none;
}

header.scrolled nav.main-nav a {
  padding: 16px 18px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

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

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

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

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,15,30,.75) 0%, rgba(10,15,30,.2) 60%, transparent 100%);
  display: flex;
  align-items: center;
}

.slide-content {
  max-width: 520px;
  padding: 0 60px;
  color: #fff;
}

.slide-content h2 {
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.slide-content p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 10;
}

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

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

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  background: #e92929;
  color: #fff !important;
  padding: 11px 26px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: #c58808;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
}

.btn-outline:hover {
  background: #fff;
  color: #1a2535 !important;
  transform: translateY(-1px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section.content-section {
  padding: 70px 0;
}

section.content-section.bg-light {
  background: #f7f8fa;
}

section.content-section.bg-dark {
  background: #1a2535;
  color: #ccc;
}

section.content-section.bg-dark h2,
section.content-section.bg-dark h3 {
  color: #fff;
}

.section-title {
  font-size: 26px;
  color: #1a2535;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 3px solid #e92929;
  display: inline-block;
}

.bg-dark .section-title { color: #fff; }

/* ============================================================
   O NAS – strona główna (dwa kolumny)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.about-text p { color: #555; font-size: 14.5px; }

/* ============================================================
   USŁUGI – kafelki na stronie głównej
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: #1a2535;
  border-radius: 4px;
  padding: 28px 26px;
  border-bottom: 4px solid #e92929;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

.service-card h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.service-card p {
  color: #8899aa;
  font-size: 13.5px;
  margin: 0;
}

/* ============================================================
   LISTA PUNKTOWANA (zielone strzałki)
   ============================================================ */
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: #555;
  font-size: 14.5px;
  border-bottom: 1px solid #f0f0f0;
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: '›';
  position: absolute;
  left: 6px;
  color: #e92929;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: #f7f8fa;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 20px;
  font-size: 12px;
  color: #999;
}

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

.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #e92929; text-decoration: none; }
.breadcrumb span { margin: 0 7px; }

/* ============================================================
   HERO PODSTRONY (banner z tytułem)
   ============================================================ */
.page-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #1a2535;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.page-hero-content h1 {
  color: #fff;
  font-size: 3rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  margin: 0 auto;
}

/* ============================================================
   TREŚĆ STRONY WEWNĘTRZNEJ
   ============================================================ */
.page-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 20px 70px;
}

.page-content h1 {
  font-size: 28px;
  color: #1a2535;
  border-bottom: 3px solid #e92929;
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.page-content h2 {
  font-size: 20px;
  color: #1a2535;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 16px;
  color: #1a2535;
  margin-top: 20px;
  margin-bottom: 8px;
}

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

/* ============================================================
   GALERIA REALIZACJI
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #1a2535;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.gallery-thumb:hover img { transform: scale(1.06); opacity: .85; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0,0,0,.7);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity 0.2s;
  padding: 0 8px;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.13);
  border: none;
  color: #fff;
  font-size: 44px;
  width: 56px;
  height: 56px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-arrow:hover { background: #e92929; }
.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

.contact-card {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.contact-block {
  padding: 22px 26px;
  border-bottom: 1px solid #e8e8e8;
}

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

.contact-block h2 {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-icon { color: #e92929; display: flex; align-items: center; }
.contact-block p { margin: 0; color: #444; font-size: 14px; line-height: 1.7; }

.contact-phone {
  font-size: 22px;
  font-weight: 700;
  color: #1a2535;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.contact-phone:hover { color: #e92929; text-decoration: none; }

.contact-email { color: #e92929; word-break: break-all; }
.contact-email:hover { text-decoration: underline; }

.contact-map {
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

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

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

.blog-item-img {
  flex: 0 0 260px;
  overflow: hidden;
  border-radius: 3px;
  background: #1a2535;
}

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

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

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

.blog-item h2 { font-size: 19px; margin-bottom: 10px; }
.blog-item h2 a { color: #1a2535; }
.blog-item h2 a:hover { color: #e92929; text-decoration: none; }
.blog-item p { font-size: 14px; color: #666; margin-bottom: 16px; }

/* Blog post artykuł */
.blog-post { max-width: 860px; }
.blog-post h2 { margin-top: 36px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.blog-post h3 { margin-top: 22px; }
.blog-post blockquote {
  border-left: 4px solid #e92929;
  padding: 14px 20px;
  background: #f7f8fa;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}
.post-card {
  color: #000;
}
.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.blog-post table th,
.blog-post table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.blog-post table th { background: #1a2535; color: #fff; font-weight: 700; }
.blog-post table tr:nth-child(even) { background: #f7f8fa; }

/* ============================================================
   FAB – pływający telefon
   ============================================================ */
.fab-phone {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e92929;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 13px 22px 13px 16px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  animation: fab-pulse 3s ease-in-out infinite;
}

.fab-phone:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px) scale(1.04);
  animation: none;
}

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

@keyframes fab-pulse {
  0%,100% { box-shadow: 0 2px 12px rgba(0,0,0,.35); }
  50%      { box-shadow: 0 4px 32px 0 2px 12px rgba(0,0,0,.9); }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(#eee, #ddd);
  color: #000;
  padding: 50px 0px 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

footer h3 {
  color: var(--black);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e92929;
  display: inline-block;
}

footer p, footer li { font-size: 13px; color: var(--black); line-height: 1.8; }
footer a { color: var(--black); transition: color 0.2s; }
footer a:hover { color: #e92929; text-decoration: none; }

footer ul { list-style: none; padding: 0; }
footer ul li { border-bottom: 1px solid rgba(255,255,255,.06); }
footer ul li a { display: block; padding: 7px 0; font-size: 13px; }

.footer-bottom {

  background: var(--black)

}
.footer-bottom .container {
  max-width: 1140px;
    flex-wrap: wrap;
  gap: 10px;
    margin: 32px auto 0;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--white);
}
.footer-bottom a { color: #778; }
.footer-bottom a:hover { color: #e92929; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }
}

@media (max-width: 640px) {
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  .header-topbar { display: none; }

  nav.main-nav ul {
    flex-direction: column;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
  }

  nav.main-nav ul.open { display: flex; }
  nav.main-nav a { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; border-right: none; }
  .nav-toggle { display: flex; }

  .slide img { height: 300px; }
  .slide-content { padding: 0 24px; }
  .slide-content h2 { font-size: 22px; }

  .page-hero { height: 180px; }
  .page-hero-content h1 { font-size: 24px; }
  .page-hero-content { padding: 0 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .blog-item { flex-direction: column; }
  .blog-item-img { flex: none; width: 100%; }
  .blog-item-img img { width: 100%; height: 200px; }

  .fab-phone { bottom: 18px; right: 18px; padding: 14px; border-radius: 50%; }
  .fab-phone-label { display: none; }

  .lightbox-arrow { display: none; }
}
.footer-tel {
	font-weight: 800;
}