.site-footer {
    border-top: 1px solid #d9d9d9;
}

.site-footer-shell {
    max-width: 1600px;
    padding: 2.6rem 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

.site-footer-info {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(100%, 960px);
    box-sizing: border-box;
    border-radius: 12px;
    justify-content: center;
}

.site-footer-brand {
    flex: 0 0 auto;
}

.site-footer-brand img {
    display: block;
    width: auto;
    max-width: 124px;
    max-height: 74px;
    object-fit: contain;
}

.site-footer-content {
    flex: 1 1 auto;
    min-width: 0;
}

.site-footer-subscription {
    box-sizing: border-box;
    width: min(100%, 960px);
    padding: 20px 24px 18px;
    border: 1px solid #f2c5cf;
    border-radius: 12px;
    background: #fff7f8;
}

.site-footer-subscription h2 {
    margin: 0;
    color: #e6002e;
    font-size: 21px;
    line-height: 1.25;
}

.site-footer-subscription > p {
    margin: 7px 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

.footer-subscription-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.footer-subscription-form label:first-of-type,
.footer-subscription-form label:nth-of-type(2) {
    grid-column: span 1;
}

.footer-subscription-form label:nth-of-type(3),
.footer-subscription-form button {
    grid-column: 1 / -1;
}

.footer-subscription-form label span {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.footer-subscription-form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dedede;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #333;
    font: inherit;
}

.footer-subscription-form input:focus {
    border-color: #e6002e;
    box-shadow: 0 0 0 3px rgba(230, 0, 46, .14);
}

.footer-subscription-form input.is-invalid {
    border-color: #d84a4a;
    box-shadow: 0 0 0 3px rgba(216, 74, 74, .12);
}

.footer-subscription-field-error {
    display: none;
    margin-top: 5px;
    color: #d23f3f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.footer-subscription-field-error.is-visible {
    display: block;
}

.footer-subscription-form button {
    min-height: 42px;
    width: max-content;
    min-width: 150px;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    background: #e6002e;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    justify-self: center;
    transition: background .2s ease;
}

.footer-subscription-form button:hover {
    background: #bd0026;
}

.footer-subscription-form button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: wait;
    opacity: .8;
}

.footer-subscription-form button.is-loading::before {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: footer-subscription-spin .7s linear infinite;
}

@keyframes footer-subscription-spin {
    to {
        transform: rotate(360deg);
    }
}

.footer-subscription-message {
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.site-footer-subscription > .footer-subscription-message.is-success {
    color: #17613a;
    background: #e7f5ec;
}

.site-footer-subscription > .footer-subscription-message.is-error {
    color: #9d2727;
    background: #fdecec;
}

.footer-subscription-message.is-hidden {
    display: none;
}

.site-footer-content p {
    margin: 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.5;
}

.site-footer-content p+p {
    margin-top: 2px;
}

@media only screen and (min-width: 64em) {
    .site-footer-shell {
        padding: 3.2rem 0;
    }
}

@media (min-width: 768px) {
    .footer-subscription-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-subscription-form label:nth-of-type(3) {
        grid-column: 1 / -1;
    }

    .footer-subscription-form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .site-footer-shell {
        padding: 2.2rem 0;
    }

    .site-footer-content p {
        font-size: 14px;
    }

    .site-footer-subscription {
        padding: 20px;
    }

    .footer-subscription-form {
        grid-template-columns: 1fr;
    }

    .footer-subscription-form label:first-of-type,
    .footer-subscription-form label:nth-of-type(2) {
        grid-column: 1 / -1;
    }
}

.site-footer-text-strong {
    font-weight: 600;
    color: #444;
}
