/* ADV Instal Portugal – style strony */
:root {
  --green: #005700;
  --green-dark: #003d00;
  --red: #d40000;
  --ink: #1c2420;
  --muted: #5d6b63;
  --line: #e3e8e4;
  --bg: #ffffff;
  --bg-soft: #f5f7f4;
  --radius: 14px;
  --max: 1160px;
  --font-head: "Barlow Semi Condensed", "Barlow", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--green); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--green-dark) url("../assets/bg-pattern.jpg") center / cover;
  color: #fff;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 16px; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
h3 { font-size: 1.35rem; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 12px;
}
.section-dark .eyebrow { color: #ffb3b3; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-dark .lead { color: rgba(255, 255, 255, 0.82); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Przyciski */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b30000; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Nagłówek */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  border: 2px solid var(--green);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
}
.lang-switch a { padding: 6px 14px; text-decoration: none; color: var(--green); }
.lang-switch a.active { background: var(--green); color: #fff; }
.nav-cta { padding: 10px 20px; font-size: 0.95rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 120px 0 110px;
  background:
    linear-gradient(100deg, rgba(0, 40, 0, 0.92) 0%, rgba(0, 61, 0, 0.75) 55%, rgba(0, 61, 0, 0.35) 100%),
    url("../assets/bg-pattern.jpg") center / cover;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-img { width: 100%; height: 460px; object-fit: cover; object-position: center 60%; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); border: 4px solid rgba(255, 255, 255, 0.15); }
@media (max-width: 600px) { .hero-img { height: 260px; } }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.hero-badges span::before { content: "✓ "; color: #8fe08f; font-weight: 700; }

/* Zaślepki zdjęć */
.photo {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dfe7df, #c9d6ca);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 16px;
  min-height: 220px;
  overflow: hidden;
}
.photo::before { content: "📷"; font-size: 1.6rem; display: block; margin-bottom: 6px; }
.photo span { display: block; max-width: 240px; }
.hero .photo { min-height: 380px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); border: 1px dashed rgba(255, 255, 255, 0.4); flex-direction: column; }
.photo { flex-direction: column; }

/* Siatki i karty */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 14px 40px rgba(0, 61, 0, 0.1); transform: translateY(-3px); }
.card .icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: rgba(0, 87, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card p { color: var(--muted); margin: 0 0 14px; }
.card a.more { font-weight: 600; text-decoration: none; }
.section-head { margin-bottom: 48px; }
.card-wide { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; border: 2px solid var(--green); background: linear-gradient(90deg, rgba(0, 87, 0, 0.05), #fff 60%); }
.card-wide .icon { flex: 0 0 auto; margin-bottom: 0; }
.card-wide .card-body { flex: 1; }
.card-wide .card-body p { margin-bottom: 10px; }
@media (max-width: 600px) { .card-wide { flex-direction: column; align-items: flex-start; } }

/* Problem i rozwiązanie */
.pain-list, .gain-list { list-style: none; padding: 0; margin: 0; }
.pain-list li, .gain-list li { padding: 12px 0 12px 40px; position: relative; border-bottom: 1px solid var(--line); }
.pain-list li::before { content: "✕"; position: absolute; left: 0; top: 10px; color: var(--red); font-weight: 700; font-size: 1.2rem; }
.gain-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--green); font-weight: 700; font-size: 1.2rem; }

/* Zarządzanie energią */
.ems-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.ems-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.ems-step .icon { font-size: 2rem; margin-bottom: 10px; }
.ems-step .when { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--red); }
.ems-step h3 { margin: 6px 0 8px; }
.ems-step p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.ems-note { margin-top: 28px; text-align: center; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--green); }
@media (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 960px) { .ems-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ems-flow { grid-template-columns: 1fr; } }

/* Liczby */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.stat-label { margin-top: 8px; color: rgba(255, 255, 255, 0.8); }

/* Cytat */
.quote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--green);
  border-left: 5px solid var(--red);
  padding-left: 22px;
  margin: 26px 0;
}
.quote-author { color: var(--muted); font-weight: 500; }

/* Linki do ADV Instal PL i DE */
.sister-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; padding: 10px 20px; font-size: 0.98rem; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* Kroki */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.step p { color: var(--muted); }

/* Zespół */
.team-member .photo { min-height: 260px; margin-bottom: 16px; }
.team-img { width: 100%; height: 340px; object-fit: cover; object-position: center 15%; border-radius: var(--radius); margin-bottom: 16px; background: #eef1ee; }
.about-img { width: 100%; height: 520px; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 40, 0, 0.15); }
@media (max-width: 600px) { .about-img { height: 420px; } }
.team-member .role { color: var(--red); font-weight: 600; margin: -8px 0 8px; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery { grid-auto-rows: 240px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.gallery figure a, .gallery figure img { display: block; width: 100%; height: 100%; }
.gallery figure img { object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: 0.88rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.7)); pointer-events: none; }
@media (max-width: 600px) { .gallery { grid-auto-rows: 260px; } .gallery figure:first-child { grid-column: auto; grid-row: auto; } }

/* Partnerzy */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { border: 1px solid var(--line); border-radius: 12px; height: 110px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 18px 26px; }
.partner img { max-width: 100%; max-height: 52px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.75; transition: filter 0.2s ease, opacity 0.2s ease; }
.partner img[src*="solax"] { max-height: 84px; }
.partner img[src*="wallbox"] { max-height: 34px; }
.partner img[src*="longi"] { max-height: 96px; transform: scale(1.12); }
.partner:hover img { filter: none; opacity: 1; }
.partner-text { font-family: "Barlow", Arial, sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; color: #555; }

/* Miasta */
.areas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.areas a {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.areas a:hover { border-color: var(--green); color: var(--green); }

/* Formularz */
.audit-box {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; }
.choice-group legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; text-align: center; padding: 13px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.choice input:checked + span { border-color: var(--green); background: rgba(0, 87, 0, 0.08); color: var(--green); }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 600px) { .choice-group { grid-template-columns: 1fr; } }
.field-hint { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
.btn-whatsapp { background: #1f9e4a; color: #fff; width: 100%; font-size: 1.15rem; padding: 16px; }
.btn-whatsapp:hover { background: #17863d; }

/* Stopka */
.site-footer { background: #0f1a12; color: rgba(255, 255, 255, 0.75); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.7fr 0.9fr; gap: 36px; }
.footer-cities ul { column-count: 2; column-gap: 28px; }
.footer-cities li { break-inside: avoid; }
.footer-cities h4 { text-align: center; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 90px; width: auto; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }

/* Pływający WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1f9e4a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Telefon i tablet */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 20px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0; }
  .grid-3, .grid-4, .stats, .form-grid, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .gallery .photo:nth-child(1) { grid-column: auto; grid-row: auto; min-height: 260px; }
  .partners { grid-template-columns: 1fr 1fr; }
  .audit-box { padding: 28px 20px; }
  .nav-logo img { height: 46px; }
}

/* =========================================================
   MOTYW PREMIUM
   Kolory flagi Portugalii: zieleń, czerwień + złoto (sfera
   armilarna z flagi) jako oszczędny akcent premium.
   ========================================================= */
:root {
  --night: #04130a;          /* prawie czarna zieleń */
  --forest: #0a2a14;         /* głęboka zieleń */
  --green-rich: #0b4d1c;
  --gold: #c9a24a;
  --gold-soft: #e3c77d;
  --cream: #f7f5ee;
  --cream-2: #efece2;
  --red-glow: rgba(212, 0, 0, 0.35);
}
body { background: var(--cream); }

/* Nagłówek: ciemne szkło */
.site-header {
  background: rgba(4, 19, 10, 0.88);
  border-bottom: 1px solid rgba(201, 162, 74, 0.22);
  backdrop-filter: blur(14px);
}
.nav-links a { color: rgba(255, 255, 255, 0.86); }
.nav-links a:hover { color: var(--gold-soft); }
.lang-switch { border-color: var(--gold); }
.lang-switch a { color: var(--gold-soft); }
.lang-switch a.active { background: var(--gold); color: var(--night); }
.menu-toggle { color: #fff; }
@media (max-width: 960px) {
  .nav-links { background: var(--night); border-bottom-color: rgba(201, 162, 74, 0.25); }
}

/* Akcenty */
.eyebrow { color: var(--gold); letter-spacing: 0.22em; }
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 12px;
}
.center .eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle; margin-left: 12px;
}
.btn-primary { background: linear-gradient(135deg, #e00000, #a80000); box-shadow: 0 10px 30px var(--red-glow); }
.btn-primary:hover { background: linear-gradient(135deg, #f01010, #b80000); box-shadow: 0 14px 40px rgba(212, 0, 0, 0.5); }
.btn-ghost { border-color: rgba(227, 199, 125, 0.7); color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(201, 162, 74, 0.12); }

/* HERO */
.hero {
  padding: 140px 0 130px;
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(11, 77, 28, 0.55), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(212, 0, 0, 0.18), transparent 70%),
    linear-gradient(160deg, var(--forest) 0%, var(--night) 70%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/bg-pattern.jpg") center / cover;
  opacity: 0.08; mix-blend-mode: screen; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.005em; }
.hero-img { border: 1px solid rgba(201, 162, 74, 0.45); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(201, 162, 74, 0.06); }
.hero-badges span::before { color: var(--gold-soft); }

/* Motywy sekcji */
.theme-light { background: var(--cream); }
.theme-warm { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.theme-dark, .theme-green, .theme-contact, .theme-stats { color: #fff; position: relative; }
.theme-dark { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(11, 77, 28, 0.45), transparent 70%), var(--night); }
.theme-green { background: linear-gradient(135deg, var(--green-rich), var(--forest) 60%, var(--night)); }
.theme-dark .lead, .theme-green .lead, .theme-contact .lead { color: rgba(255, 255, 255, 0.72); }

/* Problem i rozwiązanie jako dwie karty */
#why .grid-2 .grid-2 > div { border-radius: 18px; padding: 30px 28px; }
#why .grid-2 .grid-2 > div:first-child { background: #fff; border: 1px solid var(--line); }
#why .grid-2 .grid-2 > div:last-child {
  background: linear-gradient(160deg, var(--green-rich), var(--forest));
  color: #fff; box-shadow: 0 24px 50px rgba(10, 42, 20, 0.3);
}
#why .grid-2 .grid-2 > div:last-child li { border-bottom-color: rgba(255, 255, 255, 0.12); }
#why .gain-list li::before { color: var(--gold-soft); }

/* Kafelki oferty na ciemnym tle */
.theme-dark .card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  position: relative; overflow: hidden;
}
.theme-dark .card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  opacity: 0; transition: opacity 0.3s ease;
}
.theme-dark .card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); border-color: rgba(201, 162, 74, 0.35); }
.theme-dark .card:hover::before { opacity: 1; }
.theme-dark .card p { color: rgba(255, 255, 255, 0.68); }
.theme-dark .card .icon { background: rgba(201, 162, 74, 0.12); border: 1px solid rgba(201, 162, 74, 0.3); }
.theme-dark .card a.more { color: var(--gold-soft); }
.theme-dark .card-wide {
  background: linear-gradient(110deg, rgba(212, 0, 0, 0.28), rgba(212, 0, 0, 0.06) 45%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(212, 0, 0, 0.45);
}

/* Zarządzanie energią */
.ems-flow { position: relative; }
.ems-step { border: 0; box-shadow: 0 16px 40px rgba(10, 42, 20, 0.08); border-radius: 18px; overflow: hidden; }
.ems-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.ems-step:nth-child(1)::before { background: var(--gold); }
.ems-step:nth-child(2)::before { background: var(--green); }
.ems-step:nth-child(3)::before { background: var(--forest); }
.ems-step:nth-child(4)::before { background: var(--red); }
.ems-step .when { color: var(--gold); }
.ems-note { color: var(--forest); }

/* Liczby */
.theme-stats {
  background: linear-gradient(120deg, #7a0000 0%, #a30000 25%, var(--forest) 60%, var(--night) 100%);
  padding: 80px 0;
}
.theme-stats .stat-num {
  background: linear-gradient(180deg, #fff 30%, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.theme-stats .stats > div { position: relative; }
.theme-stats .stat-label { color: rgba(255, 255, 255, 0.78); }

/* O nas */
.quote { color: var(--forest); border-left-color: var(--gold); }
.about-img { box-shadow: 30px 30px 0 -10px rgba(201, 162, 74, 0.25), 0 30px 60px rgba(10, 42, 20, 0.18); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; }

/* Jak to działa – ciemne */
.theme-dark .step p { color: rgba(255, 255, 255, 0.68); }
.theme-dark .step::before {
  background: transparent; border: 1.5px solid var(--gold); color: var(--gold-soft);
  box-shadow: 0 0 0 6px rgba(201, 162, 74, 0.08);
}
.theme-dark .steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 60px; right: -10px; height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.6), transparent);
}

/* Zespół */
.team-img { box-shadow: 0 20px 50px rgba(10, 42, 20, 0.12); }
.team-member .role { color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.team-member .photo { background: linear-gradient(135deg, var(--cream-2), #e2dccb); }

/* Realizacje na ciemnym */
.theme-dark .gallery figure { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }

/* Partnerzy */
#partners .partner { border-color: var(--cream-2); box-shadow: 0 6px 20px rgba(10, 42, 20, 0.04); }

/* Miasta */
.theme-green .areas a { background: rgba(255, 255, 255, 0.05); border-color: rgba(227, 199, 125, 0.35); color: #fff; }
.theme-green .areas a:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }

/* Kontakt */
.theme-contact {
  background:
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(212, 0, 0, 0.22), transparent 70%),
    linear-gradient(160deg, var(--forest), var(--night));
}
.audit-box { border-top: 4px solid var(--gold); }

/* Stopka */
.site-footer { background: #020a05; border-top: 1px solid rgba(201, 162, 74, 0.2); }
.site-footer h4 { color: var(--gold-soft); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; }

/* Animacja pojawiania się */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Tytuł w dwóch linijkach: hasło + obietnica w złocie */
.h1-sub { display: block; margin-top: 10px; font-size: 0.62em; font-weight: 600; color: var(--gold-soft); letter-spacing: 0.01em; }
.h2-sub { display: block; margin-top: 8px; font-size: 0.72em; color: #a07d2c; }
.theme-dark .h2-sub, .theme-green .h2-sub, .theme-contact .h2-sub { color: var(--gold-soft); }

/* „Bez fotowoltaiki / Z ADV Instal”: punkty wyrównane parami */
#why > .container.grid-2 { grid-template-columns: 0.75fr 1.25fr; gap: 48px; }
#why .grid-2 .grid-2 { grid-template-rows: auto repeat(4, auto); row-gap: 0; }
#why .grid-2 .grid-2 > div { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
#why .grid-2 .grid-2 ul { display: contents; }
#why .grid-2 .grid-2 li { display: flex; align-items: center; padding-top: 14px; padding-bottom: 14px; }
#why .grid-2 .grid-2 h3 { margin-bottom: 4px; }
#why .pain-list li::before, #why .gain-list li::before { top: 50%; transform: translateY(-50%); }
@media (max-width: 960px) {
  #why > .container.grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #why .grid-2 .grid-2 { grid-template-rows: none; }
  #why .grid-2 .grid-2 > div { display: block; grid-row: auto; }
  #why .grid-2 .grid-2 ul { display: block; }
}

/* Kontakt – lewa kolumna */
#contact .grid-2 { align-items: start; }
.contact-steps-title { margin: 34px 0 14px; font-size: 1.15rem; color: var(--gold-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-steps { list-style: none; counter-reset: cstep; padding: 0; margin: 0; }
.contact-steps li { counter-increment: cstep; position: relative; padding: 0 0 18px 54px; color: rgba(255, 255, 255, 0.78); }
.contact-steps li strong { color: #fff; }
.contact-steps li::before {
  content: counter(cstep); position: absolute; left: 0; top: -4px;
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gold);
  color: var(--gold-soft); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.contact-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 34px; bottom: 2px; width: 1px; background: rgba(201, 162, 74, 0.35); }
.advisor-note { margin: 18px 0 0; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.04); border-radius: 0 12px 12px 0; color: rgba(255, 255, 255, 0.8); }
.advisor-note strong { color: var(--gold-soft); }
.quick-contact { margin-top: 28px; }
.quick-contact > span { display: block; color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }
.quick-contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-whatsapp-sm { background: #1f9e4a; color: #fff; }
.btn-whatsapp-sm:hover { background: #17863d; }
.btn-call { border-color: rgba(227, 199, 125, 0.7); color: var(--gold-soft); background: transparent; }
.btn-call:hover { background: rgba(201, 162, 74, 0.12); }

/* Kontakt – zwarty układ, żeby cała sekcja mieściła się na ekranie laptopa */
@media (min-width: 961px) {
  #contact { padding: 44px 0; min-height: calc(100vh - 77px); display: flex; align-items: center; }
  #contact > .container { width: 100%; }
  #contact h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
  #contact .lead { font-size: 1.02rem; margin-bottom: 0; }
  #contact .contact-steps-title { margin: 20px 0 10px; font-size: 1rem; }
  #contact .contact-steps li { padding-bottom: 10px; font-size: 0.97rem; }
  #contact .advisor-note { margin-top: 8px; padding: 12px 16px; font-size: 0.95rem; }
  #contact .quick-contact { margin-top: 16px; }
  #contact .quick-contact > span { margin-bottom: 8px; font-size: 0.95rem; }
  #contact .quick-contact .btn { padding: 10px 22px; }
  #contact .audit-box { padding: 26px 30px; }
  #contact .form-grid { gap: 10px 14px; }
  #contact label, #contact .choice-group legend { margin-bottom: 4px; font-size: 0.86rem; }
  #contact input, #contact select { padding: 10px 12px; }
  #contact .choice span { padding: 10px; font-size: 0.92rem; }
  #contact textarea { min-height: 64px; height: 64px; padding: 10px 12px; }
  #contact .field-hint { margin-top: 3px; font-size: 0.78rem; }
  #contact .btn-whatsapp { padding: 13px; font-size: 1.05rem; }
  #contact .form-note { margin-top: 6px; font-size: 0.78rem; }
}

/* Mniejsze złote kółka kroków w kontakcie – bez nachodzenia */
.contact-steps li { padding-left: 44px; min-height: 30px; }
.contact-steps li::before { width: 26px; height: 26px; top: -1px; font-size: 0.85rem; border-width: 1.2px; }
.contact-steps li:not(:last-child)::after { left: 13px; top: 27px; bottom: 0; }
@media (min-width: 961px) { #contact .contact-steps li { padding-bottom: 12px; } }

/* =========================================================
   PODSTRONY (usługi i miasta)
   ========================================================= */
.hero-sub { padding: 110px 0 100px; }
.hero-sub h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.narrow { max-width: 820px; }
.narrow.center .lead { margin-left: auto; margin-right: auto; }

/* Rodzaje montażu / produkty */
.types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.type-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(10, 42, 20, 0.08); display: flex; flex-direction: column; }
.type-card img { width: 100%; height: 230px; object-fit: cover; }
.type-body { padding: 24px 26px 28px; }
.type-body h3 { margin-bottom: 8px; }
.type-body p { color: var(--muted); margin: 0; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--cream-2); border-radius: 14px; margin-bottom: 12px; box-shadow: 0 6px 20px rgba(10, 42, 20, 0.04); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); color: #a07d2c; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform 0.2s ease; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* Strona miasta: opis lokalny */
#local .local-text p { font-size: 1.08rem; color: var(--ink); }

.local-why { background: linear-gradient(160deg, var(--green-rich), var(--forest)); color: #fff; border-radius: 18px; padding: 30px 30px 18px; box-shadow: 0 24px 50px rgba(10, 42, 20, 0.3); }
.local-why h3 { color: var(--gold-soft); }
.local-why .gain-list li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.local-why .gain-list li::before { color: var(--gold-soft); }

@media (max-width: 960px) { .types-grid { grid-template-columns: 1fr; } }

/* Zdjęcie ekipy montażowej (poziome) – kadr na montażystów po prawej */
.crew-img { object-position: 74% 40%; }

/* Polityka prywatności (strona prawna) */
.legal { padding-block: 120px 72px; }
.legal h1 { margin: 10px 0 14px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p { max-width: 720px; }
.legal p a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal-date { margin-top: 44px; font-size: 0.9rem; color: var(--muted); }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-underline-offset: 3px; }
