.portal-footer {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 64px;
    background: var(--portal-color-ink, #0b0b0b);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--portal-font-sans, sans-serif);
}

.site-footer {
    display: block;
    clear: both;
    width: 100%;
}

.portal-footer__accent {
    height: 6px;
    background: var(--portal-color-brand, #ffd400);
}

.portal-footer__inner {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
    padding: 28px 0 18px;
}

.portal-footer__top {
    display: grid;
    grid-template-columns: minmax(300px, 1.25fr) minmax(320px, 1fr) minmax(210px, 0.75fr);
    gap: 42px;
}

.portal-footer__brand-block,
.portal-footer__categories,
.portal-footer__social {
    min-width: 0;
}

.portal-footer__brand img {
    display: block;
    width: min(100%, 250px);
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: grayscale(1) brightness(0) invert(1);
}


.portal-footer__brand .portal-footer__logo--original {
    filter: none;
}

.portal-footer__tagline {
    max-width: 430px;
    margin: 10px 0 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

.portal-footer__heading,
.portal-footer-search__label {
    display: block;
    margin: 0 0 12px;
    color: #ffffff;
    font-family: var(--portal-font-display, sans-serif);
    font-size: 18px;
    font-weight: 650;
}

.portal-footer__heading::after,
.portal-footer-search__label::after {
    content: '';
    display: block;
    width: 38px;
    height: 3px;
    margin-top: 7px;
    background: var(--portal-color-brand, #ffd400);
}

.portal-footer-search__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: 520px;
}

.portal-footer-search__controls input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.portal-footer-search__controls input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.portal-footer-search__controls input:focus {
    border-color: var(--portal-color-brand, #ffd400);
    outline: 2px solid rgba(255, 212, 0, 0.25);
}

.portal-footer-search__controls button {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--portal-color-brand, #ffd400);
    border-radius: 4px;
    background: var(--portal-color-brand, #ffd400);
    color: var(--portal-color-ink, #0b0b0b);
    font-weight: 650;
    cursor: pointer;
}

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

.portal-footer li + li {
    margin-top: 7px;
}

.portal-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.portal-footer a:hover,
.portal-footer a:focus-visible {
    color: var(--portal-color-brand, #ffd400);
}

.portal-footer__categories a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
}

.portal-footer__categories ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.portal-footer__categories li + li {
    margin-top: 0;
}

.portal-footer__categories li {
    margin-bottom: 7px;
}

.portal-footer__categories a::before {
    content: '—';
    margin-right: 8px;
    color: var(--portal-color-brand, #ffd400);
}

.portal-footer__social li > a,
.portal-footer__social li > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
}

.portal-footer__social-mark {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(255, 212, 0, 0.55);
    border-radius: 50%;
    color: var(--portal-color-brand, #ffd400);
    font-size: 11px;
    font-weight: 900;
}

.portal-footer__email {
    display: inline-block;
    margin-top: 13px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.portal-footer__bottom {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.portal-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-bottom: 11px;
}

.portal-footer__legal a,
.portal-footer__legal span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-footer__legal span {
    opacity: 0.45;
}

.portal-footer__disclaimer {
    max-width: 900px;
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.65;
}

.portal-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

@media (min-width: 1100px) {
    .portal-footer {
        max-height: 410px;
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    .portal-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .portal-footer__brand-block {
        grid-column: 1 / -1;
    }

    .portal-footer__categories ul {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) and (max-width: 1400px) {
    .portal-footer {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .portal-footer {
        margin-top: 44px;
    }

    .portal-footer__inner {
        width: min(100% - 32px, 1200px);
        padding-top: 40px;
    }

    .portal-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .portal-footer__brand-block {
        grid-column: 1 / -1;
    }

    .portal-footer-search__controls {
        grid-template-columns: 1fr;
    }

    .portal-footer__categories a,
    .portal-footer__social li > a,
    .portal-footer__social li > span {
        font-size: 13px;
    }

    .portal-footer__social-mark {
        width: 24px;
        height: 24px;
    }

    .portal-footer__bottom {
        margin-top: 28px;
    }
}
