/* ========== ZMIENNE I TOKENS (DESIGN SYSTEM) ========== */
:root {
  /* Kolory bazowe */
  --bg-color: #0A0A0A;
  --bg-color-alt: #121212;
  --accent-color: #40BEDB;
  --accent-hover: #48d2f2;
  --secondary-color: #0E424C;

  /* Kolory tekstu */
  --text-main: #ffffff;
  --text-muted: #a0a0a0;

  /* Przestrzenie i wielkości */
  --container-width: 1200px;
  --section-padding: 100px 0;

  /* Typografia */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Cabinet Grotesk', sans-serif;

  /* Zaokrąglenia i efekty */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========== RESET I PODSTAWY ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-darker {
  background-color: var(--bg-color-alt);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

/* ========== PRZYCISKI ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 2px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ========== NAWIGACJA ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

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

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

.logo-img {
  height: 56px;
  /* Zwiększone o 20% z 47px */
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-cta {
  padding: 10px 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ========== JĘZYKI ========== */
body.lang-pl-active .lang-en {
  display: none !important;
}

body.lang-en-active .lang-pl {
  display: none !important;
}

.lang-switcher {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.lang-btn-pl,
.lang-btn-en {
  transition: var(--transition);
}

.lang-btn-pl.active,
.lang-btn-en.active {
  color: var(--accent-color);
}

.lang-separator {
  opacity: 0.3;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin-bottom: 5px;
  transition: var(--transition);
}

.mobile-menu-btn span:last-child {
  margin-bottom: 0;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  margin-top: -50px;
  text-align: center;
  overflow: hidden;
}

/* ========== FLOATING DESIGN ICONS ========== */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.fi-wrap {
  position: absolute;
  left: var(--fi-x);
  top: var(--fi-y);
  will-change: transform;
}

.fi {
  display: block;
  width: var(--fi-size, 40px);
  height: var(--fi-size, 40px);
  color: var(--fi-c, #ffffff);
  opacity: var(--fi-o, 0.15);
  animation: fi-float var(--fi-d, 6s) var(--fi-dl, 0s) ease-in-out infinite;
}

@keyframes fi-float {
  0%, 100% {
    transform: rotate(var(--fi-r, 0deg)) translateY(0px);
  }
  50% {
    transform: rotate(calc(var(--fi-r, 0deg) + var(--fi-dr, 4deg))) translateY(var(--fi-t, -18px));
    opacity: calc(var(--fi-o, 0.15) * 0.55);
  }
}

@media (max-width: 768px) {
  .floating-icons { display: none; }
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ========== GHOST GLOW (DUSZEK KURSORA) ========== */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(80px);
  /* Gęstość rozmycia */
  will-change: transform;
}

.orb-1 {
  background: var(--accent-color);
  opacity: 0.35;
  width: 400px;
  height: 400px;
}

.orb-2 {
  background: var(--secondary-color);
  /* Głęboki morski kolor z logotypu */
  opacity: 0.3;
  width: 300px;
  height: 300px;
}

.orb-3 {
  background: var(--accent-color);
  /* Jasny błękit z logotypu */
  opacity: 0.25;
  width: 200px;
  height: 200px;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;

  /* Animacja wynurzania się z chmur */
  animation: emergeFromClouds 1.8s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
  will-change: transform, opacity, filter;
}


@keyframes emergeFromClouds {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(20px);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ========== USŁUGI ========== */
.services.section {
  padding: 50px 0;
  margin-top: -40px;
}

section.logo-showcase {
  padding: 50px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  perspective: 1000px;
  cursor: pointer;
  height: 220px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-front {
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s;
  justify-content: flex-start;
  padding-bottom: 36px;
}

.service-card:hover .card-front {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-back {
  background: rgba(64, 190, 219, 0.08);
  border-color: rgba(64, 190, 219, 0.2);
  transform: rotateY(180deg);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.card-back p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  animation: none;
}

.service-card.flipped .card-back p {
  animation: slideDown 0.5s ease 0.3s both;
}

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

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.card-front p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 4px;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 209, 255, 0.1);
  color: var(--accent-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ========== LOGO SHOWCASE (INFINITE MARQUEE) ========== */
.logo-showcase {
  background-color: transparent;
  /* Przezroczyste tło */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-showcase .section-subtitle {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text-main);
  /* Powrót do jasnego tekstu */
}

.logos-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  opacity: 1;
  /* Zwiększona widoczność samego paska */
}

/* 
  Sztuczka z nieskończoną taśmą zakłada, że mamy dwa identyczne zastawy i przesuwamy ciąg
  o dokładnie połowę jego szerokości w lewo (-50%), by następnie przeskoczyć bez 
  szmerów błyskawicznie na początek. Oznacza to width: max-content;
*/
.logos-track {
  display: flex;
  align-items: center;
  gap: 96px;
  /* Zmniejszone o 20% z 120px */
  width: max-content;
  padding: 0 40px;
  -webkit-animation: scrollLogos 30s linear infinite;
  animation: scrollLogos 30s linear infinite;
  will-change: transform;
}

@-webkit-keyframes scrollLogos {
  from {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  to {
    -webkit-transform: translateX(calc(-50% - 40px));
    transform: translateX(calc(-50% - 40px));
  }
}

@keyframes scrollLogos {
  from {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  to {
    -webkit-transform: translateX(calc(-50% - 40px));
    transform: translateX(calc(-50% - 40px));
  }
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 144px;
  min-width: 240px;
  -webkit-backface-visibility: hidden; /* Safari Performance */
  backface-visibility: hidden;
  will-change: transform;
}

.logo-item img,
.logo-item svg {
  height: 96px;
  width: auto;
  max-width: 320px;
  filter: grayscale(1) brightness(0.8);
  /* Powrót do przyciemnienia na ciemnym tle */
  opacity: 0.7;
  transition: var(--transition);
}

.logo-item img.bright-logo,
.logo-item svg.bright-logo {
  filter: grayscale(1) brightness(1.2);
  /* Większa jasność dla tych konkretnych logo */
}

.logo-item:hover img,
.logo-item:hover svg {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

/* ========== WYBRANE PRACE ========== */
.work-grid {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.05);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.work-grid::-webkit-scrollbar {
  height: 8px;
}

.work-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
}

.work-grid::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: var(--radius-pill);
}

.work-grid::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-hover);
}

.work-card {
  display: block;
  flex: 0 0 calc(40% - 16px);
  min-width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
}

.work-image {
  width: 100%;
  aspect-ratio: 4/3;
  transition: var(--transition);
  background: linear-gradient(45deg, #111, #1a1a1a);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #555;
  overflow: hidden;
}

.work-image.has-cover {
  background: none;
}

.work-image.has-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.work-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transition: var(--transition);
}

.work-category {
  font-size: 0.85rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.work-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ========== O NAS (ABOUT) ========== */
.about-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.about-content {
  flex: 1;
}

.about-desc p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

.about-logo-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 209, 255, 0.15));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
  animation: floatLogo 6s ease-in-out infinite;
  /* Płynna animacja pływania */
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.about-logo-img:hover {
  transform: translateY(-15px) scale(1.05);
  filter: drop-shadow(0 0 50px rgba(0, 209, 255, 0.45));
}

/* ========== MODAL PROJEKTU (OVERLAY) ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1300px;
  height: 85vh;
  background: var(--bg-color-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: scale(1.05) rotate(90deg);
}

.modal-layout {
  display: flex;
  height: 100%;
}

.modal-gallery {
  width: 65%;
  height: 100%;
  overflow-y: auto;
  padding: 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.05);
}

.modal-gallery::-webkit-scrollbar {
  width: 8px;
}

.modal-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
}

.modal-gallery::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: var(--radius-pill);
}

.modal-img-placeholder {
  width: 100%;
  height: 600px;
  background: linear-gradient(45deg, #111, #1a1a1a);
  margin-bottom: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.2rem;
}

.modal-img-placeholder:last-child {
  margin-bottom: 0;
}

.modal-info {
  width: 35%;
  padding: 60px 40px;
  background: var(--bg-color);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.modal-info h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.modal-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}


/* ========== STOPKA ========== */
.footer {
  background-color: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .container {
  padding-left: 48px;
  padding-right: 48px;
}

/* CTA Banner */
.footer-cta-banner {
  background: linear-gradient(135deg, rgba(64, 190, 219, 0.08) 0%, rgba(64, 190, 219, 0.03) 100%);
  border-bottom: 1px solid rgba(64, 190, 219, 0.12);
  padding: 56px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-cta-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Główna część */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 60px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Social */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(64, 190, 219, 0.08);
}

/* Nagłówki kolumn */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Linki nawigacji */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
}

.footer-nav a:hover {
  color: var(--text-main);
  padding-left: 4px;
}

/* Kontakt */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-contact-row:hover {
  color: var(--accent-color);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(64, 190, 219, 0.08);
  border: 1px solid rgba(64, 190, 219, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-color);
}

/* Dolny pasek */
.footer-bottom-bar {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-made {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero {
    margin-top: 0;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .services.section {
    margin-top: 0;
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .about-grid {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }

  .about-content .section-title {
    text-align: center !important;
  }

  /* Modal responsywność */
  .modal-layout {
    flex-direction: column;
  }

  .modal-gallery {
    width: 100%;
    height: 55%;
    padding: 20px;
  }

  .modal-img-placeholder {
    height: 350px;
  }

  .modal-info {
    width: 100%;
    height: 45%;
    overflow-y: auto;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

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

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-cta-title {
    font-size: 1.5rem;
  }
}


/* FORCED MOBILE FIX FOR LOGOS SECTION v9 - Unified & Smooth */
@media (max-width: 900px) {
  section.logo-showcase {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 60px 0 !important;
  }

  section.logo-showcase .section-subtitle {
     display: block !important;
     visibility: visible !important;
     opacity: 1 !important;
     font-size: 2.25rem !important; /* Match desktop size exactly */
     color: #ffffff !important;
     text-align: center !important;
     margin-bottom: 3rem !important;
     text-transform: none !important;
     letter-spacing: -0.02em !important;
     font-weight: 700 !important;
  }

  .logos-carousel {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .logo-item {
    height: 150px !important;
    min-width: 220px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .logo-item img {
    height: 110px !important;
    width: auto !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    display: block !important;
    max-width: 200px !important;
  }

  .logos-track {
    display: flex !important;
    gap: 40px !important;
    width: max-content !important;
    padding: 0 40px !important;
    -webkit-animation: scrollLogos 20s linear infinite !important;
    animation: scrollLogos 20s linear infinite !important;
    will-change: transform;
  }
}
