.footer .content-wrap {
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
    align-items: center;
}

.footer__brand {
    grid-column: span 3;
    height: 100%;
}

.footer__brand .footer__phone,
.footer__brand .footer__bottom {
    display: none;
}

.flex__containder {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__us {
    height: 100%;
}

.footer__content {
    grid-column: 4 / span 9;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 68px;
    justify-content: space-between;
}

.footer__column {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__column-title {
    font-size: 30px;
    font-weight: 500;
    color: rgba(166, 177, 181, 0.5);
    text-transform: uppercase;
    font-family: 'Avenir-Medium', sans-serif;
}

.footer__links-item {
    font-family: 'Avenir-Medium', sans-serif;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__socials-item {
    width: 48px;
    height: 48px;
}

.footer__socials-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    border-radius: 4px;
    position: relative;
    transition: .2s;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
    color: var(--white);
}

.footer__socials-link:after {
    position: absolute;
    content: '';
    width: 10px;
    height: 10px;
    bottom: -1px;
    right: -1px;
    background-color: var(--white);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.footer__socials-link:hover {
    background-color: var(--blue);
    color: var(--black);
}

.footer__link {
    font-size: 14px;
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
}

.footer__link:hover {
    color: var(--blue);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
}

.footer__phone {
    font-size: 56px;
    font-weight: 700;
    color: var(--black);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
    font-family: 'Avenir-Bold', sans-serif;
}

.footer__phone:hover {
    color: var(--blue);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
}

.footer__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.footer__copyright {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 490px;
    font-size: 12px;
    font-family: 'Avenir-Regular', sans-serif;
}

.footer__documents {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__documents-item a {
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 12px;
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
    font-family: 'Avenir-Medium', sans-serif;
}

.footer__documents-item a:hover {
    color: var(--blue);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
}

.footer__rights {
    text-transform: uppercase;
    font-weight: 500;
}

.footer__documents-item a svg {
    margin-bottom: 3px;
}


.footer__brand form {
    background-color: var(--black);
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    padding: 45px 30px;
    height: 100%;
    position: relative;
}

.footer__brand form:after {
    position: absolute;
    content: '';
    width: 30px;
    height: 30px;
    bottom: -1px;
    right: -1px;
    background-color: var(--white);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.footer__brand form:before {
    position: absolute;
    content: '';
    width: 30px;
    height: 30px;
    top: -1px;
    left: -1px;
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.form__title {
    font-size: 34px;
    color: var(--white);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Avenir-Heavy', sans-serif;
    font-weight: 600;
}

.form__title span {
    font-size: 32px;
    font-weight: 500;
    font-family: 'Avenir-Light', sans-serif;
}

.form__subtitle {
    text-align: center;
    color: var(--white);
    font-size: 12px;
    text-transform: uppercase;
    max-width: 226px;
    margin: 0 auto;
    margin-bottom: 48px;
    font-family: 'Avenir-Light', sans-serif;
}





.form__field {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: var(--white);
    font-family: 'Avenir-Regular', sans-serif;
}

.form__input:focus {
    outline: none;

}

.form__input::placeholder {
    color: var(--placeholder);
}

/* Стили для кастомных чекбоксов */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 23px;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--white);
}

.checkbox__mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 4px;
}

.custom-checkbox input:checked+.checkbox__mark {
    background-color: var(--blue);
    border-color: var(--blue);
}

.custom-checkbox input:checked+.checkbox__mark::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.custom-checkbox:hover .checkbox__mark {
    border-color: var(--blue);
}

.checkbox__text {
    line-height: 1.4;
    font-family: 'Avenir-Regular', sans-serif;
}

.checkbox__text a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: .5px;
    text-underline-offset: 3px;
}

.footer__brand form .button--primary {
    background: var(--white);
    width: 100%;
    text-align: center;
    justify-content: center;
    color: var(--black);
}

.footer__brand form .button--primary:hover {
    background: var(--blue);
    color: var(--black);
}

@media(max-width: 1839px) {
    .footer__columns {
        gap: 42px;
    }
}

@media(max-width: 1560px) {
    .footer__columns {
        gap: 28px;
    }

    .footer__container {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media(max-width: 1439px) {
    .footer__columns {
        gap: 20px;
    }

    .footer__column {
        grid-column: span 2;
    }

    .footer__links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer__brand {
        grid-column: span 4;
    }

    .footer__content {
        grid-column: 5 / span 8;
        gap: 48px;
    }

}

@media(max-width: 1240px) {

    .footer__container,
    .footer__content {
        gap: 30px;
    }

    .footer__column-title {
        font-size: 24px;

    }

    .footer__phone {
        font-size: 46px;
    }
}

@media(max-width: 1040px) {
    .footer__phone {
        display: none;
        font-size: 42px;
    }

    /* .footer__brand .footer__phone {
        display: block;

    } */

    .footer__brand {
        grid-column: span 5;
    }

    .footer__content {
        grid-column: 6 / span 5;
    }

    .footer__bottom {
        display: none;
    }

    .footer__content {
        justify-content: space-between;
    }

    .footer__bottom {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 12px;
    }

    .footer__documents {
        order: 1;
    }

    .footer__copyright {
        order: 2;
    }

    .footer__container,
    .footer__content {
        gap: 20px;
    }

    .footer__column-title {
        font-size: 20px;
    }
}

@media(max-width: 900px) {
    .footer__container {
        display: flex;
        flex-direction: column;
    }

    .footer__column-title {
        font-size: 24px;
    }

    .footer__bottom {
        flex-direction: row;
        align-items: flex-end;
        margin-top: 20px;
    }

    .footer__documents {
        order: 2;
    }
}

@media(max-width: 767px) {
    .footer__brand form {
        padding: 20px;
    }
}

@media(max-width: 600px) {
    .footer__columns {
        margin-top: 20px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__documents {
        order: 1;
    }

    .footer__columns {
        display: flex;
        flex-wrap: wrap;
    }

    .footer__column {
        width: 100%;
    }

    /* .footer__phone {
        display: block;
        font-size: 32px;
    } */

    .footer__brand .footer__phone {
        display: none;
    }

    .form__title {
        font-size: 28px;
    }

    .footer__brand form:after {

        width: 24px;
        height: 24px;

    }

    .footer__brand form:before {

        width: 24px;
        height: 24px;

    }
}



.custom-checkbox.is-error {
    animation: consult-form-shake 0.3s ease-in-out;
}

.custom-checkbox.is-error .checkbox__text {
    color: var(--red) !important;
}

.custom-checkbox.is-error .checkbox__mark {
    border-color: var(--red) !important;
}

@keyframes consult-form-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}



    .cookie {
        position: fixed;
        bottom: 37px;
        width: calc(100% - 60px);
        max-width: 1240px;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 0 10px 3px #0000001A;
        padding: 17px 20px;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        z-index: 20000;
    }


    .cookie.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .cookie__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .cookie__content p {
        font-size: 12px;
        leading-trim: NONE;
        line-height: 18px;
        letter-spacing: 0%;
        color: #000000;
    }

    .cookie__button {
        background: var(--black);
        font-weight: 400;
        font-size: 14px;
        leading-trim: NONE;
        line-height: 19px;
        letter-spacing: 0%;
        color: #ffffff;
        padding: 11px 35px;
        border-radius: 10px;
    }

    @media (max-width: 1440px) {
        .cookie {
            max-width: 960px;
            width: calc(100% - 84px);
        }
    }

    @media(max-width: 767px) {
        .cookie__content {
            flex-direction: column;
            align-items: center;
        }
    }