/* ==========================================================================
   MetaboHarmonia Polska - Główne Style CSS
   Projekt dedykowany: Edukacyjny Portal o Zdrowym Metabolizmie
   Stylistyka: Nowoczesny, medyczno-wellnessowy, wysoki trust dla Google Ads
   ========================================================================== */

:root {
  --primary: #107b5a;
  --primary-hover: #0c6146;
  --primary-light: #e6f4ef;
  --secondary: #244b5c;
  --accent: #2e8b57;
  --accent-warm: #d97706;
  --accent-hover: #b45309;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-surface: #f1f5f9;
  --border-light: #e2e8f0;
  --border-focus: #107b5a;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container-width: 1180px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   UKŁAD STRONY & KONTENERY
   ========================================================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.section-alt {
  background-color: var(--bg-surface);
}

.section-dark {
  background-color: #0f2724;
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
  margin: 12px 0;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BELKI INFORMACYJNE & TRUST BARS (GOOGLE ADS COMPLIANCE)
   ========================================================================== */

.editorial-bar {
  background-color: #0d4638;
  color: #d1fae5;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 15px;
  line-height: 1.4;
}

.editorial-bar a {
  color: #a7f3d0;
  text-decoration: underline;
  font-weight: 600;
}

.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* ==========================================================================
   NAGŁÓWEK & MENU NAWIGACYJNE
   ========================================================================== */

.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #107b5a 0%, #2e8b57 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 123, 90, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--secondary);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-nav {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   PRZYCISKI & ELEMENTY UI
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-outline-white {
  background-color: transparent;
  border-color: #cbd5e1;
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background-color: var(--accent-warm);
  color: #ffffff !important;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  background-color: #e0f2fe;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-mint {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-accent {
  background-color: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   HERO SZEKCJA
   ========================================================================== */

.hero {
  padding: 60px 0;
  background: linear-gradient(180deg, #edf7f3 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-highlight {
  color: var(--primary);
  position: relative;
}

.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin: 16px 0;
  letter-spacing: -0.5px;
}

.hero-lead {
  font-size: 1.15rem;
  color: #4b5563;
  margin-bottom: 26px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

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

.hero-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.hero-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
  background-color: #d1fae5;
  padding: 4px 10px;
  border-radius: 9999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-feature-item {
  display: flex;
  gap: 14px;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SIATKA KART I INFORMACJE
   ========================================================================== */

.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #a7f3d0;
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.info-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.info-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.info-card-list {
  list-style: none;
  font-size: 0.85rem;
  color: #4b5563;
}

.info-card-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.info-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   INTERAKTYWNY TEST METABOLICZNY (QUIZ)
   ========================================================================== */

.quiz-container {
  max-width: 760px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.quiz-header {
  background: linear-gradient(135deg, #107b5a 0%, #1a5647 100%);
  color: #ffffff;
  padding: 24px 30px;
}

.quiz-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.quiz-header p {
  font-size: 0.88rem;
  color: #d1fae5;
}

.quiz-progress-wrapper {
  background-color: #e2e8f0;
  height: 6px;
  width: 100%;
}

.quiz-progress-bar {
  background-color: var(--accent-warm);
  height: 100%;
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-body {
  padding: 30px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-question-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.quiz-question-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.quiz-option input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--primary);
}

.quiz-option-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.quiz-step-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-result-box {
  text-align: center;
  padding: 20px 10px;
}

.result-badge {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 10px;
}

.result-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.result-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0%, var(--primary) 78%, #e2e8f0 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

.result-score-inner {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-score-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.result-score-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.result-summary-card {
  text-align: left;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--border-light);
}

.result-summary-card h4 {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.result-summary-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ==========================================================================
   KALKULATOR ENERGETYCZNY BMR & TDEE
   ========================================================================== */

.calc-card {
  max-width: 960px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 34px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 123, 90, 0.15);
}

.calc-results-panel {
  background: linear-gradient(180deg, #f0fdf4 0%, #e6f7ef 100%);
  border-radius: var(--radius-md);
  border: 1px solid #bbf7d0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-item {
  margin-bottom: 16px;
}

.calc-result-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
  letter-spacing: 0.5px;
}

.calc-result-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin: 6px 0;
}

.calc-macro-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid #bbf7d0;
  margin-top: 14px;
}

.macro-box {
  text-align: center;
}

.macro-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.macro-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

/* ==========================================================================
   KARTY ARTYKUŁÓW I ŻYWNOŚCI
   ========================================================================== */

.article-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-img-wrap {
  position: relative;
  height: 190px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-img {
  transform: scale(1.05);
}

.article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--primary);
  text-transform: uppercase;
}

.article-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-title a {
  color: var(--secondary);
}

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

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.article-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   SEKCJA FAQ (AKORDEON)
   ========================================================================== */

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: #a7f3d0;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px 22px;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   OPINIE / TESTIMONIALS
   ========================================================================== */

.testimonial-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: #374151;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.author-info h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.newsletter-box {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.newsletter-box p {
  font-size: 0.96rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background-color: #1e293b;
  color: #ffffff;
  outline: none;
  font-size: 0.95rem;
}

.newsletter-input:focus {
  border-color: #38bdf8;
}

/* ==========================================================================
   STOPKA (FOOTER) & COMPLIANCE
   ========================================================================== */

.footer {
  background-color: #0c1a18;
  color: #94a3b8;
  padding: 60px 0 24px 0;
  font-size: 0.88rem;
}

.footer-disclaimer-banner {
  background-color: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 46px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}

.footer-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #94a3b8;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #34d399;
}

/* ==========================================================================
   COOKIE BANNER & POWRÓT NA GÓRĘ
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background-color: #0f172a;
  color: #f1f5f9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  z-index: 9999;
  font-size: 0.85rem;
  border: 1px solid #334155;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: background-color 0.2s;
}

.scroll-top-btn.show {
  display: flex;
}

.scroll-top-btn:hover {
  background-color: var(--primary-hover);
}

.sr-only-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   STRONY PODSTRONY (ARTYKUŁY, PRZEPISY, O NAS, KONTAKT)
   ========================================================================== */

.page-header {
  background: linear-gradient(135deg, #107b5a 0%, #1c5344 100%);
  color: #ffffff;
  padding: 55px 0 45px 0;
  text-align: center;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 1.05rem;
  color: #d1fae5;
  max-width: 650px;
  margin: 0 auto;
}

.text-content-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.text-content-card h2 {
  font-size: 1.45rem;
  color: var(--secondary);
  margin: 28px 0 12px 0;
}

.text-content-card h2:first-child {
  margin-top: 0;
}

.text-content-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 20px 0 8px 0;
}

.text-content-card p {
  margin-bottom: 16px;
  line-height: 1.65;
  color: #374151;
}

.text-content-card ul, .text-content-card ol {
  margin: 12px 0 20px 24px;
  color: #374151;
}

.text-content-card li {
  margin-bottom: 8px;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .cards-grid-4, .cards-grid-3, .cards-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-items {
    font-size: 0.76rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .text-content-card {
    padding: 24px 18px;
  }
}
