/* ============================================================
   Kancelaria Jakub Kaniewski — adwokat + doradca restrukturyzacyjny
   Tokens: ciepła jasna baza, slate-granat, jeden akcent (bursztyn)
   Radius rule: buttons = pill, cards = 16px, inputs = 10px
   ============================================================ */
:root {
  --bg: #faf8f4;
  --bg-raise: #ffffff;
  --bg-tint: #f2eee6;
  --ink: #22303f;
  --ink-soft: #55606d;
  --line: #e6e1d6;
  --accent: #b0731f;
  --accent-dark: #8f5c16;
  --accent-soft: #f0e2cb;
  --slate: #22303f;
  --slate-deep: #17222e;
  --radius-card: 16px;
  --radius-input: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --section-pad: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: var(--section-pad) 0; }
.section-tint { background: var(--bg-tint); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 600; }
.display { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.22rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent);
  margin-bottom: 14px; font-weight: 600;
}
.num { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .display { font-size: clamp(2.1rem, 8.6vw, 2.8rem); } }

/* ---------- Placeholders (jawne, do uzupełnienia po rozmowie) ---------- */
.placeholder {
  display: inline-block; border: 1.5px dashed var(--accent); background: var(--accent-soft);
  color: var(--accent-dark); border-radius: 8px; padding: 2px 10px; font-size: 0.85em;
  font-family: var(--font-body); font-weight: 500; letter-spacing: 0;
}
.placeholder-frame {
  border: 2px dashed var(--line); border-radius: var(--radius-card); background: var(--bg-tint);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--ink-soft); font-size: 15px; min-height: 320px;
}
.placeholder-frame svg { color: var(--accent); margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg); transition: none; pointer-events: none;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(176, 115, 31, 0.24), 0 0 0 5px rgba(176, 115, 31, 0.12); }
.btn-primary:hover::before { left: 120%; transition: left 0.65s var(--ease); }
.btn-primary.btn-lg { animation: btn-glow 3s ease-in-out 1.4s infinite; }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176, 115, 31, 0.4); }
  45% { box-shadow: 0 8px 34px 4px rgba(176, 115, 31, 0.3), 0 0 0 10px rgba(176, 115, 31, 0.09); }
}
.btn-primary.btn-lg:hover { animation: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); z-index: 0; }
.btn-ghost::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0;
  background: var(--accent-soft); z-index: -1; transition: height 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost:hover::after { height: 100%; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
@media (min-width: 961px) { .header-inner > .logo { margin-left: 20px; } }
.logo svg { flex: none; transition: transform 0.4s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.08); }
.logo svg path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: logo-draw 1.1s var(--ease) 0.15s forwards; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; background: var(--bg-tint);
  border: 1px solid var(--line); transition: color 0.2s, background 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; white-space: nowrap; flex: none;
}
.main-nav a:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }
.main-nav a[aria-current="page"] { background: var(--slate); border-color: var(--slate); color: #fff; }

/* dropdown — restrukturyzacja i upadłość */
.nav-drop { position: relative; }
.nav-drop .chev { margin-left: 7px; flex: none; transition: transform 0.25s var(--ease); }
.nav-drop:hover > a .chev, .nav-drop:focus-within > a .chev { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; z-index: 130;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; margin-top: 6px; box-shadow: 0 18px 44px rgba(34, 48, 63, 0.13);
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { background: transparent; border: none; border-radius: 10px; width: 100%; justify-content: flex-start; }
.drop-menu a:hover { background: var(--accent-soft); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: none; background: transparent;
  cursor: pointer; z-index: 120; position: relative; border-radius: 12px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: 0; background: var(--bg); z-index: 110;
    flex-direction: column; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
    padding: calc(env(safe-area-inset-top) + 40px) 24px calc(env(safe-area-inset-bottom) + 40px);
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a { font-size: 22px; font-family: var(--font-display); font-weight: 600; color: var(--ink); padding: 12px 24px; background: transparent; border: none; }
  .main-nav a[aria-current="page"] { background: var(--bg-tint); color: var(--ink); }
  .main-nav .nav-cta-mobile { margin-top: 18px; font-size: 17px; font-family: var(--font-body); background: var(--accent); color: #fff; }
  /* dropdown w menu mobilnym: podstrony zawsze widoczne, mniejsze */
  .nav-drop { display: flex; flex-direction: column; align-items: center; }
  .nav-drop .chev { display: none; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0; margin: 0; gap: 0; }
  .drop-menu a { font-size: 16px; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); padding: 8px 20px; justify-content: center; }
}
@media (min-width: 961px) { .main-nav .nav-cta-mobile { display: none; } }

/* ---------- Hero — dwie ścieżki ---------- */
.hero { padding: clamp(118px, 15vw, 180px) 0 clamp(48px, 7vw, 90px); position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -12%; right: -10%;
  width: 58vw; height: 58vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle at 55% 40%, rgba(176, 115, 31, 0.10), rgba(34, 48, 63, 0.05) 45%, transparent 70%);
  pointer-events: none;
}
.hero-intro { max-width: 820px; }
.hl { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hl > span { display: inline-block; transform: translateY(110%); animation: hl-up 0.9s var(--ease) forwards; }
.hl:nth-child(2) > span { animation-delay: 0.12s; }
.hl:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes hl-up { to { transform: none; } }
.hero .lead { opacity: 0; animation: fade-up 0.8s var(--ease) 0.45s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.accent-word { position: relative; white-space: nowrap; color: var(--accent); }
.accent-word svg { position: absolute; left: 0; bottom: -0.1em; width: 100%; height: 0.24em; overflow: visible; }
.accent-word svg path { stroke: #d9a44f; stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw-line 1s var(--ease) 1s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* dwa kafle-ścieżki */
.path-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(34px, 5vw, 56px); opacity: 0; animation: fade-up 0.8s var(--ease) 0.55s forwards; }
.path-tile {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  border-radius: var(--radius-card); padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid var(--line); background: var(--bg-raise); position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.path-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(34, 48, 63, 0.10); }
.path-tile h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.path-tile p { color: var(--ink-soft); font-size: 15.5px; margin: 0; max-width: 44ch; }
.path-tile .path-go { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15.5px; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s var(--ease); }
.path-tile:hover .path-go { gap: 14px; }
.path-tile-accent { background: var(--slate); border-color: var(--slate); color: #fff; }
.path-tile-accent p { color: rgba(255, 255, 255, 0.75); }
.path-tile-accent .path-go { color: #e2b26a; }
.path-tile-accent .path-kicker { color: #e2b26a; }
.path-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--accent); }
.path-tile-accent::after {
  content: ""; position: absolute; top: -40%; right: -20%; width: 70%; height: 120%;
  background: radial-gradient(circle, rgba(226, 178, 106, 0.14), transparent 65%); pointer-events: none;
}
@media (max-width: 760px) { .path-tiles { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 60px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 24px; text-align: center; align-items: center; }
.stats-grid > div { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; transition: transform 0.5s var(--ease); }
/* licencja to plakietka, nie liczba — celowo mniejsza, żeby nie konkurować z prawdziwymi statystykami */
.stat-value.stat-badge-value { font-family: var(--font-body); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stat-badge-value::before { content: "✓"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.stat-label { font-size: 14.5px; color: var(--ink-soft); }
.stat-pop { animation: stat-pop 0.5s var(--ease); }
@keyframes stat-pop { 0% { transform: scale(0.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; justify-items: center; gap: 28px; max-width: 320px; margin: 0 auto; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bento-cell {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(34, 48, 63, 0.08); border-color: var(--accent-soft); }
.bento-cell h3 { margin-bottom: 2px; }
.bento-cell p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.bento-wide { grid-column: span 4; }
.bento-tall { grid-column: span 2; }
.bento-half { grid-column: span 3; }
.bento-accent { background: var(--slate); border-color: var(--slate); color: #fff; }
.bento-accent h3 { color: #fff; }
.bento-accent p { color: rgba(255, 255, 255, 0.75); }
.bento-link { font-weight: 600; font-size: 15px; color: var(--accent-dark); margin-top: auto; text-decoration: none; display: inline-block; transition: transform 0.3s var(--ease); }
.bento-cell:hover .bento-link { transform: translateX(6px); }
.bento-accent .bento-link { color: #e2b26a; }
.bento-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-dark); margin-bottom: 6px; }
.bento-accent .bento-icon { background: rgba(255, 255, 255, 0.12); color: #e2b26a; }
@media (max-width: 900px) { .bento-wide, .bento-tall, .bento-half { grid-column: span 6; } }

.bento-uniform { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.bento-uniform .bento-cell { grid-column: auto; min-height: 230px; }
@media (max-width: 900px) { .bento-uniform { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bento-uniform { grid-template-columns: 1fr; } .bento-uniform .bento-cell { min-height: 0; } }

/* ---------- Zasięg ogólnopolski — sądy ---------- */
.courts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.court-chip {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 18px 20px; display: flex; align-items: center; gap: 12px; font-size: 15px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.court-chip:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: 0 10px 26px rgba(34, 48, 63, 0.07); }
.court-chip svg { color: var(--accent); flex: none; }
.court-chip strong { display: block; font-size: 15.5px; }
.court-chip small { color: var(--ink-soft); font-size: 13px; display: block; line-height: 1.4; }
@media (max-width: 900px) { .courts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .courts { grid-template-columns: 1fr; } }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.process-3 { grid-template-columns: repeat(3, 1fr); }
.process-step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent);
  position: absolute; top: -12px; left: 0; background: var(--bg); padding-right: 12px;
}
.section-tint .process-step::before { background: var(--bg-tint); }
.process-step h3 { font-size: 1.15rem; margin-top: 10px; }
.process-step p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .process, .process-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process, .process-3 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem); list-style: none; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform 0.25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 4px 24px; color: var(--ink-soft); max-width: 65ch; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 500; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Band slate ---------- */
.band-slate { background: var(--slate); color: #fff; }
.band-slate h2, .band-slate h3 { color: #fff; }
.band-slate .lead, .band-slate p { color: rgba(255, 255, 255, 0.78); }
.band-slate .eyebrow { color: #e2b26a; }
.band-slate .check-list li { border-color: rgba(255, 255, 255, 0.14); }
.band-slate .check-list li::before { color: #e2b26a; }
.band-slate .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.band-slate .btn-ghost::after { background: rgba(226, 178, 106, 0.18); }
.band-slate .btn-ghost:hover { border-color: #e2b26a; color: #e2b26a; }

/* ---------- CTA section ---------- */
.cta-final { background: var(--slate); color: #fff; border-radius: var(--radius-card); padding: clamp(44px, 7vw, 90px) clamp(24px, 5vw, 80px); text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 160%; background: radial-gradient(circle, rgba(226, 178, 106, 0.13), transparent 62%); pointer-events: none;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.8); max-width: 52ch; margin: 0 auto 28px; }
.cta-final .btn-primary { position: relative; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 14.5px; }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; font-size: 16px; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-input); background: var(--bg-raise); color: var(--ink);
  transition: border-color 0.2s; width: 100%; min-height: 48px;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-field .field-error { color: #a33325; font-size: 13.5px; display: none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #a33325; }
.form-field.invalid .field-error { display: block; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-input); font-size: 15px; display: none; }
.form-status.success { display: block; background: var(--accent-soft); color: var(--accent-dark); }
.form-status.error { display: block; background: #f7e3df; color: #a33325; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.page-head { padding: clamp(128px, 16vw, 195px) 0 clamp(40px, 6vw, 72px); }
.page-head .lead { margin-top: 8px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius-card); object-fit: cover; width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* info card (definicje / "dla kogo") */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 32px); }
.info-card h3 { font-size: 1.15rem; }
.info-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 760px) { .info-cards { grid-template-columns: 1fr; } }

/* licencja badge */
.license-badge {
  display: inline-flex; align-items: center; gap: 12px; background: var(--bg-raise);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 10px 22px 10px 12px;
  font-size: 14.5px; font-weight: 600;
}
.license-badge svg { color: var(--accent); flex: none; }
.license-badge small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12.5px; line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-deep); color: rgba(255, 255, 255, 0.75); margin-top: var(--section-pad); padding: clamp(48px, 7vw, 80px) 0 110px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-family: var(--font-body); }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, 0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); gap: 10px;
}
.mobile-cta .btn { flex: 1; }
@media (max-width: 768px) { .mobile-cta { display: flex; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 460px; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 22px; box-shadow: 0 20px 60px rgba(34, 48, 63, 0.16);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-height: 44px; padding: 8px 20px; font-size: 14.5px; }
@media (max-width: 768px) { .cookie-banner { bottom: calc(74px + env(safe-area-inset-bottom)); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.img-reveal { clip-path: inset(12% 12% 12% 12% round var(--radius-card)); transform: scale(1.06); transition: clip-path 1s var(--ease), transform 1.2s var(--ease); }
.img-reveal.in, .in .img-reveal { clip-path: inset(0 0 0 0 round var(--radius-card)); transform: none; }

/* ---------- Cursor spotlight (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .bento-cell::after, .path-tile::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(176, 115, 31, 0.09), transparent 65%);
    opacity: 0; transition: opacity 0.35s;
  }
  .bento-cell:hover::after, .path-tile:hover::before { opacity: 1; }
  .bento-accent:hover::after, .path-tile-accent:hover::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 65%); }
}

/* ---------- Magnetic buttons ---------- */
.magnetic { transition: transform 0.25s var(--ease); will-change: transform; }

/* ---------- Performance ---------- */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ---------- Google map embed ---------- */
.map-embed { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Mobile: spokojniejsza skala, więcej powietrza ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .display { font-size: clamp(1.85rem, 7.8vw, 2.4rem); }
  h1 { font-size: clamp(1.75rem, 7.2vw, 2.3rem); }
  h2 { font-size: clamp(1.4rem, 5.8vw, 1.85rem); }
  .lead { font-size: 1rem; line-height: 1.7; }
  .stat-value { font-size: clamp(1.7rem, 6.6vw, 2.3rem); }
  .path-tile h2 { font-size: 1.3rem; }
  .path-tile, .bento-cell, .info-card { padding: 22px 20px; }
  .path-tiles, .bento, .info-cards, .courts { gap: 12px; }
  .placeholder-frame { min-height: 260px; }
  .hero { padding-top: clamp(100px, 24vw, 130px); }
  .page-head { padding-top: clamp(104px, 26vw, 140px); }
  .btn-lg { min-height: 52px; padding: 14px 30px; font-size: 16px; }
  .cta-final { padding: 40px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .img-reveal { clip-path: none; transform: none; }
  .magnetic { transform: none !important; }
  .hl > span, .hero .lead, .path-tiles { transform: none; opacity: 1; animation: none; }
}
