.site-footer {
    border-top: 1px solid var(--border, rgba(128, 128, 128, 0.22));
    background: var(--background-color);
    color: var(--text-color);
    margin-top: 72px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 72px;
    padding: 56px 0 36px;
    align-items: start;
}

.footer-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 680px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 22px;
    text-decoration: none;
    color: inherit;
}

.footer-logo-text {
    font-family: var(--font2);
    font-size: clamp(3rem, 4.1vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.footer-paragraph-wrapper {
    margin-bottom: 26px;
    max-width: 43rem;
}

.footer-description-copy {
    margin: 0;
    font-family: var(--font1);
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--text-color);
    opacity: 0.92;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.footer-socials .social-links,
.navbar-socials-icons .social-links {
    display: contents;
}

.social-link.is-hidden,
.social-link[hidden] {
    display: none !important;
}

.footer-socials .social,
.navbar-socials-icons .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.footer-socials .social:hover,
.navbar-socials-icons .social:hover {
    opacity: 0.78;
    transform: translateY(-1px);
}

.footer-socials .social:focus-visible,
.navbar-socials-icons .social:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 3px;
}

.footer-socials .social-inner,
.navbar-socials-icons .social-inner {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-socials .social-inner svg,
.navbar-socials-icons .social-inner svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-form {
    width: 100%;
    max-width: 420px;
}

.footer-subscribe-form,
.footer-subscribe-form .subscribe-with-alerts {
    width: 100%;
}

.footer-subscribe-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    border: 1px solid var(--text-color);
    background: rgba(255, 255, 255, 0.03);
}

.footer-subscribe-input {
    min-width: 0;
    height: 56px;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-family: var(--font1);
    font-size: 1.05rem;
}

.footer-subscribe-input::placeholder {
    color: var(--text-color);
    opacity: 0.56;
}

.footer-subscribe-input:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.045);
}

.footer-subscribe-button {
    min-width: 128px;
    height: 56px;
    border: 0;
    background: #ebe6dd;
    color: #151515;
    font-family: var(--font1);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-subscribe-button:hover,
.footer-subscribe-button:focus-visible {
    background: var(--text-color);
    color: var(--background-color);
}

.footer-form-alerts {
    margin-top: 10px;
}

.footer-navigation-shell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 28px;
    min-width: 0;
}

.footer-meta-block,
.footer-contact-block {
    text-align: right;
}

.footer-meta-copy {
    margin: 0;
    font-family: var(--font1);
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-color);
    opacity: 0.86;
}

.footer-meta-copy--italic {
    font-style: italic;
}

.footer-meta-copy a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(128, 128, 128, 0.4);
}

.footer-meta-copy a:hover,
.footer-meta-copy a:focus-visible {
    border-bottom-color: currentColor;
}

.footer-navigation {
    width: 100%;
    display: none;
    justify-content: flex-end;
}

.footer-normal-links-group {
    width: 100%;
}

.footer-normal-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.footer-normal-links li {
    list-style: none;
}

.footer-nav {
    display: none;
}

.footer-nav-link,
.footer-normal-links a {
    color: var(--text-color);
    font-family: var(--font1);
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0.72;
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible,
.footer-normal-links a:hover,
.footer-normal-links a:focus-visible {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border, rgba(128, 128, 128, 0.22));
    padding: 18px 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    margin: 0;
    font-family: var(--font1);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    opacity: 0.72;
}

html[data-theme="light"] .site-footer {
    background: #eeebe5;
}

html[data-theme="light"] .footer-subscribe-wrapper {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .footer-subscribe-input:focus-visible {
    background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 1200px) {
    .footer-content {
        gap: 48px;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    }
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 0 30px;
    }

    .footer-description {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-paragraph-wrapper {
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-form {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-navigation-shell {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-meta-block,
    .footer-contact-block {
        text-align: center;
    }

    .footer-navigation {
        justify-content: center;
    }

    .footer-normal-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 56px;
    }

    .footer-content {
        padding: 40px 0 24px;
        gap: 40px;
    }

    .footer-logo-text {
        font-size: clamp(2.5rem, 11vw, 3.6rem);
    }

    .footer-description-copy {
        font-size: 1rem;
    }

    .footer-socials {
        gap: 20px;
        margin-bottom: 24px;
    }

    .footer-subscribe-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-subscribe-input {
        border-right: 0;
        border-bottom: 1px solid var(--text-color);
        height: 52px;
        text-align: center;
    }

    .footer-subscribe-button {
        width: 100%;
        min-width: 0;
        height: 52px;
    }

    .footer-bottom {
        padding: 16px 0 22px;
    }
}
