/* Mateusz Michalak – elektryk. Mobile first. */

:root {
  --graphite: #16181D;
  --graphite-2: #20232A;
  --yellow: #F2C200;
  --yellow-hover: #FFD42E;
  --light: #F4F4F2;
  --white: #FFFFFF;
  --text: #16181D;
  --muted: #4A4E56;        /* na jasnym tle */
  --muted-dark: #B8BBC1;   /* na grafitowym tle */
  --line: #DEDED9;
  --focus: #16181D;
  --radius: 6px;
  --header-h: 68px;
  --mobile-bar-h: 72px;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --speed: 180ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--graphite);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow { max-width: 820px; }

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--speed), border-color var(--speed), color var(--speed);
}
.btn-sm { min-height: 42px; padding: 0 22px; font-size: 1rem; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 1.1875rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--yellow); color: var(--graphite); }
.btn-primary:hover { background: var(--yellow-hover); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--speed);
}
.text-link:hover { text-decoration-color: var(--graphite); }

/* ---------- Pasek menu ---------- */

.site-header {
  --focus: var(--yellow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color var(--speed), box-shadow var(--speed);
}
.site-header.is-stuck,
.site-header.nav-open {
  background: var(--graphite);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.header-logo {
  margin-right: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed), visibility var(--speed);
}
.header-logo img { height: 36px; width: auto; }
.is-stuck .header-logo,
.nav-open .header-logo { opacity: 1; visibility: visible; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color var(--speed);
}
.main-nav a:hover { color: var(--yellow); }

.header-call { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0 11px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--speed), opacity var(--speed);
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menu rozwijane na telefonie */
.nav-open .main-nav {
  display: block;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--graphite);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 16px 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
}
.nav-open .main-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.375rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (min-width: 860px) {
  :root { --header-h: 84px; }

  .header-logo img { height: 38px; }
  .main-nav,
  .nav-open .main-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .main-nav ul { display: flex; gap: 32px; }
  .main-nav a,
  .nav-open .main-nav a { display: inline; padding: 0; font-size: 1.0625rem; border: 0; }
  .header-call { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Przypięty pasek na telefonie ---------- */

.mobile-bar {
  --focus: var(--yellow);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--graphite);
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.mobile-bar .btn { min-height: 50px; padding: 0 12px; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
}

/* ---------- Znak wodny (3 miejsca: sekcja główna, O mnie, stopka) ---------- */

.watermark {
  position: absolute;
  z-index: 0;
  width: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* ---------- Sekcja główna ---------- */

.hero {
  --focus: var(--yellow);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 18%, rgba(242,194,0,.13), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(0,0,0,.45), transparent 70%),
    linear-gradient(180deg, #1B1E25 0%, var(--graphite) 60%, #111317 100%);
  color: var(--white);
  text-align: center;
  padding: calc(var(--header-h) + 8px) 0 48px;
}
.hero .watermark {
  height: 85%;
  top: 22%;
  right: -34%;
  opacity: .07;
}
.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  height: 130px;
  width: auto;
  margin: 0 auto 28px;
}

.hero-title {
  font-size: clamp(2rem, 1.1rem + 4.2vw, 3.75rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-title-sub {
  display: block;
  margin-top: .4em;
  font-size: .54em;
  letter-spacing: .06em;
  color: var(--yellow);
}

.hero-lead {
  max-width: 34em;
  margin: 18px auto 28px;
  font-size: 1.0625rem;
  color: var(--muted-dark);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.trust-bar li + li::before {
  content: "·";
  margin: 0 .7em;
}
.only-wide { display: none; }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn { min-width: 230px; }
  .only-wide { display: inline; }
  .hero .watermark { height: 115%; top: -12%; right: -16%; opacity: .1; }
}

@media (min-width: 860px) {
  .hero { padding: calc(var(--header-h) + 16px) 0 64px; }
  .hero-logo { height: 190px; margin-bottom: 32px; }
  .hero-lead { font-size: 1.1875rem; }
  .trust-bar { font-size: .9375rem; }
  .hero .watermark { height: 125%; right: -8%; opacity: .105; }
}

/* ---------- Sekcje ---------- */

.section { padding: 56px 0; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }

@media (min-width: 860px) {
  .section { padding: 88px 0; }
}

.section-title {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 10px;
  background: var(--yellow);
}

.small-note {
  margin-top: 20px;
  font-size: .875rem;
  color: var(--muted);
}

/* ---------- Usługi ---------- */

.cards {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.card:hover {
  border-color: var(--graphite);
  box-shadow: 0 8px 24px rgba(22,24,29,.1);
}
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card:focus-within :focus-visible { outline: none; }

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;   /* bez tego wyższe zdjęcie rozciąga ramkę */
  background: var(--graphite);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-bottom: 1px solid var(--line);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.card-title {
  font-size: 1.625rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-title a { text-decoration: none; }
.card-title a::after {         /* cała karta klikalna */
  content: "";
  position: absolute;
  inset: 0;
}
.card-body p { color: var(--muted); }

.card-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
}

.card-body .card-note {
  margin-top: -6px;
  margin-bottom: 20px;
  font-size: .9375rem;
}

.card-more {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* ---------- Opinie ---------- */

.reviews {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .reviews { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Pasek przesuwających się opinii (włącza go JS) */
.reviews-viewport.is-marquee {
  overflow: hidden;
  margin: 0 -16px;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.is-marquee .reviews {
  display: flex;
  gap: 0;
  width: max-content;
  animation: reviews-right 60s linear infinite;
}
.is-marquee .review {
  width: 300px;
  flex: none;
  margin-right: 20px;
}
@media (min-width: 640px) {
  .is-marquee .review { width: 380px; margin-right: 24px; }
}
/* Najechanie myszką albo klawiaturą zatrzymuje pasek, żeby dało się spokojnie przeczytać */
.reviews-viewport.is-marquee:hover .reviews,
.reviews-viewport.is-marquee:focus-within .reviews { animation-play-state: paused; }

/* Wyłączone animacje: rząd opinii przewijany strzałką lub palcem */
.reviews-viewport.is-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.is-scroller .reviews {
  display: flex;
  gap: 0;
}
.is-scroller .review {
  flex: none;
  width: 85%;
  max-width: 380px;
  margin-right: 20px;
  scroll-snap-align: start;
}
.reviews-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.reviews-arrow {
  width: 48px;
  height: 48px;
  border: 2px solid var(--graphite);
  border-radius: 50%;
  background: var(--white);
  color: var(--graphite);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
.reviews-arrow:hover { background: var(--yellow); border-color: var(--yellow); }

@keyframes reviews-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.review {
  margin: 0;
  padding: 26px 24px;
  background: var(--light);
  border-left: 5px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
}
.review-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.stars {
  color: var(--yellow);
  font-size: 1.375rem;
  letter-spacing: .1em;
  line-height: 1;
  -webkit-text-stroke: .5px #C9A000;
}
.review-score {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
}
.review blockquote {
  margin: 0 0 16px;
  font-size: 1.125rem;
}
.review figcaption {
  margin-top: auto;
  font-weight: 600;
}
.review figcaption span { font-weight: 400; color: var(--muted); }

.reviews-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 28px;
}

/* ---------- Realizacje ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.gallery figure { margin: 0; }
.gallery-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--graphite);
  cursor: zoom-in;
}
.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--speed);
}
.gallery-link:hover img { opacity: .88; }
/* Zdjęcia pionowe (rozdzielnice) – kadr na środek skrzynki */
.gallery-tall img { object-position: 50% 45%; }
.gallery figcaption {
  margin-top: 8px;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--muted);
}

.lightbox {
  --focus: var(--yellow);
  width: auto;
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10,11,14,.9); }
.lightbox figure { margin: 0; }
.lightbox img {
  width: auto;
  max-width: 96vw;
  max-height: calc(94vh - 56px);
  border-radius: 6px;
}
.lightbox figcaption {
  padding-top: 12px;
  color: var(--white);
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--graphite);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--speed);
}
.lightbox-close:hover { background: var(--yellow-hover); }

/* ---------- O mnie ---------- */

.about {
  position: relative;
  overflow: hidden;
}
.about .watermark {
  height: 70%;
  top: 4%;
  left: -32%;
  opacity: .04;
}
.about-inner {
  position: relative;
  z-index: 1;
}
.about-text p { font-size: 1.125rem; max-width: 40em; }
.about-text .about-lead { font-size: 1.25rem; font-weight: 500; }
.about-subtitle {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.about-list { font-size: 1.125rem; margin-bottom: 0; }

/* Zdjęcia świadectw SEP w „O mnie” */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 980px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.certs figure { margin: 0; }
.cert-link {
  aspect-ratio: 4 / 3;
  background: var(--graphite);
  box-shadow: 0 6px 18px rgba(22,24,29,.12);
}
.certs figcaption {
  margin-top: 8px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 860px) {
  .about .watermark { height: 125%; top: -12%; left: -9%; opacity: .07; }
}

/* ---------- Jak działam ---------- */

.steps {
  display: grid;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.625rem;
}
.step-title {
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step p { color: var(--muted); }
.step-photo { margin: 16px 0 0; }
.step-photo .gallery-link { aspect-ratio: 4 / 3; border-radius: 8px; }
.step-photo figcaption {
  margin-top: 8px;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--muted);
}
.step .step-note {
  margin-top: -4px;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
  color: var(--text);
  font-weight: 600;
}
.step-list {               /* co klient dostaje po nowej instalacji – wyróżnione */
  margin: 14px 0 0;
  padding: 16px 18px 10px;
  background: var(--white);
  border-left: 5px solid var(--yellow);
  border-radius: 0 8px 8px 0;
}

/* ---------- Obszar działania ---------- */

/* ---------- Pasek wezwania (żółty gradient) ---------- */

.cta-band {
  --focus: var(--graphite);
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  color: var(--graphite);
  background:
    radial-gradient(ellipse 50% 120% at 85% 50%, rgba(255,255,255,.28), transparent 70%),
    linear-gradient(115deg, #E0A800 0%, var(--yellow) 45%, #FFD84D 100%);
}
.cta-band .watermark {
  height: 160%;
  top: -30%;
  right: -12%;
  opacity: .06;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  align-items: center;
}
.cta-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 10px;
}
.cta-text p { max-width: 40em; font-size: 1.0625rem; color: #2B2D33; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.btn-dark {
  --focus: var(--graphite);
  background: var(--graphite);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(22,24,29,.28);
}
.btn-dark:hover { background: #2A2D35; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.cta-phone .ico { width: 18px; height: 18px; }

@media (min-width: 860px) {
  .cta-band { padding: 64px 0; }
  .cta-inner { grid-template-columns: 1fr auto; gap: 48px; }
  .cta-actions { align-items: center; }
  .cta-band .watermark { height: 220%; top: -60%; right: -2%; opacity: .09; }
}

/* Ikony liniowe (pinezka, telefon, koperta…) */
.ico {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ciemna sekcja (Obszar działania) */
.section-dark {
  --focus: var(--yellow);
  background:
    radial-gradient(ellipse 60% 70% at 22% 50%, rgba(242,194,0,.07), transparent 70%),
    var(--graphite);
  color: var(--white);
}

/* Mały napis nad tytułem: — OBSZAR DZIAŁANIA */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--yellow);
}
.section-title-plain::after { display: none; }
.section-dark .accent { color: var(--yellow); }

/* Opinie: poświata z prawej, żeby nie wyglądały jak kopia „Obszaru” */
.section-dark-alt {
  background:
    radial-gradient(ellipse 55% 80% at 85% 30%, rgba(242,194,0,.07), transparent 70%),
    linear-gradient(180deg, #1B1E25 0%, var(--graphite) 100%);
}

/* Teksty i elementy na ciemnym tle */
.section-dark p,
.section-dark .about-list li { color: #D9DBDF; }
.section-dark .small-note { color: var(--muted-dark); }
.section-dark .text-link { color: var(--white); }
.section-dark .text-link:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

.section-dark .review {
  background: var(--graphite-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.section-dark .review blockquote p { color: #ECEDEF; }
.section-dark .review figcaption { color: var(--white); }
.section-dark .review figcaption span { color: var(--muted-dark); }
.section-dark .stars { -webkit-text-stroke: 0; }

.section-dark .reviews-arrow { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.section-dark .reviews-arrow:hover { background: var(--yellow); border-color: var(--yellow); color: var(--graphite); }

.section-dark .about-lead { color: var(--white); }
.section-dark .certs figcaption { color: var(--white); }
.section-dark .cert-link { box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.area-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .area-inner { grid-template-columns: minmax(280px, 400px) 1fr; gap: 72px; }
}

/* Radar */
.radar-wrap { max-width: 260px; margin: 0 auto; }
@media (min-width: 860px) { .radar-wrap { max-width: 400px; width: 100%; } }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .r-ring { fill: none; stroke: rgba(242,194,0,.32); stroke-width: 1.5; }
.radar .r-core { fill: rgba(242,194,0,.08); stroke: rgba(242,194,0,.5); stroke-width: 1.5; }
.radar .r-cross { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.radar .r-dot-in { fill: var(--yellow); }
.radar .r-dot-out { fill: var(--graphite); stroke: var(--yellow); stroke-width: 2; }
.radar .r-ring,
.radar .r-core,
.radar .r-dot,
.radar .r-center { transform-box: view-box; transform-origin: 160px 160px; }
.radar .r-dot { transform-box: fill-box; transform-origin: center; }

/* Pojawianie się radaru przy przewinięciu (tylko grafika, tekst jest od razu widoczny).
   Klasę .radar-anim dodaje JS, więc bez JS radar jest po prostu widoczny. */
@media (prefers-reduced-motion: no-preference) {
  .radar-anim .r-ring,
  .radar-anim .r-core,
  .radar-anim .r-cross,
  .radar-anim .r-center { opacity: 0; transform: scale(.4); }
  .radar-anim .r-cross { transform: none; }
  .radar-anim .r-dot { opacity: 0; transform: scale(0); }

  .radar-anim.is-on .r-ring,
  .radar-anim.is-on .r-core,
  .radar-anim.is-on .r-cross,
  .radar-anim.is-on .r-center,
  .radar-anim.is-on .r-dot {
    opacity: 1;
    transform: none;
    transition: opacity 500ms ease-out, transform 600ms cubic-bezier(.2,.8,.2,1);
  }
  .radar-anim.is-on .r-center { transition-delay: 0ms; }
  .radar-anim.is-on .r-core   { transition-delay: 80ms; }
  .radar-anim.is-on .r-ring-2 { transition-delay: 180ms; }
  .radar-anim.is-on .r-ring-3 { transition-delay: 300ms; }
  .radar-anim.is-on .r-cross  { transition-delay: 300ms; }
  .radar-anim.is-on .r-dot {
    transition-duration: 300ms;
    transition-delay: calc(400ms + var(--i) * 70ms);
  }
}

.area-text .section-title { margin-bottom: 28px; }
.area { margin-bottom: 24px; }
.area-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--muted-dark);
}
.legend {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.legend-in { background: var(--yellow); }
.legend-out { border: 2px solid var(--yellow); }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 14px;
  background: var(--graphite-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-weight: 600;
  color: var(--white);
}
.chip .ico { color: var(--yellow); width: 16px; height: 16px; }
.chip-main {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--graphite);
}
.chip-main .ico { color: var(--graphite); }

.area-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(242,194,0,.07);
  border: 1px solid rgba(242,194,0,.35);
  border-radius: 10px;
  font-weight: 600;
}
.area-note .ico { color: var(--yellow); width: 22px; height: 22px; margin-top: 2px; }
.area-note a { color: var(--yellow); white-space: nowrap; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}
.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 1.75rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 20px 20px;
  color: var(--muted);
}
.faq details a { font-weight: 600; color: var(--text); }

/* ---------- Formularz ---------- */

.nowrap { white-space: nowrap; }
.urgent { font-weight: 600; }
.urgent a { white-space: nowrap; }

/* Nagłówek sekcji: wyśrodkowany, jak w kontakcie Mili */
.quote-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.quote-head .section-title { margin-bottom: 14px; }
.quote-lead { font-size: 1.125rem; color: var(--muted); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--yellow);
}
/* Na jasnym tle napis nad tytułem grafitowy (żółty tekst na jasnym jest nieczytelny) */
.section-light .eyebrow,
.section-white .eyebrow { color: var(--graphite); }
/* Wyróżnione słowo: grafitowy tekst na żółtym pasku */
.mark {
  padding: 0 .18em;
  background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.quote {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .quote { grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
  .contact-cards { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Kafelki kontaktu */
.contact-cards {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(22,24,29,.04);
}
.contact-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--light);
  color: var(--graphite);
}
.contact-ico .ico { width: 22px; height: 22px; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
}
a.contact-value:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.contact-mail { overflow-wrap: break-word; }
.contact-sub { margin-top: 2px; font-size: .9375rem; color: var(--muted); }
.contact-sub a { font-weight: 600; color: var(--text); white-space: nowrap; }

/* Telefon: główny kafelek, grafitowy */
.contact-card-dark {
  --focus: var(--yellow);
  padding: 22px 20px;
  background: var(--graphite);
  border-color: var(--graphite);
  box-shadow: 0 10px 28px rgba(22,24,29,.22);
}
.contact-card-dark .contact-ico { width: 56px; height: 56px; background: var(--yellow); }
.contact-card-dark .contact-label { color: var(--muted-dark); }
.contact-card-dark .contact-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: .03em;
  line-height: 1.1;
  color: var(--white);
}
.contact-card-dark .contact-phone:hover { color: var(--yellow); text-decoration: none; }

/* Formularz w białej karcie */
.quote-form {
  padding: 26px 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(22,24,29,.08);
}
@media (min-width: 640px) {
  .quote-form { padding: 34px 32px 28px; }
}
.form-title {
  font-size: 1.75rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.form-intro { color: var(--muted); margin-bottom: 22px; }
.btn-icon { gap: 10px; }
.btn-icon .ico { width: 20px; height: 20px; }
.form-urgent { margin: 16px 0 0; text-align: center; }
.form-urgent a { color: var(--text); }
.quote-form .small-note { text-align: center; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.0625rem;   /* min. 16px, żeby iOS nie powiększał */
  color: var(--text);
  background: var(--white);
  border: 2px solid #8E9198;
  border-radius: var(--radius);
  transition: border-color var(--speed);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--graphite); }
.field [aria-invalid="true"] { border-color: #B3261E; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 14px 0 0;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
.form-status.is-ok {
  padding: 12px 14px;
  background: #EAF6EC;
  border-left: 4px solid #2E7D32;
  border-radius: 4px;
  color: #1B5E20;
}

/* ---------- Stopka ---------- */

.site-footer {
  --focus: var(--yellow);
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  color: var(--muted-dark);
  padding: 56px 0 24px;
}
.site-footer .watermark {
  height: 70%;
  top: 30%;
  right: -30%;
  opacity: .05;
}
.footer-inner,
.footer-bottom { position: relative; z-index: 1; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* na telefonie Nawigacja i Usługi obok siebie */
  gap: 36px 20px;
}
.footer-brand,
.footer-col:last-child { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .footer-brand,
  .footer-col:last-child { grid-column: auto; }
}
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 24em; font-size: .9875rem; }
.footer-title {
  color: var(--white);
  font-size: 1.1875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a {
  color: var(--muted-dark);
  text-decoration: none;
  transition: color var(--speed);
}
.site-footer a:hover { color: var(--yellow); }
.site-footer .strong { color: var(--white); font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .7em; }

.footer-contact { list-style: none; margin: 0 0 16px; padding: 0; }
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: .9em;
  line-height: 1.45;
}
.footer-contact .ico { color: var(--yellow); width: 18px; height: 18px; margin-top: 3px; }
.footer-contact a[href^="mailto"] { overflow-wrap: anywhere; }
.footer-col .urgent { color: var(--white); }
.footer-col .urgent a { color: var(--yellow); font-weight: 600; }

.footer-bottom {
  margin-top: 48px;
  font-size: .875rem;
}
/* Pas ostrzegawczy żółto-grafitowy */
.footer-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(242,194,0,.55) 0 14px,
    transparent 14px 28px
  );
  border-radius: 2px;
}
.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}
.footer-bottom-row p { margin: 0; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer .watermark { height: 120%; top: -10%; right: -14%; opacity: .08; }
}
@media (min-width: 960px) {
  .site-footer { padding-top: 72px; }
  .footer-inner { grid-template-columns: 1.3fr .8fr 1fr 1.5fr; gap: 40px; }
  .site-footer .watermark { right: -6%; }
  .footer-bottom-row { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Podstrony ---------- */

/* Na podstronach małe logo w pasku jest widoczne od razu */
.subpage .header-logo { opacity: 1; visibility: visible; }

.page-hero {
  --focus: var(--yellow);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 28px) 0 48px;
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(242,194,0,.10), transparent 70%),
    linear-gradient(180deg, #1B1E25 0%, var(--graphite) 70%, #111317 100%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: .9375rem;
  color: var(--muted-dark);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumbs a { color: var(--muted-dark); }
.breadcrumbs a:hover { color: var(--yellow); }
.page-title {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-title .accent { display: block; margin-top: .35em; font-size: .55em; letter-spacing: .06em; color: var(--yellow); }
.page-lead { margin: 18px 0 26px; max-width: 40em; font-size: 1.125rem; color: #D9DBDF; }
.page-hero .hero-actions { flex-direction: column; }
@media (min-width: 640px) {
  .page-hero .hero-actions { flex-direction: row; justify-content: flex-start; }
}
@media (min-width: 860px) {
  .page-hero { padding: calc(var(--header-h) + 40px) 0 72px; }
}

/* Tekst podstrony */
.prose { max-width: 46em; }
.prose p, .prose li { font-size: 1.0938rem; }
.prose h2 { margin-top: 0; }
.prose .card-list { margin-top: 4px; }
.two-col {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.3fr 1fr; gap: 56px; }
}
.content-photo { margin: 0; }
.content-photo .gallery-link { aspect-ratio: 4 / 3; }
.content-photo figcaption { margin-top: 8px; font-size: .9375rem; color: var(--muted); }

.box-yellow {
  margin: 20px 0 0;
  padding: 18px 20px 14px;
  background: var(--white);
  border-left: 5px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 6px 18px rgba(22,24,29,.06);
}
.box-yellow p { font-weight: 600; }
.box-alert {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: #FFF6D6;
  border: 1px solid var(--yellow);
  border-radius: 10px;
}
.box-alert p { margin: 0; font-weight: 600; }
.box-alert a { white-space: nowrap; }

.steps-4 { counter-reset: none; }
@media (min-width: 860px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* Strony z tekstem prawnym */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 1.0625rem; }
.legal ul { padding-left: 1.2em; }
.todo-note {
  padding: 14px 16px;
  background: #FFF6D6;
  border: 2px dashed #C9A000;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- Bez animacji, gdy użytkownik tak ustawił ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
