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

html {
  overflow-y: scroll;
}

body {
  color: #333333;
  background-color: #eeeeee;
  font-size: 11pt;
  font-family: Georgia, "Times New Roman", serif;
  text-align: justify;
  line-height: 25px;
  word-spacing: 5px;
  letter-spacing: 0px;
  padding-top: 120px;
  padding-bottom: 50px;
}

a:link,
a:visited,
a:active {
  color: #333333;
  font-family: Georgia, "Times New Roman", serif;
  text-decoration: none;
}

a:hover {
  color: #bfbfbf;
  text-decoration: none;
}

/* Górny pasek nawigacji — identyczny na każdej podstronie, bez ramek */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(238, 238, 238, 0.85);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 120px;
  padding: 0 50px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  word-spacing: normal;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.logo-link img {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
}

.menu-toggle {
  display: none;
  background: #e2e2e2;
  border: 1px solid #bfbfbf;
  padding: 6px 12px;
  font-family: Georgia, serif;
  font-size: 10pt;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 10pt;
  word-spacing: normal;
}

.nav-item {
  width: 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  flex-shrink: 0;
}

.nav-item img {
  width: 45px;
  height: 45px;
  margin-bottom: 4px;
  display: block;
}

.nav-item.active,
.nav-item.active strong {
  color: #bfbfbf;
  cursor: default;
}

/* Główny kontener strony */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Baner przekroju geologicznego */
.hero-banner {
  max-width: 980px;
  margin: 0 auto 22px auto;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Układ treści pod banerem (ikona sekcji po lewej + treść po prawej) */
.content-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 45px 30px 45px;
  display: flex;
  align-items: flex-start;
  gap: 45px;
}

.section-icon {
  flex-shrink: 0;
  width: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.section-icon img {
  width: 90px;
  height: 90px;
  display: block;
}

.main-column {
  flex: 1;
  min-width: 0;
}

/* Strona główna (index.html) */
.home-text h1,
.home-text h2 {
  font-size: 11pt;
  font-weight: normal;
  margin-bottom: 20px;
}

.home-text p {
  margin-bottom: 20px;
}

/* Podmenu oferty (oferta.html, gig.html, dj.html, pos.html) */
.sub-offer-nav {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  word-spacing: normal;
}

.sub-offer-item {
  width: 240px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11pt;
  line-height: 1.4;
}

.sub-offer-item img {
  width: 45px;
  height: 45px;
  margin-bottom: 6px;
  display: block;
}

.sub-offer-item.current {
  color: #bfbfbf;
  cursor: default;
}

/* Treść merytoryczna podstron oferty */
.article-body {
  padding-right: 45px;
}

.article-body h1 {
  font-size: 11pt;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 11pt;
  font-weight: normal;
  margin-bottom: 18px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-list {
  margin-left: 35px;
  margin-bottom: 20px;
}

.article-list li {
  margin-bottom: 16px;
}

.article-list.compact li {
  margin-bottom: 4px;
}

.underline-link {
  text-decoration: underline !important;
}

.text-with-illustration {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.text-with-illustration .text-part {
  flex: 1;
}

.text-with-illustration .image-part {
  flex-shrink: 0;
  width: 380px;
  max-width: 100%;
}

.text-with-illustration .image-part img {
  display: block;
  width: 100%;
  height: auto;
}

/* Realizacje (realizacje.html) */
.projects-title {
  font-size: 11pt;
  font-weight: bold;
  text-align: center;
  margin-bottom: 24px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.project-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  width: 412px;
  max-width: 100%;
}

.project-thumbs a {
  display: inline-block;
  line-height: 0;
}

.project-thumbs img {
  display: block;
}

.thumb-portrait {
  width: 96px;
  height: 127px;
}

.thumb-landscape {
  width: 200px;
  height: 96px;
}

.project-desc {
  flex: 1;
  min-width: 0;
}

/* Referencje (referencje.html) */
.references-title {
  font-size: 11pt;
  font-weight: bold;
  text-align: center;
  margin-bottom: 24px;
}

.references-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.references-list img {
  width: 180px;
  height: auto;
  display: block;
}

/* Kontakt (kontakt.html) */
.contact-main {
  text-align: center;
}

.map-wrapper {
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}

.company-name {
  font-size: 11pt;
  font-weight: bold;
  margin-bottom: 14px;
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  word-spacing: normal;
}

.contact-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-inline img {
  width: 25px;
  height: 25px;
}

/* RODO (rodo.html) */
.rodo-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 20px 30px 20px;
}

.rodo-wrapper img {
  max-width: 706px;
  width: 100%;
  height: auto;
  display: block;
}

/* Dolny pasek kontaktowy — identyczny na każdej podstronie, bez ramek */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(238, 238, 238, 0.85);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 40px;
  padding: 0 50px 0 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  font-size: 10pt;
  word-spacing: normal;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-contact img {
  width: 25px;
  height: 25px;
}

/* Responsywność (tablety i telefony) */
@media (max-width: 920px) {
  .project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
  }

  .project-thumbs {
    width: 100%;
  }
}

@media (max-width: 860px) {
  body {
    padding-top: 86px;
  }

  .header-inner {
    height: auto;
    min-height: 76px;
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo-link img {
    width: 240px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background-color: #eeeeee;
    padding: 8px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 6px 10px;
    text-align: left;
  }

  .nav-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 0;
  }

  .content-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 20px;
  }

  .section-icon {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }

  .section-icon img {
    width: 64px;
    height: 64px;
  }

  .sub-offer-nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .article-body {
    padding-right: 0;
  }

  .text-with-illustration {
    flex-direction: column;
  }

  .text-with-illustration .image-part {
    margin: 0 auto;
  }

  .references-list {
    justify-content: center;
  }

  .map-wrapper iframe {
    height: 260px;
  }

  .footer-inner {
    justify-content: center;
    padding: 0 10px;
    gap: 14px;
  }
}
