html, body {
  overflow-x: hidden !important;
}

html {
  scroll-behavior: smooth;
}

.wgl-catalog {
  background: #efeee3;
  color: #18233f;
  font-family: Arial, sans-serif;
  padding-bottom: 70px;
}
.wgl-catalog * {
  box-sizing: border-box;
}

.wgl-cat-hero {
  position: relative;
  min-height: 300px;
  background: url('http://localhost:8370/wp-content/uploads/2026/05/katalog_cisty.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}
.wgl-cat-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.42), rgba(0,0,0,.08));
}
.wgl-cat-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
  position: relative;
  z-index: 2;
}
.wgl-cat-kicker {
  color: #97ad0b;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: .72rem;
}
.wgl-cat-hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: -.045em;
}
.wgl-cat-hero p {
  color: #fff;
  max-width: 720px;
  font-size: .98rem;
  line-height: 1.55;
  font-weight: 700;
  margin: 0;
}

.wgl-cat-nav {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.wgl-cat-nav a {
  display: block;
  background: #fbfaf4;
  border: 1px solid rgba(24,35,63,.1);
  border-radius: 16px;
  padding: 15px 16px;
  text-decoration: none;
  color: #18233f;
  box-shadow: 0 8px 18px rgba(0,0,0,.045);
  transition: .2s ease;
}
.wgl-cat-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  color: #18233f;
}
.wgl-cat-nav strong {
  display: block;
  font-size: .92rem;
  line-height: 1.18;
  font-weight: 900;
  margin-bottom: 6px;
  color: #18233f;
}
.wgl-cat-nav span {
  display: block;
  font-size: .74rem;
  line-height: 1.35;
  color: #5b6477;
}

.wgl-cat-main {
  width: min(1180px, calc(100% - 36px));
  margin: 44px auto 0;
}

.wgl-cat-section {
  scroll-margin-top: 100px;
  margin-bottom: 54px;
}
.wgl-cat-section-head {
  margin: 0 0 18px;
  max-width: 760px;
}
.wgl-cat-section-head h2 {
  margin: 0 0 8px;
  color: #18233f;
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -.04em;
  font-weight: 900;
}
.wgl-cat-section-head p {
  margin: 0;
  color: #5b6477;
  font-size: .92rem;
  line-height: 1.55;
}

.wgl-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.wgl-cat-card {
  background: #fbfaf4;
  border: 1px solid rgba(24, 35, 63, .1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.055);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}
.wgl-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 32px rgba(0,0,0,.09);
}

.wgl-cat-thumb {
  aspect-ratio: 16/9;
  background: #dcd8ca;
  overflow: hidden;
  position: relative;
  display: block;
}
.wgl-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wgl-cat-thumb:after {
  content: "PDF";
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(24,35,63,.82);
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  padding: 5px 8px;
  border-radius: 999px;
  letter-spacing: .08em;
}

.wgl-cat-body {
  padding: 14px 15px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.wgl-cat-label {
  color: #97ad0b;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.wgl-cat-card h2 {
  font-size: .94rem;
  line-height: 1.22;
  margin: 0 0 8px;
  color: #18233f;
  text-transform: none;
  font-weight: 900;
}
.wgl-cat-card p {
  font-size: .78rem;
  line-height: 1.45;
  color: #5b6477;
  margin: 0 0 13px;
  flex-grow: 1;
}

.wgl-cat-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wgl-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: .72rem;
  line-height: 1;
}
.wgl-cat-open {
  background: #97ad0b;
  color: #fff !important;
}
.wgl-cat-open:hover {
  background: #7f9407;
  color: #fff !important;
}

@media (max-width: 1150px) {
  .wgl-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 850px) {
  .wgl-cat-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .wgl-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wgl-cat-hero {
    min-height: 340px;
  }
}
@media (max-width: 560px) {
  .wgl-cat-wrap,
  .wgl-cat-main,
  .wgl-cat-nav {
    width: min(100% - 28px, 1180px);
  }
  .wgl-cat-hero {
    min-height: 430px;
    background-position: center;
  }
  .wgl-cat-hero h1 {
    font-size: 2.7rem;
  }
  .wgl-cat-nav {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }
  .wgl-cat-nav a {
    padding: 13px 14px;
  }
  .wgl-cat-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wgl-cat-section {
    margin-bottom: 42px;
  }
}

/* Page context wrappers */
.ast-plain-container .entry-content .wgl-catalog {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
