/* Roboprawnik — strona informacyjna. Kolorystyka z aplikacji. */
:root {
  --navy: #1a2744;
  --navy-2: #243352;
  --green-dark: #1e541d;
  --green: #2e7d5b;
  --green-light: #e8f5ee;
  --gold: #d4a843;
  --text: #1f2933;
  --muted: #5b6675;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e3e7ec;
  --radius: 14px;
  --max: 1140px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 1.2rem; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.prose p { font-size: 1.07rem; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #cfd5dd; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }

/* Nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(26,39,68,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: .12em; color: var(--green-dark); font-size: .95rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--navy); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--green); text-decoration: none; }
.lang-switch { font-weight: 700 !important; letter-spacing: .08em; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 6px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; background: #fff; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-canvas canvas { display: block; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 3rem; width: 100%; padding-top: 4.5rem; padding-bottom: 4rem; }
.hero-text { flex: 1 1 560px; max-width: 660px; }
.hero-text h1 { color: var(--green-dark); margin-bottom: 1rem; }
.hero-text p { font-size: 1.08rem; color: var(--text); }
.hero-slot { flex: 0 0 420px; height: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* Sekcje */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #d8deea; }
.section.dark h2 { color: #fff; }
.section.dark .prose h3 { color: #fff; margin-top: 1.8rem; }
.section.dark .prose p { color: #d8deea; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

.status { background: #fff; color: var(--text); border-radius: var(--radius); padding: 1.8rem 2rem; margin-top: 2rem; }
.section.dark .status h3 { color: var(--navy); }
.section.dark .status p { color: var(--text); }
.status .btn { margin-top: .4rem; }

/* Założyciele */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 200px 1fr; }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person > div { padding: 1.6rem 1.7rem; }
.person h3 { margin-bottom: .15rem; }
.person .role { color: var(--green); font-weight: 600; font-size: .92rem; margin-bottom: .8rem; }
.person p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Kontakt */
.contact { padding-top: 0; }
.contact-box {
  background: linear-gradient(135deg, var(--green-dark), var(--navy) 70%); color: #e6ebf3; border-radius: 20px;
  padding: 3rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
}
.contact-box h2 { color: #fff; }
.contact-box p { color: #d4dbe8; font-size: 1.05rem; margin: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.muted-light { color: #b9c3d6 !important; font-size: .95rem; }

/* Stopka */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 1.6rem 0; font-size: .88rem; color: var(--muted); }
.footer-bottom { display: flex; justify-content: flex-end; gap: 2rem; flex-wrap: wrap; }
.footer-bottom p:last-child { margin: 0; white-space: nowrap; }

/* Responsywność */
@media (max-width: 1000px) {
  .hero-slot { flex-basis: 320px; height: 400px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem 20px 1.4rem; gap: .2rem; box-shadow: 0 16px 30px rgba(26,39,68,.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 0; font-size: 1.05rem; }
  .lang-switch { align-self: flex-start; }
  .hero-inner { flex-direction: column; align-items: flex-start; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-slot, .hero-canvas { display: none; }
  .team { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person img { aspect-ratio: 4 / 3; object-position: center 20%; }
  .contact-box { grid-template-columns: 1fr; padding: 2.2rem; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn-lg { width: 100%; white-space: normal; text-align: center; }
  .footer-bottom p:last-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
