.about-contact {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-contact__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.about-contact-card,
.about-contact-map,
.about-contact-department {
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(7px);
}

.about-contact-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
}

.about-contact-card.content-section-card--collapsible {
    display: block;
}

.about-contact-card__inner {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 16px;
}

.about-contact-card h2 {
    margin: 0;
    color: #0f263b;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.about-contact-card .content-section-card__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.about-contact-card .content-section-card__summary::-webkit-details-marker {
    display: none;
}

.about-contact-card .content-section-card__summary-text {
    min-width: 0;
    flex: 1 1 auto;
}

.about-contact-card .content-section-card__summary-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #37506e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.about-contact-card .content-section-card__chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.about-contact-card.content-section-card--collapsible[open] .about-contact-card__inner {
    margin-top: 16px;
}

.about-contact-card.content-section-card--collapsible[open] .content-section-card__state--open {
    display: inline;
}

.about-contact-card.content-section-card--collapsible[open] .content-section-card__state--closed {
    display: none;
}

.about-contact-card.content-section-card--collapsible[open] .content-section-card__chevron {
    transform: rotate(225deg);
}

.about-contact-card .content-section-card__summary:hover .content-section-card__summary-action {
    color: #0f263b;
}

.about-contact-card .content-section-card__summary:focus-visible {
    outline: 3px solid #004488;
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: 0 0 0 6px #f2b84b;
}

.about-contact-directory > h2 {
    margin: 0;
    color: #0f263b;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
}

.about-contact-card__rows,
.about-contact-card__tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #0f263b;
    font-size: 16px;
    line-height: 1.5;
}

.about-contact-card__body:has(.wp-block-buttons) {
    gap: 8px;
}

.about-contact-card__body ul,
.about-contact-card__body ol {
    margin: 0;
    padding-inline-start: 32px;
}

.about-contact-card p {
    margin: 0;
}

.about-contact-department p,
.about-contact-group p {
    margin: 0;
    color: #0f263b;
    font-size: 16px;
    line-height: 1.5;
}

.about-contact-card__rows p,
.about-contact-department__people p,
.about-contact-group p {
    display: flex;
    gap: 8px;
    align-items: center;
}

.about-contact-department a,
.about-contact-group a {
    color: #0f263b;
    text-decoration: none;
}

.about-contact-department a:hover,
.about-contact-group a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-contact-card__body a:not(.wp-block-button__link) {
    color: #004488;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-contact-card__body .is-style-text-annotation a:not(.wp-block-button__link) {
    color: inherit;
    text-decoration: none;
}

.about-contact-card__body .is-style-text-annotation {
    padding: 5px 7px;
    border: 0;
    border-radius: 4px;
    background: #e1e8f0;
    color: #0f263b;
    font-size: 12px;
    line-height: 1.5;
}

.about-contact-card__body a:not(.wp-block-button__link):hover {
    text-decoration-thickness: 2px;
}

.about-contact-card__tags span {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 5px 7px;
    border-radius: 4px;
    background: #e1e8f0;
    color: #0f263b;
    font-size: 12px;
    line-height: 1.5;
}

.about-contact-card__body ul:has(> li.about-contact-card__icon-item):not(:has(> li:not(.about-contact-card__icon-item))) {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.about-contact-card__body li.about-contact-card__icon-item,
.about-contact-card__body p.about-contact-card__icon-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.about-contact-card__body li.about-contact-card__icon-item {
    list-style: none;
}

.about-contact-card__icon-item--phone,
.about-contact-card__icon-item--mail,
.about-contact-card__icon-item--clock {
    align-items: center;
}

.about-contact-card__body :where(.about-contact-card__icon-item--document) {
    font-size: 14px;
    line-height: 18px;
}

.about-contact-card__body p.about-contact-card__icon-item {
    margin: 0;
}

.about-contact-card__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.about-contact-card__icon-item--phone .about-contact-card__icon {
    background-image: url("../images/figma/about-contact/icon-phone.png");
}

.about-contact-card__icon-item--clock .about-contact-card__icon {
    background-image: url("../images/figma/about-contact/clock-hand.svg"), url("../images/figma/about-contact/clock-ring.svg");
    background-position: center, center;
    background-size: 6.25px 6.25px, 17.9167px 17.9167px;
}

.about-contact-card__icon-item--mail .about-contact-card__icon {
    background-image: url("../images/figma/about-contact/icon-mail-open.png");
}

.about-contact-card__icon-item--document .about-contact-card__icon {
    background-image: url("../images/figma/about-contact/icon-submit-document.png");
}

.about-page--contact .about-content-card__body .about-contact-card__icon-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    color: #0f263b;
}

.about-page--contact .about-content-card__body .about-contact-card__icon-item--phone,
.about-page--contact .about-content-card__body .about-contact-card__icon-item--mail {
    align-items: center;
}

.about-page--contact .about-content-card .wp-block-button__link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid #004488;
    border-radius: 32px;
    background: transparent;
    color: #004488;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.about-page--contact .about-content-card .wp-block-button__link::after {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    content: "";
    background: url("../images/shared/open-new-window.svg") center / 24px 24px no-repeat;
}

.about-page--contact .about-content-card .wp-block-button__link:hover {
    background: #e4f1ff;
}

.about-page--contact .about-content-card .wp-block-button__link:focus-visible {
    outline: 3px solid #004488;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #f2b84b;
}

.about-contact-card__icon-text {
    min-width: 0;
}

.about-contact-card__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid #004488;
    border-radius: 32px;
    color: #004488;
    font-weight: 700;
    text-decoration: none;
}

.about-contact-card__button-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-image: url("../images/shared/open-new-window.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

.about-contact-card__button:hover {
    background: #e4f1ff;
    text-decoration: none;
}

.about-contact-card__button:focus-visible {
    outline: 3px solid #004488;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #f2b84b;
}

.about-contact-card .wp-block-buttons {
    display: flex;
    margin-top: 24px;
}

.about-contact-card .wp-block-button__link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid #004488;
    border-radius: 32px;
    background: transparent;
    color: #004488;
}

:where(.about-contact-card .wp-block-button__link) {
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.about-contact-card .wp-block-button__link::after {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    content: "";
    background-image: url("../images/shared/open-new-window.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

.about-contact-card .wp-block-button__link:hover {
    background: #e4f1ff;
    text-decoration: none;
}

.about-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.about-contact-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-contact-icon--open {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

.about-contact-map {
    height: 243px;
    overflow: hidden;
}

.about-contact-map iframe,
.about-contact-map img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.about-contact-directory {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-panel--about-contact .filter-panel__fields {
    display: block;
}

.filter-panel--about-contact .filter-panel__title {
    font-weight: 600;
    line-height: 1.35;
}

.filter-panel--about-contact .filter-panel__field--search {
    width: min(780px, 100%);
}

.filter-panel--about-contact .filter-panel__submit-row {
    padding-top: 0;
}

.about-contact-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.about-contact-filter__chips button {
    min-height: 35px;
    padding: 8px 12px;
    border: 1px solid #516a87;
    border-radius: 80px;
    background: #e1e8f0;
    color: #37506e;
    cursor: pointer;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.about-contact-filter__chips button.is-active {
    border-color: #004488;
    background: #e4f1ff;
    color: #002d5a;
}

.about-contact-filter__chips button:focus-visible {
    outline: 3px solid #004488;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #f2b84b;
}

.about-contact-departments {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-contact-department {
    overflow: clip;
}

.about-contact-department[hidden] {
    display: none;
}

.about-contact-department > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    border-bottom: 1px solid #c1cddb;
    background: #e4f1ff;
    color: #080808;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
}

.about-contact-department > summary::-webkit-details-marker,
.about-contact-group > summary::-webkit-details-marker {
    display: none;
}

.about-contact-department > summary:focus-visible,
.about-contact-group > summary:focus-visible {
    outline: 3px solid #004488;
    outline-offset: -3px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 6px #f2b84b;
}

.about-contact-department__action {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: #37506e;
}

.about-contact-chevron {
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: url("../images/sidebar/figma-menu-a/chevron-up.svg") center / contain no-repeat;
}

.about-contact-department:not([open]) .about-contact-chevron {
    transform: rotate(180deg);
}

.about-contact-department__body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
}

.about-contact-department__people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-contact-department__people section {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.about-contact-department h3 {
    margin: 0 0 4px;
    color: #37506e;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.about-contact-department__matters {
    max-width: 720px;
}

.about-contact-department__matters ul {
    margin: 0;
    padding-left: 24px;
}

.about-contact-department__matters li {
    margin: 0 0 6px;
    color: #0f263b;
    line-height: 1.5;
}

.about-contact-group {
    border: 1px solid #c1cddb;
    border-radius: 12px;
    background: #f7fafc;
    overflow: clip;
}

.about-contact-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    color: #002d5a;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
}

.about-contact-group__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #37506e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.about-contact-group__action .about-contact-chevron {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.about-contact-group:not([open]) .about-contact-group__action span {
    font-size: 0;
}

.about-contact-group:not([open]) .about-contact-group__action span::before {
    content: "Rozwiń";
    font-size: 14px;
}

.about-contact-group:not([open]) .about-contact-chevron {
    transform: rotate(180deg);
}

.about-contact-group__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 20px 20px;
}

.about-contact-group__items article {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e1e8f0;
}

.about-contact-group__items h4 {
    margin: 0;
    color: #0f263b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .about-contact__summary,
    .about-contact-department__people,
    .about-contact-group__items {
        grid-template-columns: 1fr;
    }
}
