.footer {
    margin-top: 90px;
    background: var(--bg-gray);
}

.footer-top {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer__subscribe {
    display: flex;
    align-items: center;
}

.footer__subscribe-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
    margin-right: 30px;
}

.footer__subscribe-form {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    font-size: 14px;
    line-height: 1.5;
}

.footer__subscribe-form form {
    width: 100%;
    max-width: 838px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__subscribe-form form input[type=submit], .footer__subscribe-form form button[type=submit] {
    flex: 0 0 284px;
    font-size: 14px;
    line-height: 1.5;
    height: 45px;
    padding: 11px 30px;
}

.footer__subscribe-form form input[type=email] {
    flex-grow: 1;
    border-color: var(--border-color-dark);
    height: 45px;
}

.footer-middle {
    padding: 45px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 0 0 calc((100% - 60px) / 4);
}

.footer-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.footer-contact {
    margin-bottom: 20px;
    font-size: 15px;
}

.footer-contact svg {
    fill: #999;
}

.footer-messagers {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-messagers__title {
    flex: 0 0 100%;
}

.footer-middle--second {
    display: flex;
    align-items: center;
    padding: 27px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #7E7E7E;
}

.footer-socials svg {
    display: block;
    margin: 0;
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    color: #7E7E7E;
}

.footer-links {
    flex-grow: 1;
}

.footer-links a {
    margin-right: 50px;
}

.footer-links a:last-child {
    margin-right: 0;
}

.footer__meta {
    flex-grow: 1;
}

.footer--two .footer__subscribe-form {
    margin-bottom: 30px;
}

.footer--two .footer__subscribe-form form {
    background: #fff;
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-little);
}

.footer--two .footer__subscribe-form form input[type=email] {
    background: transparent;
    border: none;
    height: 43px;
}

.footer--two .footer__subscribe-form form button[type=submit] {
    flex: 0 0 60px;
    border: none;
    padding: 0;
    width: 60px;
    height: 43px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer--two .footer-messagers {
    padding: 0;
    background: transparent;
    margin-top: 40px;
    color: var(--text-gray-dark);
}

.footer--two .footer-middle {
    border: none;
}

.footer--two .footer-middle--second {
    padding: 0;
    border: none;
    position: relative;
    justify-content: center;
}

.footer--two .footer-middle--second::before {
    display: block;
    content: "";
    height: 1px;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--border-color);
}

.footer--two .footer-socials {
    position: relative;
    z-index: 2;
    margin: 0;
    justify-content: center;
    background: var(--bg-gray);
    padding: 0 15px;
    color: var(--text-gray-dark);
}

.footer--two .footer-links {
    margin-top: 15px;
}

.footer--two .footer-bottom {
    padding-bottom: 45px;
}

.footer--two .dev {
    color: var(--text-gray-dark);
}

.footer--two .dev svg {
    height: 57px;
    width: 255px;
}

.footer--two .dev svg * {
    fill: var(--text-gray-dark);
}

.footer--three {
    background: #333;
    color: #fff;
}

.footer--three .footer__subscribe-form {
    margin-bottom: 30px;
}

.footer--three .footer__subscribe-form form {
    background: var(--text-gray-dark);
    border: 1px solid var(--text-gray-dark);
    border-radius: var(--border-radius-little);
}

.footer--three .footer__subscribe-form form input[type=email] {
    background: transparent;
    border: none;
    height: 43px;
}

.footer--three .footer__subscribe-form form button[type=submit] {
    flex: 0 0 60px;
    border: none;
    padding: 0;
    width: 60px;
    height: 43px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer--three .footer-middle {
    border-color: #474747;
}

.footer--three .footer-middle--second {
    display: flex;
    justify-content: space-between;
    color: #7E7E7E;
    border-bottom: none;
}

.footer--three .footer-socials {
    margin-left: 0;
    flex-wrap: wrap;
    row-gap: 25px;
}

.footer--three .footer-socials > span {
    flex: 0 0 100%;
}

.footer--three .footer-socials a {
    color: var(--text-gray-dark);
}

.footer--three .footer-messagers {
    padding: 0;
    background: transparent;
    justify-content: flex-end;
    row-gap: 25px;
    column-gap: 15px;
}

.footer--three .footer-messagers__title {
    text-align: right;
}

.footer--three .footer-messagers a {
    color: var(--text-gray-dark);
}

.footer--three .footer-messagers svg {
    width: 40px;
    height: 40px;
}

.footer--three .footer-bottom {
    padding-top: 15px;
}

.footer--three .footer-links {
    margin-top: 15px;
}

.copyright,
.dev {
    flex: 0 0 calc((100% - 60px) / 4);
}

.dev {
    display: flex;
    justify-content: flex-end;
}