.footer {
    width: 100%;
    background-color: #0E0E0E;
    padding: 36px 0 0;
    border-radius: 40px 40px 0 0;
    height: 192px;
}

.footer *,
.footer *:before,
.footer *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.footer_main {
    max-width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 24px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-bottom: 28px;
}

.footer_logo {
    height: 80px;
    width: auto;
}

.footer_phone p,
.footer_messenger p {
    font-family: var(--font-family, Arial, Helvetica, sans-serif);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    line-height: 150%;
    color: #fff;
    margin: 0;
}

.footer_contacts {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 20px;
}

.footer_phone .phone,
.footer_messenger .phone {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.footer_phone .phone:hover,
.footer_messenger .phone:hover {
    color: #c8a84e;
}

.footer_buttons {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 12px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.btn-footer-primary,
.btn-footer-secondary,
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-family, Arial, Helvetica, sans-serif);
}

.btn-footer-primary,
.btn-primary {
    background: #c8a84e;
    border: 2px solid #c8a84e;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.btn-footer-primary:hover,
.btn-primary:hover {
    background: #d4b85e;
    border-color: #d4b85e;
}

.btn-footer-secondary,
.btn-secondary {
    background: transparent;
    border: 2px solid #c8a84e;
    font-weight: 700;
    font-size: 14px;
    color: #b68a3d;
}

.btn-footer-secondary:hover,
.btn-secondary:hover {
    background: rgba(200, 168, 78, 0.1);
}

.footer_social {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 12px;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.footer_social a {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.footer_social img {
    width: 28px;
    height: 28px;
    display: block;
}

.footer_social a:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
}

.second_footer {
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 14px 0 0 0;
    border-top: 1px solid #d4af37;
}

.second_footer p {
    font-family: var(--font-family, Arial, Helvetica, sans-serif);
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    margin-left: 140px;
    margin-top: 0;
    margin-bottom: 0;
}

.second_footer a {
    font-family: var(--font-family, Arial, Helvetica, sans-serif);
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    margin-right: 140px;
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.second_footer a:hover {
    color: #c8a84e;
}

@media (max-width: 992px) {
    .footer {
        height: auto;
        padding: 30px 30px 0;
    }

    .second_footer p {
        margin-left: 30px;
    }

    .second_footer a {
        margin-right: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        height: auto;
        padding: 30px 20px 0;
        border-radius: 24px 24px 0 0;
    }

    .footer_main {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        text-align: center;
        gap: 24px;
        padding-bottom: 24px;
    }

    .footer_logo {
        height: 90px;
    }

    .footer_contacts {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: justify;
        -moz-box-pack: justify;
        -ms-flex-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        width: 100%;
        gap: 16px;
    }

    .footer_phone,
    .footer_messenger {
        -webkit-box-flex: 1;
        -moz-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
        text-align: center;
    }

    .footer_buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        width: 100%;
        gap: 14px;
    }

    .btn-footer-primary,
    .btn-footer-secondary,
    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 200px;
        padding: 14px 24px;
        white-space: normal;
    }

    .footer_social {
        -webkit-box-pack: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        width: 100%;
    }

    .second_footer {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 6px;
        padding: 16px 0;
    }

    .second_footer p,
    .second_footer a {
        margin: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer_contacts {
        gap: 10px;
    }

    .footer_phone .phone,
    .footer_messenger .phone {
        font-size: 14px;
    }

    .btn-footer-primary,
    .btn-footer-secondary,
    .btn-primary,
    .btn-secondary {
        min-width: 160px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .footer_main {
        display: -ms-flexbox;
    }
    
    .footer_contacts,
    .footer_buttons,
    .footer_social {
        display: -ms-flexbox;
    }
}

@-moz-document url-prefix() {
    .btn-footer-primary,
    .btn-footer-secondary,
    .btn-primary,
    .btn-secondary {
        line-height: normal;
    }
}

@media screen and (min-color-index: 0) and (-webkit-min-device-pixel-ratio: 0) {
    .btn-footer-primary,
    .btn-footer-secondary,
    .btn-primary,
    .btn-secondary {
        -webkit-appearance: none;
        appearance: none;
    }
}