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

/* Body & font */
body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    height: 100%;
}

/* Layout wrapper (sticky footer) */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
    padding-top: 120px;
    background: #f0f2f5;
    text-align: justify;
    overflow-x: hidden;
}

main.realizacje {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 20px;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
    line-height: 1.3;
}

ul {
    margin-left: 40px;
    padding-left: 20px;
}

/* Header */
header {
    background: #20232a;
    color: #fff;
    height: 120px;
    padding: 0 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo i nazwa firmy */
.branding {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 100%;
}

.logo img {
    max-height: 100%;
    height: 120px;
    width: auto;
}

.company-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Nawigacja desktop */
nav#menu {
    display: flex;
    gap: 30px;
}

nav#menu a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 22px;
    white-space: nowrap;
    transition: color 0.3s;
}

nav#menu a:hover {
    color: #61dafb;
}

/* Hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* Slider główny */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    margin-top: 20px;
}

.slider-track {
    display: flex;
    gap: 5px;
    will-change: transform;
}

.slider-track img {
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Zoom zdjęcia przy hover */
.slider-track img:hover {
  transform: scale(1.07);
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* Partnerzy */
.partners-bar {
    background: #20232a;
    padding: 30px 0;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.partners-container img {
    max-height: 60px;
    height: auto;
    max-width: 12vw;
    width: auto;
    flex-shrink: 0;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.partners-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

iframe.mapka {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: none;
    display: block;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #20232a;
    color: #aaa;
    padding: 15px;
    text-align: right;
    font-size: 9px;
}


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

  nav#menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 0px;
    background: #20232a;
    padding: 20px;
    border-radius: 0 0 0 10px;
    z-index: 999;
  }

  nav#menu.active {
    display: flex !important;
  }
  
  .branding .logo img {
      height: 90px;
  }
  .company-name {
      font-size: 16px;
  }
  header {
    height: 90px; /* zamiast 120px */
    padding: 0 20px;
  }
  main {
    padding-top: 100px;
    text-align: left;
  }
  .partners-bar {
    padding: 20px 0;
  }

  .partners-container {
    gap: 30px;
    padding: 0 15px;
  }

  .partners-container img {
    max-width: 20vw;
    max-height: 20px;
  }
}
}