.pmk-footer {
    --footer-text: #f4f8fc;
    --footer-muted: #bdcede;
    --footer-border: #49637b;
    --footer-contact-link-height: 44px;
    --footer-store-link-height: 36px;
    color: var(--footer-text);
    background: #142b3f;
    font: 400 var(--site-type-body)/var(--site-leading-body) var(--site-font);
}

.pmk-footer__container {
    --footer-gutter: var(--pmk-gutter, clamp(1rem, 4.2vw, 4.5rem));
    width: min(calc(100% - 2 * var(--footer-gutter)), var(--pmk-content-width, 1360px));
    margin-inline: auto;
    padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 3rem);
}

.pmk-page .pmk-footer__container {
    padding-block-end: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
}

.pmk-footer :is(a, button, summary) {
    color: inherit;
}

.pmk-footer a {
    text-decoration: none;
    text-underline-offset: .22em;
}

.pmk-footer :is(a:hover, a[aria-current="page"], summary:hover) {
    text-decoration: underline;
}

.pmk-footer :is(a, button, summary):focus-visible {
    outline: 2px solid #9dccff;
    outline-offset: 4px;
}

.pmk-footer :is(ul, h2, p) {
    margin: 0;
}

.pmk-footer ul {
    padding: 0;
    list-style: none;
}

.pmk-footer__top {
    display: grid;
    align-items: start;
    gap: 2rem;
    padding-block-end: clamp(2rem, 5vw, 3.5rem);
}

.pmk-footer__contact,
.pmk-footer__access {
    min-inline-size: 0;
}

.pmk-footer__logo {
    display: inline-block;
}

.pmk-footer__logo img {
    display: block;
    width: 156px;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.pmk-footer__contact-main {
    margin-block-start: clamp(1rem, 3vw, 2rem);
}

.pmk-footer__phone {
    display: inline-block;
    font-size: var(--site-type-section);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.08;
    letter-spacing: -.047em;
    white-space: nowrap;
}

.pmk-footer__phone:hover {
    text-decoration-thickness: 1px;
}

.pmk-footer p.pmk-footer__hours {
    margin-block-start: .65rem;
    color: var(--footer-muted);
    font-size: var(--site-type-caption);
}

.pmk-footer ul.pmk-footer__channels {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15rem 1rem;
    margin-block-start: .85rem;
}

.pmk-footer__channels a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--footer-contact-link-height);
}

.pmk-footer__access {
    display: grid;
    align-content: start;
    inline-size: fit-content;
    max-inline-size: 100%;
    gap: 1.5rem;
}

.pmk-footer a.pmk-footer__account {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-block-size: 44px;
    padding: .45rem var(--pmk-action-padding-inline);
    border: 1px solid var(--footer-border);
    border-radius: var(--pmk-hero-radius);
    font-weight: 600;
    text-decoration: none;
    text-wrap: balance;
}

.pmk-footer a.pmk-footer__account:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.pmk-footer__account img {
    flex: none;
    filter: brightness(0) invert(1);
    opacity: .78;
}

.pmk-footer__apps h2 {
    font-size: var(--site-type-body);
    font-weight: 600;
}

.pmk-footer__apps ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: space-between;
    gap: 0 1rem;
    margin-block-start: .5rem;
    color: var(--footer-muted);
    font-size: var(--site-type-caption);
}

.pmk-footer__apps a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--footer-store-link-height);
}

.pmk-footer__apps a:hover {
    color: var(--footer-text);
}

.pmk-footer__directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem clamp(.75rem, 3vw, 2rem);
    padding-block: clamp(1.75rem, 4vw, 3rem);
    border-block: 1px solid var(--footer-border);
}

.pmk-footer__group {
    min-inline-size: 0;
    overflow-wrap: anywhere;
}

.pmk-footer__group h2 {
    margin-block-end: .75rem;
    font-size: var(--site-type-lead);
    font-weight: 600;
    line-height: 1.25;
}

.pmk-footer__links {
    display: grid;
    gap: .15rem;
    color: var(--footer-muted);
}

.pmk-footer__links a {
    display: inline-block;
    padding-block: .25rem;
}

.pmk-footer__more {
    margin-block-start: .15rem;
}

.pmk-footer__more summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .65rem;
    min-block-size: 36px;
    list-style: none;
    color: var(--footer-text);
    cursor: pointer;
}

.pmk-footer__more summary::-webkit-details-marker {
    display: none;
}

.pmk-footer__more summary::after {
    content: "";
    width: .4rem;
    height: .4rem;
    border-inline-end: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
    transform: translateY(-.12em) rotate(45deg);
}

.pmk-footer__more[open] summary::after {
    transform: translateY(.1em) rotate(225deg);
}

.pmk-footer__base {
    display: grid;
    align-items: start;
    gap: 1rem 1.75rem;
    padding-block-start: clamp(1.5rem, 3vw, 2.125rem);
    color: var(--footer-muted);
    font-size: var(--site-type-caption);
}

.pmk-footer__company {
    max-inline-size: 17rem;
}

.pmk-footer__company p {
    margin-block-end: .35rem;
}

.pmk-footer__company a {
    color: #fff;
    text-decoration: underline;
}

.pmk-footer__documents {
    display: grid;
    gap: .6rem;
}

.pmk-footer :is(.firstmk-legal-links ul, .pmk-footer__utility ul) {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.2rem;
    margin: 0;
}

.pmk-footer .firstmk-legal-links :is(a, button) {
    display: inline-block;
    padding-block: .25rem;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.pmk-footer .firstmk-legal-links button[hidden] {
    display: none;
}

.pmk-footer .firstmk-legal-links :is(a, button):hover {
    color: var(--footer-text);
}

.pmk-footer a.pmk-footer__back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-block-size: 44px;
    padding: .5rem var(--pmk-action-padding-inline);
    border-radius: 8px;
    background: #28485f;
    color: var(--footer-text);
    text-decoration: none;
}

.pmk-footer a.pmk-footer__back:hover {
    background: #365b75;
}

.pmk-footer__back img {
    filter: brightness(0) invert(1);
}

@media (width >= 710px) {
    .pmk-footer__top {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: clamp(2rem, 8vw, 8rem);
    }

    .pmk-footer__access {
        align-self: stretch;
        align-content: space-between;
        justify-self: end;
    }

    .pmk-footer__apps {
        margin-block-end: calc((var(--footer-contact-link-height) - var(--footer-store-link-height)) / 2);
    }

    .pmk-footer__directory {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pmk-footer__base {
        grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.5fr) auto;
    }
}

@media (width >= 992px) {
    .pmk-footer__apps ul {
        grid-template-columns: repeat(3, minmax(0, max-content));
    }

    .pmk-footer__apps li:nth-child(3n + 2) {
        justify-self: center;
    }

    .pmk-footer__apps li:nth-child(3n) {
        justify-self: end;
        text-align: end;
    }
}

@media (width < 710px) {
    .pmk-footer__directory,
    .pmk-footer__channels {
        font-size: var(--site-type-caption);
    }
}
