/* ============================================================
   podstrony.css — podstrony usługowe Kowalów Kancelaria Prawna
   CZĘŚĆ 1 to reguły skopiowane 1:1 ze strony głównej (index.html),
   generowane skryptem narzedzia/src/buduj-podstrony.py.
   NIE edytować ręcznie — zmienić stronę główną albo skrypt.
   ============================================================ */

:root {
  color-scheme: light;   /* stop wymuszonemu trybowi ciemnemu przegladarki */
  /* ── Lighter palette ── */
  --canvas: #F8FBFF;
  --surface: #FFFFFF;
  --surface-2: #EEF4FC;
  --wash: #DBE8F8;
  --wash-deep: #C4D8F0;
  --navy: #24396320;
  --navy-solid: #243963;
  --navy-deep: #172542;
  --blue: #45699F;
  --blue-bright: #6E97D0;
  --ink: #232A3D;
  --ink-soft: #4F5870;
  --line: #E4EAF3;
  /* ── Brand gold (from logo) ── */
  --gold: #B08D4F;
  --gold-light: #CBAE73;
  --gold-deep: #8C6E38;
  --gold-wash: #F3EBDB;

  --ff-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Emil's easing curves ── */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* ── Semantic tokens (light) ── */
  --bg: var(--canvas);
  --bg-elevated: var(--surface);
  --bg-tint: var(--surface-2);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --heading: var(--navy-solid);
  --accent: var(--blue);
  --accent-strong: var(--navy-solid);
  --border: var(--line);
  --card: var(--surface);
  --nav-bg: rgba(248, 251, 255, 0.72);
  --shadow-sm: 0 1px 2px rgba(36, 57, 99, 0.05), 0 2px 8px rgba(36, 57, 99, 0.04);
  --shadow-md: 0 4px 12px rgba(36, 57, 99, 0.06), 0 12px 32px rgba(36, 57, 99, 0.08);
  --shadow-lg: 0 8px 24px rgba(36, 57, 99, 0.1), 0 24px 64px rgba(36, 57, 99, 0.12);
  --shadow-glass: 0 8px 32px rgba(36, 57, 99, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  font-weight: 500;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--heading);
  line-height: 1.14;
  font-weight: 800;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.i { font-style: normal; font-weight: 800; color: var(--accent); }

a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 28px; }

/* ─────────── NAV ─────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(150deg, var(--gold-light), var(--gold-deep));
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(140, 110, 56, 0.28); position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 3px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35); pointer-events: none;
}
.brand-mark span { font-family: var(--ff-display); color: #FBF6EC; font-size: 1.28rem; font-weight: 600; line-height: 1; }
.brand-name { font-family: var(--ff-display); font-size: 1.08rem; font-weight: 600; color: var(--heading); line-height: 1.1; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--ff-body); font-size: 0.68rem; font-weight: 500; color: var(--text-soft); letter-spacing: 0.02em; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-mark-img { width: 44px; height: 44px; object-fit: contain; display: block; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-soft); position: relative; transition: color 200ms var(--ease-out); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width 240ms var(--ease-out);
}
.nav-links a:hover { color: var(--heading); }
.nav-dd { position: relative; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd .dd-caret { transition: transform 200ms var(--ease-out); }
.nav-dd:hover .dd-caret, .nav-dd:focus-within .dd-caret { transform: rotate(180deg); }
.nav-sub { position: absolute; top: calc(100% + 14px); left: -14px; min-width: 260px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms; z-index: 120; }
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dd:hover .nav-sub, .nav-dd:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--text); white-space: nowrap; }
.nav-sub a::after { display: none; }
.nav-sub a:hover { background: var(--bg-tint); color: var(--heading); }
.nav-sub-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.nav-sub-all a { color: var(--accent); font-weight: 600; }
.mmenu a.mm-sub { padding: 10px 0 10px 18px; font-size: 0.95rem; color: var(--text-soft); }

.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-body); font-size: 0.95rem; font-weight: 600;
  padding: 13px 24px; border-radius: 11px; border: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy-solid); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--heading); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--bg-elevated); color: var(--heading); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; border-radius: 9px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--heading); padding: 8px; }

/* hero — scrim, plakietka z oceną, lead, telefon (ze strony głównej) */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,16,34,0.92) 0%, rgba(10,16,34,0.72) 34%, rgba(10,16,34,0.28) 66%, rgba(10,16,34,0.12) 100%),
    linear-gradient(0deg, rgba(10,16,34,0.65) 0%, transparent 42%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; will-change: transform, opacity; }
.hero-copy { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 100px; padding: 7px 15px 7px 12px;
  font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
}
.hero-eyebrow .stars { display: inline-flex; gap: 1px; color: var(--gold-light); }
.hero-eyebrow b { color: #fff; font-weight: 600; }

.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,0.82); max-width: 500px; margin-bottom: 34px; line-height: 1.65; }

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-tel {
  display: inline-flex; align-items: center; gap: 11px; font-size: 1.24rem;
  font-weight: 600; color: #fff; font-family: var(--ff-display);
}
.hero-tel svg { color: var(--gold-light); flex-shrink: 0; }
.hero-tel a { color: #fff; }
.hero-tel-label { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.65); font-family: var(--ff-body); display: block; line-height: 1.2; }

/* ─────────── TRUST MARQUEE ─────────── */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); overflow: hidden; }
.trust-track { display: flex; gap: 0; width: max-content; animation: slide 34s linear infinite; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 20px 34px; white-space: nowrap; color: var(--text-soft); font-size: 0.94rem; font-weight: 500; }
.trust-item svg { color: var(--blue); flex-shrink: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ─────────── SECTION SCAFFOLD ─────────── */
.section { padding: 118px 0; position: relative; }
.section.tint { background: var(--bg-tint); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(0.95rem, 1.05vw, 1.08rem); font-weight: 700; letter-spacing: 0.005em; color: var(--accent); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--accent); }
.sec-head { max-width: 600px; margin-bottom: 60px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: clamp(2.1rem, 4vw, 3.15rem); margin-bottom: 18px; }
.sec-head p { font-size: 1.1rem; color: var(--text-soft); line-height: 1.65; }

/* ─────────── SERVICES (editorial asymmetric) ─────────── */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.svc {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px; overflow: hidden;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
  grid-column: span 2;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--wash-deep); }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--blue); margin-bottom: 20px; transition: background 320ms var(--ease-out), color 320ms var(--ease-out); }
.svc:hover .svc-icon { background: var(--navy-solid); color: #fff; }
.svc h3 { font-family: var(--ff-body); font-size: 1.08rem; font-weight: 600; color: var(--heading); margin-bottom: 9px; letter-spacing: -0.01em; }
.svc p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.6; }
.svc .svc-more { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.svc .svc-more a { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.svc .svc-more a:hover { text-decoration: underline; }
/* feature cards with imagery span 3 */
.svc.feature { grid-column: span 3; padding: 0; display: grid; grid-template-rows: 170px auto; min-height: 300px; }
.svc.feature .svc-photo { overflow: hidden; }
.svc.feature .svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.svc.feature:hover .svc-photo img { transform: scale(1.06); }
.svc.feature .svc-body { padding: 26px 30px 30px; }
.svc.feature .tag { display: inline-block; font-size: 0.74rem; font-weight: 600; color: var(--accent); background: var(--surface-2); padding: 4px 11px; border-radius: 100px; margin-bottom: 12px; }
.svc.feature h3 { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 500; }

/* ─────────── PROCESS (signature: line draws on scroll) ─────────── */
.process { position: relative; }
.proc-rail { position: relative; margin-top: 20px; }
.proc-line {
  position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: var(--border); border-radius: 2px; overflow: hidden;
}
.proc-line::after {
  content: ''; position: absolute; inset: 0; height: var(--draw, 0%);
  background: linear-gradient(to bottom, var(--blue), var(--navy-solid));
  border-radius: 2px; transition: height 120ms linear;
}
.proc-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 18px 0 40px; }
.proc-dot {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg-elevated);
  border: 2px solid var(--border); display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; color: var(--text-soft);
  z-index: 2; transition: border-color 400ms var(--ease-out), color 400ms var(--ease-out), background 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.proc-step.lit .proc-dot { border-color: var(--blue); color: #fff; background: var(--navy-solid); transform: scale(1.05); }
.proc-step h3 { font-family: var(--ff-body); font-size: 1.15rem; font-weight: 600; color: var(--heading); margin-bottom: 7px; padding-top: 12px; }
.proc-step p { color: var(--text-soft); line-height: 1.65; max-width: 56ch; }

/* ─────────── FOOTER ─────────── */
.footer { background: var(--navy-deep); color: #C4D0E6; padding: 76px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 52px; }
.footer .brand-name { color: #fff; }
.footer .brand-name small { color: #8FA0C0; }
.footer-desc { font-size: 0.9rem; opacity: 0.7; line-height: 1.7; margin-top: 18px; max-width: 300px; }
.footer h4 { font-family: var(--ff-body); font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 18px; opacity: 0.9; letter-spacing: 0.02em; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 0.88rem; color: #B4C1DC; opacity: 0.8; transition: opacity 200ms, color 200ms; }
.footer ul a:hover { opacity: 1; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.6; flex-wrap: wrap; gap: 10px; }

/* ─────────── SCROLL REVEAL ─────────── */
.rise { opacity: 0; transform: translateY(30px); transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out); }
.rise.in { opacity: 1; transform: none; }
.rise[data-d="1"] { transition-delay: 70ms; }
.rise[data-d="2"] { transition-delay: 140ms; }
.rise[data-d="3"] { transition-delay: 210ms; }
.rise[data-d="4"] { transition-delay: 280ms; }
.rise[data-d="5"] { transition-delay: 350ms; }
/* directional reveals for extra motion variety */
.rise-l { opacity: 0; transform: translateX(-40px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.rise-r { opacity: 0; transform: translateX(40px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.rise-l.in, .rise-r.in { opacity: 1; transform: none; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 101;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  box-shadow: 0 0 8px rgba(176,141,79,0.5); will-change: width;
}
/* section image parallax wrappers keep overflow so the image can drift */
.parallax-img { will-change: transform; }

/* ─────────── MOBILE ─────────── */
.mmenu { display: none; position: fixed; inset: 74px 0 auto 0; z-index: 99; background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 12px 28px 26px; box-shadow: var(--shadow-lg); }
.mmenu.open { display: block; animation: mdrop 300ms var(--ease-out); }
@keyframes mdrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mmenu a { display: block; padding: 14px 0; font-size: 1.02rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mmenu a:last-child { border: none; }

@media (max-width: 980px) {
  .nav-links, .nav .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .svc { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .brand { padding: 6px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .section { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn { min-height: 48px; }
}

/* ─────────── FAQ ─────────── */
.faq-sec{ background: var(--bg-tint); }
.faq-list{ display: grid; gap: 14px; }
.faq-item{ background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.faq-item[open]{ box-shadow: var(--shadow-md); border-color: var(--wash-deep); }
.faq-q{ display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; cursor: pointer; list-style: none; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--heading); line-height: 1.35; }
.faq-q::-webkit-details-marker{ display: none; }
.faq-q:hover{ color: var(--accent); }
.faq-ic{ flex-shrink: 0; color: var(--accent); transition: transform .3s var(--ease-out); }
.faq-item[open] .faq-ic{ transform: rotate(180deg); }
.faq-a{ padding: 0 26px 24px; color: var(--text-soft); font-size: 1rem; line-height: 1.7; border-top: 1px solid var(--border); padding-top: 20px; margin: 0 26px; padding-left: 0; padding-right: 0; }
.faq-a p{ margin: 0 0 12px; }
.faq-a p:last-child{ margin-bottom: 0; }
.faq-a ul{ margin: 0 0 12px; padding-left: 20px; }
.faq-a li{ margin-bottom: 8px; }
.faq-a strong{ color: var(--heading); font-weight: 600; }
.faq-note{ margin: 28px auto 0; max-width: 640px; text-align: center; font-size: 0.9rem; color: var(--text-soft); opacity: .85; line-height: 1.6; }
.faq-cta{ margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 28px 32px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.faq-cta-txt{ display: flex; flex-direction: column; gap: 4px; }
.faq-cta-txt strong{ font-family: var(--ff-display); font-size: 1.15rem; color: var(--heading); }
.faq-cta-txt span{ font-size: 0.95rem; color: var(--text-soft); }
.faq-cta-btns{ display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 620px){
  .faq-q{ padding: 18px 18px; gap: 12px; }
  .faq-a{ margin: 0 18px; padding-bottom: 20px; }
  .faq-cta{ padding: 24px 20px; flex-direction: column; align-items: stretch; text-align: center; }
  .faq-cta-txt{ align-items: center; }
  .faq-cta-btns{ flex-direction: column; }
}

/* formularz — ze strony głównej */
.form { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 38px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* floating-label fields */
.field { position: relative; margin-bottom: 18px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 16px 10px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--ff-body); font-size: 0.96rem; color: var(--text); background: var(--bg-elevated);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 112px; padding-top: 26px; }
.field label {
  position: absolute; left: 16px; top: 15px; font-size: 0.96rem; color: var(--text-soft);
  pointer-events: none; transform-origin: left top;
  transition: transform 180ms var(--ease-out), color 180ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(69,105,159,0.1);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-9px) scale(0.74); color: var(--accent); font-weight: 600;
}
.field-select { position: relative; }
.field-select select { cursor: pointer; padding-right: 44px; }
.field-select select:invalid { color: var(--text-soft); }
.field-chevron { position: absolute; right: 16px; top: 20px; color: var(--text-soft); pointer-events: none; transition: transform 200ms var(--ease-out); }
.field-select select:focus ~ .field-chevron { transform: rotate(180deg); color: var(--accent); }
.field-err { display: none; font-size: 0.78rem; color: #C0392B; margin-top: 6px; padding-left: 2px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #E0A9A2; box-shadow: 0 0 0 4px rgba(192,57,43,0.08); }
.field.invalid .field-err { display: block; }

.form-submit { width: 100%; margin-top: 6px; position: relative; }
.form-submit .fs-spin { display: none; animation: spin 0.7s linear infinite; }
.form-submit.loading .fs-label { opacity: 0.6; }
.form-submit.loading .fs-spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-hint { font-size: 0.8rem; color: var(--text-soft); text-align: center; margin-top: 14px; }

/* success state */
.form-success { text-align: center; padding: 20px 8px 8px; animation: fsIn 500ms var(--ease-out); }
@keyframes fsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fs-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--gold-wash); color: var(--gold-deep); display: grid; place-items: center;
  animation: fsPop 500ms var(--ease-out) 80ms both;
}
@keyframes fsPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success h3 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--text-soft); line-height: 1.6; max-width: 34ch; margin: 0 auto; }
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }
}

/* nawigacja na telefonie — jak na stronie głównej (poprawka 27.10) */
.nav{ top:0; transform: translateZ(0); -webkit-transform: translateZ(0);
      backface-visibility: hidden; -webkit-backface-visibility: hidden; }
@media (max-width: 620px){
  .nav{
    position: fixed;
    top: 0; left: 0; right: 0;
    backdrop-filter:none; -webkit-backdrop-filter:none;
    background:#f8fbff;
    box-shadow: 0 1px 0 rgba(16,24,40,0.08);
    /* nizszy pasek = mniej go widac, gdy przegladarka chowa swoj pasek adresu */
    height: 60px;
  }
  .nav-in{ height: 60px; }
  .brand-logo{ height: 30px; }
  .mmenu{ inset: 60px 0 auto 0; }
  .mmenu{ backdrop-filter:none; -webkit-backdrop-filter:none; background:#f8fbff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trust-track { animation: none; }
  .rise, .rise-l, .rise-r { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== MENU „Usługi” 3.11 — pełna lista usług w dwóch grupach =====
   (blok wspólny: strona główna + podstrony, generowany skryptem)
   Wcześniej rozwijane menu pokazywało tylko 3 podstrony i wyglądało,
   jakby kancelaria miała 3 usługi. Teraz: wszystkie 8, w dwóch kolumnach;
   na telefonie „Usługi” to zwijana lista (domyślnie zamknięta). */
.nav-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; min-width: 540px; left: -40px; }
.nav-col { display: flex; flex-direction: column; }
.nav-sub-h { padding: 8px 12px 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-deep); }
.nav-sub-all { grid-column: 1 / -1; }
.nav-sub a[aria-current="page"] { background: var(--gold-wash); color: var(--heading); font-weight: 600; }
.mm-dd { border-bottom: 1px solid var(--border); }
.mm-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-size: 1.02rem; font-weight: 500; color: var(--text); }
.mm-dd > summary::-webkit-details-marker { display: none; }
.mm-dd > summary svg { transition: transform 200ms var(--ease-out); color: var(--text-soft); }
.mm-dd[open] > summary svg { transform: rotate(180deg); }
.mm-dd-list { padding: 0 0 12px; }
.mm-h { display: block; padding: 10px 0 4px 16px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-deep); }
.mmenu .mm-dd-list a { padding: 10px 0 10px 16px; font-size: 0.95rem; color: var(--text-soft); border-bottom: none; }
.mmenu .mm-dd-list a[aria-current="page"] { color: var(--heading); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold); }
.mmenu .mm-dd-list a.mm-all { color: var(--accent); font-weight: 600; margin-top: 4px; }
.mmenu { max-height: calc(100vh - 74px); overflow-y: auto; }
.svc[id] { scroll-margin-top: 96px; }
@media (max-width: 620px) { .mmenu { max-height: calc(100vh - 60px); } .svc[id] { scroll-margin-top: 76px; } }
/* telefon: wejście z boku (.rise-r przy formularzu) poszerzało stronę do 410 px,
   przez co cały widok był lekko pomniejszony, a menu odjeżdżało w prawo.
   Na telefonie elementy wjeżdżają od dołu, jak reszta. */
@media (max-width: 620px) { .rise-l, .rise-r { transform: translateY(30px); } .rise-l.in, .rise-r.in { transform: none; } }
/* ===== PRZYCISKI 3.11 — telefon ma być najjaśniejszym, najbardziej
   „klikalnym” elementem ekranu. Stary złoty gradient schodził do #8C6E38
   (brąz) i ciemny tekst miał tam kontrast 3,6:1 — poniżej normy 4,5:1,
   stąd wrażenie „brudnego”, ciemnego przycisku. Teraz: jasne złoto,
   granatowy tekst (kontrast 7–9:1), połysk i wyraźna reakcja na dotyk. */
.btn-gold, .hero .btn-primary, .btn-primary[href^="tel:"] {
  background: linear-gradient(180deg, #E8CC8C 0%, #D4AD61 100%);
  color: #172542; font-weight: 700; border: 1px solid #C69E52;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 6px 18px rgba(176,141,79,0.30);
}
.btn-gold:hover, .hero .btn-primary:hover, .btn-primary[href^="tel:"]:hover {
  background: linear-gradient(180deg, #F0D8A2 0%, #DDB86E 100%);
  color: #172542; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 26px rgba(176,141,79,0.40);
}
.btn-gold:active, .hero .btn-primary:active, .btn-primary[href^="tel:"]:active { transform: scale(0.97); }
.btn-gold svg, .hero .btn-primary svg, .btn-primary[href^="tel:"] svg { color: #172542; }
/* drugi przycisk na jasnym tle: obramowanie było prawie niewidoczne
   (#E4EAF3, kontrast 1,2:1) i przycisk wyglądał na nieaktywny */
.btn-ghost { border-color: #8494B3; color: var(--heading); background: var(--surface); }
.btn-ghost:hover { border-color: var(--navy-solid); background: var(--surface-2); }
/* wyjątek: przycisk obrysowany na ciemnym hero strony głównej zostaje przezroczysty */
.hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
/* przycisk „Wyślij zapytanie” — też złoty, jak każde główne wezwanie do działania */
.form-submit.btn-primary, .form-submit.btn-gold {
  background: linear-gradient(180deg, #E8CC8C 0%, #D4AD61 100%); color: #172542; font-weight: 700; border: 1px solid #C69E52;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 6px 18px rgba(176,141,79,0.30);
}
.form-submit.btn-primary:hover, .form-submit.btn-gold:hover { background: linear-gradient(180deg, #F0D8A2 0%, #DDB86E 100%); color: #172542; }
.form-submit svg { color: #172542; }

/* ===== PASEK KONTAKTU NA TELEFONIE 3.11 =====
   Po przewinięciu za hero numer znikał z ekranu (w nagłówku jest tylko menu).
   Pasek pojawia się dopiero za hero, chowa się przy formularzu i przy pisaniu. */
.callbar { display: none; }
@media (max-width: 980px) {
  .callbar { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,251,255,0.97);
    border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(36,57,99,0.10);
    transform: translateY(110%); transition: transform 280ms var(--ease-out); }
  .callbar.show { transform: none; }
  .callbar .btn { min-height: 48px; padding: 12px 14px; }
  .footer { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }

/* ── OPINIE KLIENTÓW (cytaty z Google, tylko za zgodą autorów) ── */
.rev-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.rev-q { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.rev-q .stars { color: var(--gold); display: flex; gap: 2px; }
.rev-q blockquote { color: var(--text); line-height: 1.65; font-size: 0.97rem; margin: 0; }
.rev-q figcaption { margin-top: auto; font-size: 0.84rem; color: var(--text-soft); }
.rev-q figcaption b { color: var(--heading); }
.rev-more { text-align: center; margin-top: 26px; }
@media (max-width: 980px) { .rev-quotes { grid-template-columns: 1fr; } }


/* ============================================================
   CZĘŚĆ 2 — elementy wyłącznie podstron, zbudowane z tokenów
   i wzorców strony głównej (hero, sekcje, proces, FAQ, karty).
   ============================================================ */

/* ── HERO PODSTRONY (v3): jasne i krótkie. Temida zostaje wyłącznie na
      stronie głównej. Na telefonie nagłówek + przycisk telefonu mieszczą się
      na pierwszym ekranie; bez animacji wejścia (nie opóźniamy nagłówka). ── */
.phero { position: relative; overflow: hidden; padding: 128px 0 64px;
  background:
    linear-gradient(180deg, var(--surface-2) 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--border); }
.phero .hero-copy { max-width: 780px; }
/* formularz na końcu podstrony — po przeczytaniu treści i pytań */
.end-sec { background: var(--bg-tint); }
.end-form { scroll-margin-top: 92px; }
.end-grid { display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: center; }
.end-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.end-copy > p { color: var(--text-soft); line-height: 1.65; margin-bottom: 24px; max-width: 46ch; }
.end-copy .end-alt { margin: 16px 0 0; font-size: 0.92rem; }
.end-form .field textarea { min-height: 96px; }
.phero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 18px; }
.phero h1 .i { color: var(--accent); }
.phero h1 .h1-kw { display: flex; align-items: center; gap: 10px; font-size: clamp(0.95rem, 1.05vw, 1.08rem); font-weight: 700; letter-spacing: 0.005em; line-height: 1.4; color: var(--gold-deep); margin-bottom: 14px; }
.phero h1 .h1-kw::before { content: ''; width: 30px; height: 2px; background: var(--gold); flex-shrink: 0; }
.phero h1 .h1-main { display: block; }
.phero .hero-lead { color: var(--text-soft); max-width: 600px; margin-bottom: 28px; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.65; }
.phero .hero-actions { margin-bottom: 22px; }
.crumbs { font-size: 0.84rem; color: var(--text-soft); margin-bottom: 18px; }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--heading); text-decoration: underline; }
/* pasek zaufania pod przyciskami */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: 0.88rem; color: var(--text-soft); }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row b { color: var(--heading); font-weight: 700; }
.trust-row .stars { display: inline-flex; gap: 1px; color: var(--gold); }
.trust-row a { color: inherit; display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg.tick { color: var(--gold-deep); }

/* ── TREŚĆ ── */
.sec-head h2 .i, .prose h2 .i { color: var(--accent); }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); color: var(--text); line-height: 1.55;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out); }
.checks li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--wash-deep); }
.checks .ck { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-wash); color: var(--gold-deep); display: grid; place-items: center; margin-top: 1px; }
.note { margin-top: 30px; padding: 18px 22px; background: var(--bg-tint); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.65; }
.note a, .prose a { font-weight: 600; }
.note a:hover, .prose a:hover { text-decoration: underline; }

.proc-step h3 { font-family: var(--ff-body); }
.process .sec-head { margin-bottom: 30px; }

.prose { max-width: 760px; }
.prose p { color: var(--text-soft); line-height: 1.75; margin-bottom: 18px; font-size: 1.02rem; }
.prose p strong { color: var(--heading); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.fact { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.fact .svc-icon { margin-bottom: 14px; }
.fact strong { display: block; color: var(--heading); font-size: 1rem; margin-bottom: 4px; }
.fact span { display: block; color: var(--text-soft); font-size: 0.9rem; line-height: 1.55; }

/* karty „pozostałe usługi” — te same .svc co na głównej, cała karta klikalna */
.svc-link { display: block; color: inherit; }
.svc-link .svc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.svc-link:hover .svc-go { gap: 10px; }
.svc-go { transition: gap 200ms var(--ease-out); }
.all-svc { text-align: center; margin-top: 34px; }

@media (max-width: 980px) {
  .facts { grid-template-columns: 1fr; }
  .end-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .checks { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .phero { padding: 82px 0 36px; background: linear-gradient(180deg, var(--surface-2) 0%, var(--canvas) 100%); }
  .phero h1 { font-size: clamp(1.75rem, 7.2vw, 2.25rem); margin-bottom: 12px; }
  .phero h1 .h1-kw { font-size: 0.9rem; margin-bottom: 10px; }
  .phero .hero-lead { font-size: 0.97rem; line-height: 1.55; margin-bottom: 20px; }
  .phero .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 18px; }
  .phero .hero-actions .btn { width: 100%; }
  .crumbs { margin-bottom: 10px; font-size: 0.8rem; }
  .trust-row { font-size: 0.82rem; gap: 8px 16px; }
  .end-form { padding: 24px 18px; scroll-margin-top: 72px; }
  .end-form .form-row { gap: 0; }
  .end-copy .btn { width: 100%; }
  .checks li { padding: 16px; }
  .note { padding: 16px 18px; }
  .crumbs a, .note a, .prose a, .footer ul a { display: inline-block; padding: 8px 0; margin: -8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .checks li, .svc-go { transition: none; }
}


