/* ===============================
   Green Instal — style.css v1.0
   =============================== */

:root {
  --green: #2ECC71;
  --green-hover: #27AE60;
  --dark: #0F2A3D;
  --bg: #F7FAFC;
  --text: #0F2A3D;
  --muted: #5B6B7C;
  --footer-bg: #071B2B;
  --white: #ffffff;
  --border: #D8E2EC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

/* ======= HEADER ======= */

header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--green); }

nav { flex: 1; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

nav ul li a {
  color: #9BB5C8;
  font-size: 0.8125rem;
  padding: 5px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
  background: rgba(46,204,113,0.18);
}

.header-phone {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone:hover { color: var(--green-hover); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ======= HERO (strona główna) ======= */

.hero {
  background: linear-gradient(135deg, #0F2A3D 0%, #1A4A6A 100%);
  color: #fff;
  padding: 88px 24px;
  text-align: center;
}

.hero-inner { max-width: 820px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: #A8C8E0;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======= PAGE HERO (podstrony) ======= */

.page-hero {
  background: linear-gradient(135deg, #0F2A3D 0%, #1A4A6A 100%);
  color: #fff;
  padding: 60px 24px;
}

.page-hero-inner { max-width: 900px; margin: 0 auto; }

.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1rem;
  color: #A8C8E0;
  line-height: 1.7;
  max-width: 720px;
}

/* ======= BUTTONS ======= */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ======= SECTIONS ======= */

section { padding: 64px 24px; }
.section-alt { background: var(--white); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ======= SERVICE CARDS ======= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.25s, border-top-color 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 12px 36px rgba(15,42,61,0.13);
  transform: translateY(-4px);
  border-top-color: var(--green-hover);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #EEF9F1;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.card-link:hover {
  color: #fff;
  background: var(--green-hover);
}

/* ======= SERVICE GROUPS (uslugi.html) ======= */

.service-group { margin-bottom: 56px; }

.service-group-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green);
}

.service-group-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.service-group-header p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ======= WHY SECTION ======= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.why-item {
  background: var(--white);
  border-left: 4px solid var(--green);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(15,42,61,0.06);
}

/* ======= ABOUT BLOCK ======= */

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-placeholder {
  background: #DDE8F0;
  border: 2px dashed #B0BEC8;
  border-radius: 10px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.about-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ======= CONTENT (podstrony) ======= */

.content-section { padding: 56px 24px; }
.content-inner { max-width: 900px; margin: 0 auto; }

.content-inner h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}
.content-inner h2:first-child { margin-top: 0; }

.content-inner p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.content-inner ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.content-inner ul li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
  border-bottom: 1px solid #EEF2F7;
}
.content-inner ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  counter-reset: steps;
}
.steps-list li {
  padding: 13px 0 13px 52px;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.65;
  border-bottom: 1px solid #EEF2F7;
  counter-increment: steps;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 10px;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.info-box {
  background: #EBF8F2;
  border-left: 4px solid var(--green);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--dark);
}

.warn-box {
  background: #FFF8EC;
  border-left: 4px solid #E67E22;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--dark);
}

/* ======= GALLERY ======= */

.gallery-section { background: #EEF9F1; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #D5EEE0;
  border: 1px solid #C0E0CC;
  position: relative;
  box-shadow: 0 2px 10px rgba(15,42,61,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}

.gallery-item:hover {
  box-shadow: 0 8px 24px rgba(15,42,61,0.16);
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

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

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.85rem;
  padding: 16px;
  text-align: center;
  background: #D8EDDE;
  border: 2px dashed #A8D4B4;
  border-radius: 10px;
}

.gallery-placeholder::before {
  content: "📷";
  font-size: 2rem;
  font-style: normal;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7,27,43,0.72);
  color: #fff;
  font-size: 0.8125rem;
  padding: 8px 12px;
  text-align: center;
  font-weight: 500;
}

/* === LOGO === */
.logo-img {
  height: 46px;
  width: auto;
  max-width: 200px;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  display: block;
  margin-bottom: 14px;
}

/* ======= OWNER CARD ======= */

.about-owner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.owner-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15,42,61,0.13);
  overflow: hidden;
  max-width: 380px;
  width: 100%;
}

.owner-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.owner-photo-placeholder {
  display: none;
  width: 100%;
  height: 300px;
  background: #DDE8F0;
  border-bottom: 2px dashed #B0BEC8;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 24px;
}

.owner-photo-placeholder span:first-child {
  font-size: 2.5rem;
}

.owner-photo-placeholder code {
  font-size: 0.78rem;
  color: #0F2A3D;
  background: #EEF2F7;
  padding: 2px 6px;
  border-radius: 4px;
}

.owner-caption {
  padding: 16px 20px;
  text-align: center;
  border-top: 1px solid #EEF2F7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owner-caption strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.owner-caption span {
  font-size: 0.8125rem;
  color: var(--green);
  font-weight: 600;
}

/* ======= REVIEWS SECTION ======= */

.reviews-section {
  background: #F2FBF6;
  padding: 64px 24px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(15,42,61,0.09);
  border: 1px solid #E0F0E8;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.review-card:hover {
  box-shadow: 0 8px 28px rgba(15,42,61,0.14);
  transform: translateY(-3px);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-stars {
  color: #F5A623;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.review-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5B6B7C;
  background: #EEF2F7;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.72;
  flex: 1;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  padding-top: 10px;
  border-top: 1px solid #EEF2F7;
}

.reviews-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-outline-green {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline-green:hover {
  background: var(--green);
  color: #fff;
}

/* ======= CTA BOX ======= */

.cta-box {
  background: linear-gradient(135deg, #0A2030 0%, #1A4A6A 50%, #16593E 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.cta-box-inner { max-width: 700px; margin: 0 auto; }
.cta-box h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-box p {
  font-size: 1rem;
  color: #A8C8E0;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* ======= CONTACT PAGE ======= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}

.contact-item { margin-bottom: 20px; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.contact-value {
  font-size: 0.9375rem;
  color: var(--text);
}
.contact-value a {
  color: var(--dark);
  font-weight: 600;
}
.contact-value a:hover { color: var(--green); }

.contact-big-phone {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 12px;
}
.contact-big-phone:hover { color: var(--green); }

/* ======= FOOTER ======= */

footer {
  background: var(--footer-bg);
  color: #7A9AB0;
  padding: 48px 24px 28px;
}

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

.footer-brand .logo { display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #6A8FA8;
  font-size: 0.875rem;
}
.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid #122A3D;
  font-size: 0.8125rem;
  color: #4A6A80;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ======= RESPONSIVE ======= */

@media (max-width: 980px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #0D2234;
    padding: 16px 24px 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    gap: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  nav ul.open { display: flex; }
  nav ul li a {
    padding: 10px 12px;
    font-size: 0.9375rem;
    border-bottom: 1px solid #1A3A52;
  }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-block { grid-template-columns: 1fr; }
  .about-owner-layout { grid-template-columns: 1fr; }
  .owner-card { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section, .content-section { padding: 48px 16px; }
  .hero { padding: 64px 16px; }
  .page-hero { padding: 48px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-caption { font-size: 0.75rem; padding: 6px 10px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-section { padding: 48px 16px; }
}
