/* ===================================================
   AntyG_4 – Aplikacja Elektryk Piaseczno
   Mobile-First Stylesheet
   =================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --primary: #1a56db;
  --primary-dark: #1340a8;
  --primary-light: #e8efff;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-width: 1200px;
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* ===================================================
   TOP BAR
   =================================================== */
.top-bar {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.top-bar i { color: var(--accent); margin-right: 0.4rem; }

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}
.logo i { color: var(--primary); font-size: 1.4rem; }
.logo span { color: var(--primary); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 1050;
}
.nav-menu.active { transform: translateX(0); }

.nav-menu li { position: relative; }
.nav-menu a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  display: block;
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle i.fa-chevron-down {
  font-size: 0.65rem;
  margin-left: 0.3rem;
  transition: var(--transition);
}
.dropdown.open .dropdown-toggle i.fa-chevron-down { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  list-style: none;
  padding: 0.5rem 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  color: var(--gray-700);
}
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* Mobile dropdown centered */
@media (max-width: 1023px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    text-align: center;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a6e 100%);
  color: #fff;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(245,158,11,0.08);
  top: -100px;
  right: -80px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(26,86,219,0.1);
  bottom: -60px;
  left: -60px;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}
.hero-badge i { color: var(--accent); }

.hero h1 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero h1 .highlight { color: var(--accent); }

.hero-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 540px;
}
.hero-stats .stat { text-align: center; }
.hero-stats .number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stats .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-accent { background: var(--accent); color: var(--secondary); }
.btn-accent:hover { background: #e8900a; color: var(--secondary); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0d9668; color: #fff; }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===================================================
   SECTIONS (generic)
   =================================================== */
section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-header .label i { font-size: 0.85rem; }
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}
.section-header p {
  color: var(--gray-600);
  max-width: 650px;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
}

/* ===================================================
   FEATURE CARDS (sekcja edukacyjna)
   =================================================== */
.features-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feature-card .icon.red { background: var(--danger-light); color: var(--danger); }
.feature-card .icon.amber { background: var(--accent-light); color: var(--accent); }
.feature-card .icon.blue { background: var(--primary-light); color: var(--primary); }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 0; }

.section-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.8;
}
.section-text a { font-weight: 600; }

/* ===================================================
   VARIANT SECTIONS (A & B)
   =================================================== */
.variant-section { background: #fff; }
.variant-section.alt-bg { background: var(--gray-50); }

.cost-items-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.cost-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.cost-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--danger-light);
  color: var(--danger);
}
.cost-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.cost-item p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0; }

.info-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.info-box.tip { background: var(--primary-light); border-color: var(--primary); }
.info-box.warning { background: var(--danger-light); border-color: var(--danger); }
.info-box.success { background: var(--success-light); border-color: var(--success); }
.info-box h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Standards Grid (Wariant B) */
.standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.standard-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.standard-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-light);
  color: var(--success);
  font-size: 1rem;
}
.standard-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.standard-item p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0; }

/* Comparison Table */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 500px;
}
.comparison-table thead { background: var(--secondary); color: #fff; }
.comparison-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.comparison-table tbody tr:hover { background: var(--primary-light); }
.comparison-table .text-success { color: var(--success); font-weight: 600; }
.comparison-table .text-danger { color: var(--danger); font-weight: 600; }

/* ===================================================
   CALCULATOR
   =================================================== */
.calculator-section {
  background: var(--gray-100);
  padding: 3rem 0;
}

.calculator-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.calc-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a6e 100%);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}
.calc-header h2 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.calc-header p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 0; }

.calc-body { background: #fff; padding: 1.5rem; }

/* Tabs */
.calc-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gray-200);
}
.calc-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--gray-50);
  border: none;
  color: var(--gray-600);
  transition: var(--transition);
}
.calc-tab.active {
  background: var(--primary);
  color: #fff;
}
.calc-tab:hover:not(.active) { background: var(--gray-200); }

.calc-panel { display: none; }
.calc-panel.active { display: block; }

/* Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gray-300);
  color: #fff;
  font-size: 0.6rem;
  cursor: help;
  position: relative;
}
.tooltip-trigger .tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 400;
  width: 220px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.tooltip-trigger:hover .tooltip-text { display: block; }

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

input[type="number"],
select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  transition: var(--transition);
  background: #fff;
}
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}

/* Slider */
.slider-group { position: relative; }
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.slider-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

/* Radio & Checkbox tiles */
.radio-group,
.checkbox-group {
  display: grid;
  gap: 0.75rem;
}

.radio-tile,
.checkbox-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}
.radio-tile:hover,
.checkbox-tile:hover { border-color: var(--primary); background: var(--primary-light); }
.radio-tile input,
.checkbox-tile input { accent-color: var(--primary); }
.radio-tile.selected,
.checkbox-tile.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.calc-divider {
  border: none;
  height: 1px;
  background: var(--gray-200);
  margin: 1.5rem 0;
}

/* Results */
.calc-results {
  display: none;
  margin-top: 1.5rem;
  animation: fadeInUp 0.5s ease;
}
.calc-results.visible { display: block; }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
}
.result-card.danger-card {
  background: var(--danger-light);
  border: 1px solid rgba(239,68,68,0.2);
}
.result-card.success-card {
  background: var(--success-light);
  border: 1px solid rgba(16,185,129,0.2);
}
.result-card .result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  margin-bottom: 0.3rem;
}
.result-card .result-value {
  font-size: 1.3rem;
  font-weight: 800;
}
.result-card.danger-card .result-value { color: var(--danger); }
.result-card.success-card .result-value { color: var(--success); }

.savings-banner {
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.savings-banner.positive { background: linear-gradient(135deg, var(--success), #059669); }
.savings-banner.negative { background: linear-gradient(135deg, var(--accent), #d97706); }
.savings-banner .big-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.chart-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 1rem;
}

/* Mini FAQ in calculator */
.calc-faq { margin-top: 1.5rem; }
.calc-faq h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ===================================================
   SCENARIOS
   =================================================== */
.scenarios-grid {
  display: grid;
  gap: 1.5rem;
}

.scenario-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.scenario-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.scenario-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.scenario-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.scenario-card > p { font-size: 0.9rem; color: var(--gray-600); }

.scenario-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 0.5rem;
}
.scenario-result .label { font-size: 0.85rem; color: var(--gray-600); }
.scenario-result .value {
  font-weight: 700;
  color: var(--success);
  font-size: 0.95rem;
}

/* ===================================================
   FAQ ACCORDION
   =================================================== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question i {
  font-size: 0.75rem;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.25rem 1.25rem;
}
.faq-answer p { font-size: 0.9rem; color: var(--gray-700); }
.faq-answer ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.faq-answer li { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 0.25rem; }

/* ===================================================
   ARTICLES GRID (BAZA WIEDZY)
   =================================================== */
.articles-grid {
  display: grid;
  gap: 1.5rem;
}

.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.article-card .card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}
.article-card .card-image.bg-1 { background: linear-gradient(135deg, #1a56db, #3b82f6); }
.article-card .card-image.bg-2 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.article-card .card-image.bg-3 { background: linear-gradient(135deg, #10b981, #34d399); }
.article-card .card-image.bg-4 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.article-card .card-image.bg-5 { background: linear-gradient(135deg, #6366f1, #818cf8); }

.article-card .card-body { padding: 1.25rem; }
.article-card .card-body h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.article-card .card-body p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0.75rem; }
.article-card .card-body a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.article-card .card-body a:hover { gap: 0.6rem; }

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.testimonial-stars .half { color: var(--gray-300); }

.testimonial-text {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}
.testimonial-text strong { color: var(--secondary); font-style: normal; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author .author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
}
.testimonial-author .author-info .role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.cta-section h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1rem 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col p { font-size: 0.8rem; line-height: 1.7; margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; padding-left: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===================================================
   ARTICLE PAGE STYLES
   =================================================== */

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-100);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  color: var(--gray-400);
  margin-left: 0.2rem;
}
.breadcrumb-list a { color: var(--gray-600); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list .current { color: var(--primary); font-weight: 600; }

/* Article Hero */
.article-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a6e 100%);
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
}
.article-hero h1 { color: #fff; font-size: 1.5rem; max-width: 750px; margin: 0 auto 1rem; }
.article-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Content Area */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}
.content-area h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}
.content-area h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}
.content-area p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.content-area ul, .content-area ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0 1.25rem;
}
.content-area li {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  line-height: 1.7;
}
.content-area blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-700);
}
.content-area strong { color: var(--secondary); }

/* Inline CTA (affiliate) */
.inline-cta {
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.inline-cta h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.inline-cta p {
  color: var(--gray-700);
  max-width: 550px;
  margin: 0 auto 1rem;
  font-size: 0.9rem;
}

/* Author Box */
.author-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border: 1px solid var(--gray-200);
}
.author-box .author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-box .author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-box .author-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.author-box .author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.1rem;
}
.author-box .author-name a { color: var(--secondary); }
.author-box .author-name a:hover { color: var(--primary); }
.author-box .author-role {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.author-box .author-bio p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}
.legal-content h1 { margin-bottom: 1.5rem; }
.legal-content h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal-content p, .legal-content li { font-size: 0.9rem; color: var(--gray-700); }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin: 0.75rem 0 1.25rem; }

/* Chart in article */
.article-chart {
  max-width: 600px;
  margin: 1.5rem auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--gray-200);
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   RESPONSIVE – Tablet (640px+)
   =================================================== */
@media (min-width: 640px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .container { padding: 0 1.5rem; }

  .hero { padding: 4rem 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-lead { font-size: 1.05rem; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .standards-grid { grid-template-columns: 1fr 1fr; }
  .scenarios-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .article-hero h1 { font-size: 1.8rem; }
  .author-box { flex-direction: row; align-items: flex-start; gap: 1.5rem; }
}

/* ===================================================
   RESPONSIVE – Desktop (1024px+)
   =================================================== */
@media (min-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  section { padding: 4.5rem 0; }

  .container { padding: 0 2rem; }

  /* Desktop navigation */
  .hamburger { display: none; }
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    background: transparent;
    transform: none;
    gap: 0;
    backdrop-filter: none;
  }
  .nav-menu a { font-size: 0.9rem; padding: 0.5rem 0.75rem; }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
  }

  .hero { padding: 5rem 2rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero-lead { font-size: 1.1rem; }
  .hero-stats .number { font-size: 1.8rem; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }

  .article-hero h1 { font-size: 2.2rem; }
  .content-area { padding: 3rem 1rem; }

  .section-header h2 { font-size: 2rem; }
  .cta-section h2 { font-size: 2rem; }
}

/* ===================================================
   RESPONSIVE – Large Desktop (1280px+)
   =================================================== */
@media (min-width: 1280px) {
  .hero h1 { font-size: 3rem; }
  .articles-grid { grid-template-columns: repeat(5, 1fr); }
}
