/* ============================================
   EKKOAIR - Light Modern CSS (zgodny z preview)
   Design: Jasny, czysty, przyjemny
   Font: Gotham (z brandbooka)
   ============================================ */

/*
   GOTHAM - Font Loading (wymaga licencji komercyjnej)
   Aby dodać czcionki Gotham, umieść pliki w katalogu fonts/gotham/ i odkomentuj poniższy kod:

   @font-face {
     font-family: 'Gotham';
     src: url('../fonts/gotham/Gotham-Light.woff2') format('woff2'),
          url('../fonts/gotham/Gotham-Light.woff') format('woff');
     font-weight: 300;
     font-style: normal;
     font-display: swap;
   }

   @font-face {
     font-family: 'Gotham';
     src: url('../fonts/gotham/Gotham-Book.woff2') format('woff2'),
          url('../fonts/gotham/Gotham-Book.woff') format('woff');
     font-weight: 400;
     font-style: normal;
     font-display: swap;
   }

   @font-face {
     font-family: 'Gotham';
     src: url('../fonts/gotham/Gotham-Medium.woff2') format('woff2'),
          url('../fonts/gotham/Gotham-Medium.woff') format('woff');
     font-weight: 500;
     font-style: normal;
     font-display: swap;
   }

   @font-face {
     font-family: 'Gotham';
     src: url('../fonts/gotham/Gotham-Bold.woff2') format('woff2'),
          url('../fonts/gotham/Gotham-Bold.woff') format('woff');
     font-weight: 700;
     font-style: normal;
     font-display: swap;
   }
*/

/* 1. CSS VARIABLES */
:root {
  /* Brand Colors */
  --color-primary: #1BB7CE;         /* Turkusowy - bez zmian */
  --color-secondary: #004F9F;       /* Jeremias Blue - ZMIANA zgodnie z brandbook */
  --color-dark-blue: #153C66;       /* Granatowy - ZMIANA zgodnie z brandbook */

  /* RGB equivalents */
  --primary-rgb: 27, 183, 206;
  --secondary-rgb: 0, 79, 159;      /* ZMIANA dla #004F9F */

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #1BB7CE, #004F9F);  /* ZMIANA */

  /* Background Colors - LIGHT THEME */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-card: #ffffff;
  --bg-dark-secondary: #1a1a1a;

  /* Gradient Background - zgodny z Ekkoair Brand Guidelines */
  --gradient-section: linear-gradient(135deg, #1BB7CE 0%, #004F9F 50%, #153C66 100%);

  /* Text Colors - DARK TEXT ON LIGHT */
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-tertiary: #6c757d;
  --text-muted: #adb5bd;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows - Light theme shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow-primary: 0 8px 32px rgba(27, 183, 206, 0.4), 0 0 0 1px rgba(27, 183, 206, 0.2);

  /* Glass Effect & Blur */
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-glass-dark: rgba(255, 255, 255, 0.85);
  --blur-sm: 5px;
  --blur-md: 10px;
  --blur-lg: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1400px;
  --container-padding: 2rem;
}

/* 2. RESET & BASE STYLES */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  overflow-x: hidden;
  min-height: 100vh;
  font-weight: 400;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-brand);
  border-radius: 4px 10px 4px 4px;  /* ZMIANA: styl brandbook (proporcjonalnie zmniejszony) */
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

/* Selection */
::selection {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--text-primary);
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  color: var(--text-secondary);
}

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

/* Gradient Text */
.gradient-text {
  color: #153C66;
}

/* 4. LAYOUT COMPONENTS */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
  background-image: radial-gradient(circle, rgba(21, 60, 102, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.section.section-gradient {
  background-image: none;
}

/* Sekcja z gradientowym tłem - zgodna z Ekkoair Brand Guidelines */
.section-gradient {
  background: var(--gradient-section) !important;
  position: relative;
  overflow: hidden;
}

/* Białe teksty na gradientowym tle */
.section-gradient .section-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-gradient .section-subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.section-gradient .gradient-text {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Wyjątek: gradient-text w kartach musi być ciemny */
.section-gradient .card .gradient-text,
.section-gradient .feature-card .gradient-text,
.section-gradient .product-card .gradient-text {
  color: transparent !important;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.section-gradient p {
  color: rgba(255, 255, 255, 0.9);
}

/* Wyjątek: karty produktów i zwykłe karty muszą mieć ciemny tekst na białym tle */
.section-gradient .product-card p,
.section-gradient .product-card .product-tagline,
.section-gradient .product-card .product-description,
.section-gradient .card p,
.section-gradient .feature-card p {
  color: var(--text-secondary) !important;
}

.section-gradient .product-card .product-name {
  color: var(--text-primary) !important;
}

.section-gradient .card h3:not(.gradient-text),
.section-gradient .feature-card h3 {
  color: var(--text-primary) !important;
}

/* Subtelny efekt świetlny na gradiencie */
.section-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: gradientPulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientPulse {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(10%, 10%); opacity: 0.5; }
}

/* Subtelny wzór przepływu powietrza na sekcjach gradientowych */
.section-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M0 80 Q50 60 100 80 T200 80' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cpath d='M0 120 Q50 100 100 120 T200 120' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Cpath d='M0 160 Q50 140 100 160 T200 160' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3Cpath d='M0 40 Q50 20 100 40 T200 40' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* Style dla sekcji produktów z gradientowym tłem */
.specs-section,
.product-details-section,
.documents-section {
  position: relative;
}

.specs-section .section-title,
.product-details-section .section-title,
.documents-section .section-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.specs-section .section-subtitle,
.product-details-section .section-subtitle,
.documents-section .section-subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.specs-section .spec-label {
  color: rgba(21, 60, 102, 0.8) !important;
}

.specs-section .spec-value {
  color: var(--color-primary) !important;
  text-shadow: none;
}

.product-details-section .detail-text {
  color: rgba(21, 60, 102, 0.95) !important;
}

.product-details-section .detail-icon {
  color: #1BB7CE !important;
}

.documents-section h3 {
  color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #153C66;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  color: var(--text-tertiary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 5. NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
  padding: var(--spacing-sm) 0;
  border-bottom: 2px solid rgba(27, 183, 206, 0.2);
}

nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 40px;
  transition: var(--transition-base);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
}

.nav-links a,
.nav-dropdown-toggle {
  color: #495057 !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1BB7CE, #004F9F);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover {
  color: #1bb7ce !important;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active/current page nav indicator */
.nav-links a.nav-active::after {
  width: 100%;
}

/* Separator before CTA in nav */
.nav-links li:has(.nav-cta-link) {
  margin-left: var(--spacing-xs);
  padding-left: var(--spacing-md);
  border-left: 1px solid rgba(0,0,0,0.1);
}

/* CTA link in navigation */
.nav-links .nav-cta-link {
  background: linear-gradient(135deg, #153C66, #1a4a7a) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 8px 20px 8px 8px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.5px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 10px rgba(21, 60, 102, 0.4);
  text-transform: uppercase !important;
  animation: navCtaPulse 2s ease-in-out infinite;
}
.nav-links .nav-cta-link:hover {
  background: linear-gradient(135deg, #1a4a7a, #1f5a94) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21, 60, 102, 0.5);
  animation: none;
}
@keyframes navCtaPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(21, 60, 102, 0.4); }
  50% { box-shadow: 0 2px 18px rgba(21, 60, 102, 0.6); }
}
.nav-cta-link::after {
  display: none !important;
}

/* Focus states for keyboard navigation */
.nav-links a:focus-visible,
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: 6px 15px 6px 6px;
  padding: var(--spacing-sm);
  padding-top: calc(var(--spacing-sm) + 10px);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  margin-top: 0;
}

/* Invisible bridge so cursor can travel from toggle to dropdown */
.nav-dropdown-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.nav-dropdown-open .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 0.4rem var(--spacing-sm);
  color: #495057 !important;
  border-radius: 4px 10px 4px 4px;
  transition: var(--transition-fast);
  text-transform: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown-content a:hover {
  background: #f8f9fa;
  color: #1bb7ce !important;
  transform: translateX(5px);
}

.nav-dropdown-content a::after {
  display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Mobile language pills (hidden on desktop) */
.nav-right-mobile {
  display: none;
}

.nav-lang-mobile {
  display: flex;
  gap: 4px;
}

.lang-pill {
  border: none;
  background: transparent;
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-pill.active {
  background: linear-gradient(135deg, #1BB7CE, #004F9F);
  color: white;
}

.lang-pill:not(.active):hover {
  color: #153C66;
  background: rgba(27, 183, 206, 0.1);
}

/* Language Dropdown */
.nav-lang-dropdown {
  position: relative;
  margin-left: var(--spacing-sm);
  border-bottom: none !important;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid rgba(27, 183, 206, 0.25);
  background: white;
  color: #153C66;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  border-radius: 8px 16px 8px 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-current:hover {
  border-color: #1BB7CE;
  box-shadow: 0 2px 12px rgba(27, 183, 206, 0.2);
}

.nav-lang-dropdown.open .lang-current {
  border-color: #1BB7CE;
  background: rgba(27, 183, 206, 0.05);
}

.lang-globe {
  color: #1BB7CE;
  flex-shrink: 0;
}

.lang-chevron {
  transition: transform 0.25s ease;
  opacity: 0.5;
}

.nav-lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 8px 16px 8px 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(27, 183, 206, 0.15);
  padding: 6px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1001;
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 6px 12px 6px 6px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(27, 183, 206, 0.08);
}

.lang-option.active {
  background: linear-gradient(135deg, #1BB7CE, #004F9F);
  color: white;
  box-shadow: 0 2px 8px rgba(27, 183, 206, 0.3);
}

.lang-option-code {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  min-width: 26px;
}

.lang-option-name {
  font-weight: 500;
  font-size: 0.85rem;
  color: #6c757d;
}

.lang-option.active .lang-option-name {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1100px) {
  .nav-links {
    gap: var(--spacing-sm);
  }
  .nav-links a,
  .nav-dropdown-toggle {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
  }
  .nav-cta-link {
    font-size: 0.72rem !important;
    padding: 0.4rem 0.9rem !important;
  }
  .nav-links li:has(.nav-cta-link) {
    padding-left: var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    flex-direction: column;
    background: white;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    align-items: stretch;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: var(--spacing-sm);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li:has(.nav-cta-link) {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-sm);
    border-top: 2px solid rgba(27, 183, 206, 0.2);
  }

  .nav-cta-link {
    display: block !important;
    text-align: center !important;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.85rem !important;
  }

  /* On mobile: hide the dropdown inside nav-links, show pills next to hamburger */
  .nav-lang-dropdown {
    display: none !important;
  }

  .nav-right-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-lang-mobile {
    display: flex;
    gap: 4px;
  }

  .nav-dropdown > .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-dropdown-toggle::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
    margin-left: var(--spacing-sm);
  }

  .nav-dropdown.active .nav-dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .nav-dropdown-content {
    position: static !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: rgba(27, 183, 206, 0.05);
    box-shadow: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding-left: var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
  }

  .nav-dropdown.active .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    padding-left: var(--spacing-lg);
  }

  .nav-dropdown-content a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .nav-dropdown-content a:hover,
  .nav-dropdown-content a:active,
  .nav-dropdown-content a:focus {
    transform: none !important;
    background: rgba(27, 183, 206, 0.1) !important;
  }
}

/* 6. HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  padding-bottom: var(--spacing-xl);
  overflow-x: hidden;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
}

/* Hero Background — WebP with PNG fallback */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../wall.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 0;
}
@supports not (background-image: url('../wall.webp')) {
  .hero::before {
    background-image: url('../wall.png');
  }
}

/* Animated Gradient Overlay */
.gradient-bg {
  position: absolute;
  inset: 0;
  background: rgba(27, 183, 206, 0.08);
  z-index: 1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: var(--spacing-lg);
  max-width: 1000px;
  position: relative;
}

.logo-container {
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeInScale 1.2s ease-out 0.5s forwards;
  display: none;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-container img {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: var(--spacing-md);
  font-weight: 800;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-dark-blue);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.hero .subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.7s forwards;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

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

/* Hero Slider */
.hero-slider {
  position: relative;
  max-width: 700px;
  margin: var(--spacing-lg) auto;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
  padding: 0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  cursor: grab;
  touch-action: pan-y; /* Allows vertical scrolling, blocks horizontal to enable swipe */
  user-select: none; /* Prevent text selection during drag */
  -webkit-user-select: none;
  -webkit-user-drag: none; /* Prevent image drag on iOS */
}

.slider-track:active {
  cursor: grabbing;
}

.slider-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-slide img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  pointer-events: none; /* Prevent image drag interfering with swipe */
  -webkit-user-drag: none;
  user-select: none;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.slider-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px 5px 2px 2px;  /* ZMIANA: styl brandbook z uciętym rogiem (proporcjonalnie zmniejszony) */
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-indicator.active {
  background: var(--gradient-brand);
  transform: scale(1.3);
}

/* 7. CARDS */
.card {
  background: var(--bg-card);
  border-radius: 8px 20px 8px 8px;  /* ZMIANA: styl brandbook z zaokrąglonym top-right rogiem */
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: var(--spacing-md);
  border-radius: 6px 15px 6px 6px;  /* ZMIANA: styl brandbook (proporcjonalnie zmniejszony) */
  transition: var(--transition-base);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-description {
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* 8. BUTTONS & CTAs */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 8px 20px 8px 8px;  /* ZMIANA: kwadrat z zaokrąglonym top-right rogiem zgodnie z brandbook */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

/* Button focus states */
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* 9. PRODUCT CARDS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: white;
  border-radius: 8px 20px 8px 8px;  /* ZMIANA: styl brandbook z zaokrąglonym top-right rogiem */
  padding: var(--spacing-lg);
  box-shadow: 0 8px 32px rgba(0, 79, 159, 0.15);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(27, 183, 206, 0.1);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Product card focus state */
.product-card:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  transform: translateY(-8px);
}

.product-image-wrapper {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-base);
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-category {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-primary);
  background: rgba(var(--primary-rgb), 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 8px 20px 8px 8px;  /* ZMIANA: styl brandbook z zaokrąglonym top-right rogiem */
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.product-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.product-tagline {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  margin-bottom: var(--spacing-md);
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--spacing-md);
  font-family: inherit;
  display: block;
  transition: var(--transition-fast);
}

.read-more-btn:hover {
  color: var(--color-secondary);
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.card-spec {
  background: var(--bg-secondary);
  padding: var(--spacing-sm);
  border-radius: 4px 10px 4px 4px;  /* ZMIANA: styl brandbook (proporcjonalnie zmniejszony) */
  text-align: center;
}

.card-spec-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.card-spec-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Spec visual indicators */
.spec-bar {
  position: relative;
  background: rgba(27, 183, 206, 0.06);
  border-radius: 4px 10px 4px 4px;
  padding: 6px 10px;
  overflow: hidden;
  margin-top: 2px;
  border-left: 3px solid #1BB7CE;
}

.spec-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(27, 183, 206, 0.25), rgba(27, 183, 206, 0.05));
  border-radius: inherit;
  transition: width 0.8s ease-out;
}

.spec-bar-value {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.spec-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px 10px 4px 4px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 2px;
}

.spec-badge-high {
  background: rgba(27, 183, 206, 0.15);
  color: #1BB7CE;
}

.spec-badge-mid {
  background: rgba(27, 183, 206, 0.08);
  color: #3dc8da;
}

.spec-badge-neutral {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* 10. FEATURE CARDS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.feature-card {
  background: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  border-radius: 8px 20px 8px 8px;  /* ZMIANA: styl brandbook z zaokrąglonym top-right rogiem */
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: #153C66;
  display: inline-block;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-tertiary);
  line-height: 1.8;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* 11a. MYJEREMIAS LOGO */
.myj-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--spacing-lg);
  display: block;
  filter: brightness(0) invert(1);
}

/* 11b. ACCESSORY ICONS */
.accessory-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-md);
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.accessory-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-base);
}

.card:hover .accessory-img {
  transform: scale(1.05);
}

/* 11. FOOTER - Kompaktowy, nowoczesny */
footer {
  background: linear-gradient(135deg, #153C66 0%, #0d2744 100%);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-md);
  position: relative;
  margin-top: var(--spacing-3xl);
  border-top: none;
}

/* Animated gradient top border */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(90deg, #1BB7CE, #004F9F, #1BB7CE);
  background-size: 200% 100%;
  animation: gradient-slide 8s ease infinite;
}

/* Subtle air flow wave pattern */
footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M0 80 Q50 60 100 80 T200 80' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cpath d='M0 120 Q50 100 100 120 T200 120' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Cpath d='M0 160 Q50 140 100 160 T200 160' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3Cpath d='M0 40 Q50 20 100 40 T200 40' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Kolumna 1: Firma */
.footer-company {
  text-align: left;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: white;
  letter-spacing: 0.5px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  font-weight: 400;
}

/* Kolumna 2: Kontakt */
.footer-contact {
  text-align: left;
}

.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-info {
  line-height: 1.7;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-info strong {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-info a:hover {
  color: var(--color-primary);
}

/* Kolumna 3: Linki */
.footer-nav {
  text-align: left;
}

.footer-nav h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
  padding: 0.25rem 0;
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .footer-company,
  .footer-contact,
  .footer-nav {
    text-align: center;
  }

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

  .footer-link:hover {
    transform: translateX(0);
  }
}

/* 12. ANIMATIONS */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(var(--primary-rgb), 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 13. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
    --spacing-3xl: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
  }

  .hero h1 {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .logo-container img {
    max-width: 280px;
  }

  .nav-links {
    gap: var(--spacing-md);
    font-size: 0.9rem;
  }

  .product-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 1.2rem 2.5rem;
    min-height: 48px;
  }

  .nav-links li {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .card-spec {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-spec-label {
    font-size: 0.85rem;
  }

  .product-tagline {
    font-size: 1rem;
  }
}

/* 14. UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 15. PRODUCT PAGE FIXES */
/* Fix dla długich tekstów w kafelkach parametrów technicznych */
.spec-card {
  overflow: hidden;
}

.spec-value {
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  font-size: 1.5rem !important;
  line-height: 1.3;
  lang: pl;
}

.spec-label {
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* 16. BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

.back-to-top:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

/* 17. ERROR & LOADING STATES */
.error-state {
  text-align: center;
  padding: var(--spacing-3xl);
  grid-column: 1 / -1;
}

.error-state p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
}

.product-card-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.15) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  height: 500px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 17. PRODUCT PAGE SPECIFIC STYLES */
/* Dodatkowy odstęp pod przyciskami CTA na stronach produktów */
.product-hero {
  padding-bottom: var(--spacing-3xl);
}

.product-hero-content .cta-buttons {
  margin-top: var(--spacing-xl);
}

/* ============================================
   18. NEWS / AKTUALNOŚCI
   ============================================ */

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

@media (min-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* News Card */
.news-card {
  background: var(--bg-card);
  border-radius: 8px 20px 8px 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  overflow: hidden;
  border: 1px solid rgba(27, 183, 206, 0.1);
}

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

.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-body {
  padding: var(--spacing-md);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.news-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 8px 20px 8px 8px;
}

.news-badge-news {
  color: var(--color-primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.news-badge-guide {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.news-author {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.news-author::before {
  content: '·';
  margin-right: 0.5rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  line-height: 1.3;
}

.news-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.news-card:hover .news-read-more {
  color: var(--color-secondary);
}

/* News Filters */
.news-filters {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
  flex-wrap: wrap;
}

.news-filter-btn {
  border: 2px solid var(--bg-tertiary);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px 20px 8px 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.news-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-filter-btn.active {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
}

/* News Empty State */
.news-empty {
  text-align: center;
  padding: var(--spacing-3xl) 0;
}

.news-empty p {
  font-size: 1.1rem;
  color: var(--text-tertiary);
}

/* News Article (Single View) */
.news-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.news-breadcrumbs a {
  color: var(--color-primary);
  font-weight: 500;
}

.news-breadcrumbs a:hover {
  text-decoration: underline;
}

.news-breadcrumb-sep {
  color: var(--text-muted);
}

.news-breadcrumb-current {
  color: var(--text-tertiary);
}

.news-article {
  max-width: 800px;
  margin: 0 auto;
}

.article-hero-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 100px;
}

.article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 20px 8px 8px;
}

.news-article-hero {
  width: 100%;
  border-radius: 8px 20px 8px 8px;
  margin-bottom: var(--spacing-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.news-article-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
}

.news-article-content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.news-article-content p {
  margin-bottom: var(--spacing-md);
}

.news-article-content h2 {
  font-size: 1.5rem;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.news-article-content h3 {
  font-size: 1.25rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.news-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: var(--spacing-md) 0;
}

.news-article-content ul,
.news-article-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.news-article-content li {
  margin-bottom: var(--spacing-xs);
}

.news-article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--spacing-md);
  margin: var(--spacing-md) 0;
  color: var(--text-tertiary);
  font-style: italic;
}

.news-article-back {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--bg-tertiary);
}

.news-back-btn {
  display: inline-block;
}

/* News Responsive */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .news-filters {
    gap: 0.5rem;
  }

  .news-filter-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .news-article-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* News Pagination */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-2xl);
  flex-wrap: wrap;
}

.news-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--bg-tertiary);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px 20px 8px 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.news-pagination-btn:hover:not(.disabled):not(.active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-pagination-btn.active {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
}

.news-pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-pagination-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.news-pagination-prev,
.news-pagination-next {
  padding: 0.4rem 1rem;
}

.news-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: var(--text-tertiary);
  font-size: 1rem;
  user-select: none;
}

@media (max-width: 768px) {
  .news-pagination {
    gap: 0.3rem;
  }

  .news-pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  .news-pagination-prev,
  .news-pagination-next {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   STATS / SOCIAL PROOF
   ============================================ */

.stats-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-primary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}
.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}
/* Facts/stats on gradient background — white text */
.section-gradient .stat-value {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.section-gradient .stat-label {
  color: rgba(255, 255, 255, 0.8);
}
.section-gradient .stat-item {
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding-bottom: var(--spacing-md);
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   TRUST / AUTHORITY
   ============================================ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  text-align: center;
}
.trust-item {
  padding: var(--spacing-lg);
}
.trust-icon {
  margin-bottom: var(--spacing-md);
}
.trust-icon svg {
  width: 56px;
  height: 56px;
}
.trust-item h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}
.trust-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px 20px 8px 8px;
  padding: var(--spacing-xl);
}
.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-author strong {
  color: #fff;
  font-size: 1rem;
}
.testimonial-author span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    padding: 0.75rem 0;
    margin-top: 80px;
}

.breadcrumbs-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 1.5rem);
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-tertiary, #8896a6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #1bb7ce;
}

.breadcrumbs span {
    color: var(--text-muted, #a0aec0);
    margin: 0 0.5rem;
}
