/* NeuroZdrowie.pl - Professional Medical & Neuropathy Educational Portal */
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3258;
  --primary-light: #e8f2fa;
  --accent: #0284c7;
  --accent-teal: #0d9488;
  --accent-teal-light: #f0fdfa;
  --success: #16a34a;
  --warning: #d97706;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 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: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::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;
}

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

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

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

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

/* TOP BAR */
.top-bar {
  background-color: #0c233c;
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: #38bdf8;
}

.badge-tag {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* HEADER & NAV */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary-dark);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.logo-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 4px;
  position: relative;
  font-size: 15px;
}

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

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

.header-cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(15, 76, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 76, 129, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-main);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #0f4c81, #0284c7);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0a3258, #0369a1);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.btn-teal {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #ffffff;
}

.btn-teal:hover {
  background: linear-gradient(135deg, #0f766e, #047857);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid #bae6fd;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 17px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-image-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.badge-text-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.badge-text-sub {
  font-size: 12px;
  color: #64748b;
}

/* SECTION STYLING */
.section {
  padding: 60px 0;
}

.section-alt {
  background-color: #f1f5f9;
}

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

.section-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-teal);
  background: var(--accent-teal-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: #64748b;
}

/* SYMPTOMS CARDS */
.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.symptom-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.symptom-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.symptom-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.symptom-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.symptom-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
}

.symptom-checklist {
  list-style: none;
  margin-bottom: 18px;
}

.symptom-checklist li {
  font-size: 13px;
  color: #334155;
  padding: 4px 0 4px 20px;
  position: relative;
}

.symptom-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0d9488;
  font-weight: bold;
}

.symptom-recommendation {
  background: #f8fafc;
  border-left: 3px solid #0d9488;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  color: #475569;
}

.symptom-recommendation strong {
  color: #0f172a;
  display: block;
  margin-bottom: 2px;
}

/* ANATOMY & PATHOLOGY SECTION */
.anatomy-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.anatomy-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.anatomy-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anatomy-text h3 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.anatomy-text p {
  color: #475569;
  font-size: 15px;
  margin-bottom: 16px;
}

.anatomy-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.point-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.point-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
}

.point-item strong {
  color: #0f172a;
  font-size: 14px;
  display: block;
}

.point-item span {
  color: #64748b;
  font-size: 13px;
}

/* NUTRIENTS & PHYTOTHERAPY */
.nutrients-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.nutrients-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.nutrients-img-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.ingredients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ingredient-box {
  background: #ffffff;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ingredient-box:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
}

.ing-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0d9488;
  background: #ccfbf1;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.ing-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.ing-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* INTERACTIVE CALCULATOR */
.calc-card {
  background: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.calc-questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.calc-q-group label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 8px;
}

.calc-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.calc-option-label:hover {
  background: #e2e8f0;
}

.calc-option-label input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--primary);
}

.calc-result-box {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 24px;
  text-align: center;
}

.calc-score-val {
  font-size: 32px;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 6px;
}

.calc-summary-text {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 16px;
}

/* EXPERT EDITORIAL QUOTE */
.expert-box {
  background: linear-gradient(135deg, #0c233c 0%, #1e3a5f 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.expert-avatar-wrap img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.2);
}

.expert-quote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #f1f5f9;
}

.expert-name {
  font-size: 18px;
  font-weight: 700;
  color: #38bdf8;
}

.expert-role {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.expert-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.expert-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #cbd5e1;
}

/* MYTHS VS FACTS */
.myths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.myth-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.myth-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.myth-text {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 14px;
}

.fact-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.fact-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-question {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-toggle-icon {
  font-size: 18px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 24px 20px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.6;
  display: none;
}

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

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

/* QUIZ PAGE SPECIFICS */
.quiz-wrapper {
  max-width: 760px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.quiz-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #0f4c81, #0d9488);
  transition: width 0.3s ease;
}

.quiz-step-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-choice-btn {
  text-align: left;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-choice-btn:hover {
  background: #f0f7ff;
  border-color: #0284c7;
  color: #0284c7;
}

/* FOOTER */
.site-footer {
  background-color: #0a1c2e;
  color: #94a3b8;
  padding: 50px 0 24px;
  font-size: 14px;
  border-top: 3px solid #0d9488;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-info-text {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.medical-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #f59e0b;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.medical-disclaimer-box strong {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  padding: 16px 0;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 13.5px;
  color: #334155;
  max-width: 800px;
}

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

.btn-cookie-accept {
  background: #0f4c81;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-cookie-settings {
  background: #e2e8f0;
  color: #1e293b;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-grid, .anatomy-split, .nutrients-container, .expert-box {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  .ingredients-grid {
    grid-template-columns: 1fr;
  }
}
