.foer-efter-page {
  position: relative;
  z-index: 2;
  margin-top: -78px;
}

.foer-efter-page .patientinfo__header {
  margin-bottom: 28px;
}

.foer-efter-page .patientinfo__title {
  display: block;
  width: fit-content;
  min-width: 305px;
  margin: 0 0 24px;
  padding: 22px 32px;
  background: #b4a898;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.foer-efter-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 2px;
}

.foer-efter-nav__group {
  min-width: 0;
}

.foer-efter-nav__group[open] {
  grid-column: 1 / -1;
}

.foer-efter-nav__category {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 42px 12px 25px;
  overflow: hidden;
  border: 1px solid rgba(180, 168, 152, 0.28);
  border-radius: 9px;
  background: rgba(235, 226, 215, 0.5);
  color: #544d46;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.foer-efter-nav__category::-webkit-details-marker {
  display: none;
}

.foer-efter-nav__category::before {
  position: absolute;
  left: 9px;
  width: 3px;
  height: 24px;
  border-radius: 3px;
  background: #b4a898;
  content: "";
}

.foer-efter-nav__category::after {
  position: absolute;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.foer-efter-nav__group[open] > .foer-efter-nav__category::after {
  transform: rotate(135deg);
}

.foer-efter-nav__category:hover,
.foer-efter-nav__category:focus-visible,
.foer-efter-nav__group[open] > .foer-efter-nav__category {
  border-color: #b4a898;
  background: #c6c1ba;
  color: #3f3934;
}

.foer-efter-nav__category.is-active {
  border-color: #b4a898;
  background: #b4a898;
  color: #fff;
}

.foer-efter-nav__sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0 2px;
  list-style: none;
}

.foer-efter-nav__link {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(180, 168, 152, 0.28);
  border-radius: 9px;
  background: rgba(235, 226, 215, 0.5);
  color: #70706f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.foer-efter-nav__link:hover,
.foer-efter-nav__link:focus-visible {
  background: rgba(235, 226, 215, 0.5);
  color: #b4a898;
}

.foer-efter-nav__link.is-active {
  background: rgba(180, 168, 152, 0.22);
  color: #8f806e;
  font-weight: 600;
}

.foer-efter__inner {
  position: relative;
  margin-bottom: 50px;
  padding: 40px;
  background: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24);
  animation: fadeup 0.25s 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  opacity: 0;
  transform: translateY(100px);
}

.foer-efter__inner.popup {
  padding: 20px;
}

.foer-efter__images .juxtapose {
  width: 100%;
}

.juxtapose__title h5 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #414241;
  font-weight: 600;
}

.juxtapose__pt {
  padding-bottom: 10px;
  color: #414241;
  font-size: 14px;
}

.juxtapose__kirurg {
  padding-bottom: 30px;
}

.juxtapose__kirurg h6 {
  margin: 0;
  color: #414241;
  font-size: 14px;
  font-style: italic;
}

.juxtapose__ekstra {
  max-width: 500px;
}

@media (max-width: 900px) {
  .foer-efter-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .foer-efter-page {
    margin-top: -58px;
  }

  .foer-efter-nav {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .foer-efter-page .patientinfo__title {
    min-width: 220px;
    padding: 14px 22px;
    font-size: 28px;
  }
}
