:root {
  --max-width: 760px;
  --max-width-wide: 1100px;
  --fg: #1f1c19;
  --muted: #5f574d;
  --accent: #8a5a3d;
  --accent-soft: #f7f0ea;
  --rule: #e2dbd1;

  /* Typografia — te same rodziny, co na stronie kursu o archetypach, żeby
     obie witryny Marcina brzmiały jednym głosem. Świadomie BEZ Google Fonts:
     zewnętrzny host czcionek wysyła adresy IP odwiedzających do Google, co
     przy polskich klientach jest osobnym wątkiem RODO i kolejną rzeczą do
     opisania w polityce prywatności. Te kroje są na maszynach użytkowników. */
  --font-tekst: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-tekst);
  font-size: 18px;
  color: var(--fg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ── Nagłówek: tytuł i podtytuł do LEWEJ, jak na starej stronie ──────── */

.site-header {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.25rem;
  text-align: left;
}

.site-header .logo {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}

.site-header .tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

/* ── Menu: pod obrazkiem, nie nad ────────────────────────────────────── */

.main-nav {
  max-width: var(--max-width-wide);
  margin: 0 auto 2.5rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.main-nav strong {
  color: var(--fg);
  font-weight: 600;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 0.4rem 1rem;
}

.dropdown-content a:hover {
  background: #f7f4f1;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

main h1 {
  margin-top: 0;
}

.content-grid {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, var(--max-width)) 280px;
  gap: 2.5rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 820px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

.todo {
  background: #fff8e6;
  border: 1px dashed #e0c26b;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #7a5f00;
}

.site-footer {
  border-top: 1px solid #eee;
  padding: 1.5rem 1rem;
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Strona główna: układ szerszy niż strony tekstowe ---------- */

body.home main {
  max-width: var(--max-width-wide);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 0.4rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.hero .cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* fade/slide-in on load, staggered */
.hero h1, .hero .lead, .hero .cta-row {
  opacity: 0;
  animation: heroIn 0.7s ease forwards;
}
.hero h1 { animation-delay: 0.05s; }
.hero .lead { animation-delay: 0.2s; }
.hero .cta-row { animation-delay: 0.35s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sekcje ze scroll-reveal ---------- */

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Statystyki ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 2rem 1rem;
}

.stat .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Karty (wydarzenia / oferta) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.card .date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Wideo ---------- */

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Opinie ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

blockquote.quote {
  margin: 0;
  padding: 1.25rem;
  background: #fafafa;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-style: italic;
}

blockquote.quote footer {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  border: none;
  padding: 0;
}

/* ---------- Pasek CTA na końcu ---------- */

.cta-band {
  text-align: center;
  background: var(--fg);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
}

.cta-band h2 {
  color: #fff;
  margin-top: 0;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero .cta-row, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Kopia żywej strony — dodatki 04 IX 2026 ---------- */

/* ⚠️ Reguły centrujące nagłówek USUNIĘTE 4 IX 2026 wieczorem — Marcin:
   „żeby tytuł i podtytuł były wyrównane do lewej, jak było na starej stronie".
   Wyrównanie i typografia nagłówka mieszkają teraz na górze tego pliku,
   przy .site-header. Tu zostaje sam banner. */

.site-banner {
  max-width: var(--max-width-wide);
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.site-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

article.page-content {
  max-width: var(--max-width);
}

article.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Nagłówki w kroju szeryfowym, ciaśniejszy interlinia — przy dużym stopniu
   pisma domyślne 1.6 rozjeżdża tytuły. */
article.page-content h1 {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

article.page-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
}

article.page-content p {
  margin: 0 0 1.1em;
}

article.page-content ul, article.page-content ol {
  padding-left: 1.3rem;
}

article.page-content li {
  margin-bottom: 0.4em;
}

article.page-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

article.page-content a:hover {
  border-bottom-color: var(--accent);
}

/* Sidebar i stopka drobniejszym, bezszeryfowym — mają nie konkurować
   z treścią o uwagę. */
.sidebar, .site-footer {
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.events h2 {
  font-family: var(--font-tekst);
  font-size: 1.1rem;
  font-weight: 600;
}

.events {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.events-list li {
  padding: 0.4rem 0;
}

.events-list a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.events-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-fallback {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-fallback label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}

.form-fallback input[type="text"],
.form-fallback input[type="email"],
.form-fallback textarea {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 0.6rem 0.75rem;
  margin: 0 0 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.form-fallback input[type="text"]:focus,
.form-fallback input[type="email"]:focus,
.form-fallback textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-fallback textarea {
  resize: vertical;
}

.form-zgoda {
  max-width: 420px;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-status-ok {
  color: #2a6b3f;
}

.form-status-error {
  color: #a33;
}

.gap-note {
  background: #fff8e6;
  border: 1px dashed #e0c26b;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: #7a5f00;
  border-radius: 6px;
  margin: 1rem 0;
}
