/* Reset */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --primary:#1E3A8A;--primary-dark:#172554;--bg:#F3F4F6;--text:#0f172a;--muted:#64748b;
  --surface:#ffffff;--shadow:0 6px 20px rgba(15,23,42,.08);
  --accent:#F97316;--accent-dark:#ea580c
}
html{scroll-behavior:smooth;scroll-padding-top:36px}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* Domyślne style dla desktopa */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
  height: 60px;
  display: flex;
  align-items: center;
}

/* Resetujemy domyślne marginesy */
body {
  margin: 0;
  padding: 0;
}

/* Dla mniejszych ekranów */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px; /* Dodajemy padding, aby uniknąć zasłaniania treści przez fixed navbar */
  }
  
  body {
    padding-top: 60px !important; /* Taka sama wartość jak wysokość paska */
    overflow-x: hidden;
    position: relative;
  }
  
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    padding: 0 10px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  body {
    padding-top: 50px !important; /* Nadpisujemy wszystkie inne style */
    overflow-x: hidden;
  }
  
  .nav-content {
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .brand {
    gap: 8px;
    max-width: calc(100% - 60px); /* Zostawiamy miejsce na przycisk menu */
  }
  
  .navbar .logo {
    height: 40px !important;
    max-height: 40px;
    width: auto;
    object-fit: contain;
  }
  
  .brand-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Styl rozwijanego menu */
  .nav-menu {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin: 0;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 999;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    opacity: 0;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-menu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Zapobiegaj przewijaniu strony, gdy menu jest otwarte */
  body.menu-open {
    overflow: hidden;
    height: 100%;
  }
}

/* Dla większych ekranów */
@media (min-width: 769px) {
  .navbar .logo {
    height: 50px !important;
    max-height: 50px;
    width: auto;
  }
  
  .brand-name {
    font-size: 1rem;
  }
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 80%;
}

.logo {
  height: auto;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.navbar .logo {
  height: 40px;
  max-height: 40px;
  width: auto;
}
.footer .logo{height:clamp(60px,5vw,96px)}
.brand-name{font-weight:700}
.nav-menu{display:flex;list-style:none;gap:20px}
.nav-link{color:var(--text);text-decoration:none;font-weight:500;position:relative}
.nav-link::after{content:'';position:absolute;left:0;bottom:-6px;height:2px;width:0;background:var(--primary);transition:.25s}
.nav-link:hover::after,.nav-link.active::after{width:100%}
.menu-toggle{display:none;background:none;border:0}
.menu-toggle span{display:block;width:24px;height:2px;background:var(--text);margin:4px 0}

/* Hero */
.hero{padding:96px 0;background:linear-gradient(180deg,rgba(15,23,42,.45) 0%,rgba(15,23,42,.45) 100%),url('images/sunset.jpg') center 35%/cover no-repeat}
.hero-title{font-family:'Poppins',sans-serif;font-weight:700;font-size:2.2rem;margin-bottom:12px;color:#ffffff}
.hero-subtitle{color:#e5e7eb;margin-bottom:20px}
.hero .container{display:flex;flex-direction:column;align-items:center;text-align:center}
.hero-logo{display:block;height:clamp(108px,16.8vw,228px);max-width:100%;object-fit:contain;margin:0 auto 24px;background:rgba(255,255,255,.85);padding:12px 18px;border-radius:14px;box-shadow:var(--shadow);backdrop-filter:saturate(120%) blur(2px);border:1px solid rgba(0,0,0,.06)}
.btn{display:inline-block;padding:12px 22px;border-radius:999px;text-decoration:none;border:0;cursor:pointer;transition:.25s}
.btn-primary{background:var(--accent);color:#0b1b3a}
.btn-primary:hover{background:var(--accent-dark);transform:translateY(-2px);box-shadow:var(--shadow)}
.hero .cta-row{display:flex;gap:12px;margin-top:6px;flex-wrap:wrap;justify-content:center}

/* Sections */
.section{padding:64px 0}
.section.alt{background:var(--surface)}
.section-header{text-align:center;margin-bottom:36px}
.section-title{font-size:1.8rem;margin-bottom:6px}
.section-subtitle{color:var(--muted)}

/* Anchor offset for sticky header */
.hero,.trust-bar,.section,.cta-band{scroll-margin-top:36px}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.card{background:#fff;border-radius:12px;box-shadow:var(--shadow);padding:18px}
.card h3{margin-bottom:8px}

/* Trust bar */
.trust-bar{background:var(--surface);padding:20px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}
.trust-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.trust-item{background:#fff;border-radius:10px;padding:10px 12px;text-align:center;box-shadow:var(--shadow);color:var(--primary);font-weight:600}

/* Timeline */
.timeline{display:grid;gap:16px}
.time-item{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:start}
.time-year{font-weight:700;color:var(--primary)}
.time-desc{color:#334155}

/* Experience List */
.experience-list {
  display: grid;
  gap: 20px;
  max-width: 100%;
}

.experience-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
}

.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
}

.experience-period {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.experience-details h4 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.experience-details p {
  margin: 0 0 6px 0;
  color: #334155;
  line-height: 1.5;
  font-size: 0.95rem;
}

.experience-details p:last-child {
  margin-bottom: 0;
}

.experience-details strong {
  color: var(--text);
  font-weight: 600;
}

/* Experience Toggle */
.experience-toggle {
  text-align: center;
  margin-top: 20px;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--primary);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.hidden-experience {
  display: none;
  margin-top: 20px;
  animation: slideDown 0.5s ease-out;
}

.hidden-experience.show {
  display: grid;
  gap: 20px;
}

#toggle-arrow {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

#toggle-arrow.rotated {
  transform: rotate(180deg);
}

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

/* Responsive for experience */
@media (max-width: 768px) {
  .experience-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  
  .experience-period {
    white-space: normal;
    margin-bottom: 4px;
    font-size: 0.9rem;
  }
  
  .experience-details h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .experience-details p {
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .experience-item {
    padding: 14px;
  }
  
  .experience-details h4 {
    font-size: 0.95rem;
  }
  
  .experience-details p {
    font-size: 0.85rem;
  }
}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.gallery-item{background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.gallery-item img{display:block;width:100%;height:190px;object-fit:cover}
.gallery-item figcaption{padding:10px;color:#334155}

/* Contact */
.contact{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.contact-form{display:grid;gap:10px;background:#fff;border-radius:12px;box-shadow:var(--shadow);padding:18px}
.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #e2e8f0;border-radius:10px;font:inherit}

/* Expanded Contact Section */
.contact-info {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary);
  max-width: 500px;
  width: 100%;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
}

.contact-card h3 {
  margin: 0 0 20px 0;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.contact-card p {
  margin: 0 0 16px 0;
  color: #334155;
  line-height: 1.6;
  font-size: 1.05rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card strong {
  color: var(--text);
  font-weight: 600;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

/* Responsive for single contact card */
@media (max-width: 768px) {
  .contact-card {
    padding: 24px;
    margin: 0 16px;
  }
  
  .contact-card h3 {
    font-size: 1.2rem;
  }
  
  .contact-card p {
    font-size: 1rem;
  }
}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--primary)}

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.about-content .section-title {
  color: white;
}

.about-content .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: white;
  margin-bottom: 20px;
  text-align: justify;
}

.about-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-content {
    padding: 24px;
    margin: 0 16px;
  }
  
  .about-content p {
    font-size: 1rem;
    text-align: left;
  }
}

/* Process */
.process .steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.process .step{background:#fff;border-radius:12px;box-shadow:var(--shadow);padding:18px;text-align:left}
.process .step-num{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;background:var(--primary);color:#fff;font-weight:700;margin-bottom:8px}
.process .step h3{margin:6px 0 6px}
.process .step p{color:#334155}

/* About */
.about .about-content{max-width:900px}
.about .about-text .bullets{margin-top:10px;padding-left:16px}
.about .about-text .bullets li{margin:4px 0}

/* Why (advantages) */
.why .adv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.why .adv{background:#fff;border-radius:12px;box-shadow:var(--shadow);padding:18px}
.why .adv h3{font-size:1rem;margin-bottom:6px;color:var(--primary)}
.why .adv p{color:#334155}

/* Case study */
.case .case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.case .case-card{background:#fff;border-radius:12px;box-shadow:var(--shadow);padding:18px;display:grid;gap:8px}
.case .meta{color:#64748b;font-size:.9rem}

/* Sticky CTA (mobile) */
.sticky-cta{position:fixed;left:0;right:0;bottom:12px;display:none;justify-content:center;z-index:60}
.sticky-cta .wrap{background:#ffffffcc;backdrop-filter:saturate(120%) blur(8px);border:1px solid #e5e7eb;border-radius:999px;box-shadow:var(--shadow);display:flex;gap:10px;padding:8px 12px}
.sticky-cta .btn{padding:10px 16px}

/* CTA band */
.cta-band{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;padding:36px 0}
.cta-content{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.cta-actions{display:flex;gap:12px;margin-top:6px}
.btn-invert{background:#fff;color:var(--primary);border:1px solid rgba(255,255,255,.6)}
.btn-invert:hover{background:#f1f5f9;color:var(--primary-dark)}

/* Footer */
.footer{background:rgba(255,255,255,.9);backdrop-filter:blur(10px);color:var(--text);padding:28px 0;box-shadow:0 -2px 10px rgba(0,0,0,.06)}
.footer-content{display:flex;align-items:center;justify-content:space-between;gap:16px}
.footer-links a{color:var(--text);text-decoration:none;margin-left:12px}
.footer-links a:hover{color:var(--primary)}
.footer .social a{color:#0A66C2;display:inline-flex;align-items:center}
.footer .social a:hover{color:#084c96}
.footer .social svg{width:72px;height:72px}

/* Gallery Pagination */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  position: relative;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  flex-shrink: 0;
}

.pagination-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

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

.pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-btn span {
  display: block;
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 0;
  flex: 1;
  max-width: 100%;
}

.pagination-info {
  text-align: center;
  margin-top: 20px;
}

#page-indicator {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: 20px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .gallery-pagination {
    gap: 10px;
    margin: 20px 0;
  }
  
  .pagination-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #fff;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-overlay span {
  color: white;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
}

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

.gallery-item.empty {
  visibility: hidden;
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

@media (max-width: 768px) {
  .gallery-item img {
    height: 250px;
  }
}

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px;
  font-size: 0.95rem;
  text-align: center;
}

/* Project Details in Modal */
.project-details-container {
  flex: 1 1 40%;
  min-width: 300px;
  max-height: 80vh;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 0.9em;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-details {
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-details h3 {
  color: var(--primary);
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.detail-item {
  display: flex;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.detail-label {
  font-weight: 600;
  margin-right: 4px;
  color: var(--text);
}

.detail-value {
  color: var(--muted);
}

.detail-description {
  margin: 10px 0;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.95em;
}

.detail-scope {
  margin: 10px 0 0 0;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.detail-scope h4 {
  color: var(--primary);
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.detail-scope ul {
  list-style-type: none;
  padding-left: 0;
  margin: 5px 0 0 0;
}

.detail-scope li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.85em;
  line-height: 1.4;
}

.detail-scope li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.97);
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.gallery-modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.gallery-slide {
  position: relative;
  width: 60%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  margin: 0;
  padding: 0;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: 0;
  padding: 20px;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
  background: #000;
}

#modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.image-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1.1rem;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: fixed;
  width: 50px;
  height: 50px;
  color: white;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 28px;
  transition: all 0.3s ease;
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Wersja mobilna */
@media (max-width: 768px) {
  .prev, .next {
    width: 36px;
    height: 36px;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.4); /* Bardziej przezroczyste tło */
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.2s ease;
  }
  
  .prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
  }
  
  .prev {
    left: 5px;
  }
  
  .next {
    right: 5px;
  }
}

/* A11y */
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{position:fixed;left:16px;top:16px;background:#000;color:#fff;padding:8px 10px;border-radius:8px;z-index:100}

/* Responsywność - Modal na urządzeniach mobilnych */
@media (max-width: 992px) {
  .modal-content {
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
  }
  
  .gallery-slide {
    width: 100%;
    height: 45%;
    min-height: 200px;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 999; /* Poniżej strzałek, ale powyżej tła */
  }
  
  .gallery-slide img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
  }
  
  .project-details-container {
    width: 100%;
    height: 70%; /* Zwiększona wysokość, aby pomieścić więcej treści */
    padding: 15px 20px 30px; /* Więcej odstępu na dole */
    overflow-y: auto; /* Włącz przewijanie pionowe */
    overflow-x: hidden; /* Ukryj przewijanie poziome */
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: #fff;
    z-index: 1000;
    margin-top: -1px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  /* Ukrycie paska przewijania dla wszystkich przeglądarek */
  .project-details-container::-webkit-scrollbar {
    display: none;
  }
  
  /* Ukrycie paska przewijania dla lepszego wyglądu */
  .project-details-container::-webkit-scrollbar {
    display: none;
  }
  
  .project-details {
    padding: 0 2px;
    font-size: 0.85em;
    line-height: 1.5;
  }
  
  .project-details h3 {
    font-size: 1.1em;
    margin: 0 0 8px 0;
  }
  
  .detail-item {
    margin: 4px 0;
    display: flex;
    flex-wrap: wrap;
  }
  
  .detail-label {
    flex: 0 0 110px;
    font-weight: 600;
    font-size: 0.9em;
  }
  
  .detail-value {
    flex: 1;
    min-width: 0;
  }
  
  .detail-description, .detail-scope {
    margin-top: 8px;
  }
  
  /* Pokazanie sekcji zakresu prac na większych ekranach */
  @media (min-width: 993px) {
    .detail-scope {
      display: block;
    }
  }
  
  .project-details h3 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
  }
  
  .detail-item {
    margin: 6px 0;
    display: flex;
    flex-wrap: wrap;
  }
  
  .detail-label {
    flex: 0 0 120px;
    font-weight: 600;
  }
  
  .detail-value {
    flex: 1;
  }
  
  .detail-scope ul {
    padding-left: 18px;
  }
  
  .detail-scope li {
    margin-bottom: 5px;
  }
}

/* Responsywność - Mniejsze urządzenia */
@media (max-width: 768px) {
  .nav-menu{
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    flex-direction: column;
    padding: 8px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    min-width: 200px;
  }
  .nav-menu.active{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu li {
    margin: 2px 0;
  }
  .nav-link {
    display: block;
    padding: 8px 16px;
    border-radius: 4px;
  }
  .nav-link:hover {
    background-color: #f8fafc;
  }
  .menu-toggle{display:block}
  .contact{grid-template-columns:1fr}
  .process .steps{grid-template-columns:1fr 1fr}
  .sticky-cta{display:flex}
  .navbar {
    position: relative;
    padding: 0 16px;
  }
  .nav-content {
    position: relative;
  }
}
@media(max-width:520px){
  .process .steps{grid-template-columns:1fr}
}
