/* Modern fixes — preserves original 2014 look */

html {
  scroll-behavior: smooth;
}

#header_outer {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 60px;
  padding: 12px 0;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.header_section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo {
  float: none;
  flex-shrink: 0;
  padding-left: 0;
}

.logo h3 {
  margin: 0;
  line-height: 1.3;
  font-size: 20px;
  white-space: nowrap;
}

.logo h3 a {
  display: inline-block;
  padding: 4px 0;
}

.nav {
  float: none;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0;
}

.nav > ul:not(.toggle) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav ul li {
  margin: 0 10px;
  display: block;
}

.nav ul li a {
  padding: 10px 2px;
  line-height: 1.3;
  white-space: nowrap;
}

@media only screen and (max-width: 1199px) {
  .nav ul li {
    margin: 0 6px;
  }

  .nav ul li a {
    font-size: 13px;
    padding: 8px 0;
  }

  .logo h3 {
    font-size: 18px;
  }
}

@media only screen and (max-width: 991px) {
  .header_section {
    flex-wrap: wrap;
    padding-right: 50px;
  }

  .logo {
    width: auto;
    margin: 0;
  }

  .res-nav_click {
    display: block;
  }

  .nav {
    float: none;
    position: static;
    width: 100%;
    flex: 1 1 100%;
    order: 3;
  }

  .nav ul:not(.toggle) {
    display: none !important;
  }

  .nav ul.toggle {
    display: none;
    visibility: visible;
    height: auto;
    overflow: visible;
    background: #fff;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    border-radius: 4px;
  }

  .nav ul.toggle li {
    display: block;
    margin: 0;
    border-bottom: 1px solid #ddd;
  }

  .nav ul.toggle li:last-child {
    border-bottom: none;
  }

  .nav ul.toggle li a {
    color: #222;
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
  }
}

#o_pracowni {
  background: #fff;
  overflow: hidden;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 480px;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 40px 64px max(24px, calc((100vw - 1170px) / 2 + 15px));
  background: #fff;
}

.about-content h2 {
  text-align: left;
  margin: 0 0 36px;
  font-size: 34px;
  color: #222;
  line-height: 1.2;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.about-col {
  position: relative;
  padding-top: 18px;
}

.about-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: #f56eab;
  border-radius: 2px;
}

.about-col p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  text-align: left;
  font-weight: 400;
}

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

.about-visual {
  position: relative;
  min-height: 320px;
  background: #f3ecec;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media only screen and (max-width: 991px) {
  .about-split {
    grid-template-columns: 1fr;
  }

  .about-content {
    padding: 48px 24px 40px;
    order: 2;
  }

  .about-content h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 28px;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 640px;
    margin: 0 auto;
  }

  .about-col::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-col p {
    text-align: center;
    font-size: 16px;
  }

  .about-visual {
    min-height: 260px;
    order: 1;
  }
}

@media only screen and (max-width: 767px) {
  .about-content {
    padding-top: 40px;
  }

  .about-content h2 {
    font-size: 26px;
  }
}

.service_area .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.service_area .service_block {
  margin-bottom: 30px;
}

.service_block a {
  color: #f56eab;
  font-weight: 600;
  text-decoration: none;
}

.service_block a:hover,
.service_block a:focus {
  color: #222;
  text-decoration: underline;
}

#portfolio-wrap {
  position: relative !important;
  overflow: visible !important;
  height: auto !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #eee;
}

.portfolio-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  transform: none !important;
  opacity: 1 !important;
  background: #ddd;
}

.portfolio-item .portfolio-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}

.portfolio-item .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
}

.portfolio-item > a.gallery-thumb {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.portfolio-item .project-overlay {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.portfolio-item > a.gallery-thumb:focus {
  outline: 2px solid #f56eab;
  outline-offset: 2px;
}

#map iframe {
  border: 0;
  width: 100%;
  height: 300px;
}

.contact_block span {
  display: block;
}

/* GLightbox — dopasowanie do kolorystyki strony */
.glightbox-clean .gslide-description {
  background: rgba(71, 0, 0, 0.85);
}

.glightbox-clean .gslide-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev,
.glightbox-clean .gclose {
  background: rgba(71, 0, 0, 0.75);
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover,
.glightbox-clean .gclose:hover {
  background: rgba(245, 110, 171, 0.9);
}

.service-list ul li {
  margin-bottom: 8px;
}

.service-list ul br {
  display: none;
}

/* Sekcja „Instrumenty w ofercie” — split layout */
#work_outer {
  background: #fff;
  padding: 0;
  overflow: hidden;
}

#work_outer .top_cont_latest {
  background: none;
}

.offer-split {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 1fr);
  min-height: 420px;
}

.offer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px 60px max(24px, calc((100vw - 1170px) / 2 + 15px));
  background: #fefafa;
  border-right: 1px solid #eee;
}

.offer-content h2 {
  text-align: left;
  margin: 0 0 32px;
  color: #222;
  font-size: 34px;
  line-height: 1.2;
}

.offer-list-wrap h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #470000;
  letter-spacing: 0.04em;
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.offer-list li {
  position: relative;
  padding-left: 22px;
  color: #444;
  font-size: 15px;
  line-height: 1.5;
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f56eab;
  transform: translateY(-50%);
}

.offer-visual {
  position: relative;
  min-height: 320px;
  background: #2a1810;
}

.offer-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

@media only screen and (max-width: 991px) {
  .offer-split {
    grid-template-columns: 1fr;
  }

  .offer-content {
    padding: 48px 24px 40px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .offer-content h2 {
    text-align: center;
    font-size: 28px;
  }

  .offer-list-wrap h3 {
    text-align: center;
  }

  .offer-visual {
    min-height: 280px;
    order: -1;
  }
}

@media only screen and (max-width: 479px) {
  .offer-list {
    grid-template-columns: 1fr;
  }

  .offer-content h2 {
    font-size: 24px;
  }
}

.footer_section .col-lg- {
  width: 100%;
}

.res-nav_click {
  color: #fff;
  font-size: 24px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-decoration: none;
}

.res-nav_click:hover,
.res-nav_click:focus {
  color: #f56eab;
}

@media only screen and (max-width: 991px) {
  #portfolio-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 767px) {
  .header_section {
    position: relative;
    min-height: 56px;
    padding-right: 50px;
  }

  #portfolio-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 479px) {
  #portfolio-wrap {
    grid-template-columns: 1fr;
  }
}

.zoom-icon {
  background: none !important;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  font-size: 28px;
  color: #222;
  line-height: 40px;
  text-align: center;
}

.zoom-icon::before {
  content: "\f00e";
}

.portfolio-item:hover .zoom-icon {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animated {
    animation: none !important;
    transition: none !important;
  }
}
