/* Style bazowe i zmienne */
:root {
  --primary: #108a70;
  --primary-hover: #0c6e59;
  --primary-light: #e8f5f1;
  --primary-glow: rgba(16, 138, 112, 0.15);
  --accent: #2a75d3;
  --text-main: #212529;
  --text-muted: #596573;
  --bg-body: #f8fafb;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #108a70;
  --error: #d9383a;
  --error-bg: #fdf2f2;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(16, 50, 70, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 50, 70, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nawigacja */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #12332a;
}

.logo svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background-color: var(--primary-light);
  color: var(--primary) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background-color: #d8ece5;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text-main);
}

.menu-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, #edf6f3 0%, var(--bg-body) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e2f2ed;
  color: #0b604d;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge svg {
  width: 16px;
  height: 16px;
}

h1 {
  font-size: 2.35rem;
  line-height: 1.25;
  font-weight: 800;
  color: #122822;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(16, 138, 112, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #108a70 0%, #0d755f 100%);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0e7861 0%, #0a5d4b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 138, 112, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* Główne artykuły i sekcje */
.main-content {
  padding: 48px 0;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
}

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-section:hover {
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.section-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.section-icon svg {
  width: 28px;
  height: 28px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #122822;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.content-section p {
  color: #3b4856;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.info-card {
  background: #f8fafb;
  border: 1px solid #ebf0f4;
  border-radius: var(--radius-md);
  padding: 18px;
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a322c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Call to action mid-article banner */
.mid-cta-banner {
  background: linear-gradient(135deg, #108a70 0%, #0d6d59 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin: 44px 0;
  box-shadow: var(--shadow-md);
}

.mid-cta-banner h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.mid-cta-banner p {
  font-size: 1.02rem;
  opacity: 0.95;
  max-width: 620px;
  margin: 0 auto 22px;
}

.mid-cta-banner .btn {
  background: #ffffff;
  color: #108a70 !important;
  font-weight: 700;
}

.mid-cta-banner .btn:hover {
  background: #f4faf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Sekcja FAQ */
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  background: #fafcfc;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

details[open] {
  background: #ffffff;
  border-color: #b7ded5;
}

summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: #172a24;
  cursor: pointer;
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  margin-left: 12px;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Notka informacyjna (disclaimer) */
.disclaimer-box {
  background: #f5f7f9;
  border-left: 4px solid #8c9ba5;
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  padding: 18px 22px;
  margin: 36px 0;
  font-size: 0.92rem;
  color: #556270;
  line-height: 1.6;
}

.disclaimer-box strong {
  color: #2c3844;
}

/* Sekcja Formularza */
.form-section {
  scroll-margin-top: 90px;
  background: #ffffff;
  border: 2px solid #c9e8df;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.form-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}

.form-header h2 {
  font-size: 1.85rem;
  color: #10362c;
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.lead-form {
  max-width: 540px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #22332e;
  margin-bottom: 8px;
}

.required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control.input-error {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

.error-message.show {
  display: block;
}

.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  padding: 15px 24px;
  font-size: 1.05rem;
}

/* Stopka */
.site-footer {
  background: #142320;
  color: #a4b4b0;
  padding: 48px 0 32px;
  margin-top: 60px;
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 380px;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: #cbdad5;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: #7d8f8a;
}

/* Responsywność */
@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 8px 0;
  }

  .nav-cta {
    text-align: center;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .content-section, .faq-section, .form-section {
    padding: 24px 20px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
