/* =====================================================
   style.css — LawetaBydgoszcz.com
   Wygląd strony. Treść zmieniasz w config.js, nie tutaj.
   Kolory zmienisz w sekcji ":root" poniżej.
   ===================================================== */

:root {
  --ink:        #0D0F12;
  --graphite:   #1B1E23;
  --graphite-2: #262B33;
  --steel:      #8B95A3;
  --steel-dark: #5B6472;
  --line:       #E2E5EA;
  --paper:      #FFFFFF;
  --smoke:      #F4F5F7;
  --hazard:     #FFC72C;
  --hazard-2:   #FFD75E;

  --radius: 14px;
  --wrap: 1140px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(13, 15, 18, .10);
}

/* ---------- podstawy ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); text-transform: uppercase; }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--smoke { background: var(--smoke); }
.section--dark { background: var(--graphite); color: var(--paper); }
.section--dark p { color: #D5D9E0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-dark);
  margin-bottom: .6rem;
}
.section--dark .eyebrow { color: var(--hazard); }

.lead { font-size: 1.06rem; color: #4A5261; max-width: 62ch; }
.section--dark .lead { color: #C9CFD8; }

/* pasek ostrzegawczy — motyw przewodni strony */
.hazard-bar {
  height: 8px;
  background: repeating-linear-gradient(45deg,
              var(--hazard) 0 14px, var(--graphite) 14px 28px);
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--hazard); color: var(--ink); }
.btn--primary:hover { background: var(--hazard-2); }

.btn--ghost { background: transparent; color: var(--paper); border-color: #5A6270; }
.btn--ghost:hover { border-color: var(--hazard); color: var(--hazard); }

.btn--dark { background: var(--graphite); color: var(--paper); }
.btn--dark:hover { background: var(--graphite-2); }

.btn--wide { width: 100%; }

/* widoczny focus — dostępność */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--hazard);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--hazard); color: var(--ink);
  padding: 12px 18px; font-weight: 800; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- nagłówek ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid #2C323B;
}
.topbar__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.topbar__logo img { height: 42px; width: auto; }

.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a {
  color: #DCE0E6; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--hazard); border-bottom-color: var(--hazard); }

.topbar .btn { padding: 11px 18px; font-size: .98rem; white-space: nowrap; }

.nav-toggle {
  margin-left: auto; display: none;
  background: transparent; border: 2px solid #454C57; border-radius: 8px;
  color: var(--paper); padding: 9px 12px; font-size: 1.1rem; cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 78% 18%, rgba(255,199,44,.13), transparent 60%),
    var(--graphite);
  color: var(--paper);
  padding: 64px 0 72px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 .hl { color: var(--hazard); display: block; }
.hero__text p { color: #CBD1DA; font-size: 1.1rem; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid #363D48;
  font-size: .95rem; color: #B9C0CA;
}
.hero__facts b { color: var(--paper); }
.hero__art { position: relative; }
.hero__art img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #333A45;
  background: #12151C;
}

/* ---------- karty korzyści ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.benefit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--hazard);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.benefit h3 { margin-bottom: .35em; }
.benefit p { margin: 0; color: #4A5261; font-size: .97rem; }

/* ---------- usługi ---------- */
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #C9CFD8; }
.service img { width: 52px; height: 52px; margin-bottom: 14px; }
.service h3 { margin-bottom: .3em; }
.service p { margin: 0; color: #4A5261; font-size: .97rem; }

/* ---------- kroki (kolejność ma znaczenie) ---------- */
.step {
  border-top: 3px solid var(--hazard);
  padding-top: 18px;
}
.step__no {
  font-size: 2.1rem; font-weight: 800; line-height: 1;
  color: var(--hazard); letter-spacing: -.04em;
}
.step h3 { margin: 10px 0 .3em; }
.step p { margin: 0; color: #C9CFD8; font-size: .97rem; }

/* ---------- obszar ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: .95rem;
}
.chip--road { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
.area__note { color: #4A5261; font-size: .97rem; }

/* ---------- cennik ---------- */
.price-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center;
  background: var(--graphite); color: var(--paper);
  border-radius: 18px; padding: 34px; overflow: hidden;
}
.price-panel h3 { color: var(--hazard); font-size: 1.35rem; }
.price-list { margin: 0 0 18px; padding: 0; list-style: none; }
.price-list li { padding: 9px 0 9px 28px; border-bottom: 1px solid #363D48; position: relative; color: #D5D9E0; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 14px; height: 3px; background: var(--hazard);
}
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.price-table td { padding: 10px 0; border-bottom: 1px solid #363D48; color: #D5D9E0; }
.price-table td:last-child { text-align: right; font-weight: 800; color: var(--hazard); white-space: nowrap; }

/* ---------- opinie ---------- */
.review {
  background: var(--paper); border: 2px dashed #C4CAD4; border-radius: var(--radius);
  padding: 26px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: center;
}
.review--empty { text-align: center; color: var(--steel-dark); font-weight: 700; }
.review__mark { color: var(--hazard); font-size: 2.2rem; line-height: 1; font-weight: 800; }
.review--filled { border-style: solid; border-color: var(--line); text-align: left; }
.review--filled p { margin: 8px 0 12px; }
.review__author { font-weight: 800; font-size: .95rem; color: var(--steel-dark); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px;
  font-weight: 700; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 800; color: var(--hazard); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { background: var(--smoke); }
.faq-item p { margin: 0; padding: 4px 20px 20px; color: #4A5261; }

/* ---------- formularz ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field .req { color: #B42318; }
.field input, .field textarea {
  font: inherit; padding: 13px 14px;
  border: 2px solid #CBD1DA; border-radius: 10px; background: var(--paper); color: var(--ink);
}
.field input:hover, .field textarea:hover { border-color: var(--steel-dark); }
.field textarea { min-height: 110px; resize: vertical; }
.field--error input, .field--error textarea { border-color: #B42318; background: #FEF3F2; }
.error-msg { color: #B42318; font-size: .88rem; font-weight: 700; min-height: 1px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--hazard); }

.form-note {
  background: #FFF8E3; border: 1px solid #F2D888; border-radius: 10px;
  padding: 14px 16px; font-size: .92rem; margin-top: 16px;
}
.form-status { font-weight: 700; margin-top: 14px; }

/* ---------- kontakt ---------- */
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.contact-card h3 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-dark); }
.contact-card a { font-weight: 800; text-decoration: none; font-size: 1.12rem; }
.contact-card a:hover { color: #7A5A00; text-decoration: underline; }

/* ---------- stopka ---------- */
.footer { background: var(--ink); color: #AEB6C1; padding: 52px 0; font-size: .93rem; }
.footer h3 { color: var(--paper); font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; }
.footer a { color: #DCE0E6; }
.footer__bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid #2C323B;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}
.todo {
  display: inline-block; background: #3A2E00; color: var(--hazard);
  border: 1px dashed var(--hazard); border-radius: 6px; padding: 1px 8px; font-weight: 700; font-size: .85rem;
}

/* ---------- dolny pasek mobilny ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; gap: 1px; background: #2C323B;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a, .mobile-bar button {
  flex: 1 1 50%; border: 0; font: inherit; font-weight: 800; font-size: 1rem;
  padding: 16px 8px; text-align: center; text-decoration: none; cursor: pointer;
}
.mobile-bar .call { background: var(--hazard); color: var(--ink); }
.mobile-bar .loc  { background: var(--graphite); color: var(--paper); }

/* okno pomocy przy lokalizacji */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,15,18,.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal__box {
  background: var(--paper); border-radius: 16px; padding: 26px; max-width: 460px; width: 100%;
}
.modal__box h3 { font-size: 1.25rem; }
.modal__box ol { padding-left: 20px; margin: 0 0 18px; }
.modal__box li { margin-bottom: 8px; }

/* menu na podstronach (bez rozwijania) */
.nav--static { display: flex; }

/* ---------- podstrona polityki prywatności ---------- */
.doc { max-width: 820px; }
.doc h2 { font-size: 1.35rem; margin-top: 1.8em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* ---------- RWD ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 560px; }
  .price-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-bottom: 1px solid #2C323B;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav--static { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; padding: 0 0 12px; border: 0; }
  .nav--static a { padding: 4px 0; border-bottom: 0; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #2C323B; }
  .nav-toggle { display: block; }
  .topbar__inner { position: relative; flex-wrap: wrap; }
  .topbar .btn--primary { display: none; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 118px; }
  .price-panel { padding: 24px; }
}

/* ---------- mniej ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn:hover, .service:hover { transform: none; }
}

/* ---------- druk ---------- */
@media print {
  .topbar, .mobile-bar, .hero__cta, form { display: none; }
  body { color: #000; }
}
