/* ELBO Michał Opoka — style strony */
:root {
  --ink: #2b2e31;
  --ink-soft: #4d5257;
  --concrete: #d9dbdd;
  --concrete-2: #c4c7ca;
  --white: #ffffff;
  --page: #e8e9ea;
  --accent: #f5c400;
  --accent-dark: #d9a900;
  --on-accent: #1f2123;
  --line: #c9cccf;
  --radius: 6px;
  --max: 1140px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--page); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: #8a6c00; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--white);
  border-bottom: 3px solid var(--accent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo img { height: 58px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.logo img + .logo-text { display: none; }
.logo-text { font-weight: 800; font-size: 26px; letter-spacing: 3px; }
.logo-text span { color: var(--accent); }
.nav { display: flex; gap: 4px; list-style: none; }
.nav a {
  color: #e6e6e6; text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,.1); color: var(--white); }
.nav .call { background: var(--accent); color: var(--on-accent); margin-left: 8px; }
.nav .call:hover { background: var(--accent-dark); color: var(--on-accent); }
.burger { display: none; background: none; border: 0; color: var(--white); font-size: 28px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(120deg, rgba(38,41,44,.88) 0%, rgba(38,41,44,.6) 60%, rgba(38,41,44,.35) 100%),
              url("../img/hero.jpg") center/cover no-repeat, #3a3e42;
  padding: 110px 0 100px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 20px; max-width: 620px; margin: 20px 0 32px; color: #e3e3e3; }
.hero.small { padding: 70px 0 60px; }
.hero.small h1 { font-size: clamp(28px, 4vw, 42px); }
.hero.small p { margin-bottom: 0; }
.hero-posadzki { background-image: linear-gradient(120deg, rgba(38,41,44,.88), rgba(38,41,44,.45)), url("../img/posadzki.jpg"); }
.hero-izolacje { background-image: linear-gradient(120deg, rgba(38,41,44,.88), rgba(38,41,44,.45)), url("../img/izolacje.jpg"); }
.hero-beton { background-image: linear-gradient(120deg, rgba(38,41,44,.88), rgba(38,41,44,.45)), url("../img/beton.jpg"); }
.hero-firma, .hero-kontakt { background-image: linear-gradient(120deg, rgba(38,41,44,.9), rgba(38,41,44,.6)), url("../img/hero.jpg"); }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 16px; transition: background .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: var(--white); margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Pasek liczb ---------- */
.stats { background: var(--accent); color: var(--on-accent); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 26px 20px; gap: 10px; }
.stats strong { display: block; font-size: 30px; line-height: 1.1; }
.stats span { font-size: 14px; opacity: .95; }

/* ---------- Sekcje ---------- */
section { padding: 80px 0; }
section.alt { background: var(--concrete); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker { color: #8a6c00; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin-top: 6px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* Karty usług */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.card-img { height: 190px; background: var(--concrete-2) center/cover no-repeat; position: relative; }
.card-img::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px;
  background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 3px; letter-spacing: 1px; text-transform: uppercase;
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; flex: 1; }
.card .more { margin-top: 16px; font-weight: 700; color: #8a6c00; }

/* Dwie kolumny */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--concrete-2) center/cover no-repeat;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.prose h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin-bottom: 16px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }

/* Lista z ptaszkami */
.checks { list-style: none; margin: 10px 0 18px; }
.checks li { position: relative; padding: 7px 0 7px 34px; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%231f2123' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Etapy */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 26px 22px; border-top: 4px solid var(--accent); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 34px; font-weight: 800; color: var(--concrete-2); display: block; line-height: 1; margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* Zalety */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.feature h3 i { width: 10px; height: 10px; background: var(--accent); display: inline-block; transform: rotate(45deg); }
.feature p { color: var(--ink-soft); font-size: 16px; }

/* Galeria realizacji */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery div { aspect-ratio: 1; border-radius: var(--radius); background: var(--concrete-2) center/cover no-repeat; }

/* Klienci */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.client { padding: 26px; background: var(--white); border-left: 4px solid var(--ink); border-radius: var(--radius); }
.client h3 { font-size: 19px; margin-bottom: 6px; }
.client p { color: var(--ink-soft); font-size: 16px; }

/* Umowa / gwarancja / wygrzewanie */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-item { color: var(--ink); background: var(--white); border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.trust-item .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.trust-item h3 { font-size: 20px; margin-bottom: 8px; }
.trust-item p { color: var(--ink-soft); font-size: 16px; }
.note { background: var(--white); border-left: 5px solid var(--accent); padding: 22px 26px; border-radius: var(--radius); margin-top: 24px; }
.note h3 { font-size: 19px; margin-bottom: 6px; }
.note p { color: var(--ink-soft); margin: 0; }
.dark-sec { background: var(--ink); color: var(--white); }
.dark-sec .section-head p, .dark-sec .prose p { color: #c8cbce; }
.dark-sec .section-head .kicker { color: var(--accent); }
.dark-sec .checks li { border-color: #464a4e; }
.dark-sec .note p { color: var(--ink-soft); }
.dark-sec .checks li::before { background-color: var(--accent); }

/* CTA */
.cta { background: var(--ink); color: var(--white); padding: 64px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); }
.cta p { color: #c9c9c9; margin-top: 6px; }
.cta .phone { font-size: 30px; font-weight: 800; color: var(--white); text-decoration: none; display: block; }
.cta .phone:hover { color: var(--accent); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-box { background: var(--concrete); padding: 34px; border-radius: var(--radius); }
.contact-box h2 { font-size: 24px; margin-bottom: 18px; }
.contact-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row b { min-width: 90px; color: var(--ink-soft); font-weight: 600; }
.contact-row a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-row a:hover { color: #8a6c00; }
.map { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }
.area { margin-top: 26px; }

/* Stopka */
.foot { background: #232628; color: #a9adb0; padding: 50px 0 24px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.foot h4 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.foot ul { list-style: none; }
.foot li { padding: 3px 0; }
.foot a { color: #d0d3d5; text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .bottom { border-top: 1px solid #2a2f33; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* ---------- Responsywność ---------- */
@media (max-width: 960px) {
  .trust { grid-template-columns: 1fr; }
  .cards, .features, .clients { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 71px; left: 0; right: 0;
    flex-direction: column; background: var(--ink); padding: 10px 20px 20px; gap: 2px;
    border-bottom: 3px solid var(--accent);
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px; }
  .nav .call { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 70px 0 64px; }
  .hero p { font-size: 18px; }
  .btn-ghost { margin: 12px 0 0; }
  .cards, .features, .clients, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stats strong { font-size: 21px; }
  .foot .cols { grid-template-columns: 1fr; }
}

/* ---------- Licznik zleceń i pasek ostatnich realizacji (dane z aplikacji ELBO) ---------- */
.live { background: var(--ink); color: var(--white); padding: 34px 0 0; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; }
.live .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.live-head p { color: #c8cbce; font-size: 20px; }
.live-head strong { color: var(--accent); font-size: 34px; margin-left: 6px; white-space: nowrap; }
.ticker { background: #1f2224; border-top: 1px solid #3a3e42; border-bottom: 3px solid var(--accent); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #1f2224, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #1f2224, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-time, 40s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 16px 30px; white-space: nowrap; font-size: 18px; border-right: 1px solid #3a3e42; }
.ticker-item .d { color: #9ea3a7; font-variant-numeric: tabular-nums; }
.ticker-item b { color: var(--white); }
.ticker-item .m { color: var(--accent); font-weight: 800; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}
@media (max-width: 600px) {
  .live-head p { font-size: 17px; }
  .live-head strong { font-size: 28px; display: block; margin: 4px 0 0; }
  .ticker-item { font-size: 16px; padding: 14px 22px; }
}

/* ---------- Wycena – formularz krokowy ---------- */
.wizard { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.08); overflow: hidden; }
.wizard-steps { list-style: none; display: flex; background: var(--ink); }
.wizard-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 16px 22px; color: #9ea3a7; font-weight: 600; font-size: 15px; }
.wizard-steps li span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #5a5f63; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wizard-steps li.active { color: var(--white); }
.wizard-steps li.active span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wizard-steps li.done span { background: #5a5f63; border-color: #5a5f63; color: var(--white); }
.wizard-step { padding: 34px 36px 30px; }
.wizard-step h2 { font-size: 26px; margin-bottom: 6px; }
.wizard-lead { color: var(--ink-soft); margin-bottom: 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.field label em { color: #c0392b; font-style: normal; }
.field .opt { color: var(--ink-soft); font-weight: 400; font-size: 14px; }
.field input { width: 100%; padding: 13px 14px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; transition: border-color .15s, background .15s; }
.field input:focus { outline: none; border-color: var(--accent); background: var(--white); }
.field input.invalid { border-color: #c0392b; background: #fdf2f1; }
.field .err { display: block; color: #c0392b; font-size: 14px; min-height: 18px; margin-top: 4px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-secondary { background: var(--concrete); color: var(--ink); }
.btn-secondary:hover { background: var(--concrete-2); }
@media (max-width: 600px) {
  .wizard-step { padding: 26px 20px 22px; }
  .wizard-steps li { padding: 14px; font-size: 14px; }
  .wizard-actions .btn { flex: 1; text-align: center; }
}
.wizard-sub { font-size: 17px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.wizard-step h2 + .wizard-lead + .wizard-sub { margin-top: 0; }
.field-row { display: flex; gap: 14px; }
.field-row .grow { flex: 1; }
.field.small { max-width: 220px; }
.field-row .field.small { width: 150px; }
.field .hint { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 5px; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 76px; list-style: none; background: var(--white); border: 2px solid var(--accent); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 24px rgba(0,0,0,.12); max-height: 280px; overflow-y: auto; }
.ac-list li { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #eee; line-height: 1.3; }
.ac-list li:last-child { border-bottom: 0; }
.ac-list li small { display: block; color: var(--ink-soft); font-size: 13px; }
.ac-list li:hover, .ac-list li.hl { background: #fff7d1; }
.ac-list li.ac-info { cursor: default; color: var(--ink-soft); font-size: 14px; background: #fafafa; }
.unit-input { display: flex; align-items: stretch; }
.unit-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.unit-input span { display: flex; align-items: center; padding: 0 14px; background: var(--concrete); border: 2px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; color: var(--ink-soft); }
.cls-options { display: grid; gap: 10px; }
.cls-opt { display: block; cursor: pointer; }
.cls-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cls-opt span { display: block; padding: 14px 16px 14px 48px; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; position: relative; transition: border-color .15s, background .15s; }
.cls-opt span::before { content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9ea3a7; background: var(--white); }
.cls-opt b { display: block; font-size: 17px; }
.cls-opt small { color: var(--ink-soft); font-size: 14px; }
.cls-opt input:checked + span { border-color: var(--accent); background: #fffbe8; }
.cls-opt input:checked + span::before { border-color: var(--ink); background: var(--accent); box-shadow: inset 0 0 0 3px var(--white); }
.cls-opt input:focus-visible + span { outline: 3px solid rgba(245,196,0,.5); }
.estimate { margin-top: 26px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 20px 22px; border-left: 6px solid var(--accent); }
.estimate-label { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin-bottom: 6px; }
.estimate-body { font-size: 18px; color: #d7dadc; }
.estimate-body .big { display: block; font-size: 34px; font-weight: 800; color: var(--white); line-height: 1.15; }
.estimate-body .big em { font-style: normal; color: var(--accent); }
.estimate-body .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.estimate-note { display: block; color: #9ea3a7; font-size: 13px; margin-top: 10px; }
.form-err { margin-top: 14px; font-size: 15px !important; }
.wizard-done { text-align: center; }
.done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 38px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 6px auto 18px; }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
  .field-row { flex-direction: column; gap: 0; }
  .field.small, .field-row .field.small { max-width: none; width: auto; }
  .wizard-steps li { font-size: 0; justify-content: center; }
  .wizard-steps li span { font-size: 14px; }
  .estimate-body .big { font-size: 28px; }
}
.field.small .hint { width: 440px; max-width: 80vw; }
.estimate-btn { margin-top: 14px; }
.estimate-body .stale { color: var(--accent); }
.turnstile-box { margin-top: 12px; }
.turnstile-box:empty { display: none; }

/* ---------- Logo ---------- */
.hero-split { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; min-width: 0; }
.hero-logo { width: 300px; height: auto; flex-shrink: 0; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.foot-logo { width: 70px; height: auto; margin-bottom: 10px; display: block; }
@media (max-width: 1000px) { .nav { top: 77px; } }
@media (max-width: 900px) { .hero-logo { width: 200px; } }
@media (max-width: 700px) { .hero-logo { display: none; } .logo img { height: 50px; } }

/* ---------- Wycena: kondygnacje i styropian ---------- */
.link-btn { background: none; border: 0; padding: 4px 0; color: #8a6c00; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.floors { margin-bottom: 8px; }
.floors-head, .floor-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 40px; gap: 8px; align-items: center; }
.floors-head { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.floor-row { margin-bottom: 8px; }
.floor-row input { width: 100%; padding: 11px 12px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; }
.floor-row input:focus { outline: none; border-color: var(--accent); background: #fff; }
.floor-row input.invalid { border-color: #c0392b; background: #fdf2f1; }
.floor-del { border: 0; background: var(--concrete); border-radius: var(--radius); height: 44px; cursor: pointer; font-size: 16px; }
.floor-sum { font-size: 14px; color: var(--ink-soft); margin: 2px 0 6px; }
.select-input { width: 100%; padding: 13px 14px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; }
.styro-cm { margin-top: 12px; }
#wFloorsToggle { margin: -6px 0 18px; display: block; }
@media (max-width: 600px) {
  .floors-head { display: none; }
  .floor-row { grid-template-columns: 1fr 1fr 40px; }
  .floor-row .fl-name { grid-column: span 3; }
}
#wFloorsToggle[hidden], #wFloors[hidden], #wSingle[hidden], #wThickField[hidden] { display: none !important; }
/* kondygnacje jako karty (wygodne na telefonie) */
.floors-intro { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.floor-card { border: 2px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; background: #fff; }
.fc-top { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin-bottom: 10px; }
.fc-top input { width: 100%; padding: 11px 12px; font: inherit; font-weight: 700; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fc-f { display: block; margin: 0; }
.fc-f > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.fc-f[hidden] { display: none !important; }
.floor-card .unit-input input { width: 100%; }
.floor-card input.invalid, .floor-card select.invalid { border-color: #c0392b; background: #fdf2f1; }
.floor-card .select-input { padding: 11px 10px; font-size: 15px; }
#wClsField[hidden], #wStyroField[hidden], #wStyroCmField[hidden], #wStyroHint[hidden] { display: none !important; }
@media (max-width: 420px) { .fc-grid { grid-template-columns: 1fr 1fr; } .fc-grid .fc-f:nth-child(3), .fc-grid .fc-f:nth-child(4) { grid-column: span 2; } }
.floor-card .unit-input input { min-width: 0; padding: 11px 12px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); background: #fafafa; }
.floor-card input:focus, .floor-card select:focus { outline: none; border-color: var(--accent); background: #fff; }
.fc-grid { grid-template-columns: 1fr 1fr; }
#wStyroCmField .unit-input input { width: 100%; min-width: 0; padding: 13px 14px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); background: #fafafa; }
/* styropian / siatka / folia, szczegóły wyceny */
.checks, .fc-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.fc-checks { grid-column: 1 / -1; margin-top: 2px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.fc-hint { grid-column: 1 / -1; display: block; background: #fff7d6; border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 4px; font-size: 14px; color: var(--ink); }
.fc-hint[hidden], #wStyroTypeField[hidden] { display: none !important; }
.estimate .total-row { border-top: 1px solid rgba(255,255,255,.2); padding-top: 8px; margin-top: 4px; font-size: 1.05em; }
.estimate .details-btn { color: var(--accent); margin-top: 6px; }
.est-details { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.est-details ul { padding-left: 18px; margin: 2px 0 8px; }
.done-summary { text-align: left; max-width: 560px; margin: 18px auto; }
.done-summary .wizard-sub { color: var(--accent); margin-top: 0; }
.est-note { font-size: 13px; opacity: .8; margin: 10px 0 0; }
.done-summary { color: #d7dadc; }
.done-summary .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0; }
.done-summary .row strong { color: var(--white); }
/* rozpisanie wyceny */
.bd { margin-top: 10px; font-size: 15px; }
.bd-floor { border-top: 1px solid rgba(255,255,255,.15); padding: 8px 0 6px; }
.bd-head { color: var(--accent); font-weight: 800; margin-bottom: 4px; }
.bd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 3px 0; }
.bd-row span { flex: 1; }
.bd-row b { white-space: nowrap; color: var(--white); }
.bd-sum { border-top: 2px solid var(--accent); margin-top: 6px; padding-top: 8px; }
.bd-total { font-size: 1.15em; margin-top: 6px; }
.bd-note { font-size: 13px; opacity: .85; margin: 8px 0 0; }
.estimate-body .big em { font-style: normal; color: var(--accent); }
.mini-summary { margin: 0 0 22px; }
.mini-summary .bd-row b { color: var(--white); }
.chk-sm { font-size: 14px; font-weight: 600; margin-top: 6px; }
.fl-scm-wrap[hidden] { display: none !important; }
/* przełączniki (kontakt, rozliczenie, termin) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { flex: 1 1 auto; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; font-weight: 700; white-space: nowrap; }
.seg input:checked + span { border-color: var(--accent); background: #fff7d6; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }
#wStartDateField[hidden] { display: none !important; }
#wStartDate, #wNotes { width: 100%; padding: 13px 14px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; }
#wStartDate.invalid { border-color: #c0392b; }
.note-temp { background: #eef4fa; border-left: 4px solid #5b8fc7; padding: 10px 12px; border-radius: 4px; font-size: 14px; margin: 0 0 18px; }
/* polityka prywatności */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.privacy-note { font-size: 13px; color: var(--ink-soft); margin: 4px 0 8px; }
/* podświetlenie zaleceń (np. garaż: 9 cm, C16) */
.floor-card .auto-hl, .floor-card select.auto-hl { background: #fff3b0 !important; border-color: var(--accent) !important; }
/* dokumenty na e-mail, dane do faktury */
.doc-checks { display: flex; flex-direction: column; gap: 8px; }
.inv-box { border: 2px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 22px; background: #fff; }
.inv-box[hidden], #wInvNipField[hidden], #wInvAddr[hidden], #wInvSameWrap[hidden] { display: none !important; }
.inv-box .wizard-sub { margin-top: 0; }
.inv-box input[type=text], .inv-box input[type=email] { width: 100%; padding: 12px 14px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; }
.inv-box input.invalid { border-color: #c0392b; background: #fdf2f1; }
.row-2 { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
#wInvSameWrap { display: inline-flex; margin: 0 0 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
/* opinie */
.reviews-cta { padding: 50px 0; }
.reviews-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--dark, #2b2e31); color: #fff; border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 28px 30px; }
.reviews-box h2 { color: #fff; margin: 4px 0 8px; }
.reviews-box p { color: #cfd3d6; margin: 0; max-width: 560px; }
.reviews-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-reviews a { color: var(--accent); }
/* przyśpieszacz */
.accel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.info-btn { border: 2px solid var(--accent); background: #fff7d6; color: var(--ink); font-weight: 700; border-radius: 20px; padding: 4px 12px; cursor: pointer; font-size: 14px; }
.accel-info { flex-basis: 100%; margin: 4px 0 0; background: #fff7d6; border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.accel-info[hidden] { display: none; }
#wAccelField[hidden] { display: none !important; }
.fc-checks .chk { font-size: 15px; }
.done-docs { text-align: left; max-width: 560px; margin: 0 auto 18px; background: #fff; border: 2px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; }
.done-docs[hidden] { display: none; }
.done-docs ul { margin: 4px 0 10px; padding-left: 18px; }
.done-docs a { color: #8a6c00; font-weight: 600; word-break: break-all; }
/* dokumenty */
.docs-box { max-width: 680px; }
.docs-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.docs-form input { flex: 1 1 220px; padding: 13px 14px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fafafa; }
.docs-hint { color: var(--ink-soft); font-size: 14px; }
#docsList h3 { margin: 18px 0 6px; font-size: 18px; }
#docsList a { color: #8a6c00; font-weight: 600; word-break: break-all; }
.contract-box { margin: 6px 0 4px 28px; padding: 12px 14px; border-left: 3px solid var(--accent); background: #fffbea; border-radius: 4px; }
.contract-box[hidden], #wCtrAddrField[hidden], #wPayCashField[hidden] { display: none !important; }
.contract-box input[type=text] { width: 100%; padding: 11px 12px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.contract-wrap { margin: 18px 0 14px; padding: 14px 16px; border: 2px solid var(--accent); border-radius: var(--radius); background: #fffdf3; }
.contract-wrap .contract-box { margin: 10px 0 0; border-left: 0; padding: 0; background: transparent; }
#wCtrRepField[hidden], #wCtrNipField[hidden] { display: none !important; }
.pay-warn { margin: 8px 0 0; background: #fff1f0; border-left: 3px solid #c0392b; padding: 8px 10px; border-radius: 4px; font-size: 14px; }
.pay-warn[hidden] { display: none; }
.contract-wrap > label:first-child { display: block; font-weight: 700; margin-bottom: 8px; }
.contract-wrap .contract-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0e2a6; }
/* galeria zdjęć */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gal-item { padding: 0; border: 0; background: #ddd; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gal-item:hover img { transform: scale(1.04); }
section[hidden] { display: none !important; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 16px; }
.lb-x { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
[data-photo], [data-hero] { transition: background-image .9s ease-in-out; }

/* =====================================================================
   MOTYW „ŻYWY” – czerń + żółć, gradienty i mienienie (nadpisuje wyżej)
   ===================================================================== */
:root {
  --gold-1: #fff3a8;
  --gold-2: #ffd93b;
  --gold-3: #f5c400;
  --gold-4: #ff9f1c;
  --gold-grad: linear-gradient(135deg, #ffe45c 0%, #f5c400 45%, #ffa51f 100%);
  --gold-shine: linear-gradient(110deg, #f5c400 0%, #ffe680 20%, #f5c400 40%, #ffb020 70%, #f5c400 100%);
  --black-grad: linear-gradient(160deg, #15171a 0%, #23272b 55%, #1a1c1f 100%);
}
@keyframes elboShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes elboShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes elboGlow { 0%,100% { opacity: .55; transform: translate(0,0) scale(1); } 50% { opacity: .9; transform: translate(4%, -3%) scale(1.12); } }
@keyframes elboSweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

body { background: radial-gradient(1200px 600px at 100% 0%, rgba(245,196,0,.07), transparent 60%), #eceded; }

/* nagłówek */
.top {
  background: linear-gradient(90deg, #121417 0%, #24282c 50%, #121417 100%);
  border-bottom: 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, #ff9f1c, #ffe45c, #f5c400, #ff9f1c, #ffe45c);
  background-size: 300% 100%; animation: elboShift 6s ease infinite;
  box-shadow: 0 0 14px rgba(245,196,0,.6);
}
.nav a { transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: linear-gradient(135deg, rgba(245,196,0,.22), rgba(255,159,28,.12)); color: #fff; }
.nav .call, .btn-primary {
  background: var(--gold-shine); background-size: 250% 100%;
  color: #17191b; position: relative; overflow: hidden;
  box-shadow: 0 6px 20px rgba(245,196,0,.35), inset 0 1px 0 rgba(255,255,255,.5);
  animation: elboShine 7s linear infinite;
}
.nav .call:hover, .btn-primary:hover { box-shadow: 0 8px 28px rgba(255,170,30,.55), inset 0 1px 0 rgba(255,255,255,.6); transform: translateY(-1px); }
.btn-primary::after, .nav .call::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%) skewX(-20deg);
}
.btn-primary:hover::after, .nav .call:hover::after { animation: elboSweep .8s ease; }
.btn { transition: transform .2s, box-shadow .2s, background .2s; }
.btn-ghost { border-color: rgba(245,196,0,.7); }
.btn-ghost:hover { background: rgba(245,196,0,.12); }

/* hero */
.hero { overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(30px);
}
.hero::before { width: 620px; height: 620px; right: -140px; top: -220px; background: radial-gradient(circle, rgba(245,196,0,.38), transparent 65%); animation: elboGlow 9s ease-in-out infinite; }
.hero::after { width: 520px; height: 520px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(255,140,20,.26), transparent 65%); animation: elboGlow 12s ease-in-out infinite reverse; }
.hero > .wrap { position: relative; z-index: 1; }
.hero:not(.small) { background: var(--black-grad); }
.hero h1 em, .grad-text {
  background: var(--gold-shine); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: elboShine 8s linear infinite;
}
.hero-logo { filter: drop-shadow(0 0 40px rgba(245,196,0,.35)) drop-shadow(0 18px 30px rgba(0,0,0,.5)); }

/* pasek liczb */
.stats { background: linear-gradient(110deg, #ffd21f, #f5c400 30%, #ffad1f 60%, #ffe45c 85%, #f5c400); background-size: 300% 100%; animation: elboShift 14s ease infinite; position: relative; }
.stats strong { text-shadow: 0 1px 0 rgba(255,255,255,.4); }

/* nagłówki sekcji */
.section-head .kicker, .live .kicker {
  display: inline-block;
  background: linear-gradient(90deg, #b07a00, #e0a300, #b07a00); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: elboShift 6s ease infinite;
}
.section-head .kicker::after { content: ""; display: block; height: 3px; width: 46px; margin-top: 6px; border-radius: 3px; background: var(--gold-grad); }
.dark-sec .section-head .kicker, .live .kicker { background-image: linear-gradient(90deg, #ffe45c, #ffa51f, #ffe45c); }
section.alt { background: linear-gradient(180deg, #dfe1e3 0%, #e9eaeb 100%); }

/* ciemne sekcje */
.dark-sec, .cta, .live {
  background: radial-gradient(700px 380px at 90% 0%, rgba(245,196,0,.16), transparent 70%),
              radial-gradient(600px 360px at 0% 100%, rgba(255,140,20,.10), transparent 70%),
              var(--black-grad);
}
.cta { position: relative; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #f5c400, #ffa51f, transparent); }
.cta .phone { background: var(--gold-shine); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: elboShine 8s linear infinite; }

/* karty */
.card, .trust-item, .step, .client {
  position: relative; border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #e3e5e7, #d6d9dc) border-box;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.card:hover, .trust-item:hover, .step:hover, .client:hover {
  transform: translateY(-6px);
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ffe45c, #f5c400, #ff9f1c) border-box;
  box-shadow: 0 18px 40px rgba(0,0,0,.14), 0 0 0 4px rgba(245,196,0,.12);
}
.card-img::after { background: var(--gold-grad); color: #17191b; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.card-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.trust-item, .step { border-top: 0; }
.trust-item::before, .step::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--gold-grad);
}
.trust-item .ico { background: var(--black-grad); box-shadow: 0 0 0 3px rgba(245,196,0,.35), 0 6px 16px rgba(0,0,0,.25); }
.step::before { background: linear-gradient(135deg, #ffd93b, #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 i { background: var(--gold-grad); box-shadow: 0 0 10px rgba(245,196,0,.7); }
.checks li::before { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%231f2123' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #ffe45c, #f5c400 50%, #ffa51f); background-size: 14px, 100%; box-shadow: 0 2px 8px rgba(245,196,0,.45); }
.photo, .gal-item { box-shadow: 0 20px 44px rgba(0,0,0,.18); }
.photo { position: relative; }
.photo::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(245,196,0,.0); transition: box-shadow .3s; }
.photo:hover::after { box-shadow: inset 0 0 0 3px rgba(245,196,0,.85); }
.note { border-left: 0; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(180deg, #ffe45c, #ff9f1c) border-box; border: 0; border-left: 5px solid transparent; }

/* pasek realizacji */
.ticker { border-bottom: 0; }
.ticker::after { }
.live .ticker { box-shadow: inset 0 -3px 0 #f5c400; }
.ticker-item .m { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-head strong { background: var(--gold-shine); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: elboShine 8s linear infinite; }

/* stopka */
.foot { background: radial-gradient(600px 300px at 15% 0%, rgba(245,196,0,.10), transparent 70%), linear-gradient(180deg, #1b1d20, #111315); position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #ff9f1c, #ffe45c, #f5c400, #ff9f1c); background-size: 300% 100%; animation: elboShift 8s ease infinite; }

/* wycena */
.wizard-steps { background: var(--black-grad); }
.wizard-steps li.active span { background: var(--gold-grad); box-shadow: 0 0 12px rgba(245,196,0,.6); }
.estimate { position: relative; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nav .call { display: inline-block; }
.reviews-box {
  border-left: 0; position: relative; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 0%, rgba(245,196,0,.20), transparent 70%), var(--black-grad);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}
.reviews-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #ffe45c, #f5c400, #ff9f1c); }

/* ---------- wjeżdżanie przy przewijaniu ---------- */
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv-on .rv.rv-in { opacity: 1; transform: none; }
.rv-on .card.rv.rv-in:hover, .rv-on .trust-item.rv.rv-in:hover, .rv-on .step.rv.rv-in:hover, .rv-on .client.rv.rv-in:hover { transform: translateY(-6px); transition-delay: 0s !important; }

/* ---------- przekrój podłogi ---------- */
.xs-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; }
.xs-draw { background: var(--black-grad); border-radius: 10px; padding: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.xs-svg { width: 100%; height: auto; display: block; }
.xs-ly { cursor: pointer; transition: opacity .25s, filter .25s; }
.xs-svg.picked .xs-ly { opacity: .45; }
.xs-svg.picked .xs-ly.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(245,196,0,.9)) drop-shadow(0 0 2px #ffe45c); }
.xs-tag { cursor: pointer; }
.xs-tag line { stroke: rgba(255,255,255,.6); stroke-width: 1.5; }
.xs-tag text { fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: 3px; }
.xs-tag.on text { fill: #ffd93b; }
.xs-tag.on line { stroke: #ffd93b; }
.xs-info { background: #fff; border-radius: 10px; padding: 24px; border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ffe45c, #f5c400, #ff9f1c) border-box; box-shadow: 0 12px 30px rgba(0,0,0,.1); min-height: 170px; }
.xs-info h3 { font-size: 20px; margin-bottom: 8px; }
.xs-info p { color: var(--ink-soft); }
.xs-info.flash { animation: xsFlash .35s ease; }
@keyframes xsFlash { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.xs-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.xs-btn { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.xs-btn:hover { border-color: var(--accent); }
.xs-btn.on { background: var(--gold-grad); border-color: transparent; color: #17191b; box-shadow: 0 4px 14px rgba(245,196,0,.4); }
@media (max-width: 860px) { .xs-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 8px; border: 1px solid #dfe1e3; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: rgba(245,196,0,.8); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: #17191b; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; transition: transform .25s; }
.faq details[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- pasek na telefonie ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(18,20,23,.94); backdrop-filter: blur(8px);
    box-shadow: 0 -6px 20px rgba(0,0,0,.3); border-top: 2px solid #f5c400; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 10px; border-radius: 8px; font-weight: 800; text-decoration: none; font-size: 16px; }
  .mbar-call { background: #2b2f33; color: #fff; border: 1px solid rgba(245,196,0,.6); }
  .mbar-quote { background: var(--gold-shine); background-size: 250% 100%; animation: elboShine 7s linear infinite; color: #17191b; }
  body { padding-bottom: 74px; }
}
.stats strong span[data-count] { font-size: inherit; opacity: 1; display: inline; font-variant-numeric: tabular-nums; }

/* ---------- czat AI ---------- */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-size: 15px; }
.chat-fab { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 12px 18px 12px 14px; border-radius: 30px;
  background: var(--gold-shine); background-size: 250% 100%; animation: elboShine 7s linear infinite; color: #17191b; font: inherit; font-weight: 800;
  box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.15); transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab-ico { font-size: 20px; line-height: 1; }
.chat.has-hist .chat-fab::after { content: ""; position: absolute; top: 4px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #e3342f; box-shadow: 0 0 0 2px #fff; }
.chat.open .chat-fab { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: 370px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 100px);
  display: flex; flex-direction: column; background: #f4f5f6; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); border: 1px solid rgba(245,196,0,.6); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--black-grad); color: #fff; border-bottom: 3px solid #f5c400; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { color: #c8cbce; font-size: 12px; }
.chat-x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; line-height: 1.45; word-wrap: break-word; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e1e3e5; border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: linear-gradient(135deg, #ffe45c, #f5c400); color: #17191b; border-bottom-right-radius: 4px; }
.chat-msg a { color: #8a6400; font-weight: 700; }
.chat-msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9da0; animation: chatDot 1s infinite ease-in-out; }
.chat-msg.typing i:nth-child(2) { animation-delay: .15s; } .chat-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.chat-quick:empty { display: none; }
.chat-quick button { border: 1px solid #f5c400; background: #fff; border-radius: 16px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.chat-quick button:hover { background: #fff6cc; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e1e3e5; background: #fff; }
.chat-form textarea { flex: 1; resize: none; border: 1px solid #d6d9dc; border-radius: 10px; padding: 9px 11px; font: inherit; max-height: 110px; }
.chat-form textarea:focus { outline: 2px solid #f5c400; border-color: transparent; }
.chat-form button { width: 44px; border: 0; border-radius: 10px; background: var(--gold-grad); font-size: 18px; cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: wait; }
.chat-foot { font-size: 11px; color: #777; text-align: center; padding: 0 10px 8px; background: #fff; }
.chat-foot a { color: #777; }
@media (max-width: 760px) {
  .chat { right: 12px; bottom: 86px; }
  .chat-fab-txt { display: none; }
  .chat-fab { padding: 13px; border-radius: 50%; }
  .chat.open { left: 0; right: 0; bottom: 0; top: 0; }
  .chat-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
}
.chat-quick button.main { background: var(--gold-grad); border-color: transparent; font-weight: 700; }
.chat-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 92%; }
.chat-photos button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: #ddd; }
.chat-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-viewer { position: absolute; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 5; }
.chat-viewer img { max-width: 94%; max-height: 84%; border-radius: 6px; }
.chat-viewer button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 6px 12px; line-height: 1; }
.cv-x { top: 6px; right: 6px; } .cv-p { left: 2px; top: 50%; transform: translateY(-50%); } .cv-n { right: 2px; top: 50%; transform: translateY(-50%); }
#wFillWrap[hidden], .fl-fill-wrap[hidden] { display: none !important; }
.chat-choices { align-self: flex-start; max-width: 92%; background: #fff; border: 1px solid #f5c400; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.chat-choices.done { opacity: .6; }
.cc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; cursor: pointer; }
.cc-row input[type=checkbox] { width: 18px; height: 18px; accent-color: #f5c400; }
.cc-qty { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #555; }
.cc-qty input { width: 82px; padding: 4px 6px; border: 1px solid #d6d9dc; border-radius: 6px; font: inherit; font-size: 13px; }
.cc-rec { font-style: normal; font-size: 11px; font-weight: 700; color: #8a6400; background: #fff6cc; border-radius: 8px; padding: 1px 6px; }
.cc-ok, .cc-one { border: 0; border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; background: var(--gold-grad); color: #17191b; }
.cc-one { background: #fff; border: 1px solid #f5c400; text-align: left; }
.cc-one.rec { background: #fff6cc; }
.cc-ok:disabled, .cc-one:disabled { cursor: default; }
.chat-form-card { align-self: flex-start; width: 92%; background: #fff; border: 1px solid #f5c400; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-form-card.done { opacity: .6; }
.cf-title { font-weight: 800; font-size: 14px; }
.cf-row { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.cf-lbl { font-weight: 600; color: #333; }
.cf-in { display: flex; align-items: center; gap: 6px; }
.cf-in input, .cf-in select { flex: 1; min-width: 0; padding: 8px 9px; border: 1px solid #d6d9dc; border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.cf-in input:focus, .cf-in select:focus { outline: 2px solid #f5c400; border-color: transparent; }
.cf-in em { font-style: normal; color: #555; font-size: 13px; min-width: 22px; }
.cf-err { border-color: #e3342f !important; background: #fff5f5 !important; }
.big.range em { white-space: nowrap; }
.cf-city { position: relative; flex: 1; display: flex; }
.cf-city input { flex: 1; }
.cf-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 2px 0 0; padding: 4px 0; background: #fff; border: 1px solid #d6d9dc; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.15); max-height: 200px; overflow-y: auto; }
.cf-sug li { padding: 7px 10px; cursor: pointer; font-size: 14px; }
.cf-sug li:hover { background: #fff6cc; }
.cf-sug small { color: #777; }

.chat-form-card .cf-multi{display:flex;flex-direction:column;gap:4px;font-size:.92em}
.chat-form-card .cf-multi label{display:flex;align-items:center;gap:6px;cursor:pointer}
.chat-form-card .cf-multi label{justify-content:flex-start;text-align:left;font-weight:400}
.chat-form-card .cf-multi input[type=checkbox]{width:18px!important;height:18px;flex:0 0 18px;margin:0;padding:0;border:0;box-shadow:none;accent-color:#f5c400}

.chat-form-card textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit;padding:8px 10px;border:1px solid #ddd;border-radius:10px;min-height:64px}

.chat-form-card .cf-hint{display:block;font-size:.82em;color:#777;margin:-2px 0 6px;font-weight:400}
.chat-form-card .cf-floors{display:flex;flex-direction:column;gap:6px;width:100%}
.chat-form-card .cf-cnt{display:flex;align-items:center;gap:8px}
.chat-form-card .cf-cnt button,.chat-form-card .cf-del{width:32px!important;height:32px;flex:0 0 32px;border-radius:8px;border:1px solid #e0c200;background:#fff8d6;font-weight:700;cursor:pointer;padding:0}
.chat-form-card .cf-cnt b{min-width:18px;text-align:center}
.chat-form-card .cf-cnt small{color:#666}
.chat-form-card .cf-frow{display:flex;align-items:center;gap:6px}
.chat-form-card .cf-frow select{flex:1 1 auto;min-width:0}
.chat-form-card .cf-frow input{width:80px!important;flex:0 0 80px}
.chat-form-card .cf-del{background:#fff;border-color:#ddd;color:#a33}

/* rodzaj budynku, licznik kondygnacji, kopiowanie karty, brutto */
.bt-options { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fl-count .hint { margin: 2px 0 10px; }
.fl-stepper { display: flex; align-items: center; gap: 12px; }
.fl-stepper button { width: 46px; height: 46px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; }
.fl-stepper button:hover:not(:disabled) { border-color: #f5c400; background: #fff8d6; }
.fl-stepper button:disabled { opacity: .4; cursor: default; }
.fl-stepper b { font-size: 1.3em; min-width: 24px; text-align: center; }
.fc-top { grid-template-columns: 1fr 44px 44px; }
.floor-copy { border: 0; background: #fff3b8; border-radius: var(--radius); height: 44px; cursor: pointer; font-size: 18px; }
.floor-copy:hover { background: #ffe679; }
.gross-line { display: block; margin-top: 4px; font-weight: 600; color: #444; }
.bd-gross { color: #444; }
.gross-line { color: #f2f2f2; font-size: 1.02em; }
.bd-gross, .bd-gross span, .bd-gross b { color: #e8e8e8; }

.chat-form-card .cf-x{color:#777;font-weight:700}
.chat-form-card .cf-frow .cf-qty{width:42px!important;flex:0 0 42px;text-align:center}
.chat-form-card .cf-frow input:not(.cf-qty){width:70px!important;flex:0 0 70px}
.chat-form-card .cf-frow.rep{gap:4px}
.chat-form-card .cf-frow.rep input:not(.cf-qty){width:54px!important;flex:0 0 54px}
.chat-form-card .cf-frow.rep .cf-qty{width:34px!important;flex:0 0 34px}
.chat-form-card .cf-frow.rep select{min-width:96px;padding-left:6px;padding-right:2px}
.chat-form-card .cf-frow.rep .cf-del{width:28px!important;flex:0 0 28px}
.done-mail { font-size: 1.02em; line-height: 1.55; margin: 6px 0 10px; }
.more-docs { background: #fffbe6; border: 2px solid #f5c400; border-radius: var(--radius); padding: 14px 16px; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.more-docs p { margin: 0; }

/* czat: nowa rozmowa, załączniki, zgoda */
.chat-head .chat-new{background:none;border:0;color:#fff;font-size:20px;cursor:pointer;opacity:.8;margin-left:auto;margin-right:6px}
.chat-head .chat-new:hover{opacity:1}
.chat-form .chat-att{background:#fff;border:2px solid #f5c400;border-radius:12px;width:44px;flex:0 0 44px;font-size:18px;cursor:pointer;padding:0}
.chat-form .chat-att:hover{background:#fff8d6}
.chat-form-card .cf-note{font-size:.8em;color:#666;margin:4px 0 8px;line-height:1.4}

.chat-form-card .cf-row[hidden]{display:none!important}
.chat-form-card .cf-msg{display:block;color:#d0312d;font-size:.82em;margin-top:3px;font-weight:600}
.chat-form-card .cf-msg.info{color:#4b5563;font-weight:400}
.chat-form-card .cf-msg[hidden]{display:none}
.chat-form-card .cf-err{border-color:#e3342f!important;background:#fff5f5!important;box-shadow:0 2px 0 #e3342f}

.chat-form-card .cf-fwrap{display:flex;flex-direction:column;gap:4px;padding:6px 0;border-bottom:1px dashed #eadb9a}
.chat-form-card .cf-fwrap:last-child{border-bottom:0}
.chat-form-card .cf-fopt{display:flex;gap:10px;align-items:center;font-size:.86em;color:#555;padding-left:2px}
.chat-form-card .cf-fopt label{display:flex;align-items:center;gap:4px;font-weight:400}
.chat-form-card .cf-fopt .cf-cm{width:44px!important;text-align:center;padding:4px}
.chat-form-card .cf-fopt .cf-cls{width:auto;padding:4px 6px}

/* licznik: m² wylewki i styropianu w tym roku */
.live-sums { display: flex; gap: 40px; flex-wrap: wrap; margin: 14px 0 22px; }
.live-sums[hidden], .live-sum[hidden] { display: none; }
.live-sum b { display: block; font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; line-height: 1.05; background: linear-gradient(90deg, #ffe45c, #ffb21f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-sum span { color: #cfd3da; font-size: 15px; }

/* licznik: wyróżnione zlecenia, mniejsze m² */
.live .live-head p strong { font-size: clamp(38px, 5.4vw, 64px); line-height: 1; }
.live-sums { gap: 28px; margin: 10px 0 20px; }
.live-sum b { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
.live-sum span { font-size: 13px; }

/* karta wyniku wyceny w czacie */
.chat-msg.chat-result { flex-shrink: 0; max-width: 94%; width: 94%; padding: 0; overflow: hidden; border: 2px solid #f5c400; border-radius: 14px; }
.chat-result .cr-head { background: #17191b; color: #f5c400; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 14px; }
.chat-result .cr-price { font-size: 24px; font-weight: 900; color: #17191b; padding: 12px 14px 0; line-height: 1.15; }
.chat-result .cr-price small { font-size: 14px; font-weight: 700; color: #5c6066; }
.chat-result .cr-gross { padding: 2px 14px 0; color: #5c6066; font-size: 14px; }
.chat-result .cr-meta { padding: 8px 14px 10px; font-size: 13.5px; color: #3c4046; border-bottom: 1px solid #eee; }
.chat-result ul { list-style: none; margin: 0; padding: 0; }
.chat-result .cr-floors li { padding: 8px 14px; border-bottom: 1px solid #f0f0f0; }
.chat-result .cr-fl { display: flex; justify-content: space-between; gap: 8px; }
.chat-result .cr-sub { font-size: 12.5px; color: #6b7076; margin-top: 2px; }
.chat-result .cr-in { padding: 10px 14px; background: #fffbea; }
.chat-result .cr-in-t { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.chat-result .cr-in li { font-size: 13px; padding: 1px 0 1px 20px; position: relative; }
.chat-result .cr-in li::before { content: "✓"; position: absolute; left: 2px; color: #1a9b3c; font-weight: 900; }
.chat-result .cr-note { padding: 8px 14px; font-size: 12.5px; color: #8a6400; }
.chat-result .cr-foot { padding: 8px 14px 10px; font-size: 12.5px; color: #6b7076; font-style: italic; }
.chat-result .cr-meta { padding-top: 10px; }
.chat-result .cr-total { margin-top: 8px; padding: 10px 14px 4px; border-top: 2px solid #f5c400; background: #fff; }
.chat-result .cr-total-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5c6066; }
.chat-result .cr-total .cr-price { padding: 2px 0 0; }
.chat-result .cr-total .cr-gross { padding: 2px 0 0; }
