/* layout.css — bazowy layout publiczny (tema-niezależny)
   Szablony budują na tym, nie nadpisując go.
   Każdy motyw może importować własne style na wierzchu. */

:root {
  --layout-max: 1140px;
  --layout-padding: 1.5rem;
  --module-gap: 4rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: #1e293b;
  background: #fff;
}

/* Module wrapper */
.module-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: var(--module-gap) var(--layout-padding);
}

/* Hero */
.module-hero {
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  background: #1e293b; color: #fff;
  position: relative; overflow: hidden;
}
.module-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
.module-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--layout-max);
  padding: 3rem var(--layout-padding);
  width: 100%;
}
.hero-heading { font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .85; margin-bottom: 1.75rem; max-width: 600px; }
.hero-btn {
  display: inline-block; padding: .75rem 2rem;
  background: #6366f1; color: #fff; text-decoration: none;
  border-radius: 6px; font-weight: 600; font-size: 1rem;
  transition: background .2s;
}
.hero-btn:hover { background: #4f52d9; }

/* CTA button */
.cta-btn {
  display: inline-block; padding: .75rem 2rem;
  background: #fff; color: #6366f1;
  border-radius: 6px; font-weight: 700;
  text-decoration: none; transition: opacity .2s;
}
.cta-btn:hover { opacity: .9; }

/* Contact form */
.cf-field { margin-bottom: 1rem; }
.cf-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
.cf-field input, .cf-field textarea {
  width: 100%; padding: .6rem .9rem;
  border: 1px solid #cbd5e1; border-radius: 6px;
  font-family: inherit; font-size: 1rem;
  transition: border-color .15s; outline: none;
}
.cf-field input:focus, .cf-field textarea:focus { border-color: #6366f1; }
.cf-field textarea { resize: vertical; }
.cf-submit {
  padding: .7rem 2rem; background: #6366f1; color: #fff;
  border: none; border-radius: 6px; font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: background .2s;
}
.cf-submit:hover { background: #4f52d9; }
.cf-success { padding: 1rem 1.5rem; background: #f0fdf4; border: 1px solid #86efac; border-radius: 6px; color: #16a34a; }

/* Typography */
.article-content h1, .article-content h2, .article-content h3 { margin: 1.5em 0 .5em; line-height: 1.3; }
.article-content p { margin-bottom: 1em; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1em; }
.article-content blockquote { border-left: 3px solid #6366f1; padding: .5rem 1rem; margin: 1rem 0; color: #64748b; font-style: italic; }
.article-content pre { background: #f1f5f9; padding: 1rem; border-radius: 6px; overflow-x: auto; font-size: .875rem; margin-bottom: 1em; }
.article-content img { max-width: 100%; border-radius: 6px; }
.article-content a { color: #6366f1; }

@media (max-width: 768px) {
  .module-inner { padding: 2rem var(--layout-padding); }
  .hero-heading { font-size: 1.75rem; }
}
