:root {
  --primary: #EA1D1B;
  --secondary: #EC5345;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --light-gray: #F7F7F7;
  --neutral: #DED1CF;
}

/* ================================== 
   SCROLL PROGRESS BAR
=================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #FF6B6B 100%);
  z-index: 99999;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(234, 29, 27, 0.5);
  border-radius: 0 2px 2px 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Animacja dla slidera */
.card-fade-in {
  animation: cardFadeIn 0.4s ease-out;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

a {
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================== 
   HEADER & NAV 
=================================== */
.header {
  padding: 20px 0;
  background-color: var(--white);
  position: fixed;
  top: 4px; /* poniżej paska scrollu (4px wysokości) */
  left: 0;
  width: 100%;
  z-index: 9000;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.header-scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Kompensacja dla fixed header — przesunięcie main w dół */
main {
  padding-top: 88px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
  line-height: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo .dot {
  color: var(--primary);
}

.nav > ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

/* ================================== 
   BURGER MENU (mobile only)
=================================== */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 9100;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Nav Overlay (ciemne tło) */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

/* Mobile Side Nav panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 340px;
  height: 100%;
  background: var(--white);
  z-index: 9200;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--black);
  margin-bottom: 20px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

body.nav-open {
  overflow: hidden;
}

/* ================================== 
   DROPDOWN — DESKTOP HOVER
=================================== */
.dropdown {
  position: relative;
}

/* Chevron inline */
.dropdown-toggle svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  transition: transform 0.2s ease;
}

/* Podmenu — domyślnie ukryte */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  min-width: 220px;
  list-style: none;
  z-index: 9500;
  /* Małe trójkącik-strzałka wskazujący na trigger */
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--white);
}

.dropdown-link {
  display: block;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown-link:hover {
  background: var(--light-gray);
  color: var(--primary);
}

/* DESKTOP — otwieranie przez hover (CSS) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    animation: dropFadeIn 0.18s ease;
  }

  .dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
  }
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ================================== 
   MOBILE DROPDOWN ACCORDION
=================================== */
.mobile-dropdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  border-bottom: 1px solid #F0F0F0;
  padding: 12px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  font-family: inherit;
}

.mobile-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-dropdown.open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 8px;
}

.mobile-dropdown.open .mobile-submenu {
  max-height: 200px;
}

.mobile-sub-link {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #F8F8F8;
  transition: color 0.2s;
}

.mobile-sub-link:hover {
  color: var(--primary);
}

/* Responsive: show burger, hide desktop nav on mobile */
@media (max-width: 768px) {
  .deck-control {
    width: 34px;
    height: 34px;
    z-index: 100;
  }
  .control-prev { left: 10px; }
  .control-next { right: 10px; }

  .nav,
  .header-cta {
    display: none;
  }

  .burger-btn {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px; /* Ostre lub lekko radius zaleźnie od screena */
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  font-size: 14px;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: #CC1010;
  border-color: #CC1010;
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--neutral);
  padding: 12px 24px;
  font-size: 14px;
}

.btn-outline:hover {
  border-color: var(--primary);
}

.btn.lg {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: 6px;
}

/* ================================== 
   HERO SECTION
=================================== */
.hero {
  position: relative;
  padding: 80px 20px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-left {
  flex: 1;
  max-width: 550px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Left Content */
.hero-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--black);
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-buttons .btn-outline {
  border-color: var(--primary); /* wg screenshot krawędź jest czerwona */
}

.hero-buttons .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(234, 29, 27, 0.25);
}

.hero-scroll-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-scroll-arrow {
  display: inline-block;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
}

.hero-scroll-arrow:hover {
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Fixly Reviews Block */
.hero-reviews {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.stars {
  display: flex;
  gap: 2px;
}

.review-score {
  font-size: 16px;
  font-weight: 700;
}

.review-text {
  color: #666;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 10px;
}

.fixly-logo {
  color: #005cff;
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.review-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #666;
  margin-left: 4px;
  transition: all 0.2s;
}
.review-link:hover {
  background-color: var(--light-gray);
}


/* ================================== 
   FANNED DECK CARDS (RIGHT SIDE)
=================================== */
.deck-container {
  position: relative;
  width: 520px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-card {
  position: absolute;
  width: 420px; /* Kwadrat */
  height: 420px; /* Kwadrat */
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 10px;
  transition: all 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}

.deck-card-main {
  z-index: 10;
  transform: translate(0, 0) scale(1) rotate(0deg);
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-in;
}

.deck-card-main:hover {
  transform: translate(0, -12px) scale(1.03) rotate(0deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.deck-card-back-right {
  z-index: 5;
  transform: translate(40px, -20px) scale(0.92) rotate(4deg);
  opacity: 0.8;
}

.deck-card-back-left {
  z-index: 2;
  transform: translate(-40px, -20px) scale(0.92) rotate(-4deg);
  opacity: 0.6;
}

/* Pseudo graphic in center */
.card-art {
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.deck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  justify-content: center;
  align-items: center;
}

.leaf-ball {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #7dc242, #418b13);
  border-radius: 50%;
  position: relative;
  z-index: 3;
}

/* Wing left */
.leaf-left {
  position: absolute;
  width: 120px;
  height: 80px;
  background: #5ea81b;
  border-radius: 100px 0 100px 0;
  top: 60px;
  left: 10px;
  transform: rotate(-30deg);
  z-index: 2;
}

/* Wing right */
.leaf-right {
  position: absolute;
  width: 120px;
  height: 80px;
  background: #5ea81b;
  border-radius: 0 100px 0 100px;
  top: 60px;
  right: 10px;
  transform: rotate(30deg);
  z-index: 2;
}

.leaf-shadow {
  position: absolute;
  bottom: 30px;
  width: 160px;
  height: 20px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 1;
}

.card-pill {
  position: absolute;
  bottom: 30px;
  background: var(--white);
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08); border: 1px solid #f0f0f0;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

/* Side controls */
.deck-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #CC0000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 4px 10px rgba(234, 29, 27, 0.4);
}

.deck-control:hover {
  background-color: #AA0000;
}

.control-prev {
  left: -100px;
}

.control-next {
  right: -100px;
}

/* Responsive basics */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    padding-top: 40px;
  }
  .hero-left {
    max-width: 100%;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-reviews {
    justify-content: center;
  }
  .deck-container {
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .hero-right {
    display: none;
  }

  .deck-control {
    width: 34px;
    height: 34px;
    z-index: 100;
  }
  .control-prev { left: 10px; }
  .control-next { right: 10px; }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-title {
    font-size: 40px;
  }
}

/* ================================== 
   PARTNERS SECTION
=================================== */
.partners {
  background-color: var(--light-gray);
  padding: 30px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.partners-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-bottom: 12px;
}

.partners-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Fading edges */
.partners-carousel::before,
.partners-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--light-gray) 0%, rgba(247,247,247,0) 100%);
}

.partners-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--light-gray) 0%, rgba(247,247,247,0) 100%);
}

.partners-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll-partners 20s linear infinite;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.partner-img {
  height: 50px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll-partners {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 30px)); }
}

/* ================================== 
   SERVICES SECTION
=================================== */
.services {
  padding: 100px 20px;
}

.services-header {
  margin-bottom: 60px;
}

.services-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.services-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--black);
}

.services-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  border: 2px solid #EAEAEA;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.service-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-category {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.service-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}

.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 30px;
  flex: 1;
}

.sf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.sf-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.service-card .btn {
  width: 100%;
  text-align: center;
}
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .deck-control {
    width: 34px;
    height: 34px;
    z-index: 100;
  }
  .control-prev { left: 10px; }
  .control-next { right: 10px; }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================== 
   STATS BANNER (Section 4)
=================================== */
.stats-banner {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.stats-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  display: block;
}

.stat-text {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .deck-control {
    width: 34px;
    height: 34px;
    z-index: 100;
  }
  .control-prev { left: 10px; }
  .control-next { right: 10px; }

  .stats-inner {
    flex-wrap: wrap;
    gap: 40px 0;
  }
  .stat-item {
    flex: 0 0 50%;
  }
  .stat-divider {
    display: none;
  }
}

/* ================================== 
   WHY US SECTION (Section 5)
=================================== */
.why-us {
  padding: 120px 0;
  background-color: var(--white);
}

.why-us-inner {
  display: flex;
  gap: 80px;
  align-items: center;
}

.why-us-left {
  flex: 0 0 45%;
}

.why-us-right {
  flex: 1;
}

.why-us .label {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}

.why-us .section-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--black);
}

.why-us .section-desc {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-card {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.benefit-icon {
  color: var(--primary);
  margin-bottom: 4px;
}

.benefit-icon svg {
  display: block;
}

.benefit-stat {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}

.benefit-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .why-us-inner {
    flex-direction: column;
    gap: 60px;
  }
  .why-us-left {
    text-align: center;
  }
  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================== 
   TESTIMONIALS SECTION (Section 6)
=================================== */
.testimonials {
  padding: 120px 0;
  background-color: var(--white);
  overflow: hidden;
}

.testimonials-header {
  margin-bottom: 60px;
}

.testimonials-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}

.testimonials-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.testimonials-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}

.testimonials-nav {
  display: flex;
  gap: 16px;
}

.nav-control {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #E5E5E5;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--black);
}

.nav-control:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Carousel */
.carousel-viewport {
  width: 100%;
  overflow: hidden;
  padding: 20px 0; /* for box-shadow visibility */
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.testimonial-card {
  width: 380px; /* fixed width for cards to make translate calculation robust */
  background-color: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid #F0F0F0;
  flex-shrink: 0; /* important for flex track */
}

.testimonial-card .stars {
  display: flex;
  gap: 4px;
}

.testimonial-card .quote {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  flex-grow: 1;
}

.testimonial-card .author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-card .author strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.testimonial-card .author span {
  font-size: 14px;
  color: #888;
}

/* Footer Fixly */
.testimonials-footer {
  margin-top: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rating-huge {
  font-size: 56px;
  font-weight: 800;
  color: var(--black);
  display: block;
}

.rating-text {
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Styling fake 'fixly' logo same as in header if needed */
.fixly-logo-small {
  font-family: Arial, sans-serif;
  color: #00A6DF;
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  font-variant: small-caps;
}

@media (max-width: 768px) {
  .deck-control {
    width: 34px;
    height: 34px;
    z-index: 100;
  }
  .control-prev { left: 10px; }
  .control-next { right: 10px; }

  .testimonials-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .testimonial-card {
    width: 320px;
    padding: 30px;
  }
}

/* ================================== 
   PORTFOLIO SECTION (Section 6)
=================================== */
.portfolio {
  padding: 120px 0;
  background-color: var(--light-gray);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}

.portfolio-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid #E5E5E5;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #999;
  color: var(--black);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: none; /* hidden by default for JS filtering */
}

.portfolio-item.show {
  display: block;   
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  pointer-events: none;
}

.portfolio-pill {
  background-color: var(--white);
  color: var(--black);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.portfolio-footer {
  text-align: center;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================== 
   CONTACT SECTION (Section 8)
=================================== */
/* ================================== 
   CONTACT SECTION (Section 8) - UNIFIED
=================================== */
.contact-section {
  padding: 80px 0;
  background-color: #F7F7F7;
}

.contact-inner-top {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 60px;
}

/* Left column */
.contact-info {
  flex: 1;
}

.contact-label {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.contact-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-box {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  stroke-width: 2.5px;
}

.contact-row-content {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary);
}

.contact-details-small {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

/* Service Pills at the bottom of left column */
.service-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 8px 16px 8px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid #EDEDED;
}

.pill-icon-box {
  width: 32px;
  height: 32px;
  background: rgba(234, 29, 27, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-icon-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  stroke-width: 2.5px;
}

.pill-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.05em;
}

/* Right column — Form card */
.contact-form-wrap {
  flex: 0 0 450px;
  max-width: 100%;
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.form-group input,
.form-group textarea,
.select-wrapper select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: #FAFAFA;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.select-wrapper select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(234, 29, 27, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #999;
}

.btn-full {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 8px;
}

.form-microcopy {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
}

/* ================================== 
   MAP WIDGET (Bottom Part)
=================================== */
.map-widget {
  max-width: 65%;
  margin: 40px auto 0;
  text-align: center;
}

.map-label {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  height: 380px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-info-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.map-address-text {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
}

.btn-outline-primary {
  padding: 10px 24px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* Responses */
@media (max-width: 992px) {
  .contact-inner-top {
    flex-direction: column;
    gap: 48px;
  }
  .contact-form-wrap {
    flex: none;
    width: 100%;
  }
  .map-widget {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-title {
    font-size: 32px;
  }
  .contact-form-wrap {
    padding: 30px 20px;
  }
}

/* ================================== 
   FOOTER (Sekcja 9)
=================================== */
.footer {
  background-color: #1A1A1A;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 140px !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.footer-dot {
  color: var(--primary);
}

.footer-desc {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.7;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links li {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* Footer Bottom bar */
.footer-bottom {
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}



/* ================================== 
   CONTACT SECTION FEATURES 
=================================== */
.contact-features {
  display: flex;
  gap: 28px;
  margin-top: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(234, 29, 27, 0.08);
  border: 1px solid rgba(234, 29, 27, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover .feature-icon-box {
  transform: translateY(-3px);
  background: rgba(234, 29, 27, 0.12);
}

.feature-icon {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2.5px;
  fill: none;
}

.feature-text {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .deck-control {
    width: 34px;
    height: 34px;
    z-index: 100;
  }
  .control-prev { left: 10px; }
  .control-next { right: 10px; }

  .contact-features {
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
  }
}

/* Hero Scroll Arrow */
.hero-scroll-wrapper {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatArrow 2.5s infinite ease-in-out;
  cursor: pointer;
  padding: 20px;
}

@keyframes floatArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Lightbox Styling */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  padding: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 60px;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .deck-control {
    width: 34px;
    height: 34px;
    z-index: 100;
  }
  .control-prev { left: 10px; }
  .control-next { right: 10px; }

  .hero {
    min-height: 110vh; /* Wi�ksza sekcja Hero na mobile */
    padding-bottom: 120px;
  }
  .deck-card {
    width: 320px;
    height: 320px;
  }
  .deck-container {
    width: 100%;
    height: 450px;
  }
}
