/* ============================================================
   Helcom — Nowoczesne instalacje elektryczne i automatyka
   ============================================================ */

:root {
  --bg: #0b0d10;
  --bg-alt: #101317;
  --panel: #15181d;
  --panel-2: #1b1f25;
  --border: #2a2f36;

  --copper: #c9904f;
  --copper-light: #e8bd85;
  --copper-dark: #8a5a2d;

  --blue: #38c8f0;
  --blue-glow: #6fe3ff;

  --text: #eee9e1;
  --text-dim: #a6acb3;
  --text-faint: #6b7178;

  --radius: 14px;
  --container: 1180px;

  --font-display: "Rajdhani", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background circuit texture */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(56, 200, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 200, 240, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 85%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
}

p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper-light), var(--copper) 55%, var(--copper-dark));
  color: #1a1108;
  box-shadow: 0 0 0 rgba(56, 200, 240, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 144, 79, 0.35), 0 0 20px rgba(56, 200, 240, 0.15);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-glow);
  box-shadow: 0 0 16px rgba(56, 200, 240, 0.15);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 100px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a { color: var(--text-dim); transition: color 0.2s ease; }
.nav a:hover { color: var(--blue-glow); }
.nav-active { color: var(--copper-light) !important; }

/* Rozwijane menu „Kalkulatory” */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-drop-btn::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-drop-btn:hover { color: var(--blue-glow); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  flex-direction: column;
  min-width: 250px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
/* mostek nad menu, żeby nie znikało przy przesuwaniu kursora */
.nav-drop-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.nav-drop-menu a:hover { background: var(--panel-2); }
.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--copper);
  color: var(--copper-light) !important;
}
.nav-cta:hover {
  background: var(--copper);
  color: #1a1108 !important;
  box-shadow: 0 0 18px rgba(201, 144, 79, 0.4);
}

/* Language switcher (PL / EN) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.nav .lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-faint);
}
.nav .lang-switch a:hover { color: var(--blue-glow); }
.nav .lang-switch a.lang-active {
  background: var(--panel-2);
  color: var(--copper-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 204px 0 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(56, 200, 240, 0.14) 0%, rgba(201, 144, 79, 0.08) 35%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-light);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 820px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #ffffff 20%, var(--copper-light) 60%, var(--blue-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue-glow);
  text-shadow: 0 0 18px rgba(56, 200, 240, 0.35);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  max-width: 140px;
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
  padding: 22px 24px;
}
.trust-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
}
.trust-badge {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--copper-light);
  white-space: nowrap;
}
.trust-text { color: var(--text-faint); }
.trust-link { color: var(--blue); transition: color 0.2s ease; }
.trust-link:hover { color: var(--blue-glow); }

/* ---------- Section shared ---------- */
section { padding: 100px 0; }

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 16px;
}
.section-lead {
  color: var(--text-dim);
  max-width: 620px;
  font-size: 1.02rem;
}

/* ---------- Services ---------- */
.services { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services .container { text-align: center; }
.services .section-lead { margin: 0 auto; }

.service-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.service-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--copper);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,144,79,0.15), 0 0 30px rgba(56,200,240,0.08);
}

.service-icon {
  width: 84px; height: 84px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: #0f1216;
}
.service-icon img { width: 100%; height: 100%; object-fit: cover; }

.service-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: var(--copper-light);
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.96rem;
}

/* ---------- Extra services ---------- */
.extra-services {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.extra-services-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.extra-services-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.extra-services-tags span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--panel);
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--text-dim); margin: 18px 0 22px; }
.about-points {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.about-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--blue-glow), var(--copper));
}

.visual-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.visual-img { width: 100%; }

/* ---------- Process ---------- */
.process { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  padding: 26px 22px;
  border-left: 2px solid var(--border);
  position: relative;
}
.process-step:hover { border-left-color: var(--blue); }
.process-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--copper);
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-text p { color: var(--text-dim); margin-top: 14px; }
.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}
.contact-item:hover { border-color: var(--copper); }
.contact-item-static { cursor: default; }
.contact-item-static:hover { border-color: var(--border); }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.contact-value { font-family: var(--font-display); font-weight: 600; color: var(--copper-light); font-size: 1.05rem; }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 200, 240, 0.12);
}
.form-row textarea { resize: vertical; }
/* własny przycisk wyboru plików — systemowy napisałby tekst w języku przeglądarki, nie strony */
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.file-picker .file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56, 200, 240, 0.12); }
.file-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--copper);
  border-radius: 6px;
  color: var(--copper-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.file-picker:hover .file-btn { background: rgba(201, 144, 79, 0.12); }
.file-status { min-width: 0; color: var(--text-dim); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-hint { margin: 0; font-size: 0.82rem; color: var(--text-faint); }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--text-dim); }
.file-list li { display: flex; justify-content: space-between; gap: 12px; }
.file-list li span:first-child { overflow-wrap: anywhere; }
.file-list li span:last-child { color: var(--text-faint); white-space: nowrap; }
.file-list .is-error { color: #ff8a7a; }
.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--blue-glow);
  min-height: 1.2em;
}

/* ---------- Page header (subpages) ---------- */
.page-header {
  padding: 168px 0 40px;
  text-align: center;
}
.page-header .section-title { margin-bottom: 16px; }
.page-header .section-lead { margin: 0 auto; }

/* ---------- Portfolio ---------- */
.portfolio { padding: 40px 0 100px; }

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.filter-pill:hover { border-color: var(--copper); color: var(--text); }
.filter-pill.active {
  background: linear-gradient(135deg, var(--copper-light), var(--copper) 55%, var(--copper-dark));
  border-color: transparent;
  color: #1a1108;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover, .portfolio-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--copper);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  outline: none;
}
.portfolio-thumb { position: relative; }
.portfolio-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.portfolio-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(11, 13, 16, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.portfolio-card-body { padding: 20px 22px 24px; }
.portfolio-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 10px;
}
.portfolio-card-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.portfolio-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 40px 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 7, 9, 0.94);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox:not([hidden]) { display: flex; }
.lightbox-content {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.lightbox-caption {
  color: var(--text-dim);
  font-size: 0.95rem;
  text-align: center;
  max-width: 640px;
}
.lightbox-counter {
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--copper-light); }
.lightbox-nav {
  background: rgba(21, 24, 29, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-nav:hover { border-color: var(--copper); color: var(--copper-light); }
.lightbox-prev { margin-right: 12px; }
.lightbox-next { margin-left: 12px; }

@media (max-width: 720px) {
  .lightbox { padding: 12px; flex-direction: column; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

.service-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s ease;
}
.service-link:hover { color: var(--blue-glow); }

/* ---------- Kalkulator wyceny ---------- */
.calc { padding: 24px 0 100px; }
.calc [hidden] { display: none !important; }
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.calc-form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.calc-step {
  margin: 0;
  min-width: 0;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-step legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.calc-step-num { color: var(--copper); font-size: 1.15rem; }
.calc-step-badge {
  margin-left: auto;
  align-self: center;
  padding: 4px 14px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--copper-light);
  white-space: nowrap;
}

.calc-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}
.calc-hint { color: var(--text-faint); font-size: 0.9rem; }
.calc-hint-ok { color: var(--blue); }
.calc-link {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 6px;
  color: var(--blue);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.calc-link:hover { color: var(--blue-glow); }

/* Kafelki wyboru (radio) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.choice-grid-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.choice-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); line-height: 1.25; }
.choice-desc { font-size: 0.8rem; color: var(--text-faint); line-height: 1.4; }
.choice:hover .choice-body { border-color: var(--copper-dark); }
.choice input:checked + .choice-body {
  border-color: var(--copper);
  background: linear-gradient(180deg, rgba(201, 144, 79, 0.14), rgba(201, 144, 79, 0.04));
  box-shadow: inset 0 0 0 1px var(--copper), 0 0 18px rgba(201, 144, 79, 0.12);
}
.choice input:checked + .choice-body .choice-title { color: var(--copper-light); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Checkboxy */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.check:hover { border-color: var(--copper-dark); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: 0 0 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--text-faint);
  border-radius: 5px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.check input:checked ~ .check-box {
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  border-color: var(--copper);
}
.check input:checked ~ .check-box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #1a1108;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input:focus-visible ~ .check-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check:has(input:checked) { border-color: var(--copper); }
.check-text { display: flex; flex-direction: column; gap: 2px; }
.check-label { font-family: var(--font-display); font-weight: 600; color: var(--text); line-height: 1.3; }
.check-desc { font-size: 0.8rem; color: var(--text-faint); }
.check.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* Selecty konstrukcji */
.calc-row-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.calc-step .form-row select { width: 100%; cursor: pointer; }
.form-row select option { background: var(--panel); color: var(--text); }

/* Powierzchnia + steppery */
.calc-area-inputs { display: flex; align-items: center; gap: 12px; }
.calc-unit { font-family: var(--font-display); font-weight: 600; color: var(--text-dim); }
.calc-unit-hint { font-weight: 500; color: var(--text-faint); margin-left: 6px; }
.calc-area input[type="range"] { width: 100%; accent-color: var(--copper); margin-top: 6px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.calc-inline { max-width: 320px; }
.calc input[type="month"] { color-scheme: dark; }
.calc-wlz, .calc-trench { display: flex; flex-direction: column; gap: 14px; }

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.stepper button {
  width: 40px;
  background: transparent;
  border: 0;
  color: var(--copper-light);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.stepper button:hover { background: var(--panel-2); color: var(--blue-glow); }
.form-row .stepper input, .stepper input {
  width: 72px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 4px;
  outline: none;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56, 200, 240, 0.12); }

.counter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.counter {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.counter label { font-family: var(--font-display); font-weight: 600; color: var(--text); line-height: 1.3; }
.counter label small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.76rem; color: var(--text-faint); margin-top: 2px; }
.counter .stepper { align-self: flex-start; }
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kitchen-grid select { width: 100%; cursor: pointer; }

/* Podsumowanie */
.calc-summary {
  position: sticky;
  top: 136px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--copper-dark);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 200, 240, 0.06);
}
.calc-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  color: var(--blue-glow);
  text-shadow: 0 0 18px rgba(56, 200, 240, 0.35);
}
.calc-price-sub { margin-top: 6px; color: var(--text-faint); font-size: 0.88rem; }
.calc-price-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 2px solid var(--copper);
  background: rgba(201, 144, 79, 0.08);
  border-radius: 0 8px 8px 0;
  font-size: 0.84rem;
  color: var(--copper-light);
  line-height: 1.5;
}
.calc-breakdown {
  list-style: none;
  margin: 22px 0 18px;
  padding: 0;
  border-top: 1px solid var(--border);
}
.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.calc-item-note { display: block; margin-top: 3px; font-size: 0.76rem; color: var(--text-faint); line-height: 1.45; }
.calc-breakdown li span:last-child { white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.calc-breakdown .calc-total { border-bottom-style: solid; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); }
.calc-breakdown .calc-gross span:last-child { color: var(--copper-light); }
.calc-breakdown .calc-gross-small { font-size: 0.8rem; color: var(--text-faint); border-bottom: 0; }
.calc-breakdown .calc-gross-small span:last-child { color: var(--text-dim); }
.calc-disclaimer { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 20px; line-height: 1.55; }

.calc-enquiry-section { background: var(--bg-alt); border-top: 1px solid var(--border); }

/* Pasek ceny na telefonie */
.calc-mobilebar { display: none; }

@media (max-width: 1100px) {
  .nav { gap: 20px; font-size: 0.92rem; }
}

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-summary { position: static; max-height: none; }
  .calc-row-3 { grid-template-columns: 1fr; }
  .calc-mobilebar {
    display: flex;
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid var(--copper);
    border-radius: 999px;
    background: rgba(11, 13, 16, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .calc-mobilebar.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .calc-mobilebar-label { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
  .calc-mobilebar-price { font-family: var(--font-display); font-weight: 700; color: var(--blue-glow); font-size: 1.05rem; }
}

@media (max-width: 720px) {
  .calc-step { padding: 22px 18px 24px; }
  .calc-summary { padding: 22px 18px; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid-2, .check-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter .stepper input { width: 52px; }
  .counter .stepper button { width: 34px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px 24px;
}
.footer-logo { flex-shrink: 0; height: 56px; width: auto; }
.footer-copy { flex: 1; min-width: 0; color: var(--text-faint); font-size: 0.85rem; }
/* wąski telefon: tekst pod logo */
@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  .header-inner { height: 72px; }
  .brand-logo { height: 56px; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(11, 13, 16, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 640px; }
  .nav a { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  /* na telefonie „Kalkulatory” to nagłówek z rozwiniętą listą */
  .nav-drop-btn { padding: 16px 24px 6px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); cursor: default; }
  .nav-drop-btn::after { display: none; }
  .nav-drop-btn:hover { color: var(--text-faint); }
  .nav-drop-menu { position: static; transform: none; display: flex; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .nav-drop-menu::before { display: none; }
  .nav-drop-menu a { padding: 12px 24px 12px 40px; border-radius: 0; }
  .nav-drop-menu a:hover { background: none; }
  .lang-switch { align-self: flex-start; margin: 16px 24px 0; }
  .nav .lang-switch a { padding: 6px 14px; border-bottom: 0; }
  .nav-cta { margin: 16px 24px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 136px 0 72px; }
  .hero-stats { gap: 32px; }
  section { padding: 72px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .page-header { padding-top: 128px; }
}

/* ---------- Kalkulator: poradnik + FAQ ---------- */
.calc-guide { border-top: 1px solid var(--border); }
.calc-guide-head { text-align: center; margin-bottom: 48px; }
.calc-guide-head .section-lead { margin: 0 auto; }
.calc-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.calc-guide-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.calc-guide-card h3 { font-size: 1.25rem; margin: 0 0 12px; color: var(--copper-light); }
.calc-guide-card p, .calc-guide-card li { color: var(--text-dim); font-size: 0.95rem; }
.calc-guide-card p { margin: 0 0 12px; }
.calc-guide-card p:last-child { margin-bottom: 0; }
.calc-guide-card ul { margin: 0; padding-left: 20px; }
.calc-guide-card li { margin-bottom: 8px; }
.calc-guide-card li:last-child { margin-bottom: 0; }
.calc-guide-card strong { color: var(--text); font-weight: 600; }

.calc-faq { max-width: 820px; margin: 72px auto 0; }
.calc-faq-title { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin-bottom: 28px; }
.calc-faq details { border-bottom: 1px solid var(--border); }
.calc-faq details:first-of-type { border-top: 1px solid var(--border); }
.calc-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 600;
  color: var(--text);
}
.calc-faq summary::-webkit-details-marker { display: none; }
.calc-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
}
.calc-faq details[open] summary::after { content: "−"; }
.calc-faq summary:hover { color: var(--copper-light); }
.calc-faq details p { color: var(--text-dim); margin: 0 0 18px; font-size: 0.95rem; }

/* ---------- Kalkulator: przykładowe koszty i stawki (treść statyczna dla klientów i AI) ---------- */
.calc-examples { margin-bottom: 72px; }
.calc-examples-head { text-align: center; margin-bottom: 32px; }
.calc-examples-head .section-lead { margin: 0 auto; }
.calc-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.calc-table caption { text-align: left; padding: 18px 20px 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--copper-light); }
.calc-table th, .calc-table td { padding: 12px 20px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
.calc-table thead th { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); border-top: 0; }
.calc-table td { color: var(--text-dim); }
.calc-table td:first-child, .calc-table th[scope="row"] { color: var(--text); font-weight: 600; }
.calc-table td small { display: block; font-weight: 400; color: var(--text-faint); font-size: 0.85rem; margin-top: 2px; }
.calc-table .num { text-align: right; white-space: nowrap; }
.calc-table .num strong { color: var(--blue-glow); font-weight: 600; }
.calc-examples-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.calc-examples-note { color: var(--text-faint); font-size: 0.85rem; margin: 14px 0 0; }
@media (max-width: 640px) {
  .calc-table th, .calc-table td { padding: 10px 14px; }
  .calc-table { font-size: 0.9rem; }
  .calc-table caption { padding: 16px 14px 6px; font-size: 1.1rem; }
  /* przykłady (kolumny z data-label): każdy wiersz jako karta */
  .calc-table:has(td[data-label]) thead { display: none; }
  .calc-table:has(td[data-label]) tr { display: block; padding: 12px 14px; border-top: 1px solid var(--border); }
  .calc-table:has(td[data-label]) td { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; padding: 3px 0; border-top: 0; text-align: right; }
  .calc-table:has(td[data-label]) td:first-child { display: block; text-align: left; padding-bottom: 8px; }
  .calc-table td[data-label]::before { content: attr(data-label); margin-right: auto; padding-right: 12px; color: var(--text-faint); font-weight: 400; text-align: left; }
  .calc-table td[data-label] small { display: inline; margin: 0; }
}
.form-reassure { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); text-align: center; }

@media (max-width: 900px) {
  .calc-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .calc-guide-card { padding: 22px 18px; }
  .calc-faq { margin-top: 56px; }
}

/* ============================================================
   Motyw jasny + przełącznik motywu
   Domyślny jest ciemny (wartości wyżej); <html data-theme="light"> ustawia
   skrypt w <head> każdej strony na podstawie localStorage „helcom-theme”
   ============================================================ */

/* ---------- Przełącznik ---------- */
.header-inner { gap: 16px; }
.nav { margin-left: auto; }
.theme-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--copper-light);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--copper); color: var(--blue-glow); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }
@media (max-width: 720px) {
  .theme-toggle { margin-left: auto; }
}

body, .site-header, .services, .process, .trust, .service-card, .contact-form {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ---------- Paleta jasna ---------- */
[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f3ed;
  --bg-alt: #efe9e0;
  --panel: #ffffff;
  --panel-2: #fbf8f4;
  --border: #e0d6c8;

  /* miedź przyciemniona — na jasnym tle używana jako kolor tekstu */
  --copper: #b67a3c;
  --copper-light: #96591d;
  --copper-dark: #7a4818;

  --blue: #0a7aa0;
  --blue-glow: #0a86b0;

  --text: #1e1b17;
  --text-dim: #4f4b45;
  --text-faint: #7a746b;
}

/* tło „płytki drukowanej” — miedziane linie zamiast błękitnych */
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(150, 89, 29, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 89, 29, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(circle, rgba(10, 122, 160, 0.10) 0%, rgba(201, 144, 79, 0.14) 35%, transparent 70%);
}
[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #1e1b17 25%, #96591d 62%, #0a7aa0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .stat-num,
[data-theme="light"] .calc-price { text-shadow: none; }

/* nagłówek i menu mobilne */
[data-theme="light"] .site-header { background: rgba(247, 243, 237, 0.78); }
[data-theme="light"] .site-header.scrolled {
  background: rgba(247, 243, 237, 0.95);
  box-shadow: 0 6px 24px rgba(60, 40, 20, 0.06);
}
@media (max-width: 720px) {
  [data-theme="light"] .nav { background: rgba(247, 243, 237, 0.99); }
}
[data-theme="light"] .nav-drop-menu { box-shadow: 0 14px 34px rgba(60, 40, 20, 0.14); }

/* przyciski miedziane — zachowują oryginalny, jasny gradient */
[data-theme="light"] .btn-primary,
[data-theme="light"] .filter-pill.active {
  background: linear-gradient(135deg, #e8bd85, #c9904f 55%, #a8743d);
  color: #1a1108;
}
[data-theme="light"] .btn-primary:hover { box-shadow: 0 8px 22px rgba(168, 116, 61, 0.35); }
[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .btn-ghost:hover { box-shadow: 0 6px 18px rgba(10, 122, 160, 0.12); }
[data-theme="light"] .nav-cta:hover { background: #c9904f; box-shadow: 0 6px 18px rgba(168, 116, 61, 0.3); }
[data-theme="light"] .check input:checked ~ .check-box { background: linear-gradient(135deg, #e8bd85, #c9904f); }

/* karty — cień zamiast poświaty */
[data-theme="light"] .service-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .calc-step,
[data-theme="light"] .calc-guide-card {
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 8px 24px rgba(60, 40, 20, 0.05);
}
[data-theme="light"] .service-card:hover {
  box-shadow: 0 16px 36px rgba(60, 40, 20, 0.12), 0 0 0 1px rgba(182, 122, 60, 0.18);
}
[data-theme="light"] .portfolio-card:hover { box-shadow: 0 16px 36px rgba(60, 40, 20, 0.12); }
[data-theme="light"] .visual-card { box-shadow: 0 18px 44px rgba(60, 40, 20, 0.14); }
[data-theme="light"] .calc-summary { box-shadow: 0 18px 44px rgba(60, 40, 20, 0.12); }
[data-theme="light"] .service-icon { background: #ebe5dc; }
[data-theme="light"] .contact-item { background: rgba(255, 255, 255, 0.6); }

[data-theme="light"] .form-row input,
[data-theme="light"] .form-row select,
[data-theme="light"] .form-row textarea,
[data-theme="light"] .file-picker { background: #fbf9f6; }
[data-theme="light"] .form-row input:focus,
[data-theme="light"] .form-row select:focus,
[data-theme="light"] .form-row textarea:focus { box-shadow: 0 0 0 3px rgba(10, 122, 160, 0.14); }
[data-theme="light"] .file-list .is-error { color: #b3261e; }
[data-theme="light"] .calc input[type="month"] { color-scheme: light; }

[data-theme="light"] .portfolio-count { background: rgba(255, 255, 255, 0.88); }
@media (max-width: 900px) {
  [data-theme="light"] .calc-mobilebar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(60, 40, 20, 0.16);
  }
}
/* lightbox (galeria) celowo zostaje ciemny w obu motywach */
[data-theme="light"] .lightbox { --text: #eee9e1; --text-dim: #a6acb3; --text-faint: #6b7178; --border: #2a2f36; }
