@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --primary-blue: #0057a8;
  --primary-blue-hover: #004687;
  --accent-yellow: #f5c400;
  --accent-yellow-hover: #dfb200;
  --bg-white: #ffffff;
  --bg-gray: #f5f5f5;
  --text-black: #1a1a1a;
  --text-gray: #555555;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-black);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-yellow {
  background-color: var(--accent-yellow);
  color: var(--text-black);
}

.btn-yellow:hover {
  background-color: var(--accent-yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-blue {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}

.btn-blue:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.btn-outline-blue:hover {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Header & Info Bar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  flex-direction: column;
  line-height: 1;
  width: fit-content;
  text-decoration: none;
}

.logo span {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-black);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.info-bar {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  font-size: 16px;
  padding: 8px 0;
  font-weight: 500;
}
.info-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.info-bar-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--bg-white);
  text-decoration: none;
  font-weight: 600;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.3);
  margin-left: 16px;
}
.info-bar-contact:hover {
  opacity: 0.85;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-blue);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 85vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 54, 104, 0.45), rgba(0, 54, 104, 0.72)), url('hero-techbud.png');
  background-size: cover;
  background-position: center 58%;
  display: flex;
  align-items: center;
  color: var(--bg-white);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero p {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 400;
  opacity: 0.95;
  max-width: 600px;
  letter-spacing: 0.01em;
  line-height: 1.72;
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-micro-copy {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
  opacity: 1;
  margin-top: 15px;
}

.highlight-dash, .highlight-check {
  color: var(--accent-yellow);
}

/* Pasek przewag */
.benefits-bar {
  background-color: var(--bg-white);
  border-top: 2px solid var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  padding: 22px 0;
}

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

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  text-align: left;
}

.benefit-item:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 22px;
  flex-shrink: 0;
}

.benefit-text {
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-black);
  line-height: 1.2;
}

.benefit-desc {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

/* Partner Logo Bar */
.partners {
  padding: 30px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid #eaeaea;
}

.partners-track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partners-track {
  display: flex;
  width: max-content;
  animation: scroll-partners 30s linear infinite;
  align-items: center;
}

.partners-track-wrapper:hover .partners-track {
  animation-play-state: paused;
}

@keyframes scroll-partners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  padding: 0 45px;
}

.partner-logo:hover {
  filter: grayscale(0%);
}

/* Kategorie Oferty */
.categories {
  padding: 80px 0;
  background-color: var(--bg-white);
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 50px;
}

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

.categories-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #eaeaea;
}

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

.btn-cta-secondary:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-card {
  position: relative;
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

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

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.category-title {
  color: var(--bg-white);
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  position: relative;
  z-index: 2;
  width: 100%;
}

.category-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 0;
  background-color: var(--accent-yellow);
  transition: var(--transition);
}

.category-card:hover .category-accent {
  width: 100%;
}

/* Aktualnie w Markecie */
.news {
  padding: 80px 0;
  background-color: var(--bg-gray);
  text-align: center;
}

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

.news-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
}

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

.news-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-yellow);
  color: var(--text-black);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.news-content {
  padding: 25px;
}

.news-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.news-desc {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-size: 14px;
}

.news-link {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.news-link:hover {
  gap: 8px;
}

/* Tech-Bud w liczbach */
.stats {
  padding: 80px 0;
  background-color: var(--primary-blue);
  color: var(--bg-white);
  text-align: center;
  overflow-x: hidden;
  max-width: 100%;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.stat-number span {
  color: var(--accent-yellow);
}

.stat-text {
  font-size: 15px;
  font-weight: 500;
}

.stats-quote {
  font-style: italic;
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Dostawa i Montaż */
.delivery {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Reverse layout for desktop offering clear 'text-left, img-right' */
.reverse-layout .department-img {
  order: 2;
}

.reverse-layout .department-content {
  order: 1;
}

.delivery-img {
  border-radius: 0;
  width: 132%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.12));
  transform: translateX(-16%);
  transform-origin: center;
}

.delivery-content {
  padding-right: 40px;
}

.tag {
  display: inline-block;
  background-color: var(--accent-yellow);
  color: var(--text-black);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.delivery h2 {
  font-size: 40px;
  margin-bottom: 30px;
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.delivery-item {
  display: flex;
  gap: 15px;
}

.delivery-item-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.delivery-item-text {
  font-weight: 500;
}

.delivery-item-subtext {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 5px;
}

.delivery-micro-copy {
  font-size: 14px;
  font-style: italic;
  color: var(--text-gray);
  margin-bottom: 30px;
  display: block;
}

/* Opinie i referencje */
.reviews {
  padding: 80px 0;
  background-color: var(--bg-white);
  border-top: 1px solid #eaeaea;
  text-align: center;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  border-bottom: 2px solid #eaeaea;
}

.tab {
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--text-gray);
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab.active {
  color: var(--text-black);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-yellow);
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  /* Mask edges so peeking cards fade out */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  padding: 20px 0;
  margin: 0 -20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--bg-white);
  border: 1px solid #eaeaea;
  border-radius: var(--border-radius);
  width: 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.carousel-btn:hover {
  box-shadow: var(--shadow-md);
  color: var(--primary-blue);
}

#review-prev { left: 0; }
#review-next { right: 0; }

.reviews-slider {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 4px 20px;
}

.review-card {
  flex: 0 0 72%;
  background-color: var(--bg-white);
  border: 1px solid #eaeaea;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: block;
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  pointer-events: none;
}

.review-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--shadow-md);
  pointer-events: all;
}

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

.review-quote-icon {
  color: var(--accent-yellow);
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1;
}

.review-text {
  font-size: 16px;
  margin-bottom: 30px;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author-info strong {
  display: block;
  font-family: 'Poppins', sans-serif;
}

.stars {
  color: var(--accent-yellow);
  font-size: 18px;
}

.google-logo {
  width: 24px;
  height: 24px;
}
/* carousel-controls removed — buttons are now positioned absolutely in .reviews-carousel */

/* References Carousel */
.refs-carousel {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  padding: 20px 0;
  margin: 0 -20px;
}

#ref-prev { left: 0; }
#ref-next { right: 0; }

.refs-slider {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 4px 20px;
}

.refs-slider .reference-card {
  flex: 0 0 72%;
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  pointer-events: none;
}

.refs-slider .reference-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--shadow-md);
  pointer-events: all;
}

.reviews-summary {
  margin-top: 30px;
}

.reviews-summary strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

.reviews-link {
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 14px;
}

/* Lokalizacja i Kontakt */
.contact-section {
  display: flex;
  background-color: var(--bg-white);
}

.contact-map {
  width: 50%;
  min-height: 500px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info-container {
  width: 50%;
  padding: 80px 60px;
  background-color: #f8fbff;
}

.contact-info-container h2 {
  font-size: 40px;
  color: var(--primary-blue);
  margin-bottom: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-list-icon {
  color: var(--accent-yellow);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-list-text {
  font-weight: 500;
  font-size: 15px;
}

.contact-actions {
  display: flex;
  gap: 15px;
}

/* Footer */
footer {
  background: #0f1a2e;
  color: #8a9ab5;
  padding: 60px 0 0;
  border-top: 3px solid #f5c400;
  font-weight: 400;
}

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

.footer-logo {
  color: var(--bg-white);
  display: block;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
  color: #94a3b8;
  font-weight: 400;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.footer-heading {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 0px;
  position: relative;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #f5c400;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
}

.footer-contact-item i {
  color: var(--accent-yellow);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-contact-item span {
  line-height: 1.5;
}

.footer-bottom-wrapper {
  background-color: #0a1628;
  margin-top: 20px;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 400;
  color: #475569;
}

.filar-badge {
  color: #475569;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}

.filar-badge:hover {
  color: #ffffff;
}

/* Oferta Page */
.hero-sm {
  height: 40vh;
  min-height: 350px;
  background-image: linear-gradient(rgba(0, 87, 168, 0.7), rgba(0, 87, 168, 0.9)), url('hero-techbud.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  text-align: center;
}

.hero-sm-content {
  width: 100%;
}

.breadcrumb {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.hero-sm h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-sm p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.hero-line {
  width: 60px;
  height: 4px;
  background-color: var(--accent-yellow);
  margin: 25px auto 0;
}

.sticky-nav {
  position: sticky;
  top: 80px;
  background-color: var(--bg-white);
  border-bottom: 1px solid #eaeaea;
  z-index: 90;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sticky-nav.nav-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-nav-list {
  display: flex;
  min-width: max-content;
}

.sticky-nav-item {
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-nav-item.active {
  color: var(--primary-blue);
}

.sticky-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-yellow);
}

.sticky-nav-item:hover {
  background-color: var(--bg-gray);
  color: var(--primary-blue);
}

.department-section {
  padding: 80px 0;
  border-bottom: 1px solid #eaeaea;
}

.department-section:nth-child(even) {
  background-color: var(--bg-gray);
}

.department-img {
  border-radius: var(--border-radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.department-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.category-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.category-list-icon {
  color: var(--accent-yellow);
}

.banner-dostawa {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}

.banner-dostawa-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.banner-dostawa h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.banner-dostawa p {
  opacity: 0.9;
}

.help-section {
  padding: 100px 0;
  background-color: var(--primary-blue);
  color: var(--bg-white);
}

.help-section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.help-eyebrow {
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.help-section h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.2;
  margin: 0;
}

.help-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.help-cta-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  font-size: 15px;
  min-width: 270px;
  text-align: left;
}

.help-cta-btn i {
  font-size: 22px;
  flex-shrink: 0;
}

.help-cta-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-cta-btn-text strong {
  font-size: 17px;
  font-weight: 700;
}

.help-cta-btn-text small {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 400;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--bg-white);
}

.btn-outline-white:hover {
  background: var(--bg-white);
  border-color: var(--bg-white);
  color: var(--primary-blue);
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-content {
  background-color: var(--bg-white);
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-gray);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-black);
}

.modal-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.modal-content p {
  color: var(--text-gray);
  margin-bottom: 25px;
  font-size: 14px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.modal-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: #def6e9;
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

/* Banner Pielna Wersja */
.banner-pelna-wersja {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 87, 168, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-white);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.banner-pelna-wersja.active {
  opacity: 1;
  visibility: visible;
}

.banner-content {
  max-width: 600px;
  padding: 40px;
}

.banner-icon {
  font-size: 64px;
  color: var(--accent-yellow);
  margin-bottom: 20px;
}

.banner-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.banner-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout { gap: 40px; }
  .contact-section { flex-direction: column; overflow: hidden; width: 100%; }
  .contact-map, .contact-info-container { width: 100% !important; flex: none; }
  .contact-map { min-height: 400px; height: 400px; position: relative; }
  .contact-map iframe { width: 100% !important; height: 100% !important; position: absolute; top: 0; left: 0; border: 0; }
  .delivery-img, .department-img { width: 100%; height: auto; transform: none; margin: 0 auto; display: block; }

  /* Adjust carousel buttons on mobile to be smaller and less intrusive */
  .carousel-btn { 
    display: flex !important;
    width: 32px;
    height: 60px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    opacity: 0.8;
  }
  
  .reviews-carousel, .refs-carousel, .partners-track-wrapper { 
    -webkit-mask-image: none !important; 
    mask-image: none !important; 
    overflow: hidden !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .header-main { height: 70px; }
  .logo img { height: 42px; }
  .footer-logo img { height: 54px; }

  /* Hide desktop phone elements on mobile */
  #header-phone { display: none !important; }
  .info-bar-contact { display: none !important; }

  /* Mobile menu — drawer from right */
  .menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 18, 45, 0.48);
    z-index: 97;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  body.menu-open .menu-backdrop { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 86vw);
    height: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    transform: translateX(110%);
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    overflow-y: auto;
    box-shadow: -6px 0 36px rgba(0, 0, 0, 0.18);
    min-height: unset;
  }
  .nav-links.active { transform: translateX(0); }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    position: relative;
  }
  .mobile-menu-btn i {
    color: var(--primary-blue);
    font-size: 26px;
    transition: color 0.2s;
  }
  body.menu-open .mobile-menu-btn { opacity: 0; pointer-events: none; }

  /* Drawer header strip */
  .mobile-nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    background: var(--primary-blue);
    flex-shrink: 0;
  }
  .mobile-nav-drawer-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
  }
  .mobile-nav-close-btn {
    background: rgba(255,255,255,0.14);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  .mobile-nav-close-btn:hover { background: rgba(255,255,255,0.24); }

  /* Nav links inside drawer */
  .nav-links a {
    color: #222;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: background 0.16s, color 0.16s;
    letter-spacing: 0.01em;
  }
  .nav-links a i {
    display: inline-flex;
    width: 20px;
    text-align: center;
    color: var(--primary-blue);
    font-size: 13.5px;
    flex-shrink: 0;
    opacity: 0.75;
  }
  .nav-links a:hover {
    background: #f0f5ff;
    color: var(--primary-blue);
    padding-left: 18px;
  }
  .nav-links a:hover i { opacity: 1; }
  .nav-links a.nav-active {
    color: var(--primary-blue);
    background: #eef4ff;
    border-left: 3px solid var(--primary-blue);
    font-weight: 700;
  }
  .nav-links a.nav-active i { opacity: 1; }

  /* "Strona Główna" only visible in mobile */
  .mobile-only-link { display: flex; }

  /* Hero mobile */
  .hero {
    height: auto;
    min-height: 100svh;
    padding: 120px 0 60px;
    background-position: center center;
    display: flex;
    align-items: center;
    text-align: center;
  }
  .hero h1 {
    font-size: 34px;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 18px;
    max-width: 100%;
  }
  .hero p {
    font-size: 16px;
    line-height: 1.68;
    margin-bottom: 32px;
    max-width: 100%;
  }
  .hero-micro-copy {
    text-align: center;
    width: 100%;
    display: block;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Sticky nav - grid 3x2 na mobile, bez przewijania */
  .sticky-nav {
    top: 70px;
    overflow-x: visible;
  }
  .sticky-nav-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: unset;
  }
  .sticky-nav-item {
    padding: 11px 6px 10px;
    font-size: 10.5px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 5px;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
  }
  .sticky-nav-item:nth-child(3n) { border-right: none; }
  .sticky-nav-item:nth-child(4),
  .sticky-nav-item:nth-child(5),
  .sticky-nav-item:nth-child(6) { border-bottom: none; }
  .sticky-nav-item i { font-size: 16px; }

  /* Benefits bar 2x2 on mobile */
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .benefit-item {
    padding: 16px 14px;
  }
  /* reset desktop right-borders, apply 2x2 borders */
  .benefit-item:not(:last-child) { border-right: none; }
  .benefit-item:nth-child(1) { border-bottom: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; }
  .benefit-item:nth-child(2) { border-bottom: 1px solid #e0e0e0; }
  .benefit-item:nth-child(3) { border-right: 1px solid #e0e0e0; }

  .categories-grid, .news-grid { grid-template-columns: 1fr; }

  .stats-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
  }
  .stat-number { font-size: 3rem; }
  .stat-number span { font-size: 2rem; }

  .split-layout { grid-template-columns: 1fr; }
  
  /* Reset order for mobile */
  .reverse-layout .department-img { order: 0; }
  .reverse-layout .department-content { order: 0; }

  .delivery-img, .department-img { width: 100%; height: auto; max-height: 300px; transform: none; }
  .delivery-content { padding-right: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }

  .banner-dostawa-content { flex-direction: column; gap: 20px; text-align: center; }
  .help-section { padding: 60px 0; }
  .help-section-content { flex-direction: column; text-align: center; gap: 36px; }
  .help-section h2 { font-size: 26px; }
  .help-eyebrow { margin-bottom: 10px; }
  .help-cta-group { width: 100%; }
  .help-cta-btn { min-width: auto; width: 100%; justify-content: center; }

  /* References carousel - wider card on mobile and centered layout */
  .refs-slider .reference-card { 
    flex: 0 0 88%;
    margin-left: auto;
    margin-right: auto;
  }

  .review-card {
    padding: 20px !important;
  }
  
  .review-quote-icon {
    font-size: 24px !important;
    margin-bottom: 10px !important;
  }
  
  .review-text {
    font-size: 14px !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
  }

  /* Centering containers for carousels on small screens */
  .reviews-slider, .refs-slider {
    justify-content: flex-start;
  }

  /* Sticky call button visible on mobile */
  .sticky-call-btn { display: flex; }
}

/* Hide mobile-only elements on desktop */
.mobile-only-link { display: none; }
.mobile-nav-contact { display: none; }
.mobile-nav-footer { display: none; }
.mobile-nav-drawer-header { display: none; }

/* Hide nav icons on desktop — visible only in mobile drawer */
.nav-links a > i { display: none; }

/* Mobile nav footer — CTA + kontakt */
@media (max-width: 768px) {
  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-top: 2px solid #f0f0f0;
    margin-top: auto;
  }
  .mobile-nav-cta {
    width: 100%;
    font-size: 14px;
    padding: 13px 16px;
    text-align: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-weight: 700;
  }
  .mobile-nav-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
  }
  .mobile-nav-info-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
    border-bottom: none !important;
    letter-spacing: 0 !important;
  }
  .mobile-nav-info-link i {
    color: var(--primary-blue) !important;
    font-size: 13px;
    width: 18px;
    text-align: center;
    opacity: 1 !important;
    flex-shrink: 0;
  }
  .mobile-nav-info-link:hover {
    background: #f0f5ff;
    color: var(--primary-blue);
    padding-left: 10px !important;
  }
}

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }

/* References section */
.references-intro {
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 36px;
  text-align: center;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.reference-card {
  background: var(--bg-white);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.ref-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ref-initials {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.ref-company-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-black);
  line-height: 1.3;
}

.ref-company-location {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 4px;
}

.ref-company-location i {
  color: var(--primary-blue);
  margin-right: 3px;
}

.ref-document {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ref-doc-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ref-doc-preview > i {
  font-size: 28px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.ref-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.ref-doc-lines span {
  display: block;
  height: 6px;
  background: #d8d8d8;
  border-radius: 3px;
}

.ref-doc-lines span:first-child { width: 100%; }
.ref-doc-lines span:nth-child(2) { width: 80%; }
.ref-doc-lines span:last-child { width: 60%; }

.ref-doc-meta {
  font-size: 11px;
  color: var(--text-gray);
  white-space: nowrap;
}

.ref-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.reference-card:hover .ref-cta { gap: 10px; }

/* Reference Lightbox */
.ref-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

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

.ref-lightbox-content {
  background: var(--bg-white);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.ref-lightbox-overlay.active .ref-lightbox-content {
  transform: scale(1);
}

.ref-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-gray);
  transition: var(--transition);
  z-index: 1;
}

.ref-lightbox-close:hover {
  background: var(--primary-blue);
  color: #fff;
}

.ref-lightbox-doc {
  padding: 48px;
}

/* Lightbox document styles */
.ref-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-blue);
}

.ref-doc-company-block .company-name-big {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black);
}

.ref-doc-company-block .company-address {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 4px;
}

.ref-doc-date-block {
  text-align: right;
  font-size: 13px;
  color: var(--text-gray);
}

.ref-doc-date-block strong {
  display: block;
  font-size: 15px;
  color: var(--text-black);
}

.ref-doc-title-block {
  text-align: center;
  margin-bottom: 28px;
}

.ref-doc-title-block h3 {
  font-size: 20px;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ref-doc-body {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 30px;
}

.ref-doc-signature {
  display: flex;
  justify-content: flex-end;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid #eaeaea;
}

.ref-sig-block {
  text-align: center;
}

.ref-sig-line {
  width: 160px;
  height: 1px;
  background: #aaa;
  margin-bottom: 8px;
}

.ref-sig-label {
  font-size: 12px;
  color: var(--text-gray);
}

/* Sticky mobile call button — hidden until scrolled past hero */
.sticky-call-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  background: var(--accent-yellow);
  color: var(--text-black);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  align-items: center;
  gap: 10px;
  z-index: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s;
}

.sticky-call-btn.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.menu-open .sticky-call-btn {
  opacity: 0;
  pointer-events: none;
}

.sticky-call-btn:hover {
  background: var(--accent-yellow-hover);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.sticky-call-btn i {
  font-size: 17px;
}

@media (max-width: 768px) {
  .sticky-call-btn { display: flex; }

  .ref-lightbox-doc { padding: 28px 22px; }
  .ref-doc-header { flex-direction: column; gap: 12px; }
  .ref-doc-date-block { text-align: left; }
  .ref-doc-signature { gap: 30px; justify-content: center; }
  .references-grid { grid-template-columns: 1fr; }

  /* Mobile centering for key sections */
  .hero { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { max-width: 280px; }

  .delivery { text-align: center; }
  .delivery-list { text-align: left; }
  .delivery-content .tag { display: inline-block; }

  .contact-info-container { text-align: center; padding: 50px 24px; }
  .contact-list-item { justify-content: center; }
  .contact-actions { justify-content: center; }

  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; }

  /* Final map and overflow safety */
  .contact-map {
    height: 400px !important;
    min-height: 400px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }
  
  .partners-track-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: hidden !important;
  }

  /* Prevent any element from causing horizontal scroll */
  body, html {
    overflow-x: clip !important;
    max-width: 100vw !important;
    position: relative;
    width: 100%;
  }

  /* Force all sections to be contained */
  section {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .contact-section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
}
