/**
 * AURORA ARTHRO — Design Preset: «Швейцарська біоклініка» & Alpine Biotech
 * Master Stylesheet
 */

:root {
  /* Color Palette */
  --color-primary: #0f766e;        /* Deep Clinical Spruce/Teal */
  --color-primary-dark: #0a4f4a;   /* Deep Alpine Shadow */
  --color-primary-light: #14b8a6;  /* Vitality Cyan-Teal */
  --color-accent-blue: #0891b2;    /* Precision Arctic Cyan */
  --color-accent-cyan: #06b6d4;    /* Light Cyan Glow */
  --color-accent-amber: #c59b27;   /* Noble Alpine Gold */
  --color-accent-gold-soft: #fef3c7;
  
  --color-bg-white: #ffffff;
  --color-bg-light: #f4f8fb;       /* Clinical Ice Tint */
  --color-bg-card: #ffffff;
  --color-bg-dark: #0b1724;        /* Deep Titanium Slate */
  --color-bg-dark-card: #132337;
  
  --color-slate-900: #0f172a;      /* Headings */
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;      /* Body Text */
  --color-slate-500: #64748b;      /* Muted Notes */
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;      /* Borders */
  --color-slate-100: #f1f5f9;

  --color-border: #e2e8f0;
  --color-border-glow: rgba(15, 118, 110, 0.25);
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px -12px rgba(15, 23, 42, 0.16);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-white);
  color: var(--color-slate-700);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: 860px;
}

/* Trust Header Strip */
.trust-strip {
  background-color: var(--color-bg-dark);
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item svg {
  color: var(--color-accent-cyan);
  flex-shrink: 0;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: 72px;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-slate-900);
}

.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
  flex-shrink: 0;
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-slate-900);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.2;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-slate-700);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

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

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-slate-600);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
  min-height: 32px;
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--color-slate-900);
  box-shadow: var(--shadow-sm);
}

/* Cart Trigger */
.cart-trigger {
  position: relative;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-slate-800);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-trigger:hover {
  background-color: #ffffff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--color-accent-amber), #b45309);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Burger Button */
.burger-btn {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.burger-line {
  width: 22px;
  height: 2px;
  background-color: var(--color-slate-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawers: Navigation & Cart */
.mobile-drawer-overlay,
.cart-drawer-overlay,
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 23, 36, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer-overlay.active,
.cart-drawer-overlay.active,
.cert-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer,
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background-color: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.active,
.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header,
.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-slate-500);
  cursor: pointer;
  padding: 0.5rem;
}

.drawer-nav {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
  overflow-y: auto;
}

.drawer-nav .nav-link {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--color-bg-light);
  padding-bottom: 0.75rem;
}

.drawer-footer,
.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

/* Cart Drawer Items */
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 0.2rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.qty-btn {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
}

.qty-val {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  min-height: 48px;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.08rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-teal {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

.btn-teal:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-accent-amber), #b45309);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  color: #ffffff;
  transform: translateY(-1px);
}

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

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

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--color-slate-300);
  color: var(--color-slate-800);
}

.btn-outline-dark:hover {
  background-color: var(--color-slate-100);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-clinical {
  background-color: #e6fffa;
  color: var(--color-primary);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.badge-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-accent-cyan);
}

.badge-accent {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Section Structures */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

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

.section-bg-dark {
  background-color: var(--color-bg-dark);
  color: #f8fafc;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.section-bg-dark .section-title {
  color: #ffffff;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-slate-600);
  line-height: 1.7;
}

.section-bg-dark .section-desc {
  color: #94a3b8;
}

/* Hero Section (index.html) */
.hero-manifesto {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 50%),
              linear-gradient(180deg, #ffffff 0%, var(--color-bg-light) 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-badge-row {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-slate-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-slate-600);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-primary);
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

.author-info p {
  font-size: 0.82rem;
  color: var(--color-slate-500);
  line-height: 1.35;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-floating-pill {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(11, 23, 36, 0.85);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

/* Callout Box */
.quote-box {
  background: #ffffff;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
}

.quote-box blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-slate-800);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.quote-box cite {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  font-style: normal;
}

/* Infographic Anatomy Grid */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.anatomy-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.anatomy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-glow);
}

.anatomy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.anatomy-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.anatomy-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.anatomy-card p {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.65;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-val {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-lbl {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.35rem;
}

.stat-sub {
  font-size: 0.85rem;
  color: var(--color-slate-500);
  line-height: 1.4;
}

/* Navigation Hub Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.hub-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.hub-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-bg-light), #e6fffa);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hub-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.hub-card p {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}

.hub-link-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Storia (storia.html) Timeline Diary */
.diary-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin: 3rem 0;
}

.diary-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.diary-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  border: 1px solid var(--color-border);
}

.diary-day {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.diary-day-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-slate-500);
  margin-top: 0.25rem;
}

.diary-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.diary-body p {
  font-size: 1rem;
  color: var(--color-slate-600);
  line-height: 1.7;
}

/* Formula (formula.html) Matrix */
.formula-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.formula-bottle-showcase {
  text-align: center;
  position: relative;
}

.formula-bottle-img {
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(11, 23, 36, 0.4);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.matrix-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.matrix-card-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.matrix-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
}

.matrix-card p {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.matrix-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.matrix-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-slate-800);
}

.matrix-checklist svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Package Options (NO prices on formula page) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.pkg-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pkg-card.popular {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pkg-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pkg-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pkg-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.35rem;
}

.pkg-sub {
  font-size: 0.85rem;
  color: var(--color-slate-500);
  font-weight: 600;
}

.pkg-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin: 1rem auto;
  border-radius: var(--radius-md);
}

.pkg-desc {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 2rem;
  flex: 1;
}

/* Interactive Center (test-interattivi.html) */
.test-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.test-tab-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-slate-700);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.test-tab-btn.active,
.test-tab-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.test-tab-panel {
  display: none;
}

.test-tab-panel.active {
  display: block;
}

/* Water Calculator Card */
.calc-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.calc-control-group {
  margin-bottom: 2rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.calc-val-pill {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  background-color: var(--color-bg-light);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

.calc-slider {
  width: 100%;
  height: 8px;
  background: var(--color-slate-200);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.4);
  border: 3px solid #ffffff;
}

.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-light);
  color: var(--color-slate-800);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.calc-result-box {
  background: linear-gradient(135deg, var(--color-bg-dark), #162638);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: #ffffff;
  margin-top: 2rem;
  text-align: center;
}

.calc-res-big {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent-cyan);
  line-height: 1;
  margin: 0.5rem 0 1.5rem;
  letter-spacing: -0.02em;
}

.calc-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.schedule-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.schedule-item span {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.schedule-item strong {
  font-size: 1.25rem;
  color: #ffffff;
}

/* WOMAC Quiz */
.quiz-container {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.quiz-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background-color: var(--color-slate-200);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-blue));
  width: 0%;
  transition: width var(--transition-normal);
}

.quiz-question-card {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.quiz-q-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: var(--color-bg-light);
  font-size: 0.95rem;
  font-weight: 500;
}

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

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

.quiz-result-card {
  display: none;
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.quiz-score-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

/* Symptoms Checklist */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.symptom-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.symptom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.symptom-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.symptom-desc {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  margin-top: 0.75rem;
  line-height: 1.55;
}

.symptom-sol {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

.symptom-card.expanded .symptom-sol {
  display: block;
}

/* Diplomas & Certificates (certificati.html) */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cert-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 8px solid #f8fafc;
  outline: 1px solid #cbd5e1;
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-image: radial-gradient(#f1f5f9 1px, transparent 1px);
  background-size: 20px 20px;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  outline-color: var(--color-primary);
}

.cert-ornament-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-accent-amber);
}

.cert-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.cert-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.cert-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.cert-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.cert-inner {
  text-align: center;
}

.cert-crest-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid var(--color-accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
}

.cert-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cert-inst {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-500);
  margin-bottom: 1rem;
}

.cert-protocol {
  font-family: monospace;
  font-size: 0.82rem;
  background: var(--color-slate-100);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--color-slate-700);
}

.cert-desc {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cert-signatures {
  display: flex;
  justify-content: space-around;
  border-top: 1px dashed #cbd5e1;
  padding-top: 1rem;
  margin-top: 1rem;
}

.sig-block {
  text-align: center;
}

.sig-line {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 1.35rem;
  color: var(--color-slate-800);
}

.sig-name {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-hint {
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 1rem;
}

/* Lightbox Modal */
.cert-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2000;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cert-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cert-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-slate-600);
}

/* Articles (articoli/) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-slate-500);
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.article-card p {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Article Reading View */
.article-reading-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.article-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--color-slate-700);
}

.article-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.6rem;
}

/* Checkout Station (carrello.html) */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  margin-top: 2rem;
}

.checkout-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.checkout-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  background-color: var(--color-bg-light);
  transition: all var(--transition-fast);
}

.form-input:focus {
  background-color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-slate-500);
  margin-top: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 1rem;
}

.payment-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: var(--color-bg-light);
}

.payment-option.selected,
.payment-option:hover {
  border-color: var(--color-primary);
  background-color: #ffffff;
}

.pay-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--color-slate-900);
  cursor: pointer;
}

.pay-desc {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  margin-top: 0.4rem;
  padding-left: 1.85rem;
  font-weight: 400;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.order-summary-row.total-row {
  border-top: 2px solid var(--color-slate-900);
  border-bottom: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate-900);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.total-price {
  color: var(--color-primary);
  font-size: 1.45rem;
}

/* Thank you page (grazie.html) */
.thankyou-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

.step-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  border: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate-700);
}

.step-card.active {
  border-color: var(--color-primary);
  background: #e6fffa;
  color: var(--color-primary-dark);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 620px;
  background: rgba(11, 23, 36, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =============================================================
 * RESPONSIVE BREAKPOINTS (Mobile-First Polish)
 * =========================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .formula-hero-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .burger-btn {
    display: flex;
  }
  
  .hub-grid,
  .stats-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .pkg-card.popular {
    transform: none;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .anatomy-grid,
  .symptom-grid,
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .diary-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .calc-schedule-grid {
    grid-template-columns: 1fr;
  }

  .timeline-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

/* Strict Mobile (<480px) 1-Line Header rule */
@media (max-width: 480px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand-logo {
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-crest {
    width: 32px;
    height: 32px;
  }

  .brand-crest svg {
    width: 18px;
    height: 18px;
  }

  .brand-name {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .brand-tagline {
    display: none; /* Hide tagline on narrow screen to keep in 1 line */
  }

  .header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .lang-switcher {
    padding: 1px;
  }

  .lang-btn {
    padding: 0.25rem 0.45rem;
    font-size: 0.72rem;
    min-height: 28px;
  }

  .cart-trigger {
    width: 36px;
    height: 36px;
  }

  .burger-btn {
    width: 36px;
    height: 36px;
  }

  .trust-strip {
    display: none; /* Keep mobile screen uncluttered */
  }

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

  .hub-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
