/*  */
@media (max-width: 1200px) {
  .epms-subsection,
  .epms-section {
    padding: 50px 15px;
  }

  .epms-realization-container {
    padding-top: 0;
  }

  .epms-subsection--bg .epms-columns,
  .epms-subsection--split,
  .epms-projects-showcase,
  .single-realizacje .epms-subsection,
  .single-realizacje .epms-section,
  .epms-details-columns,
  .epms-services-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .epms-logo {
    position: relative;
    z-index: 1001;
  }

  .epms-columns-imageBox {
    position: initial;
  }

  .epms-hero-content .epms-heading {
    width: 100%;
  }

  .epms-about-description {
    margin-bottom: 0;
  }

  .realization-columns,
  .realization-gallery {
    gap: 20px;
  }
}

/* Mobile: od 991.98px w dół pokazujemy hamburgera i chowamy menu */
@media (max-width: 991.98px) {
  .epms-site-header .epms-logo img,
  .epms-site-header.is-scrolled .epms-logo img {
    max-width: 120px;
    height: auto;
  }

  .epms-site-header .epms-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .epms-hamburger-toggle {
    display: flex;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
  }

  .epms-hamburger-toggle svg {
    stroke: #f37021; /* kolor pomarańczowy */
    transition: all 0.3s ease;
  }

  .burger-icon,
  .close-icon {
    width: 32px;
    height: 32px;
  }

  /* Ukryj główne menu na mobile domyślnie */
  .epms-main-nav {
    display: none;
  }

  /* Gdy menu otwarte przez JS – pokazujemy na pełnym ekranie */
  .menu-open .epms-main-nav {
    display: flex;
    position: fixed;
    flex-direction: column;
    padding-top: 160px;
    justify-content: flex-start;
    align-items: center;
    inset: 0;
    background-color: white;
    z-index: 1000;
  }

  .menu-open .epms-nav-list {
    flex-direction: column;
    gap: 30px;
  }

  .menu-open .epms-nav-list li a {
    font-size: 22px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
  }

  /* Przełączanie ikon */
  .menu-open .burger-icon {
    display: none;
  }

  .menu-open .close-icon {
    display: block !important;
  }

  .epms-columns-imageBox {
    display: none;
  }

  .epms-columns,
  .epms-services-grid {
    grid-template-columns: 1fr;
  }

  .epms-services.epms-subsection--bg::before {
    height: 96%;
    top: 52%;
  }

  .epms-contact-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .epms-container.epms-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
  }

  .epms-hero-content .epms-heading {
    position: relative;
    transform: none;
    top: inherit;
    right: initial;
    left: initial;
    font-size: 60px;
  }

  .epms-hero-overlay {
    margin-top: -60px;
    width: 80%;
  }
  .epms-intro-text {
    padding-bottom: 0;
  }

  .epms-hero-image-wrapper img {
    height: 400px;
  }

  .home .epms-projects-grid .epms-project-tile:nth-child(n + 5) {
    display: none;
  }

  .epms-subsection--split,
  .epms-intro-columns,
  .epms-contact-columns,
  .realization-columns,
  .realization-gallery {
    grid-template-columns: 1fr;
  }

  .epms-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .epms-details-columns {
    flex-direction: column;
  }

  .epms-footer-inner {
    justify-content: center;
  }

  .epms-subsection h2,
  .epms-section h2 {
    margin-bottom: 0.8rem;
  }

  .epms-single-realization .epms-intro-text {
    padding-bottom: 50px;
  }
}

@media (max-width: 576px) {
  .epms-service-tile-content h3,
  .epms-service-tile-content .epms-border {
    width: 100%;
  }
  .epms-hero-content .epms-heading {
    font-size: 40px;
  }

  .epms-hero-overlay {
    margin-top: -50px;
  }

  .epms-subsection h2,
  .epms-section h2,
  .epms-about-intro h2 {
    font-size: 26px;
  }

  .epms-columns-tiles,
  .epms-projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .epms-footer-nav ul {
    gap: 10px;
    justify-content: space-between;
  }

  .epms-footer-contact {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .epms-footer-info p {
    text-align: center;
  }

  .epms-services .epms-text {
    padding: 0;
  }
}
