:root {
  --color-gold: #c9a96a;
  --color-gold-light: #d4b87e;
  --color-gold-dark: #b39150;
  --color-dark: #0a0a0a;
  --color-dark-grey: #1a1a1a;
  --color-dark-2: #252525;
  --color-light-grey: #f4f4f4;
  --color-white: #fff;
  --color-text-muted: #aaa;
  --color-green: #4caf50;
}

body.light-theme {
  --color-text-muted: #666;
  --color-light-grey: #555;
  --color-white: #1a1a1a;
  --color-dark: #2F3D40;
  --color-dark-2: #f8f8f8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: var(--color-dark);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 6px;
  border: 2px solid var(--color-dark);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 0 10px rgba(201, 169, 106, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background: var(--color-gold-dark);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-dark);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  z-index: 10001;
  transition: width 0.2s ease;
  box-shadow: 0 2px 10px rgba(201, 169, 106, 0.5);
  display: none;
  /* DOMYŚLNIE UKRYTY */
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-dark);
  color: var(--color-light-grey);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.8rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.header {
  background: #0a0a0a;
  padding: 8px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  padding: 5px 0;
}
.header.scrolled .logo-image {
  height: 30px;
}
.header.scrolled .logo-tagline-img {
  height: 12px;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  transition: transform 0.3s ease;
}

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

.logo-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.5px;
  font-style: italic;
}

/* Logo tagline image */
.logo-tagline-img {
  display: block;
  height: 14px;
  transition: height 0.3s ease;
  width: auto;
  margin-top: 4px;
}

/* Mobile tagline - center between logo and hamburger */
.mobile-tagline {
  display: none;
  height: 18px;
  width: auto;
}

.logo i {
  color: var(--color-gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--color-light-grey);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Highlighted button style (Konfigurator AI) */
.nav-links a.nav-btn-highlight {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-dark) !important;
  padding: 6px 14px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a.nav-btn-highlight i {
  margin-right: 5px;
}

.nav-links a.nav-btn-highlight:hover {
  color: var(--color-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 106, 0.4);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

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

/* No underline for highlighted button (Konfigurator AI) */
.nav-links a.nav-btn-highlight::after {
  display: none;
}

/* Kontakt - wyróżniony przycisk w prawym rogu */
.nav-kontakt {
  margin-left: 8px;
}

.nav-links a.nav-btn-contact {
  background: transparent;
  border: 2px solid var(--color-gold);
  color: var(--color-gold) !important;
  padding: 5px 12px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links a.nav-btn-contact i {
  margin-right: 6px;
}

.nav-links a.nav-btn-contact:hover {
  background: var(--color-gold);
  color: var(--color-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 106, 0.4);
}

.nav-links a.nav-btn-contact::after {
  display: none;
}

body.light-theme .nav-links a.nav-btn-contact {
  color: var(--color-gold-dark) !important;
}

body.light-theme .nav-links a.nav-btn-highlight {
  color: #2F3D40 !important;
}
@media (min-width: 769px) {
  body.light-theme .dropdown-menu {
    background: #fff;
    border-color: rgba(47,61,64,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
}
body.light-theme .dropdown-menu a {
  color: #2F3D40 !important;
}
body.light-theme .dropdown-menu a:hover {
  background: rgba(201,169,106,0.1);
  color: var(--color-gold-dark) !important;
}
body.light-theme .nav-links a.nav-btn-highlight:hover {
  color: #2F3D40 !important;
}

.nav-links a:hover {
  color: var(--color-gold);
}

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

.nav-dropdown>a i {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover>a i,
.has-dropdown:hover>a i {
  transform: rotate(180deg);
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 106, 0.2);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  margin-top: 10px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Breadcrumbs */
.breadcrumbs {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  margin-top: 70px;
}
@media (max-width: 768px) {
  .breadcrumbs {
    margin-top: 56px;
  }
}

.breadcrumbs-scroll {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.breadcrumbs-scroll::-webkit-scrollbar {
  display: none;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  min-width: min-content;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.breadcrumbs-item a {
  color: var(--color-light-grey);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs-item a:hover {
  color: var(--color-gold);
}

.breadcrumbs-item>span[aria-current="page"] {
  color: var(--color-gold);
  font-weight: 600;
}

.breadcrumbs-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--color-light-grey);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  white-space: nowrap;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: rgba(201, 169, 106, 0.1);
  border-left-color: var(--color-gold);
  color: var(--color-gold);
  padding-left: 25px;
}

.dropdown-menu a::after {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #2F3D40;
  box-shadow: 0 5px 20px rgba(201, 169, 106, 0.3);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 169, 106, 0.5);
}

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

.btn-outline:hover {
  background: var(--color-gold);
  color: #2F3D40;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a; /* Fallback kolor jeśli video się nie załaduje */
  z-index: -1; /* Pod video */
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  padding: 40px;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 15px;
  opacity: 0.9;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--color-white), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--color-light-grey);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  font-size: 1.1rem;
  padding: 16px 36px;
  box-shadow: 0 6px 25px rgba(201, 169, 106, 0.5);
}

.btn-hero-primary i {
  margin-right: 8px;
}

.btn-hero-secondary {
  font-size: 0.95rem;
  padding: 12px 24px;
  opacity: 0.85;
}

.btn-hero-secondary i {
  margin-right: 6px;
}

.btn-hero-secondary:hover {
  opacity: 1;
}

/* Section Spacing */
section {
  padding: 60px 0;
}

/* Page Hero - wspólny styl dla podstron */
.page-hero {
  background: rgba(201, 169, 106, 0.07);
  padding: 50px 0;
  text-align: center;
}

/* First section after hero — consistent gap */
.page-hero + section,
.page-hero + div > section:first-child {
  padding-top: 40px;
}

.page-hero h1 {
  color: var(--color-gold);
  margin-bottom: 15px;
  font-size: 2rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--color-light-grey);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-hero .hero-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Home Grid */
.homes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.homes-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 768px) {
  .homes-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Model cards (product listings) ---- */
.model-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(47,61,64,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}
.model-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.model-card-image {
  position: relative;
  height: 330px;
  overflow: hidden;
}
.model-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.model-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-bestseller {
  background: var(--color-gold);
  color: #2F3D40;
}
.badge-polecany {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: #fff;
}
.badge-premium {
  background: linear-gradient(135deg, #9C27B0, #673AB7);
  color: #fff;
}
.model-card-content {
  padding: 25px;
}
.model-card-content h3 {
  color: var(--color-gold-dark);
  font-size: 24px;
  margin-bottom: 5px;
}
.model-card-content .subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}
.model-card-content .price {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}
.model-card-content .price small {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}
.model-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(47,61,64,0.1);
  border-bottom: 1px solid rgba(47,61,64,0.1);
}
.model-specs .spec {
  text-align: center;
}
.model-specs .spec i {
  color: var(--color-gold);
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}
.model-specs .spec span {
  font-size: 12px;
  color: #666;
}
.model-specs .spec strong {
  display: block;
  font-size: 14px;
  color: #1a1a1a;
}
.model-card-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.model-card-buttons .btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}
.model-card-features {
  font-size: 13px;
  color: #666;
}
.model-card-note {
  color: #666;
  font-size: 14px;
}
.custom-project-bg {
  background: linear-gradient(135deg, rgba(201,169,106,0.12) 0%, transparent 40%), linear-gradient(315deg, rgba(201,169,106,0.08) 0%, transparent 40%), #f0ebe0;
  border-top: 1px solid rgba(201,169,106,0.3);
  border-bottom: 1px solid rgba(201,169,106,0.3);
}
.custom-project-section {
  text-align: center;
}
.custom-project-section h2 {
  color: var(--color-gold-dark);
  margin-bottom: 15px;
}
.custom-project-section p {
  color: #555;
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.variants-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.variant-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid var(--color-gold);
  border: 1px solid rgba(47,61,64,0.25);
}
.variant-box h4 {
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}
.variant-box p {
  color: #555;
  font-size: 14px;
  margin-bottom: 10px;
}
.variant-box .insulation {
  background: rgba(212, 175, 55, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #2F3D40;
  display: inline-block;
}
@media (max-width: 768px) {
  .model-card-image {
    height: 220px;
  }
}

.home-card {
  background: var(--color-dark-grey);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.home-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.home-card-img {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(201, 169, 106, 0.95);
  color: var(--color-dark);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-card-content {
  padding: 30px;
}

.home-card-content h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.description {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.btn-link {
  color: var(--color-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
  text-decoration: none;
}

.btn-link:hover {
  gap: 15px;
}

/* Features Section */
.features {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(37, 37, 37, 0.8));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 40px 30px;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  background: rgba(201, 169, 106, 0.1);
}

.feature-item i {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.feature-item h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-dark);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-dark);
  margin-bottom: 20px;
}

.cta-section p {
  color: #222;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-section .btn {
  background: var(--color-dark);
  color: var(--color-white);
}

.cta-section .btn:hover {
  background: var(--color-dark-grey);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  background: var(--color-dark-grey);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-card-link {
  display: block;
  text-decoration: none;
}

.blog-card-link .blog-card-img {
  transition: transform 0.5s ease;
}

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

.blog-card-img {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(201, 169, 106, 0.4);
}

.featured-post {
  grid-column: 1 / -1;
}

.featured-post .blog-card-img {
  height: 400px;
}

.featured-post h3 {
  font-size: 1.8rem;
}

.featured-post p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-card-content {
  padding: 30px;
}

.blog-meta {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.blog-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.blog-card p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Contact Form */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-gold);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  background: rgba(51, 51, 51, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--color-white);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(51, 51, 51, 0.8);
  box-shadow: 0 0 20px rgba(201, 169, 106, 0.2);
}

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

/* Footer */
.footer {
  background: #2F3D40;
  padding: 60px 0 30px 0;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--color-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

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

.footer-links li {
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.footer-links li i {
  color: var(--color-gold);
  margin-top: 3px;
  min-width: 16px;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icons a {
  font-size: 1.8rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--color-gold);
  transform: translateY(-5px);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 12px 15px;
  background: rgba(51, 51, 51, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 10px;
}

.newsletter-form input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-item {
  text-align: center;
  padding: 30px;
  background: rgba(26, 26, 26, 0.9);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-item p {
  color: var(--color-text-muted);
}

/* Team Section */
.team-section {
  margin: 60px 0;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1180px;
}

.team-row-break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.team-card {
  background: rgba(26, 26, 26, 0.9);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 180px;
  flex-shrink: 0;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.team-photo {
  position: relative;
  width: 180px;
  height: 180px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

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

.team-info {
  padding: 14px 12px 16px;
  text-align: center;
}

.team-info h3 {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--color-text);
}

.team-role {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.team-contact a:hover {
  color: var(--color-gold);
}

.team-contact a i {
  color: var(--color-gold);
  width: 16px;
}

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

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

/* Logo styles */
.logo-image {
  height: 36px;
  transition: height 0.3s ease;
  width: auto;
  transition: transform 0.3s ease;
}

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

/* Header logo visibility - dark theme (default): show white logo */
.logo .logo-image.logo-dark-theme {
  display: inline-block;
}

.logo .logo-image.logo-light-theme {
  display: none;
}

/* Header logo visibility - light theme: show dark logo */
body.light-theme .logo .logo-image.logo-dark-theme {
  display: none;
}

body.light-theme .logo .logo-image.logo-light-theme {
  display: inline-block;
}

/* Process Timeline */
.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 30px;
  margin-bottom: 60px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: .6s;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even)>* {
  direction: ltr;
}

.timeline-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  box-shadow: 0 10px 30px rgba(201, 169, 106, .3);
}

.timeline-content {
  background: linear-gradient(135deg, rgba(26, 26, 26, .9), rgba(37, 37, 37, .8));
  padding: 35px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .05);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-gold);
}

.timeline-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Projects Filter */
.projects-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  padding: 0;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, 0.2), transparent);
  transition: 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-dark);
  border-color: var(--color-gold);
  box-shadow: 0 5px 20px rgba(201, 169, 106, 0.4);
  transform: translateY(-2px);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: var(--color-dark-grey);
  border-radius: 20px;
  overflow: hidden;
  transition: .5s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.project-img-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.project-img-link .project-img {
  transition: transform 0.4s ease;
}

.project-img-link:hover .project-img {
  transform: scale(1.05);
}

.project-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-specs {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.project-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.project-spec i {
  color: var(--color-gold);
}

.project-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gold);
  margin: 20px 0;
}

.project-card .btn {
  width: 100%;
}

/* Calculator */
.calculator {
  background: linear-gradient(135deg, rgba(26, 26, 26, .95), rgba(15, 15, 15, .95));
  padding: 60px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.calc-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(42, 42, 42, .6);
  border-radius: 12px;
  transition: .3s;
}

.calc-option:hover {
  background: rgba(201, 169, 106, .1);
}

.calc-option label {
  font-weight: 600;
  font-size: 1.1rem;
}

.calc-option select,
.calc-option input[type="range"] {
  padding: 10px 15px;
  background: rgba(51, 51, 51, .8);
  border: 2px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: var(--color-white);
  font-family: inherit;
  cursor: pointer;
  min-width: 200px;
}

.calc-option input[type="range"] {
  width: 200px;
}

.calc-result {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  color: var(--color-dark);
  position: sticky;
  top: 100px;
}

.calc-result h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.calc-result .price-display {
  font-size: 4rem;
  font-weight: 800;
  margin: 20px 0;
}

.calc-result ul {
  list-style: none;
  text-align: left;
  margin: 30px 0;
}

.calc-result li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  font-weight: 500;
}

.calc-result li i {
  margin-right: 10px;
}

/* Comparison Table */
.comparison {
  background: var(--color-dark-grey);
}

.comparison-table {
  background: var(--color-dark-2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .05);
}

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

.comparison-table th,
.comparison-table td {
  padding: 25px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.comparison-table th {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.comparison-table tr:hover {
  background: rgba(201, 169, 106, .05);
}

.comparison-table i.fa-check {
  color: var(--color-green);
  font-size: 1.3rem;
}

.comparison-table i.fa-times {
  color: #f44336;
  font-size: 1.3rem;
}

/* Gallery */
.gallery {
  background: var(--color-dark);
}

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

.gallery-item {
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  cursor: pointer;
  transition: .4s;
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7));
  opacity: 0;
  transition: .3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials {
  background: var(--color-dark-grey);
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: var(--color-dark-2);
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .05);
}

.testimonial-card .stars {
  color: var(--color-gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
  color: var(--color-text-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-gold);
}

.testimonial-author-info h4 {
  font-size: 1.1rem;
}

.testimonial-author-info span {
  color: var(--color-text-muted);
  font-size: .9rem;
}

/* FAQ */
.faq {
  background: var(--color-dark);
}

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

.faq-item {
  background: var(--color-dark-grey);
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .05);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: .3s;
}

.faq-question:hover {
  background: rgba(201, 169, 106, .1);
}

.faq-question i {
  color: var(--color-gold);
  transition: .3s;
}

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

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

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

.faq-answer-content {
  padding: 0 30px 30px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.chatbot-trigger {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(201, 169, 106, .4);
  transition: .3s;
  animation: pulse 2s infinite;
  border: none;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.chatbot-trigger:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 550px;
  background: var(--color-dark-grey);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .1);
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: var(--color-dark-2);
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.chat-close {
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  padding: 12px 18px;
  border-radius: 15px;
  max-width: 100%;
  font-size: .95rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  background: rgba(201, 169, 106, .2);
  align-self: flex-start;
  border: 1px solid rgba(201, 169, 106, .3);
}

/* Typing indicator - "Konsultant pisze..." */
.typing-indicator .typing-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-indicator .typing-text {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Chat preview panel - podgląd produktu na górze */
/* Inline media w wiadomości bota */
.chat-inline-media {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 106, 0.3);
}

.chat-inline-media img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-inline-media img:hover {
  opacity: 0.85;
}

.chat-media-link {
  display: block;
  padding: 8px 12px;
  background: rgba(201, 169, 106, 0.15);
  color: var(--color-gold);
  font-size: 0.8rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.chat-media-link:hover {
  background: rgba(201, 169, 106, 0.3);
}

.chat-media-link i {
  margin-left: 4px;
}

/* Chat Lightbox */
.chat-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

.chat-lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  color: #fff;
  font-size: 0.95rem;
  margin-top: 12px;
  text-align: center;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 2;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* Responsive */
@media (max-width: 1024px) {

  .team-grid {
    max-width: 100%;
  }

  .homes-grid,
  .blog-grid,
  .features-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Mobile header: logo | tagline | hamburger */
  .header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .mobile-tagline {
    display: block;
    justify-self: center;
    margin: 0 auto;
  }
  .logo-tagline,
  .logo-tagline-img {
    display: none;
  }
  .logo-image {
    height: 38px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0a0a0a;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 999;
    border-left: 1px solid rgba(201, 169, 106, 0.2);
  }
  body.light-theme .main-nav {
    background: #fff !important;
    border-left-color: rgba(0,0,0,0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(47, 61, 64, 0.1);
  }

  .nav-links li.nav-kontakt {
    border-bottom: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(47, 61, 64, 0.15);
  }

  .nav-links>li>a {
    display: block;
    padding: 15px 0;
    text-align: center;
  }

  .has-dropdown > a,
  .nav-dropdown > a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: none;
    min-width: unset;
  }

  .nav-dropdown.active .dropdown-menu,
  .has-dropdown.active .dropdown-menu {
    max-height: 300px;
    padding: 5px 0;
  }

  .dropdown-menu li {
    border-bottom: none;
  }

  .dropdown-menu a {
    padding: 10px 0;
    text-align: center;
    justify-content: center;
    font-size: 0.85rem;
  }

  .breadcrumbs-scroll {
    padding: 0 20px;
    position: relative;
  }

  .breadcrumbs-scroll::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--color-dark));
    pointer-events: none;
  }

  .breadcrumbs-list {
    gap: 4px;
  }

  .breadcrumbs-item {
    font-size: 0.75rem;
    gap: 4px;
  }

  .breadcrumbs-item a {
    padding: 4px 2px;
  }

  .breadcrumbs-item>span[aria-current="page"] {
    padding: 4px 2px;
  }

  .breadcrumbs-separator {
    font-size: 0.65rem;
  }

  .homes-grid,
  .blog-grid,
  .features-grid,
  .contact-info,
  .footer-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Team grid - flex wraps automatically at 180px card width */

  .team-card:hover .team-photo img {
    transform: none;
  }

  .team-info {
    padding: 0;
  }

  .team-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .team-role {
    font-size: 0.75rem;
    padding: 3px 10px;
    margin-bottom: 10px;
  }

  .team-contact {
    gap: 5px;
  }

  .team-contact a {
    font-size: 0.8rem;
  }

  .team-contact a i {
    width: 14px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

  section {
    padding: 50px 0;
  }

  .calculator {
    padding: 30px 20px;
  }

  .calc-result {
    position: relative;
    top: 0;
  }

  .chat-window {
    width: calc(100vw - 40px);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 15px;
    font-size: 0.9rem;
  }
}

/* === NEW FEATURES === */

/* Light Theme */
body.light-theme {
  --color-dark: #f5f5f5;
  --color-dark-grey: #e8e8e8;
  --color-dark-2: #d8d8d8;
  --color-light-grey: #1a1a1a;
  --color-white: #0a0a0a;
  --color-text-muted: #666;
  background-color: #f5f5f5;
  color: #1a1a1a;
}

/* Light theme specific fixes */

/* Footer logo - always white since footer is always dark */
.footer-logo-dark {
  display: inline-block;
}

.footer-logo-light {
  display: none;
}

/* Keep white logo in footer even in light theme (footer stays dark) */
body.light-theme .footer-logo-dark {
  display: inline-block;
}

body.light-theme .footer-logo-light {
  display: none;
}

.footer-description {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Process section on contact page */
.process-section {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(37, 37, 37, 0.8));
  padding: 80px 0;
}

body.light-theme .process-section {
  background: #f5f5f5;
}

/* Process timeline section on homepage */
.process-timeline-section {
  background: var(--color-dark-grey);
}

body.light-theme .process-timeline-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
}

body.light-theme .nav-links a {
  color: #333;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  color: var(--color-gold);
}

body.light-theme .projects-filter {
  background: transparent;
}

body.light-theme .filter-btn {
  background: #fff;
  color: #2F3D40;
  border-color: rgba(47, 61, 64, 0.25);
}

body.light-theme .filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

body.light-theme .filter-btn.active {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-dark);
  border-color: var(--color-gold);
}

body.light-theme .breadcrumbs {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .breadcrumbs-item a {
  color: #666;
}

body.light-theme .breadcrumbs-item a:hover {
  color: var(--color-gold);
}

body.light-theme .breadcrumbs-separator {
  color: rgba(0, 0, 0, 0.3);
}

body.light-theme .breadcrumbs-scroll::after {
  background: linear-gradient(to right, transparent, #f5f5f5);
}

body.light-theme .header {
  background: #f5f5f5;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Light theme scroll progress */
body.light-theme .scroll-progress {
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  box-shadow: 0 2px 10px rgba(180, 140, 50, 0.4);
}

body.light-theme .project-card,
body.light-theme .feature-item,
body.light-theme .faq-item {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .timeline-number {
  background: var(--color-gold);
  color: #fff;
}

body.light-theme .timeline-content {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .timeline-content h3 {
  color: var(--color-gold);
}

body.light-theme .timeline-content p {
  color: #666;
}

/* Contact form in light theme */
body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: #333;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus,
body.light-theme .form-group select:focus {
  border-color: var(--color-gold);
  background: #fff;
  box-shadow: 0 0 20px rgba(201, 169, 106, 0.2);
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
  color: #999;
}

body.light-theme .hero::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(245, 245, 245, 0.4)),
    url('https://images.pexels.com/photos/1643383/pexels-photo-1643383.jpeg?auto=compress&cs=tinysrgb&w=1920') no-repeat center center/cover;
}

body.light-theme .hero-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(245, 245, 245, 0.35));
}

body.light-theme .hero h1 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fff;
  background-clip: unset;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

body.light-theme .hero p {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

body.light-theme .hero-tagline {
  color: var(--color-gold-light);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

body.light-theme .btn-outline {
  border-color: #2F3D40;
  color: #2F3D40;
}

body.light-theme .btn-outline:hover {
  background: #2F3D40;
  border-color: #2F3D40;
  color: #fff;
}

body.light-theme .home-card,
body.light-theme .blog-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .section-header h2 {
  color: #1a1a1a;
}

body.light-theme .selector-card {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .selector-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 10px 40px rgba(201, 169, 106, 0.3);
}

/* Light theme - selector cards with images */
body.light-theme .selector-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
}

body.light-theme .selector-card-image:hover .selector-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
}

body.light-theme .selector-card-image::after {
  background: linear-gradient(135deg, rgba(201, 169, 106, 0) 0%, rgba(201, 169, 106, 0.15) 100%);
}

body.light-theme .selector-card-image h3 {
  color: #1a1a1a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

body.light-theme .selector-card-image p {
  color: #444;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

body.light-theme .selector-card-image .selector-arrow {
  color: var(--color-gold-dark);
}

body.light-theme .selector-card-image:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(201, 169, 106, 0.3);
}

body.light-theme .feature-item h3 {
  color: #1a1a1a;
}

body.light-theme .feature-item p {
  color: #666;
}

body.light-theme .contact-item {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .contact-item h3 {
  color: #1a1a1a;
}

body.light-theme .contact-item p {
  color: #333;
}

body.light-theme .cta-section {
  background: linear-gradient(135deg, #c9a96a 0%, #e0c989 100%) !important;
}

body.light-theme .cta-section h2 {
  color: #2F3D40 !important;
}

body.light-theme .cta-section p {
  color: rgba(47,61,64,0.8) !important;
}

body.light-theme ::-webkit-scrollbar-track {
  background: #f5f5f5;
}

body.light-theme ::-webkit-scrollbar-thumb {
  border-color: #f5f5f5;
}

/* Theme Toggle Button */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero Video */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.75), rgba(26, 26, 26, 0.6));
  z-index: 1;
}

/* House Selector */
.house-selector {
  background: var(--color-dark);
  padding: 80px 0;
}

body.light-theme .house-selector {
  background: #f5f5f5;
}

.house-selector h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2rem;
}

.house-selector>.container>p {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

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

.selector-card-big {
  min-height: 600px;
}

.selector-card {
  background: var(--color-dark-grey);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.selector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, 0.1), transparent);
  transition: 0.5s;
}

.selector-card:hover::before {
  left: 100%;
}

.selector-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(201, 169, 106, 0.5),
    0 0 30px rgba(201, 169, 106, 0.3);
}

.selector-icon {
  font-size: 3.5rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  transition: 0.3s;
}

.selector-card:hover .selector-icon {
  transform: scale(1.15);
}

.selector-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-white);
}

.selector-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.selector-arrow {
  color: var(--color-gold);
  font-size: 1.2rem;
  opacity: 0;
  transition: 0.3s;
}

.selector-card:hover .selector-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* Selector cards with background images */
.selector-card-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 35px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  overflow: hidden;
}

.selector-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  border-radius: 20px;
  pointer-events: none;
}

.selector-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 169, 106, 0) 0%, rgba(201, 169, 106, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  border-radius: 20px;
  pointer-events: none;
}

.selector-card-image:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 106, 0.3);
  transform: translateY(-8px) scale(1.02);
}

.selector-card-image:hover::after {
  opacity: 1;
}

.selector-card-image:hover .selector-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.selector-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.selector-card-image h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.selector-card-image p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 12px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.selector-card-image .selector-arrow {
  display: inline-block;
  color: var(--color-gold);
  font-size: 1.2rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.selector-card-image:hover .selector-arrow {
  opacity: 1;
  transform: translateX(8px);
}

/* Floating Social Media */

.social-facebook {
  background: #1877f2;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-tiktok {
  background: #000;
}

.social-facebook:hover {
  background: #145dbf;
}

/* Footer Social Icons with Brand Colors */
.social-icons .social-facebook {
  color: #1877f2;
}

.social-icons .social-instagram {
  color: #e1306c;
}

.social-icons .social-tiktok {
  color: #000;
}

body.light-theme .social-icons .social-tiktok {
  color: #000;
}

.social-icons a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
}

.social-icons .social-facebook:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
  color: #1877f2;
}

.social-icons .social-instagram:hover {
  background: rgba(225, 48, 108, 0.1);
  border-color: #e1306c;
  color: #e1306c;
}

.social-icons .social-tiktok:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: #000;
}

body.light-theme .social-icons .social-tiktok:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Dropdown menu light theme */
/* dropdown desktop styles in @media min-width:769px block above */

body.light-theme .dropdown-menu a:hover {
  background: rgba(201, 169, 106, 0.1);
  color: var(--color-gold);
}

/* Mobile menu light theme */
body.light-theme .main-nav {
  background: #f5f5f5;
  border-left-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

body.light-theme .mobile-menu-toggle span {
  background: #333;
}

body.light-theme .mobile-menu-toggle.active span:nth-child(1) {
  background: #333;
}

body.light-theme .mobile-menu-toggle.active span:nth-child(2) {
  background: #333;
}

body.light-theme .mobile-menu-toggle.active span:nth-child(3) {
  background: #333;
}

/* Accessibility Features */
.skip-to-content {
  position: absolute;
  top: -1000px;
  left: -1000px;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  z-index: 10000;
}

.skip-to-content:focus {
  top: 20px;
  left: 20px;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  animation: zoomIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--color-gold);
  border: none;
  border-radius: 50%;
  color: var(--color-dark);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: var(--color-gold-light);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--color-gold);
  border: none;
  border-radius: 50%;
  color: var(--color-dark);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--color-gold-light);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: 30px;
}

.lightbox-nav.next {
  right: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Updates */
@media (max-width: 1024px) {
  .selector-grid,
  .selector-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .selector-card-big {
    min-height: 450px;
  }

}

@media (max-width: 768px) {
  .selector-grid,
  .selector-grid-4 {
    grid-template-columns: 1fr;
  }

  .selector-card-big {
    min-height: 350px;
  }

  /* Video teraz wyświetla się również na mobile */
  .hero-video {
    display: block;
    object-fit: cover;
  }

}
/* ============================================
   BLOG PREVIEW SECTION - Homepage
   ============================================ */

.blog-preview {
  padding: 100px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.blog-card {
  background: var(--color-dark-grey);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(201, 169, 106, 0.3);
}

.blog-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  display: block;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
  color: var(--color-gold);
}

.blog-card-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.blog-date,
.blog-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-date i,
.blog-author i {
  color: var(--color-gold);
  font-size: 0.85rem;
}

.blog-excerpt {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-more {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.blog-read-more:hover {
  gap: 12px;
}

.blog-read-more i {
  font-size: 0.9rem;
}

/* Light theme */
body.light-theme .blog-card {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .blog-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body.light-theme .blog-card-content h3 a {
  color: #333;
}

body.light-theme .blog-card-content h3 a:hover {
  color: var(--color-gold);
}

body.light-theme .blog-excerpt {
  color: #666;
}

body.light-theme .blog-card-meta {
  color: #999;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .blog-preview {
    padding: 60px 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card-content h3 {
    font-size: 1.2rem;
  }
}

/* ============================================
   REALIZATIONS SECTION - Product Page
   ============================================ */

.realizations-section {
  padding: 80px 0;
  background: var(--color-dark-grey);
}

.realizations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.realization-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.4s ease;
}

.realization-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.realization-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.realization-item:hover::before {
  opacity: 1;
}

.realization-item:hover img {
  transform: scale(1.1);
}

.realization-item:hover {
  box-shadow: 0 15px 40px rgba(201, 169, 106, 0.3);
}

.realization-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.realization-item:hover .realization-overlay {
  transform: translateY(0);
}

.realization-overlay i {
  font-size: 1.5rem;
  color: var(--color-gold);
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-content {
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.gallery-modal-header h3 {
  font-size: 1.8rem;
  color: var(--color-gold);
  margin: 0;
}

.gallery-modal-close {
  width: 50px;
  height: 50px;
  background: var(--color-gold);
  border: none;
  border-radius: 50%;
  color: var(--color-dark);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-close:hover {
  background: var(--color-gold-light);
  transform: rotate(90deg) scale(1.1);
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-modal-item {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-modal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-modal-item:hover {
  box-shadow: 0 10px 30px rgba(201, 169, 106, 0.4);
}

.gallery-modal-item:hover img {
  transform: scale(1.05);
}

/* Realizations button */
.btn-realizations {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  padding: 14px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-realizations:hover {
  background: rgba(201, 169, 106, 0.1);
  transform: translateY(-2px);
}

.btn-realizations i {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .realizations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .realizations-grid {
    grid-template-columns: 1fr;
  }

  .gallery-modal-grid {
    grid-template-columns: 1fr;
  }

  .gallery-modal {
    padding: 20px;
  }

  .gallery-modal-header h3 {
    font-size: 1.4rem;
  }
}

/* ===========================================
   LIGHT THEME - Section Overrides
   =========================================== */

/* Override inline dark backgrounds for sections */
body.light-theme .section[style*="background"],
body.light-theme section[style*="background"] {
  background: #f5f5f5 !important;
}

body.light-theme .section[style*="dark-grey"],
body.light-theme section[style*="dark-grey"] {
  background: #f8f8f8 !important;
}

/* ===========================================
   LIGHT THEME - CTA Section ULTIMATE FIX
   Maximum specificity to override ALL inline styles
   =========================================== */

/* ---- Steps row (Jak zamówić) ---- */
/* SEO intro grid responsive */
@media (max-width: 768px) {
  .seo-intro-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Steps grid (Projekt indywidualny) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 30px 0;
}
.step-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(47,61,64,0.25);
}
.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: #2F3D40;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.step-card i {
  font-size: 32px;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.step-card h4 {
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.step-card p {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Steps row (Jak zamówić) */
.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step-box {
  text-align: center;
  padding: 28px 16px;
  border-radius: 12px;
}
.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #2F3D40;
  font-weight: 700;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-box h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.step-box p {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
}
body.light-theme .section-dark .step-box {
  background: rgba(255,255,255,0.06);
}
body.light-theme .section-dark .step-box h3 {
  color: #fff !important;
}
body.light-theme .section-dark .step-box p {
  color: rgba(255,255,255,0.7) !important;
}
.steps-row-6 {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1024px) {
  .steps-row-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .steps-row,
  .steps-row-6 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .step-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 16px;
  }
  .step-num {
    flex-shrink: 0;
    margin-bottom: 0;
  }
}

/* CTA Section — dark #2F3D40 background */

/* CTA buttons on gold background */
body.light-theme .cta-section .btn-gold {
  background: #2F3D40 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
}
body.light-theme .cta-section .btn-gold:hover {
  background: #3a4d51 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
body.light-theme .cta-section .btn-outline {
  border-color: #2F3D40 !important;
  color: #2F3D40 !important;
  -webkit-text-fill-color: #2F3D40 !important;
  background: transparent !important;
}
body.light-theme .cta-section .btn-outline:hover {
  background: #2F3D40 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Elements with inline dark backgrounds */
body.light-theme div[style*="background: var(--color-dark)"],
body.light-theme div[style*="background:var(--color-dark)"] {
  background: #f5f5f5 !important;
  border-left-color: var(--color-gold) !important;
}

body.light-theme div[style*="background: linear-gradient"][style*="1a1a1a"],
body.light-theme section[style*="background: linear-gradient"][style*="1a1a1a"] {
  background: #f5f5f5 !important;
}

/* Ensure text is readable in light theme sections */
body.light-theme .section h2,
body.light-theme .section h3 {
  color: #1a1a1a;
}

body.light-theme .section p,
body.light-theme .section span {
  color: #333;
}

/* Process timeline in light theme */
body.light-theme .process-timeline-section,
body.light-theme .process-section {
  background: #f5f5f5 !important;
}

body.light-theme .timeline-content {
  background: #f8f8f8;
  border-color: #e0e0e0;
}

body.light-theme .timeline-content h3 {
  color: #1a1a1a;
}

body.light-theme .timeline-content p {
  color: #555;
}

/* FAQ in light theme */
body.light-theme .faq[style] {
  background: #f5f5f5 !important;
}

body.light-theme .faq-question {
  color: #1a1a1a;
}

body.light-theme .faq-answer-content {
  color: #555;
}

/* Gallery section */
body.light-theme .gallery[style] {
  background: #f8f8f8 !important;
}

/* Features section */
body.light-theme .features[style] {
  background: #f5f5f5 !important;
}

body.light-theme .feature-item {
  background: #f8f8f8;
  border-color: #e0e0e0;
}

body.light-theme .feature-item h3 {
  color: #1a1a1a;
}

body.light-theme .feature-item p {
  color: #555;
}

body.light-theme .feature-item i {
  color: var(--color-gold);
}

/* Benefit cards with inline dark backgrounds (sauny, etc.) */
body.light-theme .benefit-card,
body.light-theme .benefit-card[style],
body.light-theme .benefit-card[style*="background"] {
  background: #fff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .benefit-card h3,
body.light-theme .benefit-card h3[style] {
  color: var(--color-gold-dark) !important;
}

body.light-theme .benefit-card p,
body.light-theme .benefit-card p[style] {
  color: #555 !important;
}

body.light-theme .benefit-card i {
  color: var(--color-gold) !important;
}

/* Benefits grid background */
body.light-theme .benefits-grid[style] {
  background: transparent !important;
}

body.light-theme section[style*="background: var(--color-dark-grey)"] {
  background: #f5f5f5 !important;
}

/* Blog preview section */
body.light-theme .blog-preview[style] {
  background: #f8f8f8 !important;
}

/* ===========================================
   LIGHT THEME - Page-specific components
   =========================================== */

/* Page Hero */
body.light-theme .page-hero {
  background: rgba(201, 169, 106, 0.06) !important;
}

body.light-theme .page-hero h1 {
  color: #1a1a1a;
}

body.light-theme .page-hero p {
  color: #555;
}

body.light-theme .page-hero .hero-badge {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Home cards (used on sauny, domy) */
body.light-theme .home-card {
  background: #fff !important;
  border-color: #e0e0e0 !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .home-card:hover {
  border-color: var(--color-gold) !important;
  box-shadow: 0 10px 30px rgba(201, 169, 106, 0.2);
}

body.light-theme .home-card-content {
  background: #fff;
}

body.light-theme .home-card-content h3 {
  color: #1a1a1a;
}

body.light-theme .home-card-content p,
body.light-theme .home-card-content .description {
  color: #555;
}

body.light-theme .home-card-content .price {
  color: var(--color-gold-dark);
}

/* Model cards (domy-na-zamowienie) */
body.light-theme .model-card {
  background: #fff !important;
  border-color: #e0e0e0 !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .model-card:hover {
  border-color: var(--color-gold) !important;
}

body.light-theme .model-card-content {
  background: #fff;
}

body.light-theme .model-card-content h3 {
  color: var(--color-gold-dark);
}

body.light-theme .model-card-content .subtitle {
  color: #666;
}

body.light-theme .model-card-content .price {
  color: #1a1a1a;
}

body.light-theme .model-card-content .price small {
  color: #666;
}

body.light-theme .model-specs {
  border-color: #e0e0e0;
}

body.light-theme .model-specs .spec span {
  color: #555;
}

/* Variant tabs (domy-od-reki) */
body.light-theme .variant-tabs {
  background: #f5f5f5 !important;
}

body.light-theme .variant-tab {
  color: var(--color-gold-dark);
  border-color: var(--color-gold);
}

body.light-theme .variant-tab:hover {
  background: rgba(201, 169, 106, 0.15);
}

body.light-theme .variant-tab.active {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Spec grid */
body.light-theme .spec-grid {
  background: rgba(201, 169, 106, 0.1);
  border-color: rgba(201, 169, 106, 0.3);
}

body.light-theme .spec-item {
  color: #333;
}

/* Includes list */
body.light-theme .includes-list li {
  color: #333;
  border-bottom-color: #e0e0e0;
}

/* Price styling */
body.light-theme .price-big {
  color: var(--color-gold-dark);
}

body.light-theme .price-note {
  color: #666;
}

/* Availability badge */
body.light-theme .availability-badge {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Homes grid section */
body.light-theme .homes-grid {
  background: transparent;
}

/* Info boxes with dark backgrounds */
body.light-theme div[style*="background: var(--color-dark)"],
body.light-theme div[style*="background:var(--color-dark)"] {
  background: #f5f5f5 !important;
}

body.light-theme div[style*="background: rgba(0,0,0"] {
  background: #f8f8f8 !important;
}

/* Breadcrumbs */
body.light-theme .breadcrumbs {
  background: #f8f8f8;
  border-bottom-color: #e0e0e0;
}

body.light-theme .breadcrumbs-item a {
  color: #555;
}

body.light-theme .breadcrumbs-item a:hover {
  color: var(--color-gold-dark);
}

body.light-theme .breadcrumbs-item > span[aria-current="page"] {
  color: var(--color-gold-dark);
}

body.light-theme .breadcrumbs-separator {
  color: #ccc;
}

/* Tag badges */
body.light-theme .tag {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Generic text fixes for light theme */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4 {
  color: #1a1a1a;
}

body.light-theme p {
  color: #444;
}

/* Buttons in light theme */
body.light-theme .btn-link {
  color: var(--color-gold-dark);
}

body.light-theme .btn-link:hover {
  color: var(--color-gold);
}

/* Sections wrapper override */
body.light-theme section:not(.page-hero):not(.cta-section) {
  background-color: #f5f5f5;
}

body.light-theme section[style*="background: var(--color-dark-grey)"],
body.light-theme section[style*="background:var(--color-dark-grey)"] {
  background: #f8f8f8 !important;
}

/* ===========================================
   LIGHT THEME - Domy na zamówienie components
   =========================================== */

/* Custom project section - light theme handled by .custom-project-bg in domy-na-zamowienie.php */

/* ---- Product tiles (Produkty page) ---- */
.product-tile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  padding: 35px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.product-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  pointer-events: none;
}
body.light-theme .product-tile::before {
  background: linear-gradient(to top, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}
.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.product-tile-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}
.product-tile-content h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.product-tile-content p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
body.light-theme .product-tile-content h3 {
  color: #1a1a1a;
  text-shadow: 0 1px 4px rgba(255,255,255,0.5);
}
body.light-theme .product-tile-content p {
  color: #333;
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}
.product-tile .selector-arrow {
  color: var(--color-gold);
  font-size: 1.1rem;
}

/* ---- Light theme: Global dark bg overrides ---- */
body.light-theme .team-card,
body.light-theme .contact-item,
body.light-theme .timeline-content,
body.light-theme .price-card,
body.light-theme .home-card,
body.light-theme .home-card-od-reki,
body.light-theme .blog-card,
body.light-theme .project-card {
  background: #fff !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: #1a1a1a;
}
body.light-theme .team-card:hover,
body.light-theme .contact-item:hover,
body.light-theme .project-card:hover,
body.light-theme .home-card:hover,
body.light-theme .blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}
body.light-theme .contact-item h3,
body.light-theme .timeline-content h3,
body.light-theme .timeline-content h4,
body.light-theme .price-card h3 {
  color: #1a1a1a !important;
}
body.light-theme .contact-item p,
body.light-theme .timeline-content p,
body.light-theme .price-card p,
body.light-theme .price-card li {
  color: #555 !important;
}
body.light-theme .price-card .price {
  color: #1a1a1a !important;
}
body.light-theme .price-card .price small {
  color: #666 !important;
}
body.light-theme .price-card ul li {
  color: #444 !important;
}
body.light-theme .mobile-menu-toggle span {
  background: #333 !important;
}
body.light-theme .main-nav {
  background: #f5f5f5 !important;
}

/* ---- Section Dark — #2F3D40 accent sections ---- */
body.light-theme .section-dark {
  background: #2F3D40 !important;
  color: #fff;
}
body.light-theme .section-dark h2,
body.light-theme .section-dark h3,
body.light-theme .section-dark h4 {
  color: #fff !important;
}
body.light-theme .section-dark p,
body.light-theme .section-dark span,
body.light-theme .section-dark li {
  color: rgba(255, 255, 255, 0.85) !important;
}
body.light-theme .section-dark .feature-item {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.light-theme .section-dark .feature-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--color-gold) !important;
}
body.light-theme .section-dark .feature-item i {
  color: var(--color-gold) !important;
}
body.light-theme .section-dark .feature-item h3 {
  color: #fff !important;
}
body.light-theme .section-dark .feature-item p {
  color: rgba(255, 255, 255, 0.75) !important;
}
body.light-theme .section-dark .faq-item {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
body.light-theme .section-dark .faq-question {
  color: #fff !important;
}
body.light-theme .section-dark .faq-question i {
  color: var(--color-gold) !important;
}
body.light-theme .section-dark .faq-answer-content {
  color: rgba(255, 255, 255, 0.8) !important;
}
body.light-theme .section-dark .timeline-content {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.light-theme .section-dark .timeline-content h3,
body.light-theme .section-dark .timeline-content h4 {
  color: #fff !important;
}
body.light-theme .section-dark .timeline-content p {
  color: rgba(255, 255, 255, 0.75) !important;
}
body.light-theme .section-dark .btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)) !important;
  color: #2F3D40 !important;
}
body.light-theme .section-dark .btn-outline {
  border-color: #fff !important;
  color: #fff !important;
}
body.light-theme .section-dark .btn-outline:hover {
  background: #fff !important;
  color: #2F3D40 !important;
}

/* ---- Light theme: Subtle borders on white cards ---- */
body.light-theme .project-card,
body.light-theme .model-card,
body.light-theme .blog-card,
body.light-theme .home-card,
body.light-theme .home-card-od-reki,
body.light-theme .feature-item,
body.light-theme .faq-item,
body.light-theme .value-card,
body.light-theme .realizacja-card,
body.light-theme .spec-box,
body.light-theme .contact-info-card,
body.light-theme .contact-item,
body.light-theme .form-card,
body.light-theme .team-card,
body.light-theme .team-about-card,
body.light-theme .ins-card,
body.light-theme .step-card,
body.light-theme .variant-box,
body.light-theme .showroom-box,
body.light-theme .cta-form-card,
body.light-theme .price-card,
body.light-theme .insulation-info,
body.light-theme .selector-card,
body.light-theme .product-tile,
body.light-theme .timeline-item,
body.light-theme .related-post-card,
body.light-theme .author-box,
body.light-theme .post-callout,
body.light-theme .stat-item {
  border: 1px solid rgba(47, 61, 64, 0.25) !important;
}

/* ---- Light theme: Spec boxes ---- */
body.light-theme .spec-box {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left-color: var(--color-gold);
}
body.light-theme .spec-box h4 {
  color: var(--color-gold-dark);
}
body.light-theme .spec-box ul li {
  color: #444;
}
body.light-theme .spec-box ul li strong {
  color: #1a1a1a;
}

/* ---- Light theme: Insulation cards ---- */
body.light-theme .ins-card {
  background: #fff !important;
  border-color: rgba(0,0,0,0.1) !important;
}
body.light-theme .ins-card:hover { background: rgba(212,175,55,0.06) !important; }
body.light-theme .ins-card.ins-active { background: rgba(212,175,55,0.08) !important; border-color: var(--color-gold) !important; }
body.light-theme .ins-card .ins-name { color: #1a1a1a !important; }
body.light-theme .ins-bar-wrap { background: rgba(0,0,0,0.08) !important; }
body.light-theme .ins-usage { color: #666 !important; }

/* ---- Light theme: Interior features ---- */
body.light-theme .int-feature strong { color: #1a1a1a !important; }
body.light-theme .int-feature span { color: #555 !important; }

/* ---- Light theme: Team section ---- */
body.light-theme .team-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.light-theme .team-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
body.light-theme .team-info h3 {
  color: #1a1a1a;
}
body.light-theme .team-contact a {
  color: #555;
}
body.light-theme .team-contact a:hover {
  color: var(--color-gold);
}
.team-desc {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Step cards */
body.light-theme .step-card {
  background: #fff !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

body.light-theme .step-card h4 {
  color: #1a1a1a;
}

body.light-theme .step-card p {
  color: #555;
}

/* Variant boxes */
body.light-theme .variant-box {
  background: #fff !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  border-left: 4px solid var(--color-gold);
}

body.light-theme .variant-box h4 {
  color: var(--color-gold-dark);
}

body.light-theme .variant-box p {
  color: #555;
}

body.light-theme .variant-box .insulation {
  background: rgba(201, 169, 106, 0.15);
  color: #333;
}

/* Variants info section */
body.light-theme .variants-info {
  background: transparent;
}

/* Model card specs */
body.light-theme .model-specs .spec strong {
  color: #1a1a1a;
}

body.light-theme .model-specs .spec span {
  color: #666;
}

/* ===========================================
   LIGHT THEME - Domy od ręki components
   =========================================== */

/* Home card od reki specific */
body.light-theme .home-card-od-reki {
  border-color: var(--color-gold);
}

/* Spec grid light theme */
body.light-theme .spec-grid {
  background: rgba(201, 169, 106, 0.08) !important;
  border-color: rgba(201, 169, 106, 0.2);
}

body.light-theme .spec-item span {
  color: #333;
}

/* Includes list light theme */
body.light-theme .includes-list li {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #333;
}

/* Price elements */
body.light-theme .price-big {
  color: var(--color-gold-dark) !important;
}

body.light-theme .price-note {
  color: #666 !important;
}

/* ===========================================
   LIGHT THEME - Sauny components
   =========================================== */

/* Home cards for sauny */
body.light-theme .home-card .description {
  color: #555;
}

body.light-theme .home-card .price {
  color: var(--color-gold-dark);
}

/* ===========================================
   LIGHT THEME - General inline style overrides
   =========================================== */

/* Override all rgba dark backgrounds */
body.light-theme [style*="background: rgba(0,0,0"],
body.light-theme [style*="background:rgba(0,0,0"] {
  background: #f5f5f5 !important;
}

body.light-theme [style*="background: linear-gradient"][style*="#1a1a1a"],
body.light-theme [style*="background:linear-gradient"][style*="#1a1a1a"] {
  background: #f5f5f5 !important;
}

/* Text color fixes for elements with inline styles */
body.light-theme [style*="color: #888"],
body.light-theme [style*="color:#888"] {
  color: #666 !important;
}

body.light-theme [style*="color: #aaa"],
body.light-theme [style*="color:#aaa"] {
  color: #666 !important;
}

body.light-theme [style*="color: #ccc"],
body.light-theme [style*="color:#ccc"] {
  color: #555 !important;
}

body.light-theme [style*="color: #fff"],
body.light-theme [style*="color:#fff"] {
  color: #1a1a1a !important;
}

/* Fix white text on now-light backgrounds */
body.light-theme .variant-box [style*="color: #fff"] {
  color: #333 !important;
}

/* ===========================================
   LIGHT THEME - Ensure consistent backgrounds
   =========================================== */

/* Main sections - ensure consistent grey background */
body.light-theme section {
  background-color: #f5f5f5;
}

/* Specific section type overrides for consistency */
body.light-theme .section,
body.light-theme .process-timeline-section,
body.light-theme .gallery,
body.light-theme .blog-preview {
  background-color: #f5f5f5 !important;
}
body.light-theme .faq:not(.section-dark),
body.light-theme .features:not(.section-dark) {
  background-color: #f5f5f5 !important;
}

/* Cards remain white for contrast against grey background */
body.light-theme .project-card,
body.light-theme .feature-item,
body.light-theme .faq-item,
body.light-theme .home-card,
body.light-theme .blog-card,
body.light-theme .selector-card:not(.selector-card-image),
body.light-theme .contact-item,
body.light-theme .model-card,
body.light-theme .step-card,
body.light-theme .variant-box,
body.light-theme .benefit-card {
  background-color: #fff;
}

/* ---- Shared team grid (contact + o-nas) ---- */
/* contact-team inherits base .team-grid flex styles */

/* ---- H2 hierarchy fix ---- */
.section-header h2 {
  font-size: 1.6rem;
}
.house-selector h2 {
  font-size: 1.6rem !important;
}
.cta-section h2 {
  font-size: 1.6rem;
}
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.28rem;
  }
}

/* ---- 4-col features grid ---- */
.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .features-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---- Horizontal process timeline ---- */
.process-timeline-horizontal {
  display: flex;
  flex-direction: row;
  gap: 16px;
  max-width: 100%;
  align-items: stretch;
}
.process-timeline-horizontal .timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  opacity: 1;
  transform: none;
  grid-template-columns: unset;
}
.process-timeline-horizontal .timeline-item:nth-child(even) {
  direction: ltr;
}
.process-timeline-horizontal .timeline-number {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.process-timeline-horizontal .timeline-content {
  padding: 20px 14px;
  width: 100%;
  flex: 1;
}
body.light-theme .process-timeline-horizontal .timeline-item {
  border: none !important;
  background: transparent !important;
}
body.light-theme .process-timeline-horizontal .timeline-content {
  background: #fff !important;
  border: 1px solid rgba(47, 61, 64, 0.25) !important;
  border-radius: 12px;
  padding: 24px 18px;
}
/* On dark sections — no white bg, subtle glass effect */
body.light-theme .section-dark .process-timeline-horizontal .timeline-content {
  background: rgba(255,255,255,0.08) !important;
  border: none !important;
  border-radius: 12px;
}
.process-timeline-horizontal .timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.process-timeline-horizontal .timeline-content p {
  font-size: 0.88rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .process-timeline-horizontal {
    flex-direction: column;
    gap: 12px;
  }
  .process-timeline-horizontal .timeline-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .process-timeline-horizontal .timeline-content {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

/* ---- Realizacje cards (homepage) ---- */
.realizacje-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.realizacja-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(26,26,26,0.9);
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.realizacja-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
body.light-theme .realizacja-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.light-theme .realizacja-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body.light-theme .realizacja-info {
  background: #fff;
}
body.light-theme .realizacja-desc {
  color: #555;
}
.realizacja-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.realizacja-info {
  padding: 18px 20px 20px;
}
.realizacja-model {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.realizacja-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 768px) {
  .realizacje-cards {
    grid-template-columns: 1fr;
  }
  .realizacja-img {
    height: 200px;
  }
}

/* Options grid (sauna upsell) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.option-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-dark);
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 106, 0.15);
}
.option-item > i {
  color: var(--color-gold);
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.option-info {
  flex: 1;
}
.option-info h4 {
  color: var(--color-white);
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.option-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}
.option-price {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* Tech spec cards — h4 sizing */
.tech-spec-card h4 {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Light theme: global inline style overrides ---- */
body.light-theme [style*="color: var(--color-white)"] {
  color: #1a1a1a !important;
}
body.light-theme [style*="color:var(--color-white)"] {
  color: #1a1a1a !important;
}
body.light-theme [style*="color: var(--color-text-muted)"] {
  color: #555 !important;
}
body.light-theme [style*="color:var(--color-text-muted)"] {
  color: #555 !important;
}
body.light-theme [style*="color: #fff"] {
  color: #1a1a1a !important;
}
body.light-theme [style*="color:#fff"] {
  color: #1a1a1a !important;
}
body.light-theme [style*="color: #aaa"] {
  color: #666 !important;
}
body.light-theme [style*="color:#aaa"] {
  color: #666 !important;
}
body.light-theme [style*="color: #888"] {
  color: #666 !important;
}
body.light-theme [style*="color:#888"] {
  color: #666 !important;
}
body.light-theme [style*="color: #ccc"] {
  color: #555 !important;
}
body.light-theme [style*="color:#ccc"] {
  color: #555 !important;
}
body.light-theme .showroom-grid div[style*="background: var(--color-dark)"] {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1) !important;
}
body.light-theme .footer {
  background: #2F3D40 !important;
}
body.light-theme .footer,
body.light-theme .footer h4,
body.light-theme .footer a,
body.light-theme .footer li,
body.light-theme .footer p,
body.light-theme .footer-description {
  color: #ccc !important;
}
body.light-theme .footer a:hover {
  color: var(--color-gold) !important;
}

/* ============================================
   SECTION-DARK ULTIMATE OVERRIDE (must be last)
   ============================================ */
body.light-theme section.section-dark,
body.light-theme .section-dark {
  background: #2F3D40 !important;
  background-color: #2F3D40 !important;
}
body.light-theme .section-dark h2,
body.light-theme .section-dark h3,
body.light-theme .section-dark h4,
body.light-theme .section-dark .section-header h2,
body.light-theme .section-dark .section-header p {
  color: #fff !important;
}
body.light-theme .section-dark p,
body.light-theme .section-dark span,
body.light-theme .section-dark li {
  color: rgba(255,255,255,0.85) !important;
}
body.light-theme .section-dark .feature-item,
body.light-theme .section-dark .faq-item,
body.light-theme .section-dark .timeline-item,
body.light-theme .section-dark .timeline-content {
  background: rgba(255,255,255,0.08) !important;
  background-color: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
body.light-theme .section-dark .feature-item i,
body.light-theme .section-dark .faq-question i {
  color: var(--color-gold) !important;
}
body.light-theme .section-dark .feature-item h3,
body.light-theme .section-dark .faq-question,
body.light-theme .section-dark .faq-question span,
body.light-theme .section-dark .timeline-content h3,
body.light-theme .section-dark .timeline-content h4 {
  color: #fff !important;
}
body.light-theme .section-dark .feature-item p,
body.light-theme .section-dark .faq-answer-content,
body.light-theme .section-dark .timeline-content p {
  color: rgba(255,255,255,0.75) !important;
}
body.light-theme .section-dark .team-card {
  background: #fff !important;
}
body.light-theme .section-dark .team-info h3 {
  color: #1a1a1a !important;
}
body.light-theme .section-dark .team-role {
  color: #2F3D40 !important;
}
body.light-theme .section-dark .team-desc,
body.light-theme .section-dark .team-contact a {
  color: #555 !important;
}
body.light-theme .section-dark .showroom-grid div {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
body.light-theme .section-dark .btn-gold {
  background: #fff !important;
  color: #2F3D40 !important;
  -webkit-text-fill-color: #2F3D40 !important;
}
body.light-theme .section-dark .btn-outline {
  border-color: #fff !important;
  color: #fff !important;
}
body.light-theme .section-dark .btn-outline:hover {
  background: #fff !important;
  color: #2F3D40 !important;
}

