/* ============================================================
   RAMZA — Szablon statyczny
   Edytowalny bezpośrednio, bez preprocesarów.
   ============================================================ */

:root {
  --green:        #91cb38;
  --green-dark:   #6b942d;
  --blue-dark:    #032043;
  --black:        #000;
  --white:        #fff;
  --gray-text:    #3f3f3f;
  --gray-muted:   #a8a8a8;
  --gray-bg:      #f9f9f9;
  --gray-bg2:     #f4f4f4;
  --gray-border:  #ececec;
  --shadow:       3px 5px 5px rgba(0,0,0,.18);
  --font:         'Exo 2', sans-serif;
  --max-w:        1200px;
  --radius:       8px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); font-weight: 300; line-height: 1.6; color: var(--black); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
ul, ol { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 20px; }

.bg-gray  { background: var(--gray-bg); }
.bg-gray2 { background: var(--gray-bg2); }
.bg-green { background: var(--green); }
.bg-dark  { background: var(--blue-dark); }

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

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--gray-text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-lead {
  font-size: 15px;
  color: var(--gray-muted);
  max-width: 760px;
  margin-bottom: 36px;
}

section { padding-block: 56px; }

/* --- Przycisk --- */
.btn {
  display: inline-block;
  padding: 9px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-green  { background: var(--green);  color: var(--white); border-color: var(--green); }
.btn-green:hover  { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-white  { background: var(--white);  color: var(--black); border-color: var(--white); }
.btn-white:hover  { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark   { background: var(--black);  color: var(--white); border-color: var(--black); }
.btn-dark:hover   { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font-weight: 900;
  font-size: 20px;
}
.header-logo:hover { color: var(--green); }
.header-logo img { height: 46px; width: auto; }
.logo-text-main { color: var(--green); font-size: 22px; }
.logo-text-sub { font-size: 11px; font-weight: 400; color: var(--gray-muted); line-height: 1.3; display: none; }

.site-nav { margin-left: auto; display: none; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-text);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-list a:hover, .nav-list a.active { background: var(--gray-bg); color: var(--green); font-weight: 700; }

.header-phone { display: none; font-weight: 700; font-size: 15px; color: var(--gray-text); white-space: nowrap; }
.header-phone:hover { color: var(--green); }

.burger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
}
.burger span { display: block; height: 3px; background: var(--gray-text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 199;
  overflow-y: auto;
  padding: 16px 20px 40px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--gray-text);
  border-bottom: 1px solid var(--gray-border);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--green); font-weight: 700; }
.mobile-nav .mobile-phone { margin-top: 24px; font-size: 18px; font-weight: 700; color: var(--green); }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-slides { position: relative; height: 420px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #032043; /* fallback gdy obraz się nie załaduje */
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(3,32,67,.55);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}
.hero-contact {
  background: rgba(0,0,0,.65);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-contact a { color: var(--white); font-size: 14px; font-weight: 700; }
.hero-contact a:hover { color: var(--green); }

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.hero-dot.active { background: var(--green); }

.hero-prev, .hero-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,.4);
  border: none;
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-prev:hover, .hero-next:hover { background: var(--green); }

/* ============================================================
   FEATURE HIGHLIGHT (ciemny baner)
   ============================================================ */
.feature-highlight {
  background: var(--blue-dark);
  padding-block: 56px;
  background-size: 100%;
  background-position: center;
}
.feature-highlight .overlay-inner {
  background: rgba(3,32,67,.82);
  padding: 48px 40px;
  max-width: 680px;
}
.feature-highlight .section-title { color: var(--white); font-size: clamp(22px, 3.5vw, 34px); }
.feature-highlight .section-lead  { color: rgba(255,255,255,.8); }

/* ============================================================
   FEATURE GRID (atuty)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 36px;
}
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; }
.feature-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.feature-icon img { width: 44px; height: 44px; object-fit: contain; }
.feature-item h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.feature-item p  { font-size: 14px; color: var(--gray-muted); }

/* ============================================================
   PRODUCT CARDS (projekty domów)
   ============================================================ */
.product-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card__img {
  width: 100%; height: 220px; object-fit: cover;
  background: linear-gradient(135deg, var(--gray-bg2) 0%, var(--gray-bg) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-muted); font-size: 13px;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card__title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.product-card__specs { font-size: 13px; color: var(--gray-muted); margin-bottom: 12px; }
.product-card__specs span { display: block; }
.product-card__price { font-size: 15px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.product-card__costs { font-size: 12px; color: var(--gray-muted); margin-bottom: 14px; }
.product-card__costs span { display: block; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   SERVICE CARDS (oferta)
   ============================================================ */
.service-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card__img {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--blue-dark), var(--green));
  object-fit: cover;
}
.service-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.service-card__title { font-size: 17px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.service-card__desc { font-size: 14px; color: var(--gray-muted); flex: 1; margin-bottom: 14px; }

/* ============================================================
   GALLERY TEASER
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 32px;
  margin-bottom: 28px;
}
.gallery-item { overflow: hidden; aspect-ratio: 4/3; }
.gallery-item a { display: block; height: 100%; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item a:hover img { transform: scale(1.06); }

/* ============================================================
   TEXT + IMAGE
   ============================================================ */
.text-image { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.text-image__img img { width: 100%; border-radius: 2px; }
.text-image__text p { font-size: 15px; line-height: 1.8; margin-bottom: 1rem; }

/* ============================================================
   CONTACT CTA (zielone tło)
   ============================================================ */
.contact-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-cta-inner .section-title { color: var(--white); }
.contact-cta-inner .kicker { color: rgba(255,255,255,.8); }
.contact-cta-inner p { color: rgba(255,255,255,.9); margin-bottom: 0; }
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-list a { color: var(--white); font-weight: 700; font-size: 17px; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .icon { margin-right: 8px; }

/* ============================================================
   CONTACT INFO PAGE
   ============================================================ */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-box h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--green); margin-bottom: 12px; border-bottom: 2px solid var(--green); padding-bottom: 6px; }
.contact-box p, .contact-box address { font-size: 15px; line-height: 1.9; font-style: normal; }
.contact-box a { color: var(--gray-text); font-weight: 700; }
.contact-box a:hover { color: var(--green); }
.contact-person { margin-bottom: 12px; }
.contact-person strong { display: block; font-size: 15px; }
.contact-person a { font-size: 17px; color: var(--green); }

/* FORMULARZ */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 700; color: var(--gray-text); }
.form-group input,
.form-group textarea {
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.checkbox-group { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-group.checkbox-group input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--green); }
.form-group.checkbox-group label { font-weight: 400; font-size: 13px; color: var(--gray-muted); cursor: pointer; }
.form-group.checkbox-group label a { color: var(--green); }
.form-success {
  background: #e8f7d0;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #2d6a0a;
  font-weight: 700;
}
.form-error {
  background: #fde8e8;
  border: 1px solid #e53935;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #c62828;
}

/* Mapa */
.map-wrapper { margin-top: 8px; }
.map-wrapper iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============================================================
   GALERIA pełna
   ============================================================ */
.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 28px;
}
.gallery-full-item { overflow: hidden; aspect-ratio: 4/3; }
.gallery-full-item a { display: block; height: 100%; }
.gallery-full-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-full-item a:hover img { transform: scale(1.05); }

/* ============================================================
   DOMY SZKIELETOWE — checklist
   ============================================================ */
.checklist { display: flex; flex-direction: column; gap: 0; }
.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--gray-border);
  font-size: 15px;
}
.checklist li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

/* Przekrój techniczny */
.tech-images { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.tech-images img { width: 100%; border: 1px solid var(--gray-border); }
.tech-images figcaption { font-size: 12px; color: var(--gray-muted); margin-top: 6px; text-align: center; }

/* ============================================================
   DLACZEGO RAMZA — liczniki
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
  text-align: center;
}
.stat-item .stat-number { font-size: 40px; font-weight: 900; color: var(--green); line-height: 1; }
.stat-item .stat-label { font-size: 13px; color: var(--gray-muted); margin-top: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black); color: var(--white); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer-brand .footer-logo { font-size: 22px; font-weight: 900; color: var(--green); }
.footer-brand p { font-size: 13px; color: var(--gray-muted); margin-top: 8px; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--gray-muted); line-height: 2.1; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 13px; color: var(--gray-muted); line-height: 1.9; }
.footer-bottom {
  margin-top: 44px;
  border-top: 1px solid #1e1e1e;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-muted);
}
.footer-bottom a { color: var(--gray-muted); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   BREADCRUMBS / PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--blue-dark);
  padding-block: 36px;
}
.page-hero .section-title { color: var(--white); margin-bottom: 4px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: var(--green); }
.breadcrumb span { margin-inline: 6px; }

/* ============================================================
   MEDIA QUERIES — Tablet 768px
   ============================================================ */
@media (min-width: 768px) {
  section { padding-block: 72px; }
  .hero-slides { height: 540px; }
  .logo-text-sub { display: block; }
  .header-phone { display: block; }

  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .product-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid     { grid-template-columns: repeat(3, 1fr); }
  .gallery-full-grid{ grid-template-columns: repeat(3, 1fr); }
  .text-image       { grid-template-columns: 1fr 1fr; }
  .contact-info-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom    { flex-direction: row; justify-content: space-between; }
  .contact-cta-inner{ flex-direction: row; align-items: center; justify-content: space-between; }
  .tech-images      { grid-template-columns: repeat(2, 1fr); }
  .stats-row        { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   MEDIA QUERIES — Desktop 1200px
   ============================================================ */
@media (min-width: 1200px) {
  .hero-slides { height: 680px; }
  .site-nav    { display: block; }
  .burger      { display: none; }

  .features-grid    { grid-template-columns: repeat(3, 1fr); }
  .product-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .service-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-full-grid{ grid-template-columns: repeat(4, 1fr); }
  .footer-grid      { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .text-image.img-left .text-image__img { order: -1; }
}
