/*
  Energetikon – globalny arkusz stylów
  Wersja: 2.0
  Zmiany: nowe złoto #c9922a, hierarchia kontrastu tekstu,
          przyciski font-weight 700, usunięto opacity poniżej 0.65
  Podlinkuj w każdym HTML wewnątrz <head>:
  <link rel="stylesheet" href="style.css">
  i usuń blok <style>...</style> z danego pliku.
*/

/* ============================================================
   ZMIENNE GLOBALNE
   ============================================================ */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #152236;
  --navy-light:  #1e3250;
  --cream:       #faf7f2;
  --warm:        #f0ebe1;

  /* ZŁOTO – Wariant A (ciepłe, nasycone) */
  --gold:        #c9922a;
  --gold-light:  #e8b84b;

  --text:        #1a1a24;
  --muted:       #5c6370;
  --muted-light: #8a9099;
  --border:      #e2ddd4;
  --white:       #ffffff;
  --alert:       #8b1a1a;

  /* HIERARCHIA KONTRASTU BIAŁEGO TEKSTU NA CIEMNYM TLE */
  --w100: rgba(255,255,255,1.00);   /* nagłówki główne, kluczowe dane */
  --w80:  rgba(255,255,255,0.80);   /* tekst drugorzędny, cytaty */
  --w65:  rgba(255,255,255,0.65);   /* etykiety, muted – minimum Lighthouse */
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ============================================================
   LANG BAR (index.html)
   ============================================================ */
.lang-bar {
  background: var(--navy);
  padding: 8px 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--w65);
  padding: 3px 12px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.lang-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lang-btn:hover:not(.active) { border-color: var(--w80); color: var(--w100); }

/* ============================================================
   TOPBAR (podstrony)
   ============================================================ */
.topbar {
  background: var(--navy);
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.topbar-logo { padding: 12px 24px; display: flex; align-items: center; }
.topbar-logo img { height: 44px; width: auto; filter: invert(1) brightness(1.8); }
.topbar-right { display: flex; align-items: stretch; }
.topbar-back {
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: var(--w65);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-left: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, background 0.2s;
}
.topbar-back:hover { color: var(--w100); background: rgba(255,255,255,0.04); }
.lang-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,0.07);
}

/* ============================================================
   HEADER – index
   ============================================================ */
header {
  background: var(--navy);
  color: var(--w100);
  padding: 56px 28px 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,146,42,0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(90,122,106,0.07) 0%, transparent 50%);
}
header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.est-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w65);
  margin-bottom: 20px;
  position: relative;
  font-weight: 400;
}
header img {
  max-width: 300px;
  width: 300px;
  height: 75px;
  display: block;
  margin: 0 auto 28px;
  position: relative;
  filter: invert(1) brightness(1.8);
}
header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 300;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto 16px;
  position: relative;
  letter-spacing: 0.01em;
  color: var(--w100);
}
header h1 em { font-style: italic; color: var(--gold-light); }
header .tagline {
  font-size: 12px;
  color: var(--w65);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}

/* ============================================================
   HEADER – podstrony
   ============================================================ */
.page-header {
  background: var(--navy);
  color: var(--w100);
  padding: 52px 28px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.page-header .page-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
  position: relative;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 14px;
  position: relative;
  color: var(--w100);
}
.page-header h1 em { font-style: italic; color: var(--gold-light); }
.page-header .page-sub {
  font-size: 13px;
  color: var(--w65);
  letter-spacing: 0.08em;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(201,146,42,0.18);
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  color: var(--w100);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat .lbl {
  font-size: 10px;
  color: var(--w65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  line-height: 1.4;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  max-width: 720px;
  margin: 64px auto;
  padding: 0 28px;
  text-align: center;
}
.about p { font-size: 16px; color: var(--muted); line-height: 1.9; }
.about strong { color: var(--text); font-weight: 600; }
.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
  opacity: 0.55;
}

/* ============================================================
   SERVICES / KARTY
   ============================================================ */
.services-section { max-width: 1100px; margin: 0 auto 80px; padding: 0 28px; }
.section-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  text-align: center;
  margin-bottom: 44px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(13,27,42,0.05), 0 4px 16px rgba(13,27,42,0.04);
  border-top: 2px solid var(--gold);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(13,27,42,0.09); }
.card-icon { font-size: 20px; margin-bottom: 12px; display: block; opacity: 0.75; }
.card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card p { font-size: 14px; color: var(--muted); line-height: 1.72; }
.card a.more {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.card a.more:hover { border-color: var(--gold); }

/* ============================================================
   SEGMENTS
   ============================================================ */
.segments-section {
  background: var(--warm);
  padding: 80px 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.segments-inner { max-width: 1100px; margin: 0 auto; }
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 44px;
}
.segment {
  background: white;
  border-radius: 2px;
  padding: 26px 22px 22px;
  box-shadow: 0 1px 4px rgba(13,27,42,0.05);
  border-left: 3px solid var(--gold);
  transition: box-shadow 0.2s, transform 0.2s;
}
.segment:hover { box-shadow: 0 4px 20px rgba(13,27,42,0.09); transform: translateY(-2px); }
.segment h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.segment p { font-size: 12.5px; color: var(--muted-light); line-height: 1.6; font-weight: 400; }
.segment .seg-icon { display: block; font-size: 18px; margin-bottom: 8px; opacity: 0.7; }

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  background: var(--navy);
  padding: 56px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,146,42,0.09) 0%, transparent 65%);
}
.quote-band blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 300;
  font-style: italic;
  color: var(--w80);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
}
.quote-band blockquote em { color: var(--gold-light); font-style: normal; }
.qline { width: 36px; height: 1px; background: var(--gold); margin: 22px auto 0; opacity: 0.5; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--cream); padding: 80px 28px; }
.faq-grid { max-width: 720px; margin: 44px auto 0; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.faq-item p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ============================================================
   COUNTER BAR
   ============================================================ */
.counter-bar {
  background: var(--navy-mid);
  padding: 13px 28px;
  text-align: center;
  border-top: 1px solid rgba(201,146,42,0.12);
}
.counter-bar span { font-size: 11px; color: var(--w65); letter-spacing: 0.12em; text-transform: uppercase; }
.counter-bar strong { color: var(--gold-light); font-weight: 500; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--warm);
  text-align: center;
  padding: 72px 28px;
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  margin-bottom: 10px;
  color: var(--navy);
}
.cta .sub { color: var(--muted); margin-bottom: 32px; font-size: 14px; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-buttons a {
  display: inline-block;
  padding: 13px 34px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  border-radius: 2px;
}
.btn-email { background: var(--navy); color: var(--w100); border: 1px solid var(--navy); }
.btn-email:hover { background: var(--navy-light); }
.btn-phone { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-phone:hover { background: var(--navy); color: var(--w100); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: var(--w100);
  padding: 52px 28px 28px;
  font-size: 13px;
  line-height: 1.9;
}
footer .container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}
footer h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
footer a { color: var(--w65); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--w100); }
.f-muted { color: var(--w65); font-size: 12px; line-height: 1.8; }
footer .copy {
  max-width: 1000px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  color: var(--w65);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ============================================================
   CONTENT SECTIONS (podstrony – tekst merytoryczny)
   ============================================================ */
.content-section { max-width: 800px; margin: 0 auto; padding: 64px 28px; }
.content-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.content-section h2 em { font-style: italic; color: var(--gold); }
.content-section p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }
.content-section p strong { color: var(--text); font-weight: 600; }
.content-section ul { margin: 0 0 16px 20px; }
.content-section li { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }

/* Sekcja z ciemnym tłem (np. kontekst prawny) */
.dark-section {
  background: var(--navy);
  color: var(--w80);
  padding: 56px 28px;
}
.dark-section .content-inner { max-width: 800px; margin: 0 auto; }
.dark-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 300;
  color: var(--w100);
  margin-bottom: 18px;
}
.dark-section h2 em { color: var(--gold-light); font-style: italic; }
.dark-section p { font-size: 15px; color: var(--w80); line-height: 1.9; margin-bottom: 16px; }
.dark-section p strong { color: var(--w100); }

/* PROCESS / KROKI */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.process-step {
  background: var(--white);
  border-radius: 2px;
  padding: 24px 20px;
  border-top: 2px solid var(--gold);
  box-shadow: 0 1px 4px rgba(13,27,42,0.05);
}
.process-step .step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.process-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   DWUJĘZYCZNOŚĆ
   ============================================================ */
.en { display: none; }
.pl { display: block; }
html[lang="en"] .en { display: block; }
html[lang="en"] .pl { display: none; }
span.en { display: none; }
span.pl { display: inline; }
html[lang="en"] span.en { display: inline; }
html[lang="en"] span.pl { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  header img { max-width: 200px; width: 200px; height: 50px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  .segments-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .segments-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}
