/* RST Energia Odnawialna — arkusz stylów */
:root {
  --navy: #0c2233;
  --navy-2: #12324a;
  --blue: #1b5fa8;
  --blue-soft: #e6eff8;
  --green: #5c9e31;
  --green-soft: #e9f3e1;
  --orange: #e8830f;
  --paper: #f5f7f4;
  --white: #ffffff;
  --ink: #14212b;
  --muted: #53626d;
  --line: #dde4e1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 34, 51, .10);
  --wrap: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }

.eyebrow {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.section { padding: 96px 0; }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.dark { background: var(--navy); color: #e8eef2; }
.dark h2, .dark h3 { color: var(--white); }
.dark .section-head p { color: #a9bac6; }
.white { background: var(--white); }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 650; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d27508; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.arrow-link { font-weight: 650; text-decoration: none; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; }

/* nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.brand-text span { white-space: nowrap; font-size: .62rem; font-weight: 700; letter-spacing: .27em; text-transform: uppercase; color: var(--orange); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; white-space: nowrap; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:hover { background: var(--paper); color: var(--blue); }
.nav a.nav-cta { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--blue); color: #fff; }
.lang { display: inline-flex; flex: 0 0 auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang a { padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--blue); }
.lang a[aria-current="true"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; }

/* hero */
.hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 26, 40, .92) 0%, rgba(8, 26, 40, .72) 45%, rgba(8, 26, 40, .25) 100%);
}
.hero-inner { padding: 120px 0 170px; max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 750; margin-bottom: 24px; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #dbe5ec; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats { margin-top: -84px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 34px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.03em; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .45em; font-weight: 700; letter-spacing: 0; color: var(--green); margin-left: 4px; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.stats-note { margin: 14px 4px 0; font-size: .88rem; color: var(--muted); }

/* o firmie */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; max-width: 380px; justify-self: end; width: 100%; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius); background: var(--green-soft); z-index: -1; }
.lead { font-size: 1.14rem; }
.goal { margin-top: 28px; padding: 22px 26px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.goal strong { display: block; margin-bottom: 6px; color: #3d7417; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; }
.goal p { margin: 0; }

/* doświadczenie */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.panel { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 32px 30px; }
.panel h3 { font-size: 1.3rem; margin-bottom: 14px; }
.panel p { color: #b9c8d2; font-size: .98rem; }
.panel p:last-child { margin-bottom: 0; }
.ticks li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .97rem; color: #dbe5ec; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.ticks li b { color: #fff; }
.ticks li small { display: block; color: #9fb2bf; font-size: .86rem; margin-top: 2px; }
.ticks { margin: 14px 0; }

/* oferta */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: offer; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px; counter-increment: offer; transition: box-shadow .2s ease, transform .2s ease; }
.offer:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.offer::before { content: counter(offer, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 750; color: var(--orange); letter-spacing: .1em; margin-bottom: 18px; }
.offer h3 { font-size: 1.2rem; margin-bottom: 10px; }
.offer p { color: var(--muted); font-size: .97rem; margin: 0; }

/* współpraca */
.partners { display: grid; gap: 14px; }
.partner { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.partner strong { display: block; font-size: 1.02rem; }
.partner span { color: var(--muted); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .88rem; font-weight: 650; }

/* projekty */
.project { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project-media img, .project-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--navy); }
.project h3 { font-size: 1.5rem; margin-bottom: 14px; }
.project p { color: var(--muted); }
.progress { margin: 22px 0 18px; }
.project p.stage { display: inline-block; margin: 18px 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.progress-top b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; color: var(--green); font-variant-numeric: tabular-nums; }
.progress-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), #8cc152); }

/* galeria */
.folders { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.folder-list { display: grid; gap: 8px; position: sticky; top: 96px; }
.folder-btn {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  background: transparent; color: #cfdbe3;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  font: inherit; font-size: .96rem; font-weight: 600; line-height: 1.35;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.folder-btn:hover { background: rgba(255, 255, 255, .06); }
.folder-btn[aria-selected="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.folder-btn small { font-size: .8rem; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.folder-panel h3 { font-size: 1.5rem; margin-bottom: 8px; }
.folder-panel > p { color: #a9bac6; max-width: 700px; margin-bottom: 26px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { margin: 0; }
.tile button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--navy-2); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.tile button:hover img { transform: scale(1.04); }
.tile figcaption { margin-top: 7px; font-size: .8rem; line-height: 1.4; color: #b9c8d2; }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 26, 40, .3); }
.tile .play::before { content: ""; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.tile .play::after { content: ""; position: absolute; border-left: 13px solid var(--navy); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 16, 25, .93); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 72px 22px; }
.lb-stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: min(100%, 1000px); max-height: min(calc(100vh - 150px), 680px); border-radius: 8px; object-fit: contain; }
.lb-caption { color: #e8eef2; text-align: center; padding-top: 14px; font-size: .98rem; max-width: 800px; }
.lb-caption small { display: block; color: #8fa3b1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* inne usługi — baner */
.band { background: linear-gradient(120deg, var(--blue) 0%, #174f8c 100%); color: #fff; border-radius: var(--radius); padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; color: #fff; }
.band p { margin: 0; color: #d6e4f3; max-width: 640px; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.contact-card span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-card a { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--blue); }

/* stopka */
.site-footer { background: var(--navy); color: #a9bac6; padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 56px; align-items: start; }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; width: 190px; }
.site-footer h3 { color: #fff; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #dbe5ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { padding: 3px 0; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* podstrona */
.page-hero { background: var(--navy); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; }
.page-hero p { color: #b9c8d2; max-width: 680px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .88rem; margin-bottom: 22px; color: #8fa3b1; }
.crumbs a { color: #cfdbe3; }
.service { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service > * { min-width: 0; }
.service h2 { font-size: 1.6rem; margin-bottom: 8px; }
.service .place { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--green-soft); color: #3d7417; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.service p { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.prices { width: 100%; border-collapse: collapse; min-width: 480px; }
.prices th, .prices td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.prices thead th { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.prices tbody tr:last-child td { border-bottom: 0; }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; }
.prices td b { font-family: var(--font-display); font-size: 1.15rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.prices td small { display: block; color: var(--muted); }
.dots li { position: relative; padding: 6px 0 6px 22px; color: var(--ink); }
.dots li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* responsywność */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .cols-3, .offer-grid { grid-template-columns: 1fr 1fr; }
  .folders { grid-template-columns: 1fr; gap: 24px; }
  .folder-list { position: static; display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .folder-btn { flex: 0 0 auto; width: auto; max-width: 260px; scroll-snap-align: start; }
  .service { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 68px 0; }
  .hero-inner { padding: 76px 0 130px; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 26, 40, .82) 0%, rgba(8, 26, 40, .7) 100%); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 24px 24px; }
  .stat:first-child { border-top: 0; }
  .split, .project, .cols-3, .offer-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split-media::before { inset: 12px -8px -12px 12px; }
  .project { gap: 24px; padding: 36px 0; }
  .split-media { max-width: 420px; justify-self: start; }
  .project-media { max-width: 420px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .band { padding: 32px 26px; }
  .footer-grid { gap: 32px; }
  .lb-inner { padding: 64px 10px 18px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-caption { padding-bottom: 56px; }
  table.prices { min-width: 0; }
  .prices th, .prices td { padding: 14px 14px; }
  .prices th:nth-child(2), .prices td:nth-child(2) { display: none; }
  .header-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand img { height: 38px; }
  .brand-text strong { font-size: 1.25rem; }
  .brand-text span { font-size: .52rem; letter-spacing: .18em; }
  .lang a { padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
