:root {
  --primary: #1a3a52;
  --accent: #2c7dfa;
  --accent-dark: #1e5fc9;
  --accent-light: #eff6ff;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #2d3748;
  --muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 20px 50px rgba(44, 125, 250, 0.25);
  --serif: "Playfair Display", serif;
  --sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-text { color: var(--primary); }
.logo-accent { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--accent); }

.btn-nav-cta {
  padding: 12px 24px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-overlay.active { opacity: 1; visibility: visible; }

/* === HERO SECTION === */
.hero {
  position: relative;
  background: linear-gradient(135deg, #2c7dfa 0%, #1e5fc9 50%, #1a4f9e 100%);
  padding: 80px 20px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chmury */
.clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  filter: blur(30px);
}

.cloud-1 { width: 400px; height: 150px; top: 10%; left: -5%; animation: float 25s ease-in-out infinite; }
.cloud-2 { width: 300px; height: 120px; top: 60%; right: -3%; animation: float 20s ease-in-out infinite reverse; }
.cloud-3 { width: 250px; height: 100px; top: 30%; left: 50%; animation: float 30s ease-in-out infinite; }
.cloud-4 { width: 350px; height: 130px; bottom: 10%; left: 20%; animation: float 22s ease-in-out infinite reverse; }

@keyframes float {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(30px) translateY(-20px); }
}

/* Śnieżynki w hero */
.snowflakes-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.snowflake-hero {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  animation: fall-hero linear infinite;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@keyframes fall-hero {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(400px) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 800;
  margin: 0 0 15px 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 650px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 8px;
  display: inline-block;
}

/* === FILTRY === */
/* === SEKCJA WYBORU POWIERZCHNI === */
.filters-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 10px;
}

.selection-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 5px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.selection-box h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.area-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.area-btn {
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.area-btn:hover {
  border-color: var(--accent);
  background: rgba(44, 125, 250, 0.05);
  box-shadow: 0 4px 12px rgba(44, 125, 250, 0.15);
}

.area-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(44, 125, 250, 0.3);
  cursor: default;
}

/* === GRID PRODUKTÓW === */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Ostatnia karta wycentrowana */
.products-grid .product-card:last-child:nth-child(3n+1) {
  grid-column: 2;
}

/* === KARTA PRODUKTU === */
.product-card {
  background: var(--card);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 1px solid var(--border);
}

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

.card-image {
  position: relative;
  max-height: 156%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.energy-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.energy-badge.a-plus-plus {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-body {
  padding: 0 20px 18px 20px;
}

.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px 0;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
}
.card-features-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 9px;
  justify-content: center;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  background: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.card-specs {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.spec-label { color: var(--muted); }
.spec-value { font-weight: 700; color: var(--primary); }

/* Pigułki klas energetycznych */
.energy-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #0ea5e9;
  color: #0369a1;
}

.energy-pill-heating {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1.5px solid #f59e0b;
  color: #92400e;
}

.card-colors {
  margin-bottom: 14px;
}

.colors-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.color-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--primary);
  font-weight: 500;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-price {
  font-size: 12px;
  color: var(--muted);
}

.card-price span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-details:hover {
  background: var(--accent);
  transform: translateX(3px);
}

.btn-details svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-details:hover svg {
  transform: translateX(3px);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

footer p {
  margin: 0;
  opacity: 0.8;
  font-size: 14px;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 25px 30px;
    gap: 0;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 1001;
    transform: translateX(100%);
    visibility: hidden;
  }

  .nav-menu.menu-ready { transition: transform 0.3s ease, visibility 0.3s ease; }
  .nav-menu.active { transform: translateX(0); visibility: visible; }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu li:last-child { border-bottom: none; margin-top: 15px; }
  .nav-link { display: block; padding: 15px 0; font-size: 16px; }
  .btn-nav-cta { display: block; text-align: center; width: 100%; }
}

@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .products-grid .product-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .hero h1 { font-size: 40px; }
  .hero { padding: 60px 20px; min-height: 300px; }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero { padding: 50px 20px; min-height: 280px; }
  .card-body { padding: 20px; }
  .area-buttons { gap: 8px; }
  .area-btn { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
  .hero-badge { font-size: 11px; padding: 6px 14px; }
}
