.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    background: #13122a;
    color: #ffffff;
    font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif;
}

.site-footer-container {
    width: calc(100% - 32px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 42px 0 24px;
}

.site-footer-subscribe {
    position: relative;
    padding-bottom: 38px;
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(360px, 540px);
    gap: 36px;
    align-items: center;
}

.site-footer-subscribe-copy {
    min-width: 0;
}

.site-footer-subscribe h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.025em;
}

.site-footer-subscribe p {
    margin: 0;
    color: rgba(255, 255, 255, .56);
    font-size: 14px;
    line-height: 1.5;
}

.site-footer-form {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.site-footer-email-field {
    min-width: 0;
    display: block;
}

.site-footer-form input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 15px;
    border: 0;
    outline: 0;
    border-radius: 3px;
    background: #1b193b;
    color: #ffffff;
    font:
        500 14px / 1
        Inter,
        Arial,
        ui-sans-serif,
        system-ui,
        sans-serif;
}

.site-footer-form input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.site-footer-form input:focus {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}

.site-footer-form input.is-error {
    box-shadow: inset 0 0 0 1px #ff4a4a;
}

.site-footer-form button {
    height: 46px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 3px;
    background: #31af7c;
    color: #ffffff;
    font:
        700 13px / 1
        Inter,
        Arial,
        ui-sans-serif,
        system-ui,
        sans-serif;
    cursor: pointer;
}

.site-footer-form button:hover {
    opacity: .9;
}

.site-footer-form button:disabled {
    cursor: default;
    opacity: .72;
}

.site-footer-status {
    position: absolute;
    right: 0;
    bottom: 12px;
    min-height: 16px;
    color: #31af7c;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.site-footer-status.is-error {
    color: #ff6868;
}

.site-footer-status.is-success {
    color: #31af7c;
}

.site-footer-navigation {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-footer-logo {
    flex: 0 0 auto;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.1px;
}

.site-footer-links,
.site-footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer-links {
    justify-content: flex-end;
}

.site-footer-links a,
.site-footer-legal a {
    color: rgba(255, 255, 255, .64);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.site-footer-links a:hover,
.site-footer-legal a:hover {
    color: #ffffff;
}

.site-footer-bottom {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-bottom > span {
    color: rgba(255, 255, 255, .34);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.site-footer-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .site-footer-container {
        width: calc(100% - 20px);
        padding-top: 32px;
    }

    .site-footer-subscribe {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 46px;
    }

    .site-footer-status {
        left: 0;
        right: auto;
        bottom: 14px;
    }

    .site-footer-navigation,
    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-links {
        justify-content: flex-start;
    }

    .site-footer-links,
    .site-footer-legal {
        gap: 16px 22px;
    }
}

@media (max-width: 430px) {
    .site-footer-form {
        grid-template-columns: 1fr;
    }

    .site-footer-form button {
        width: 100%;
    }

    .site-footer-subscribe {
        padding-bottom: 48px;
    }

    .site-footer-subscribe h2 {
        font-size: 22px;
    }
}