﻿html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

@media (min-width: 1280px) {
  html {
    scroll-padding-top: 150px;
  }
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Fallback for custom Tailwind brand utilities */
.bg-brand-brown {
  background-color: #6b4a2f;
}

.bg-brand-cream {
  background-color: #e8dccc;
}

.bg-brand-cream-light {
  background-color: #f5f0e8;
}

.bg-brand-green {
  background-color: #4a5d52;
}

.bg-brand-green-dark {
  background-color: #3f5047;
}

.bg-brand-dark {
  background-color: #1e1e1e;
}

.bg-brand-beige {
  background-color: #c9b99a;
}

.bg-brand-dark\/95 {
  background-color: rgba(30, 30, 30, 0.95);
}

.bg-brand-brown\/90 {
  background-color: rgba(107, 74, 47, 0.9);
}

.text-brand-brown {
  color: #6b4a2f;
}

.text-brand-cream {
  color: #e8dccc;
}

.text-brand-cream-light {
  color: #f5f0e8;
}

.text-brand-green {
  color: #4a5d52;
}

.text-brand-dark {
  color: #1e1e1e;
}

.text-brand-beige {
  color: #c9b99a;
}

.text-brand-cream\/90 {
  color: rgba(232, 220, 204, 0.9);
}

.border-brand-cream {
  border-color: #e8dccc;
}

.border-brand-brown {
  border-color: #6b4a2f;
}

.border-brand-green {
  border-color: #4a5d52;
}

.hover\:text-brand-cream:hover {
  color: #e8dccc;
}

.hover\:text-brand-green:hover {
  color: #4a5d52;
}

.hover\:text-brand-dark:hover {
  color: #1e1e1e;
}

.hover\:bg-brand-green-dark:hover {
  background-color: #3f5047;
}

.hover\:bg-brand-brown:hover {
  background-color: #6b4a2f;
}

.hover\:bg-brand-brown\/90:hover {
  background-color: rgba(107, 74, 47, 0.9);
}

.hover\:bg-brand-green\/90:hover {
  background-color: rgba(74, 93, 82, 0.9);
}

.hover\:shadow-brand-green\/20:hover {
  box-shadow: 0 10px 15px -3px rgba(74, 93, 82, 0.2),
    0 4px 6px -4px rgba(74, 93, 82, 0.2);
}

#o-nas,
#produkty,
#proces,
#opinie,
#kontakt {
  scroll-margin-top: 100px;
}

@media (min-width: 1280px) {
  #o-nas,
  #produkty,
  #proces,
  #opinie,
  #kontakt {
    scroll-margin-top: 150px;
  }
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

/* ===== Decorative SVG backgrounds ===== */
.deco-svg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.deco-svg-wrap svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.deco-svg-wrap img {
  position: absolute;
  pointer-events: none;
  max-width: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Dark section SVG: shift hue to muted green/beige */
.deco-dark img {
  filter: sepia(1) saturate(0.4) hue-rotate(60deg) brightness(1.8);
}
/* Make sure section content stays above the deco */
.section-has-deco {
  position: relative;
}
.section-has-deco > *:not(.deco-svg-wrap) {
  position: relative;
  z-index: 1;
}

/* Proces section: subtle rotation on desktop */
@media (min-width: 768px) {
  .deco-proces-genwood {
    transform: rotate(5deg);
  }
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #6b4a2f;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a5d52;
}

/* Hero height: 100dvh with 100vh fallback for older browsers */
.hero-height {
  height: 100vh;
  height: 100dvh;
}

.hero-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========================================
   HERO ANIMATIONS - IMMEDIATE ON LOAD
======================================== */
.hero-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-delay-1 {
  animation-delay: 0.2s;
}

.hero-delay-2 {
  animation-delay: 0.4s;
}

.hero-delay-3 {
  animation-delay: 0.6s;
}

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

.nav-link {
  position: relative;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 1rem;
  }
}

.nav-link:hover {
  color: #e8dccc;
}

.mega-menu {
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mega-menu.visible {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0);
}

.menu-category {
  position: relative;
}

.menu-category::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

.menu-category:last-child::after {
  display: none;
}

.menu-item {
  position: relative;
  padding-left: 0;
  transition: all 0.2s ease;
}

.menu-item:hover {
  padding-left: 8px;
}

.menu-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #4a5d52;
  transition: width 0.2s ease;
}

.menu-item:hover::before {
  width: 6px;
}

.mobile-accordion {
  border-radius: 0.5rem;
}

#mobile-products-submenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#navbar.bg-brand-dark\/95 .mega-menu {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(74, 93, 82, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.btn-outline:hover::before {
  width: 300%;
  height: 300%;
}

.btn-outline:hover {
  color: #1e1e1e;
  border-color: white;
  transform: translateY(-3px);
}

.btn-outline span {
  position: relative;
  z-index: 1;
}

.card-hover {
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

.testimonial-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: auto;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

/* P5: Subtle mobile timeline step differentiation */
@media (max-width: 767px) {
  .timeline-step:nth-child(even) {
    background: rgba(74, 93, 82, 0.03);
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

.stagger-item {
  opacity: 0;
}

/* ========================================
   PRODUCTS PAGE - SIDE NAVIGATION
======================================== */
.products-side-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  flex-direction: column;
  gap: 16px;
  width: 10px;
  height: 10px;
  background: rgba(107, 74, 47, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  /* Increase padding for visibility */
  padding: 12px;
  background-clip: content-box;
  border: 2px solid #fff;
}

.side-nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: #6b4a2f;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.side-nav-dot:hover::before {
  opacity: 1;
  background: rgba(107, 74, 47, 0.6);
  transform: scale(1.1);
}
.side-nav-dot.active::before {
  color: #4a5d52;
}

/* Dark section adjustments for nav dots */
.products-side-nav[data-theme="dark"] .side-nav-dot {
  background: rgba(255, 255, 255, 0.3);
}

.products-side-nav[data-theme="dark"] .side-nav-dot::before {
  color: rgba(255, 255, 255, 0.8);
}

.products-side-nav[data-theme="dark"] .side-nav-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.products-side-nav[data-theme="dark"] .side-nav-dot.active {
  background: #4a5d52;
}

/* ========================================
   REVEAL ANIMATIONS - VISIBLE STATES
======================================== */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.parallax-img {
  will-change: transform;
}

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

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

.product-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-thumb {
  transition: all 0.2s ease;
  cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: #4a5d52;
}

.config-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.config-option:hover {
  border-color: #4a5d52;
}

.config-option.selected {
  border-color: #4a5d52;
  background-color: rgba(74, 93, 82, 0.05);
}

.config-option.selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #4a5d52;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8dccc;
}

.spec-item:last-child {
  border-bottom: none;
}

.product-section {
  opacity: 0;
  transform: translateY(60px);
}

.product-section.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.product-image-reveal.visible {
  clip-path: inset(0 0 0 0);
}

.text-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-line span {
  display: block;
  transform: translateY(100%);
  animation: slideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

.hero-title-line:nth-child(2) span {
  animation-delay: 0.15s;
}

.parallax-hover {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.parallax-hover:hover {
  transform: scale(1.02);
}

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

.product-category-link {
  position: relative;
  overflow: hidden;
  padding-bottom: 4px;
}

.product-category-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #4a5d52, #e8dccc);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-category-link:hover::after {
  transform: translateX(0);
}

.product-category-link svg {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-category-link:hover svg {
  transform: translateX(8px);
}

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

.fade-delay-1 {
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  opacity: 0;
}

.fade-delay-2 {
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  opacity: 0;
}

.glow-text {
  transition: text-shadow 0.4s ease;
}

.glow-text:hover {
  text-shadow: 0 0 30px rgba(232, 220, 204, 0.4);
}

.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #4a5d52, #e8dccc);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.hover-lift {
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-bounce {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-bounce:hover {
  transform: scale(1.2);
}

.social-icon {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.social-icon:hover {
  color: #e8dccc;
  transform: translateY(-4px);
}

.link-glow {
  transition: all 0.3s ease;
}

.link-glow:hover {
  color: #e8dccc;
  text-shadow: 0 0 20px rgba(232, 220, 204, 0.5);
}

.stagger-fade-in > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-fade-in.visible > *:nth-child(1) {
  animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.stagger-fade-in.visible > *:nth-child(2) {
  animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.stagger-fade-in.visible > *:nth-child(3) {
  animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.stagger-fade-in.visible > *:nth-child(4) {
  animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

/* ========================================
   CONFIGURATOR PAGE
======================================== */
.configurator-toggle:hover .configurator-chevron {
  color: #4a5d52;
}

.configurator-options {
  overflow: hidden;
}

.configurator-section .config-option {
  transition: all 0.2s ease;
}

.configurator-section .config-option:hover {
  border-color: rgba(74, 93, 82, 0.4);
}

.configurator-section .config-option.selected {
  border-color: #4a5d52;
  background-color: rgba(74, 93, 82, 0.04);
}

.configurator-section .config-option.selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: #4a5d52;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.configurator-chevron {
  transition: transform 0.2s ease;
}

.configurator-chevron.rotate-180 {
  transform: rotate(180deg);
}

/* ========================================
   GALLERY MASONRY
======================================== */
/* --- Gallery filter buttons --- */
.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid #6b4a2f;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b4a2f;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.gallery-filter-btn:hover {
  background: rgba(107, 74, 47, 0.08);
}

.gallery-filter-btn.active {
  background: #6b4a2f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(107, 74, 47, 0.25);
}

.gallery-masonry-item.hidden-by-filter {
  display: none;
}

.gallery-masonry {
  columns: 3;
  column-gap: 1.5rem;
}

.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

.gallery-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery-masonry-item--tall img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 767px) {
  .gallery-masonry {
    columns: 1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-masonry {
    columns: 2;
  }
}

/* ========================================
   GALLERY LIGHTBOX
======================================== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 30, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.gallery-lightbox-close:hover {
  color: #e8dccc;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.25rem;
}

.gallery-lightbox-nav:hover {
  color: #e8dccc;
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

@media (min-width: 640px) {
  .gallery-lightbox-prev {
    left: 2rem;
  }
  .gallery-lightbox-next {
    right: 2rem;
  }
}

/* ========================================
   MOBILE PERFORMANCE OVERRIDES (â‰¤767px)
   Standards: micro 120-180ms, sections 200-350ms,
   page transitions max 400ms, delay max 80ms
======================================== */
@media (max-width: 767px) {
  /* --- DISABLE INFINITE ANIMATIONS (save CPU/GPU) --- */
  .scroll-indicator {
    animation: none;
    transform: translateX(-50%);
  }
  .floating {
    animation: none;
  }
  .shimmer::after {
    animation: none;
    display: none;
  }

  /* --- HERO: fast, no blur filter --- */
  .hero-fade-in {
    animation-duration: 0.3s;
    transform: translateY(15px);
  }
  .hero-delay-1 {
    animation-delay: 0s;
  }
  .hero-delay-2 {
    animation-delay: 0.04s;
  }
  .hero-delay-3 {
    animation-delay: 0.08s;
  }

  .hero-title-line span {
    animation-duration: 0.3s;
  }
  .hero-title-line:nth-child(2) span {
    animation-delay: 0.05s;
  }

  /* --- Disable parallax background-attachment (scroll jank) --- */
  .hero-bg {
    background-attachment: scroll;
  }

  /* --- REVEAL ANIMATIONS: 250ms max --- */
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    transition-duration: 0.25s !important;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }

  /* Reduce initial offset for faster perceived speed */
  .reveal {
    transform: translateY(25px);
  }
  .reveal-left {
    transform: translateX(-25px);
  }
  .reveal-right {
    transform: translateX(25px);
  }
  .reveal-scale {
    transform: scale(0.96);
  }

  /* --- FADE-IN: fast --- */
  .fade-in {
    transition-duration: 0.25s;
    transform: translateY(15px);
  }

  /* --- PRODUCT SECTION: fast --- */
  .product-section {
    transform: translateY(20px);
  }
  .product-section.visible {
    transition-duration: 0.25s;
  }

  /* --- PRODUCT IMAGE REVEAL: replace clip-path with opacity+transform --- */
  .product-image-reveal {
    clip-path: none !important;
    opacity: 0;
    transform: translateX(-15px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease !important;
  }
  .product-image-reveal.visible {
    clip-path: none !important;
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease !important;
  }

  /* --- TEXT REVEAL: fast --- */
  .text-reveal {
    transform: translateY(15px);
  }
  .text-reveal.visible {
    transition-duration: 0.25s;
  }

  /* --- KEYFRAME ANIMATIONS: fast durations & minimal delays --- */
  .fade-delay-1 {
    animation-duration: 0.3s;
    animation-delay: 0.04s;
  }
  .fade-delay-2 {
    animation-duration: 0.3s;
    animation-delay: 0.08s;
  }

  /* --- STAGGER FADE-IN: faster with minimal delays --- */
  .stagger-fade-in.visible > *:nth-child(1) {
    animation-duration: 0.25s;
    animation-delay: 0.02s;
  }
  .stagger-fade-in.visible > *:nth-child(2) {
    animation-duration: 0.25s;
    animation-delay: 0.04s;
  }
  .stagger-fade-in.visible > *:nth-child(3) {
    animation-duration: 0.25s;
    animation-delay: 0.06s;
  }
  .stagger-fade-in.visible > *:nth-child(4) {
    animation-duration: 0.25s;
    animation-delay: 0.08s;
  }

  /* --- DISABLE HOVER EFFECTS (no hover on touch) --- */
  .card-hover {
    transition: transform 0.15s ease;
  }
  .card-hover:hover {
    transform: none;
    box-shadow: none;
  }

  .img-zoom img {
    transition-duration: 0.25s;
  }
  .img-zoom:hover img {
    transform: none;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .product-card:hover img {
    transform: none;
  }
  .product-card img {
    transition-duration: 0.25s;
  }

  .btn-primary {
    transition:
      transform 0.12s ease,
      opacity 0.12s ease;
  }
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
  .btn-primary:active {
    transform: scale(0.97);
  }
  .btn-primary::before {
    display: none;
  }

  .btn-outline {
    transition:
      color 0.12s ease,
      border-color 0.12s ease;
  }
  .btn-outline:hover {
    transform: none;
  }
  .btn-outline:active {
    transform: scale(0.97);
  }
  .btn-outline::before {
    display: none;
  }

  .hover-lift {
    transition: transform 0.12s ease;
  }
  .hover-lift:hover {
    transform: none;
    box-shadow: none;
  }
  .hover-lift:active {
    transform: scale(0.98);
  }

  .parallax-hover:hover {
    transform: none;
  }
  .parallax-hover:hover img {
    transform: none;
  }

  .glow-text:hover {
    text-shadow: none;
  }

  .gallery-masonry-item img {
    transition-duration: 0.25s;
  }
  .gallery-masonry-item:hover img {
    transform: none;
  }

  .social-icon:hover {
    transform: none;
  }
  .social-icon {
    transition: color 0.12s ease;
  }

  .gradient-border::before {
    display: none;
  }

  .product-category-link::after {
    transition-duration: 0.15s;
  }
  .product-category-link svg {
    transition-duration: 0.15s;
  }

  /* --- PARALLAX: disable will-change to save memory --- */
  .parallax-img {
    will-change: auto;
  }

  /* --- TESTIMONIAL SLIDE: fast --- */
  .testimonial-slide {
    transition-duration: 0.2s;
  }

  /* --- GALLERY LIGHTBOX: fast --- */
  .gallery-lightbox {
    transition-duration: 0.15s;
  }

  /* --- TIMELINE NODE: fast --- */
  .timeline-node {
    transition-duration: 0.15s;
  }

  /* --- MEGA MENU: not used on mobile but just in case --- */
  .mega-menu {
    transition-duration: 0.15s;
  }

  /* --- MOBILE MENU SLIDE: fast --- */
  #mobile-products-submenu {
    animation-duration: 0.15s;
  }

  /* --- NAV CTA: fast tap response --- */
  #nav-cta {
    transition-duration: 0.12s;
  }
}

/* ========================================
   FOOTER: compensate mobile CTA bar
======================================== */
@media (max-width: 767px) {
  footer {
    padding-bottom: 5rem;
  }
}

/* ========================================
   TESTIMONIAL: mobile arrow/text overlap fix
======================================== */
@media (max-width: 639px) {
  #prev-btn,
  #next-btn {
    padding: 0.625rem;
    min-width: 44px;
    min-height: 44px;
  }
  #prev-btn svg,
  #next-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .testimonial-slide > div {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Testimonial container min-height to prevent jumps */
#testimonial-container > .relative {
  min-height: 200px;
}

@media (min-width: 640px) {
  #testimonial-container > .relative {
    min-height: 180px;
  }
}

@media (min-width: 768px) {
  #testimonial-container > .relative {
    min-height: 160px;
  }
}

/* ========================================
   HERO: landscape small-screen fix
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto !important;
    height: 100vh;
    height: 100dvh;
  }
  #hero .scroll-indicator {
    display: none;
  }
}

/* ========================================
   MEGA MENU: narrow lg viewport fix
======================================== */
@media (min-width: 1024px) and (max-width: 1200px) {
  .mega-menu {
    transform: translateX(-20%) translateY(10px);
  }
  .mega-menu.visible {
    transform: translateX(-20%) translateY(0);
  }
}

/* ========================================
   TOUCH DEVICE OVERRIDES (iPad, tablets)
   Disable parallax & heavy effects on touch
======================================== */
@media (pointer: coarse) {
  .hero-bg {
    background-attachment: scroll;
  }
  .parallax-img {
    will-change: auto;
  }
}

/* ========================================
   FAQ PAGE
======================================== */
.faq-item {
  border-bottom: 1px solid rgba(107, 74, 47, 0.12);
  transition: background-color 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background-color: rgba(107, 74, 47, 0.03);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease;
  opacity: 0;
}

.faq-answer.open {
  opacity: 1;
}

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-chevron.rotated {
  transform: rotate(180deg);
}

.faq-number {
  font-variant-numeric: tabular-nums;
}

/* FAQ Sidebar Navigation */
.faq-sidebar {
  position: sticky;
  top: 120px;
}

.faq-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #6b4a2f99;
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.faq-sidebar-link:hover {
  color: #6b4a2f;
  background: rgba(107, 74, 47, 0.06);
}

.faq-sidebar-link.active {
  color: #6b4a2f;
  background: rgba(107, 74, 47, 0.08);
  border-left-color: #6b4a2f;
  font-weight: 600;
}

.faq-sidebar-link .sidebar-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(107, 74, 47, 0.08);
  color: #6b4a2faa;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-sidebar-link.active .sidebar-number {
  background: #6b4a2f;
  color: #fff;
}

/* FAQ Section Titles */
.faq-section-title {
  scroll-margin-top: 180px;
}

/* Standard tech spec cards */
.spec-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 28px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 74, 47, 0.08);
}

/* Mobile sidebar horizontal scroll */
@media (max-width: 1023px) {
  .faq-sidebar-mobile {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .faq-sidebar-mobile::-webkit-scrollbar {
    display: none;
  }

  .faq-sidebar-mobile .faq-sidebar-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .faq-sidebar-mobile .faq-sidebar-link.active {
    border-left: none;
    border-bottom-color: #6b4a2f;
  }
}

/* ========================================
   Standard Techniczny â€“ Tech Cards
   ======================================== */

/* Progress bar */
.tech-progress-track {
  width: 120px;
  height: 4px;
  background: rgba(107, 74, 47, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.tech-progress-fill {
  height: 100%;
  width: 0%;
  background: #6b4a2f;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cards grid */
.tech-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .tech-cards-grid {
    gap: 16px;
  }
}

/* Individual card */
.tech-card {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(107, 74, 47, 0.05);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}

@media (min-width: 640px) {
  .tech-card {
    border-radius: 20px;
  }
}

.tech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107, 74, 47, 0.1);
}

.tech-card.open {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(107, 74, 47, 0.12);
  border-color: rgba(107, 74, 47, 0.12);
}

/* Left accent bar */
.tech-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  transition: width 0.3s ease;
}

.tech-card[data-accent="brown"] .tech-card-accent {
  background: #6b4a2f;
}

.tech-card[data-accent="green"] .tech-card-accent {
  background: #4a5d52;
}

.tech-card.open .tech-card-accent {
  width: 5px;
}

/* Ghost number */
.tech-card-ghost {
  position: absolute;
  top: -8px;
  right: 16px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(107, 74, 47, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition:
    color 0.4s ease,
    transform 0.4s ease;
}

@media (min-width: 640px) {
  .tech-card-ghost {
    font-size: 6.5rem;
    right: 24px;
    top: -12px;
  }
}

.tech-card:hover .tech-card-ghost {
  color: rgba(107, 74, 47, 0.06);
  transform: translateY(-2px);
}

.tech-card.open .tech-card-ghost {
  color: rgba(107, 74, 47, 0.07);
  transform: scale(1.05);
}

/* Trigger button */
.tech-card-trigger {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .tech-card-trigger {
    padding: 1.75rem 2rem 1.75rem 2.25rem;
  }
}

.tech-card-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .tech-card-head {
    gap: 1.25rem;
  }
}

/* Icon circle */
.tech-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
  .tech-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
}

.tech-card[data-accent="brown"] .tech-card-icon {
  background: rgba(107, 74, 47, 0.08);
  color: #6b4a2f;
}

.tech-card[data-accent="green"] .tech-card-icon {
  background: rgba(74, 93, 82, 0.08);
  color: #4a5d52;
}

.tech-card.open[data-accent="brown"] .tech-card-icon {
  background: #6b4a2f;
  color: white;
  box-shadow: 0 4px 16px rgba(107, 74, 47, 0.3);
}

.tech-card.open[data-accent="green"] .tech-card-icon {
  background: #4a5d52;
  color: white;
  box-shadow: 0 4px 16px rgba(74, 93, 82, 0.3);
}

/* Title & subtitle */
.tech-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.3;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .tech-card-title {
    font-size: 1.125rem;
  }
}

.tech-card-subtitle {
  font-size: 0.78rem;
  color: rgba(107, 74, 47, 0.45);
  font-weight: 500;
  margin-top: 2px;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .tech-card-subtitle {
    font-size: 0.85rem;
  }
}

.tech-card.open .tech-card-subtitle {
  color: rgba(107, 74, 47, 0.6);
}

/* Toggle icon */
.tech-card-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(107, 74, 47, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b4a2f;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover .tech-card-toggle {
  background: rgba(107, 74, 47, 0.1);
}

.tech-card.open .tech-card-toggle {
  background: #6b4a2f;
  color: white;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(107, 74, 47, 0.25);
}

/* Expandable body */
.tech-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card.open .tech-card-body {
  max-height: 2000px;
}

.tech-card-body-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(107, 74, 47, 0.06);
  padding-top: 1.25rem;
}

@media (min-width: 640px) {
  .tech-card-body-inner {
    padding: 0 2.25rem 2rem 2.25rem;
    padding-top: 1.5rem;
  }
}

.tech-card-body-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.tech-card-body-inner li {
  display: flex;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .tech-card-body-inner li {
    font-size: 0.95rem;
  }
}

.tech-card-body-inner li strong {
  color: #1e1e1e;
}

.tech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
  transition: background 0.3s ease;
}

.tech-card[data-accent="brown"] .tech-dot {
  background: #6b4a2f;
}

.tech-card[data-accent="green"] .tech-dot {
  background: #4a5d52;
}

/* ========================================
   SAUNA PAGE – Configurator (Genwood Style)
   ======================================== */

/* --- Two-column layout → single column --- */
.cfg-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* --- Left column: Steps --- */
.cfg-col-left {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}

.cfg-steps-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Right column: hidden (moved to bottom) --- */
.cfg-col-right {
  display: none;
}

/* ===== Step structure (timeline style like index) ===== */
.cfg-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.25rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .cfg-step {
    grid-template-columns: 5rem 1fr;
    gap: 0 1.5rem;
    padding-bottom: 3.5rem;
  }
}

.cfg-step:last-child {
  padding-bottom: 0;
}

/* --- Vertical timeline marker (index page style) --- */
.cfg-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cfg-step-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  color: #6b4a2f;
  border: 3px solid #e5e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .cfg-step-dot {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.5rem;
    border-width: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

.cfg-step-dot.active {
  background: #6b4a2f;
  color: #fff;
  border-color: #6b4a2f;
  box-shadow: 0 4px 20px rgba(107, 74, 47, 0.3);
}

.cfg-step-line {
  width: 3px;
  flex: 1;
  background: #e5e0d8;
  margin-top: 0.5rem;
  border-radius: 2px;
  /* JS handles scaleY animation via GSAP */
}

/* --- Step content area --- */
.cfg-step-content {
  padding-top: 0.35rem;
}

@media (min-width: 768px) {
  .cfg-step-content {
    padding-top: 0.75rem;
  }
}

.cfg-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 1rem;
  line-height: 3rem;
}

@media (min-width: 768px) {
  .cfg-step-title {
    font-size: 1.5rem;
    line-height: 4.5rem;
    margin-bottom: 1.25rem;
  }
}

/* ===== Bottom Summary Panel ===== */
.cfg-summary-bottom {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  border: 2px solid #e5e0d8;
  box-shadow: 0 4px 24px rgba(107, 74, 47, 0.06);
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .cfg-summary-bottom {
    padding: 2.5rem 2rem;
  }
}

/* Summary image/card grid */
.cfg-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .cfg-summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .cfg-summary-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Single summary card */
.cfg-sc-card {
  border: 2px solid #e5e0d8;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f9f6f1;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cfg-sc-card:hover {
  border-color: #c9b99a;
  box-shadow: 0 4px 12px rgba(107, 74, 47, 0.08);
}

.cfg-sc-card--addon {
  border-color: #4a5d52;
  background: #f0f5f2;
}

.cfg-sc-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f0e8;
}

.cfg-sc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cfg-sc-swatch {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 3px solid #e5e0d8;
}

.cfg-sc-icon {
  color: #6b4a2f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfg-sc-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.cfg-sc-card--addon .cfg-sc-icon {
  color: #4a5d52;
}

.cfg-sc-number {
  font-size: 2rem;
  font-weight: 700;
  color: #6b4a2f;
}

.cfg-sc-info {
  padding: 0.625rem 0.75rem;
  text-align: center;
}

.cfg-sc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716c;
  margin-bottom: 0.15rem;
}

.cfg-sc-value {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.3;
}

/* Bottom summary text list */
.cfg-summary-list-bottom {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e0d8;
}

@media (min-width: 640px) {
  .cfg-summary-list-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cfg-summary-list-bottom li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #78716c;
  line-height: 1.6;
  padding: 0.4rem 0.75rem;
  background: #f9f6f1;
  border-radius: 0.375rem;
  flex-wrap: wrap;
}

.cfg-summary-list-bottom li span:first-child {
  flex-shrink: 0;
}

.cfg-summary-list-bottom li span:last-child {
  font-weight: 600;
  color: #1e1e1e;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

/* Addons row spans full width when in 2-col grid */
.cfg-summary-list-bottom li:last-child {
  grid-column: 1 / -1;
}

/* ===== Option cards grid ===== */
.cfg-cards-grid {
  display: grid;
  gap: 0.75rem;
}

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

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

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

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

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

/* ===== Single option card ===== */
.cfg-card {
  cursor: pointer;
  position: relative;
  height: 100%;
}

.cfg-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cfg-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid #e5e0d8;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  position: relative;
  height: 100%;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

.cfg-card:hover .cfg-card-inner {
  border-color: #c9b99a;
  box-shadow: 0 4px 16px rgba(107, 74, 47, 0.08);
  transform: translateY(-2px);
}

.cfg-card input:checked ~ .cfg-card-inner {
  border-color: #6b4a2f;
  box-shadow: 0 0 0 3px rgba(107, 74, 47, 0.15);
}

/* --- Image area --- */
.cfg-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.cfg-card-img--color {
  transition: filter 0.3s ease;
}

.cfg-card:hover .cfg-card-img--color {
  filter: brightness(1.05);
}

.cfg-card-img--icon {
  aspect-ratio: 4 / 3;
  color: #6b4a2f;
}

.cfg-card-img--icon svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.cfg-card:hover .cfg-card-img--icon svg {
  opacity: 1;
}

/* --- Label --- */
.cfg-card-label {
  display: block;
  padding: 0.625rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.3;
}

.cfg-card-hint {
  display: block;
  padding: 0 0.5rem 0.625rem;
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.35;
}

/* --- Selected indicator --- */
.cfg-card input:checked ~ .cfg-card-inner::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: #6b4a2f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 0.75rem;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(107, 74, 47, 0.3);
}

/* --- Text-only cards (number cards) --- */
.cfg-card--text .cfg-card-inner {
  padding: 1.25rem 0.75rem;
}

.cfg-card-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b4a2f;
  line-height: 1;
}

/* --- Swatch cards (color cards) --- */
.cfg-card--swatch .cfg-card-inner {
  padding: 0.75rem 0.5rem;
  gap: 0.5rem;
}

.cfg-card-swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid #e5e0d8;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cfg-card input:checked ~ .cfg-card-inner .cfg-card-swatch {
  border-color: #6b4a2f;
  transform: scale(1.1);
}

/* --- Material image cards (boazeria / ławki) --- */
.cfg-cards-2x2 {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cfg-cards-2x2 {
    gap: 1rem;
  }
}

.cfg-card--material .cfg-card-inner {
  text-align: left;
  align-items: stretch;
}

.cfg-card--material .cfg-card-img {
  aspect-ratio: 3 / 2;
}

.cfg-card-body {
  padding: 0.625rem 0.75rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cfg-card-body .cfg-card-label {
  padding: 0;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.cfg-card-desc {
  display: block;
  font-size: 0.7rem;
  line-height: 1.45;
  color: #78716c;
}

@media (min-width: 640px) {
  .cfg-card-desc {
    font-size: 0.75rem;
  }
  .cfg-card-body .cfg-card-label {
    font-size: 0.85rem;
  }
  .cfg-card-body {
    padding: 0.75rem 0.875rem 0.875rem;
  }
}

/* Touch-friendly mobile tap targets */
@media (max-width: 639px) {
  .cfg-card {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  .cfg-card--material .cfg-card-img {
    aspect-ratio: 4 / 3;
  }
  .cfg-card-label {
    font-size: 0.78rem;
    padding: 0.5rem 0.4rem;
  }
  .cfg-card input:checked ~ .cfg-card-inner::after {
    width: 1.125rem;
    height: 1.125rem;
    top: 0.375rem;
    right: 0.375rem;
    background-size: 0.6rem;
  }
}

/* --- Checkbox cards (addons) --- */
.cfg-card--check .cfg-card-inner {
  position: relative;
}

.cfg-card-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 2px solid #d1ccc4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.cfg-card--check input:checked ~ .cfg-card-inner .cfg-card-check {
  background: #6b4a2f;
  border-color: #6b4a2f;
}

.cfg-card--check input:checked ~ .cfg-card-inner .cfg-card-check::after {
  content: "✓";
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

/* ===== Form fields (reused) ===== */
.cfg-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cfg-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cfg-input,
.cfg-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e0d8;
  border-radius: 0.5rem;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #1e1e1e;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
}

.cfg-input:focus,
.cfg-textarea:focus {
  border-color: #6b4a2f;
  box-shadow: 0 0 0 3px rgba(107, 74, 47, 0.1);
}

.cfg-input::placeholder,
.cfg-textarea::placeholder {
  color: #a8a29e;
}

.cfg-textarea {
  resize: vertical;
  min-height: 5rem;
}

/* --- Dropzone --- */
.cfg-dropzone {
  border: 2px dashed #d1ccc4;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.cfg-dropzone:hover,
.cfg-dropzone.dragover {
  border-color: #6b4a2f;
  background: rgba(107, 74, 47, 0.03);
}

.cfg-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  font-size: 0.82rem;
  color: #78716c;
}

.cfg-dropzone-label strong {
  color: #6b4a2f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cfg-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cfg-file-list .file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: #1e1e1e;
}

.cfg-file-list .file-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: #78716c;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease;
}

.cfg-file-list .file-chip button:hover {
  color: #dc2626;
}

/* --- Form Success --- */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
}

.form-success.active {
  display: flex;
}

/* ===== Info Cards (unchanged) ===== */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.info-card-icon {
  font-size: 1.75rem;
}

.info-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.info-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ===== Mobile overrides ===== */
@media (max-width: 479px) {
  .cfg-cards-3,
  .cfg-cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cfg-card-img {
    aspect-ratio: 1 / 1;
  }

  .cfg-step {
    grid-template-columns: 2.75rem 1fr;
    gap: 0 0.75rem;
  }

  .cfg-step-dot {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8rem;
    border-width: 3px;
  }

  .cfg-step-title {
    font-size: 1rem;
    line-height: 2.5rem;
  }

  .cfg-summary-bottom {
    padding: 1.25rem 1rem;
  }

  .cfg-summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* ========================================
   CONFIRMATION MODAL
   ======================================== */
.cfg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

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

.cfg-modal-overlay.hidden {
  display: none;
}

.cfg-modal {
  position: relative;
  background: #f5f0e8;
  border-radius: 1.25rem;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .cfg-modal {
    padding: 2.5rem 2rem;
  }
}

.cfg-modal-overlay.active .cfg-modal {
  transform: translateY(0) scale(1);
}

/* Scrollbar */
.cfg-modal-overlay::-webkit-scrollbar {
  width: 6px;
}
.cfg-modal-overlay::-webkit-scrollbar-track {
  background: transparent;
}
.cfg-modal-overlay::-webkit-scrollbar-thumb {
  background: #c9b99a;
  border-radius: 3px;
}

/* Close button */
.cfg-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(107, 74, 47, 0.08);
  border: none;
  color: #6b4a2f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.cfg-modal-close:hover {
  background: rgba(107, 74, 47, 0.15);
  transform: scale(1.1);
}

/* Sections */
.cfg-modal-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.cfg-modal-section {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e0d8;
}

.cfg-modal-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b4a2f;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Data grid inside sections */
.cfg-modal-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

@media (min-width: 480px) {
  .cfg-modal-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cfg-modal-data-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: #f9f6f1;
  border-radius: 0.375rem;
  font-size: 0.82rem;
}

.cfg-modal-data-item span:first-child {
  color: #78716c;
}

.cfg-modal-data-item span:last-child {
  font-weight: 600;
  color: #1e1e1e;
  text-align: right;
  word-break: break-word;
}

/* Tags (addons, files) */
.cfg-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cfg-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: #f9f6f1;
  border: 1px solid #e5e0d8;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1e1e1e;
}

.cfg-modal-tag--addon {
  background: #f0f5f2;
  border-color: #4a5d52;
  color: #4a5d52;
}

.cfg-modal-tag svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

/* Action buttons */
.cfg-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .cfg-modal-actions {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cfg-modal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e0d8;
  border-radius: 0.5rem;
  background: #fff;
  color: #78716c;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.cfg-modal-btn-secondary:hover {
  border-color: #6b4a2f;
  color: #6b4a2f;
}

.cfg-modal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  background: #6b4a2f;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.cfg-modal-btn-primary:hover {
  background: #5a3d26;
}

.cfg-modal-btn-primary:active {
  transform: scale(0.97);
}

@media (min-width: 480px) {
  .cfg-modal-btn-primary {
    margin-left: auto;
  }
}

/* ========================================
   CONTACT PAGE STYLES
======================================== */

/* Hero */
.contact-hero {
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
}

/* Scroll-down indicator arrow */
.scroll-down-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.contact-hero-bg {
  position: absolute;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.contact-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 30, 30, 0.3) 0%,
    rgba(30, 30, 30, 0.6) 50%,
    rgba(30, 30, 30, 0.95) 100%
  );
}

/* Quick contact cards in hero */
.contact-quick-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 0.75rem 0.625rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  text-align: center;
}

@media (min-width: 640px) {
  .contact-quick-card {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
  }
}

.contact-quick-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 93, 82, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-quick-card .card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(74, 93, 82, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  transition: background 0.3s ease;
}

@media (min-width: 640px) {
  .contact-quick-card .card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    margin: 0 0 0.875rem;
  }
}

.contact-quick-card:hover .card-icon {
  background: rgba(74, 93, 82, 0.35);
}

/* Contact form wrapper */
.contact-form-wrapper {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(232, 220, 204, 0.5);
}

@media (min-width: 640px) {
  .contact-form-wrapper {
    padding: 2.5rem 2.5rem;
  }
}

/* Contact inputs */
.contact-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #f5f0e8;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  color: #1e1e1e;
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.contact-input::placeholder {
  color: #9ca3af;
}

.contact-input:focus {
  border-color: #4a5d52;
  background: white;
  box-shadow: 0 0 0 4px rgba(74, 93, 82, 0.08);
}

.contact-input:hover:not(:focus) {
  border-color: #e8dccc;
}

/* Select dropdown arrow */
.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B4A2F' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

/* Submit button */
.contact-submit-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #4a5d52;
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

@media (min-width: 640px) {
  .contact-submit-btn {
    width: auto;
  }
}

.contact-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74, 93, 82, 0.4);
  background: #3d4f45;
}

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

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Info card */
.contact-info-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(232, 220, 204, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

.contact-info-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-info-header {
  background: linear-gradient(135deg, #6b4a2f, #5a3d26);
  padding: 1.5rem;
  color: white;
}

.contact-info-body {
  padding: 1.25rem 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0ebe3;
  transition: padding-left 0.3s ease;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item:hover {
  padding-left: 0.5rem;
}

/* Trust badges */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(232, 220, 204, 0.5);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.trust-badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(74, 93, 82, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Process timeline */
.contact-process-line {
  position: absolute;
  top: 2rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(74, 93, 82, 0.3),
    rgba(74, 93, 82, 0.3),
    transparent
  );
}

.contact-process-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.contact-process-node {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #1e1e1e;
  border: 3px solid rgba(74, 93, 82, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-process-step:hover .contact-process-node {
  border-color: #4a5d52;
  background: rgba(74, 93, 82, 0.15);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(74, 93, 82, 0.2);
}

/* Map */
.contact-map-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(232, 220, 204, 0.5);
}

.contact-map-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
  max-width: 320px;
  transition: all 0.3s ease;
}

.contact-map-overlay:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Form success */
.contact-form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.contact-form-success.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.contact-form-success .success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(74, 93, 82, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: contactScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes contactScaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ========================================
   PRODUCTS PAGE — Hero
======================================== */
.products-hero {
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
}

/* Landscape small-screen fix for products hero */
@media (max-height: 500px) and (orientation: landscape) {
  .products-hero {
    min-height: auto;
    height: 100vh;
    height: 100dvh;
  }
  .products-hero .scroll-indicator {
    display: none;
  }
}

/* Anchor scroll offset for product sections */
#sauny-section,
#wiaty-section,
#meble-section,
#custom-section,
#konfigurator {
  scroll-margin-top: 100px;
}

@media (min-width: 1280px) {
  #sauny-section,
  #wiaty-section,
  #meble-section,
  #custom-section,
  #konfigurator {
    scroll-margin-top: 150px;
  }
}

.products-hero-bg {
  position: absolute;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.products-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.products-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.4) 40%,
    rgba(30, 30, 30, 0.2) 100%
  );
}

/* Category cards in products hero */
.hero-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-category-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 93, 82, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ========================================
   MEBLE PAGE — Hero
======================================== */
.meble-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.meble-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.meble-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.4) 40%,
    rgba(30, 30, 30, 0.15) 100%
  );
}

/* ========================================
   WIATY PAGE — Hero
======================================== */
.wiaty-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.wiaty-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.wiaty-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.8) 0%,
    rgba(30, 30, 30, 0.3) 40%,
    rgba(30, 30, 30, 0.1) 100%
  );
}

/* ========================================
   FAQ PAGE — Hero
======================================== */
.faq-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.faq-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25);
}

.faq-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.4) 40%,
    rgba(30, 30, 30, 0.15) 100%
  );
}

/* ========================================
   GALERIA PAGE — Hero
======================================== */
.galeria-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.galeria-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.galeria-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.4) 40%,
    rgba(30, 30, 30, 0.15) 100%
  );
}

/* ========================================
   STANDARD PAGE — Hero
======================================== */
.standard-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.standard-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.9);
}

.standard-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.4) 40%,
    rgba(30, 30, 30, 0.15) 100%
  );
}

/* ========================================
   SAUNY PAGE — Hero
======================================== */
.sauny-hero {
  height: 100vh;
  height: 100dvh;
}

.sauny-hero-bg {
  position: absolute;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.sauny-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.sauny-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.4) 40%,
    rgba(30, 30, 30, 0.2) 100%
  );
}

/* ========================================
   HISTORIA PAGE — Hero
======================================== */
.historia-hero {
  height: 100vh;
  height: 100dvh;
}

.historia-hero-bg {
  position: absolute;
  top: 4.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.historia-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(0.85);
}

.historia-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.4) 40%,
    rgba(30, 30, 30, 0.2) 100%
  );
}

/* Stat cards */
.historia-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.historia-stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 93, 82, 0.4);
  transform: translateY(-3px);
}

.historia-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #4a5d52;
  line-height: 1;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .historia-stat-number {
    font-size: 2.5rem;
  }
}

/* Desktop navbar is taller — push hero images further down */
@media (min-width: 768px) {
  .products-hero-bg,
  .historia-hero-bg,
  .sauny-hero-bg,
  .contact-hero-bg {
    top: 9rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }
}

/* ========================================
   FIX: iOS auto-zoom on input focus
   (font-size < 16px triggers zoom on iOS)
======================================== */
@media (max-width: 767px) {
  .contact-input,
  .cfg-input,
  .cfg-textarea {
    font-size: 1rem;
  }
}

/* ========================================
   FIX: Contact map overlay overflow on
   very narrow (320px) viewports
======================================== */
@media (max-width: 374px) {
  .contact-map-overlay {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    padding: 1rem;
  }
}

/* ========================================
   FIX: Footer safe-area for notched devices
======================================== */
@media (max-width: 767px) {
  footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* ========================================
   FIX: Focus-visible outlines (WCAG 2.1)
======================================== */
:focus-visible {
  outline: 2px solid #4a5d52;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #4a5d52;
  outline-offset: 2px;
}

.side-nav-dot:focus-visible,
.tech-card-toggle:focus-visible,
.cfg-modal-close:focus-visible,
#prev-btn:focus-visible,
#next-btn:focus-visible {
  outline: 2px solid #6b4a2f;
  outline-offset: 2px;
}

/* ========================================
   FIX: Respect prefers-reduced-motion
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .parallax-img {
    will-change: auto;
    transform: none !important;
  }
}
