/* Table Styles */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #ffffff;
}

.table-container th {
  background: #0f4c75;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #0d3d5e;
  white-space: nowrap;
}

.table-container td {
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.table-container tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-container tbody tr:hover {
  background: #e8f4f8;
}

/* Chart container in articles */
.article-chart {
  margin: 2rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.article-chart canvas {
  max-height: 350px;
}

/* Inline CTA buttons in article */
.article-inline-cta {
  background: linear-gradient(135deg, #0f4c75 0%, #164b6b 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.article-inline-cta p {
  color: #c8e0f0;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.article-inline-cta .btn {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  min-width: 300px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0f4c75;
  box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  cursor: pointer;
}

/* Article CTA Widget */
.article-cta-widget {
  background: linear-gradient(135deg, #0f4c75 0%, #164b6b 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.article-cta-widget h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.article-cta-widget p {
  color: #c8e0f0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.article-cta-widget .widget-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.article-cta-widget .btn-calc {
  display: inline-block;
  background: #0f4c75;
  color: #ffffff;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  min-width: 240px;
  border: 2px solid #ffffff;
}
.article-cta-widget .btn-offer {
  display: inline-block;
  background: #f97316;
  color: #ffffff;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  min-width: 240px;
}

/* ============================================
   KALKULATOR FARBY - DESIGN SYSTEM
   Petroleum Blue × Vivid Ember — Malarska 2026
   ============================================ */

/* 1. CSS Custom Properties (:root) */
:root {
  /* Petroleum Blue × Vivid Ember — Paleta malarska */
  --primary:       #0f4c75;
  --primary-dark:  #0a3557;
  --primary-light: #f0f7ff;
  --secondary:     #0c1a2e;
  --accent:        #f97316;
  --accent-light:  #fff3e8;

  /* Status colors */
  --success:       #10b981;
  --success-light: #d1fae5;
  --danger:        #ef4444;
  --danger-light:  #fee2e2;
  --warning:       #f59e0b;
  --warning-light: #fef3c7;
  --info:          #3b82f6;
  --info-light:    #dbeafe;

  /* Elevated Neutrals — ciepłe szarości */
  --gray-50:  #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(15,76,117,.08);
  --shadow-md:  0 4px 12px rgba(15,76,117,.12);
  --shadow-lg:  0 8px 24px rgba(15,76,117,.16);
  --shadow-xl:  0 16px 48px rgba(15,76,117,.20);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  /* Layout */
  --max-width:  1200px;
  --header-height: 72px;
  --top-bar-height: 40px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.text-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
  color: var(--gray-500);
}

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

/* 4. Layout (container, grids) */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* 5. Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  position: relative;
  z-index: 1001;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.top-bar i {
  color: var(--accent);
}

/* 6. Header & Navigation */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo i {
  color: var(--primary);
  font-size: 1.5rem;
}

.logo span {
  color: var(--primary);
  font-weight: 600;
}

.logo-location {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 0.25rem;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 7. Hamburger & Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: 2rem;
  transform: translateX(100%);
  transition: var(--transition);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu .nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.mobile-menu .nav-link {
  font-size: 1.125rem;
  padding: 0.75rem 0;
}

/* 8. Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: var(--transition);
}

.dropdown.open .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--gray-700);
  font-size: 0.875rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

/* 9. Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  color: var(--accent);
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.hero-stat i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  display: block;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* 10. Calculator */
.calculator-section {
  background: white;
  padding: 4rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.calculator-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.calculator-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.calculator-header h2 {
  margin-bottom: 0.5rem;
}

.calculator-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label i {
  color: var(--primary);
  font-size: 0.875rem;
}

.form-input,
.form-select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,76,117,0.1);
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.slider-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

.variant-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--gray-100);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
}

.variant-tab {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  text-align: center;
}

.variant-tab:hover {
  color: var(--gray-800);
}

.variant-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.variant-content {
  display: none;
}

.variant-content.active {
  display: block;
}

/* 11. Calculator Results */
.calculator-results {
  display: none;
  margin-top: 2.5rem;
  animation: fadeInUp 0.5s ease;
}

.calculator-results.show {
  display: block;
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header h3 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

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

.result-card {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
}

.result-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.result-card.highlight {
  background: var(--accent-light);
  border-color: var(--accent);
}

.result-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.result-card.highlight i {
  color: var(--accent);
}

.result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.25rem;
}

.result-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* 12. Savings Banner */
.savings-banner {
  background: var(--success-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.savings-banner i {
  font-size: 2rem;
  color: var(--success);
}

.savings-banner p {
  margin: 0;
  font-weight: 600;
  color: var(--gray-800);
}

.savings-banner strong {
  color: var(--success);
}

/* 13. Chart Container */
.chart-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--gray-100);
}

.chart-title {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* 14. Section: How It Works */
.how-it-works {
  background: var(--gray-50);
  padding: 5rem 0;
}

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

.step-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.step-card h3 {
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--gray-600);
  margin: 0;
}

/* 15. Author Box */
.author-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  flex-shrink: 0;
}

.author-content {
  flex: 1;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.author-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-social {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.author-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f4c75;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.author-social a:hover {
  background: var(--primary);
  color: white;
}

.author-bio {
  color: var(--gray-600);
  line-height: 1.7;
}

.author-bio p {
  margin-bottom: 0.75rem;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

/* 16. Knowledge Base / Articles Grid */
.knowledge-base {
  background: white;
  padding: 5rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--gray-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.article-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.article-icon i {
  font-size: 1.25rem;
  color: var(--primary);
}

.article-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.article-card h3 a {
  color: var(--gray-900);
}

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

.article-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  flex: 1;
}

.article-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.article-link:hover {
  gap: 0.75rem;
}

/* 17. Testimonials */
.testimonials {
  background: var(--gray-50);
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--gray-700);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.testimonial-name {
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* 18. CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

/* 19. FAQ Accordion */
.faq-section {
  background: white;
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  color: var(--gray-800);
  font-size: 1.125rem;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  color: var(--gray-400);
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding-bottom: 1.5rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-answer-content p {
  margin-bottom: 0.75rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* 20. Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-company {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-title {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* 21. Back-to-Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  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(-4px);
}

/* 22. Breadcrumb */
.breadcrumb {
  background: var(--gray-100);
  padding: 1rem 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a {
  color: var(--gray-600);
  font-size: 0.875rem;
}

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

.breadcrumb-item.active {
  color: var(--gray-800);
  font-size: 0.875rem;
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--gray-400);
  font-size: 0.75rem;
}

/* 23. Article Hero */
.article-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
  padding: 4rem 0;
}

.article-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article-hero h1 {
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta i {
  color: var(--primary);
}

/* 24. Article Content (content-area) */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.content-area h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.content-area h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.content-area p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--gray-700);
}

/* Inline Charts in Article */
.cg-chart-wrap {
  max-width: 100%;
  margin: 2rem 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}
.cg-chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #1e293b;
}
.cg-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.cg-bar-label {
  width: 100px;
  font-size: 0.85rem;
  color: #64748b;
  flex-shrink: 0;
  font-weight: 500;
}
.cg-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cg-bar {
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 600;
  transition: width 0.6s ease;
}
.cg-bar.min-bar { background: #0f4c75; }
.cg-bar.max-bar { background: #f97316; }
.cg-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.8rem;
}
.cg-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cg-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.cg-source {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.75rem;
}

/* Interactive DIY vs Pro Calculator */
.diy-calc-wrap {
  max-width: 100%;
  margin: 2rem 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #0f4c75 0%, #164b6b 100%);
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
}
.diy-calc-wrap h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.diy-slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.diy-slider-row label {
  font-size: 0.9rem;
  white-space: nowrap;
  min-width: 120px;
}
.diy-slider-row input[type="range"] {
  flex: 1;
  accent-color: #f97316;
}
.diy-slider-row output {
  font-weight: 700;
  min-width: 60px;
  text-align: right;
  color: #fbbf24;
}
.diy-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1rem;
}
.diy-result-card {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.diy-result-card strong {
  display: block;
  font-size: 1.3rem;
  color: #fbbf24;
}
.diy-result-card small {
  font-size: 0.75rem;
  opacity: 0.85;
}
.diy-result-diff {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0.75rem;
  background: rgba(251,191,36,0.15);
  border-radius: 8px;
  margin-top: 0.5rem;
}
.diy-result-diff strong {
  color: #fbbf24;
  font-size: 1.2rem;
}

/* Drying Time Chart */
.dry-chart-wrap {
  max-width: 100%;
  margin: 2rem 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}
.dry-chart-wrap h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #1e293b;
}
.dry-temp-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.dry-temp-label {
  width: 80px;
  font-size: 0.8rem;
  color: #64748b;
  flex-shrink: 0;
}
.dry-temp-bar {
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  transition: width 0.5s ease;
}
.dry-temp-bar.cold { background: #3b82f6; }
.dry-temp-bar.cool { background: #0f4c75; }
.dry-temp-bar.warm { background: #f97316; }
.dry-temp-bar.hot { background: #ef4444; }
.dry-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.75rem;
  text-align: center;
}

/* Article on homepage (inline article) */
.article-on-homepage article {
  max-width: 800px;
  margin: 0 auto;
}

.article-on-homepage article h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.article-on-homepage article h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.article-on-homepage article p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.content-area ul,
.content-area ol,
.article-on-homepage article ul,
.article-on-homepage article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-area ul,
.article-on-homepage article ul {
  list-style: disc;
}

.content-area ol,
.article-on-homepage article ol {
  list-style: decimal;
}

.content-area li,
.article-on-homepage article li {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.content-area a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.content-area .btn-primary,
.content-area .btn-accent {
  color: white;
  text-decoration: none;
}

.content-area strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* 25. Tables (comparison-table) */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}

.comparison-table th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-lg);
}

.comparison-table tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-lg) 0;
}

.comparison-table tr:hover td {
  background: var(--gray-50);
}

.comparison-table td {
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.comparison-table td strong {
  color: var(--gray-900);
}

/* 26. Info Boxes (success, warning, tip) */
.info-box {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-box i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-box.success {
  background: var(--success-light);
  border-left: 4px solid var(--success);
}

.info-box.success i {
  color: var(--success);
}

.info-box.warning {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
}

.info-box.warning i {
  color: var(--warning);
}

.info-box.tip {
  background: var(--info-light);
  border-left: 4px solid var(--info);
}

.info-box.tip i {
  color: var(--info);
}

.info-box-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.info-box-content p {
  margin: 0;
  color: var(--gray-700);
}

/* 27. Inline CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  border: 2px solid var(--primary-light);
}

.inline-cta h4 {
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.inline-cta p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* 28. Utility Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: #ea580c;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* 29. Animations (@keyframes) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 30. Media Queries (mobile-first breakpoints) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .steps-grid,
  .articles-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .author-photo {
    margin: 0 auto;
  }
  
  .author-header {
    justify-content: center;
  }
  
  .author-social {
    margin-left: 0;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .variant-tabs {
    flex-direction: column;
  }
  
  .savings-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    min-width: auto;
  }
  
  .dropdown.open .dropdown-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .calculator-container {
    padding: 1.5rem;
  }
  
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .step-card {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .inline-cta {
    padding: 1.5rem;
  }
  
  .info-box {
    flex-direction: column;
    text-align: center;
  }
}

/* Print styles */
@media print {
  .header,
  .top-bar,
  .footer,
  .back-to-top,
  .cta-section {
    display: none;
  }
  
  .hero {
    background: white;
    color: black;
    padding: 2rem 0;
  }
  
  .hero h1,
  .hero p {
    color: black;
  }
  
  .calculator-section {
    margin-top: 0;
  }
}
