/* ==========================================================================
   GastroSanum Polska - Centrum Profilaktyki i Zdrowia Przewodu Pokarmowego
   Modern Clinical Medical Design System 2026
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --navy-dark: #0b192c;
  --navy-deep: #07101d;
  --navy-card: #152744;
  --emerald: #059669;
  --emerald-light: #d1fae5;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --rose: #e11d48;
  --rose-light: #ffe4e6;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--navy-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */
.top-bar {
  background-color: var(--navy-deep);
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-weight: 600;
}

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

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.main-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.06);
  border-bottom: 1px solid var(--slate-200);
}

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

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

.brand-logo img, .brand-logo svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-dark);
}

.brand-text h1 span {
  color: var(--primary);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary), #0369a1);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--slate-800);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--slate-200);
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid #bae6fd;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--navy-dark);
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  margin-bottom: 24px;
  line-height: 1.65;
}

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

.stat-item h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
}

.stat-item p {
  font-size: 0.78rem;
  color: var(--slate-600);
  font-weight: 500;
  margin-top: 4px;
}

.hero-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-card-features {
  list-style: none;
  margin: 18px 0;
}

.hero-card-features li {
  font-size: 0.88rem;
  color: var(--slate-700);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card-features li i {
  color: var(--emerald);
  font-size: 0.95rem;
}

.btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--navy-dark), #1e3a8a);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(11, 25, 44, 0.25);
  border: none;
  cursor: pointer;
}

.btn-hero:hover {
  background: linear-gradient(135deg, #0f274a, #1d4ed8);
  transform: translateY(-1px);
}

/* ==========================================================================
   Quiz / Interactive Assessment Box
   ========================================================================== */
.assessment-section {
  padding: 48px 0 64px;
}

.quiz-container-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.quiz-header-bar {
  background: var(--navy-dark);
  color: #ffffff;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px solid #0284c7;
}

.quiz-header-info h2 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.quiz-header-info p {
  color: #94a3b8;
  font-size: 0.85rem;
}

.quiz-progress-track {
  width: 220px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 8px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  width: 14%;
  transition: width 0.4s ease;
}

.quiz-inner-body {
  padding: 36px 32px;
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-hover);
  margin-bottom: 12px;
}

.step-question-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-question-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 24px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.quiz-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-radio-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.quiz-radio-card.selected {
  border-color: var(--primary);
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quiz-radio-card.selected .radio-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.radio-circle i {
  font-size: 10px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.quiz-radio-card.selected .radio-circle i {
  opacity: 1;
  transform: scale(1);
}

.radio-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--slate-800);
  margin-bottom: 3px;
}

.radio-content span {
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.4;
  display: block;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
}

.btn-secondary {
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0369a1);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==========================================================================
   Report & Results Presentation
   ========================================================================== */
.report-result-card {
  background: linear-gradient(145deg, #ffffff, #f0f9ff);
  border: 2px solid #bae6fd;
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}

.report-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #bfdbfe;
}

.score-badge-box {
  background: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid #93c5fd;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.score-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.score-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-600);
  margin-top: 4px;
}

.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-card p {
  font-size: 0.78rem;
  color: var(--slate-600);
  line-height: 1.45;
}

/* ==========================================================================
   Educational Guide / Scientific Phytotherapy Section
   ========================================================================== */
.scientific-section {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.section-h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 36px;
}

.herb-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.herb-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.herb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.herb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.herb-badge.badge-blue { background: #e0f2fe; color: #0369a1; }
.herb-badge.badge-amber { background: #fef3c7; color: #b45309; }
.herb-badge.badge-emerald { background: #d1fae5; color: #047857; }
.herb-badge.badge-rose { background: #ffe4e6; color: #be123c; }

.herb-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.herb-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 14px;
}

.herb-compound {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--slate-700);
}

.herb-compound strong {
  color: var(--navy-dark);
}

/* ==========================================================================
   Interactive Map / Regional Risk Poland GIS
   ========================================================================== */
.regional-stats-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 48px;
}

.regional-header {
  margin-bottom: 24px;
}

.regional-header h3 {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.regional-header p {
  color: #94a3b8;
  font-size: 0.88rem;
}

.region-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.region-pill-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 14px;
}

.region-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  display: block;
  margin-bottom: 4px;
}

.region-rate {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
}

.region-note {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   Accordion / FAQ
   ========================================================================== */
.faq-accordion {
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

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

.faq-question i {
  font-size: 0.85rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: var(--navy-deep);
  color: #94a3b8;
  padding: 56px 0 28px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-disclaimer-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #94a3b8;
}

.footer-disclaimer-card strong {
  color: #f59e0b;
}

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

/* ==========================================================================
   Cookie Banner & Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 25, 44, 0.97);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 16px 24px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}

.cookie-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

.cookie-content button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .herb-cards-grid {
    grid-template-columns: 1fr;
  }
  .region-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .report-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quiz-inner-body {
    padding: 24px 18px;
  }
  .scientific-section {
    padding: 24px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
}
