.footer-anaplast-1 {
    width: 100%;
    background-color: var(--apl-surface-alt);
    border-top: 3px solid var(--apl-accent);
    container-type: inline-size;
}
.footer-anaplast-1 .content-wrapper {
    max-width: var(--apl-container);
    width: 100%;
    margin: 0 auto;
    padding-inline: var(--apl-gutter);
}

/* --- Main row --- */
.footer-anaplast-1 > .content-wrapper {
    display: grid;
    grid-template-columns: minmax(16rem, 24rem) 1fr;
    gap: var(--apl-space-6);
    padding-block: var(--apl-space-6) var(--apl-space-5);
}
.footer-anaplast-1__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--apl-space-3);
}
.footer-anaplast-1__logo {
    max-width: 12rem;
    height: auto;
    object-fit: contain;
}
.footer-anaplast-1__about {
    margin: 0;
    font-size: var(--apl-text-sm);
    line-height: var(--apl-leading-normal);
    color: var(--text-color);
    white-space: pre-line;
}
.footer-anaplast-1__socials {
    display: flex;
    gap: var(--apl-space-1);
}
.footer-anaplast-1__socials a {
    width: var(--apl-control-min);
    height: var(--apl-control-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--apl-radius-sm);
    background-color: var(--apl-surface);
    border: 1px solid var(--apl-border-strong);
    color: var(--heading-color);
    font-size: 1.05rem;
    text-decoration: none;
    transition:
        background-color var(--apl-transition),
        color var(--apl-transition),
        border-color var(--apl-transition);
}
.footer-anaplast-1__socials a:hover {
    background-color: var(--apl-accent);
    border-color: var(--apl-accent);
    color: var(--apl-on-accent);
}
.footer-anaplast-1__socials a:focus-visible {
    outline: var(--apl-focus);
    outline-offset: var(--apl-focus-offset);
}

/* --- Link columns --- */
.footer-anaplast-1__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: var(--apl-space-4);
}
.footer-anaplast-1__col h3 {
    margin: 0 0 var(--apl-space-2);
    font-size: var(--apl-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--apl-tracking-caps);
    color: var(--heading-color);
}
.footer-anaplast-1__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.footer-anaplast-1__col a {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--apl-text-sm);
    transition: color var(--apl-transition);
}
.footer-anaplast-1__col a:hover {
    color: var(--apl-accent-hover);
    text-decoration: underline;
}
.footer-anaplast-1__col a:focus-visible,
.footer-anaplast-1__legal-links a:focus-visible {
    outline: var(--apl-focus);
    outline-offset: var(--apl-focus-offset);
}
.footer-anaplast-1__contacts ul {
    gap: var(--apl-space-2);
}
.footer-anaplast-1__contacts li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: var(--apl-text-sm);
    color: var(--text-color);
}
.footer-anaplast-1__contacts li i {
    color: var(--apl-accent-hover);
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}
.footer-anaplast-1__contacts a {
    color: inherit;
}

/* --- Bottom bar --- */
.footer-anaplast-1__bottom {
    border-top: 1px solid var(--apl-border);
}
.footer-anaplast-1__bottom .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--apl-space-2);
    padding-block: var(--apl-space-3);
}
.footer-anaplast-1__legal {
    margin: 0;
    font-size: var(--apl-text-xs);
    color: var(--apl-text-muted);
}
.footer-anaplast-1__legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--apl-space-3);
}
.footer-anaplast-1__legal-links a {
    font-size: var(--apl-text-xs);
    color: var(--apl-text-muted);
    text-decoration: none;
    transition: color var(--apl-transition);
}
.footer-anaplast-1__legal-links a:hover {
    color: var(--apl-accent-hover);
    text-decoration: underline;
}

@container (width < 60rem) {
    .footer-anaplast-1 > .content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--apl-space-5);
        padding-block: var(--apl-space-5) var(--apl-space-4);
    }
}
