.mm-cooperation {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 6rem);
}
.mm-cooperation > h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 2rem;
}
.mm-cooperation > p {
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: normal;
  margin: 0;
  color: var(--text-main);
}
.mm-cooperation > h1 + p {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.75;
  margin-bottom: 3.5rem;
}
.mm-cooperation > h2 {
  border-top: 1px solid var(--page-bg-alt);
  padding-top: 2rem;
  margin: 2.5rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
}
.mm-cooperation > hr {
  border: 0;
  border-top: 2px solid var(--accent);
  margin: 3.5rem 0 2rem;
  width: 4rem;
}
.mm-cooperation > hr + p {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.7;
}
.mm-cooperation a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.mm-cooperation a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .mm-cooperation { padding-top: 1.5rem; }
  .mm-cooperation > h2 { margin-top: 2rem; padding-top: 1.5rem; }
}

/* MM COOPERATION KILI FINAL START */

/*
   Grafika korzysta BEZPOŚREDNIO z istniejącej klasy
   .mm-ideas-mountains ze strony IDEE.
   Nie duplikujemy jej położenia ani skali.
*/

.mm-cooperation {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* treść zawsze ponad grafiką */
.mm-cooperation > *:not(.mm-cooperation-kilimanjaro) {
    position: relative;
    z-index: 2;
}

/* tylko gwarancja widoczności elementu */
.mm-cooperation-kilimanjaro {
    display: block !important;
    visibility: visible !important;
}

/* MM COOPERATION KILI FINAL END */

/* MM PCM BUTTON START */
.mm-cooperation .mm-pcm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid #813D38;
    border-radius: 2px;
    background: transparent;
    color: #813D38;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, color 160ms ease;
}
.mm-cooperation .mm-pcm-button:hover {
    background: #813D38;
    color: #fff;
}
/* MM PCM BUTTON END */

/* MM PCM DIALOG START */
.mm-pcm-dialog {
    width: min(92vw, 1600px) !important;
    min-width: min(92vw, 1600px) !important;
    max-width: min(92vw, 1600px) !important;
    box-sizing: border-box;
    height: min(92vh, 900px);
    padding: 0;
    border: 1px solid rgba(32, 32, 32, 0.22);
    border-radius: 3px;
    background: var(--page-bg);
    color: var(--text-main);
}
.mm-pcm-dialog::backdrop {
    background: rgba(20, 20, 20, 0.72);
}
.mm-pcm-dialog[open] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    justify-items: stretch;
}
.mm-pcm-dialog-bar {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(32, 32, 32, 0.18);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.mm-pcm-dialog-close {
    padding: 0.65rem 0.9rem;
    border: 1px solid #813D38;
    border-radius: 2px;
    background: transparent;
    color: #813D38;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.mm-pcm-dialog-pages {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    background: #fff;
}
.mm-pcm-dialog-pages img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-bottom: 6px solid var(--page-bg);
}
/* Zgodność z kartą otwartą przed zmianą podglądu PDF na strony graficzne. */
.mm-pcm-dialog-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: #fff;
}
@media (max-width: 650px) {
    .mm-pcm-dialog {
        width: 96vw !important;
        min-width: 96vw !important;
        max-width: 96vw !important;
        height: 90vh;
    }
    .mm-pcm-dialog-bar > span {
        font-size: 0.72rem;
    }
}
/* MM PCM DIALOG END */
