footer {
    padding: 50px 0 40px;
}

footer .container {
    display: grid;
    gap: 50px 40px;
    grid-auto-columns: 1fr;
    grid-template-areas: 
    "logo logo logo contacts contacts contacts contacts address address address address address"
    "copy copy copy doc doc doc doc doc doc doc doc doc";
}

footer .logo {
    grid-area: logo;
}

footer .logo img {
    max-height: 60px;
    height: 100%;
}

footer .contacts__info {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: start;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .contacts__info .item__contacts__link {
    color: #fff;
    text-decoration: none;
}

footer .contacts__info .item__contacts__link.mail {
    font-size: 25px;
}

footer .contacts__info .item__contacts__link.tel {
    font-size: 20px;
}

footer .address {
    grid-area: address;
    color: #fff;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
}

footer .address .label {
    color: #AEAEAE;
}

footer .copiright {
    grid-area: copy;
    color: #AEAEAE;
    font-size: 16px;
}

footer .documents {
    grid-area: doc;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 50px;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .documents a {
    color: #AEAEAE;
    font-size: 16px;
    text-decoration: none;
}

#hidden_pop-up {
    max-width: 944px;
    width: 100%;
    margin: .5rem;
    overflow: hidden;
}

.content__pop-up {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
    position: relative;
}

.content__pop-up .content__form {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.content__pop-up form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.content__pop-up form p span input {
   margin-bottom: 10px;
}


.content__pop-up form input:not(input[type='submit']),
.content__pop-up form textarea {
    background-color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    width: 100%;
}

.content__pop-up form input::placeholder,
.content__pop-up form textarea::placeholder {
    color: #A5A5A5;
}

.content__pop-up form label {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    font-size: 16px;
    color: #A5A5A5;
    margin-top: 20px;
}


.content__pop-up form input[type='checkbox'] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.content__pop-up form span:has(input[type='checkbox']) {
    position: relative;
}

.content__pop-up form span:has(input[type='checkbox']) {
    margin: 0;
}

.content__pop-up form label:has(input[type='checkbox']) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 12px;
    position: relative;
    color: #A5A5A5;
}

.content__pop-up form label:has(input[type='checkbox'])::before {
    position: relative;
    content: '';
    min-width: 25px;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border-radius: 5px;
}

.content__pop-up form label:has(input[type='checkbox']:checked)::before {
    background-color: #01a0cb;
}

.content__pop-up form label:has(input[type='checkbox']:checked)::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-image: url(../image/check.svg);
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    left: 5px;
    /* top: 5px; */
}

.content__pop-up form label:has(input[type='checkbox']) span a,
#for_whom .form__block form label:has(input[type='checkbox']) span a {
    color: #A5A5A5;
    display: inline;
    cursor: pointer;
    text-decoration: underline;
}

.content__pop-up::before {
    content: '';
    position: absolute;
    z-index: 0;
    background-image: url(../image/sfera.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 500px;
    height: 500px;
    left: -25%;
    bottom: -56%;
    z-index: 0;
}

.fancybox-slide--html:has(.policy__pop-up) {
    padding: 30px 16px;
}

.policy__pop-up {
    background-color: #fff;
    max-width: 1160px;
    width: 100%;
    border-radius: 10px;
    padding: 60px;
}

.policy__pop-up .fancybox-button svg {
    filter: invert(1);
}

.content__policy__pop-up {
    max-width: 900px;
    color: #000;
}

.content__policy__pop-up h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 40px;
}

.content__policy__pop-up h3 {
    font-size: 25px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 18px;
}

.content__policy__pop-up p,
.content__policy__pop-upol li {
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}



@media screen and (max-width: 992px) {
    footer {
        padding: 30px 0;
    }

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

    footer .logo img {
        max-height: 40px;
    }

    footer .contacts__info {
        gap: 4px;
    }

    footer .contacts__info .item__contacts__link.mail,
    footer .contacts__info .item__contacts__link.tel {
        font-size: 16px;
    }

    footer .documents {
        flex-direction: column;
        gap: 4px;
    }

    footer .documents a,
    footer .copiright {
        font-size: 14px;
    }

    footer .copiright {
        order: 10;
    }

    #hidden_pop-up {
        width: auto;
    }

    .content__pop-up {
        flex-direction: column;
        gap: 18px;
    }

    .content__pop-up .form__block {
        flex-direction: column;
        padding: 30px 18px;
        gap: 18px;
    }

    .content__pop-up .form__block::before {
        width: 100%;
        height: 100%;
        left: -16%;
        bottom: -45%;
    }

    .content__pop-up .form__block .content__form {
        gap: 10px;
    }

    .content__pop-up .form__block form {
        position: relative;
        z-index: 1;
    }

    .content__pop-up .form__block form label {
        flex-direction: column;
        gap: 30px;
        margin-top: 0;
    }

    .content__pop-up .form__block form input:not(input[type='submit']) {
        box-sizing: border-box;
        width: 100%;
    }

    .content__pop-up::before {
        width: 300px;
        height: 300px;
        left: -50%;
        bottom: -25%;
    }

    .policy__pop-up {
        padding: 60px 20px 40px;
    }

    .content__policy__pop-up h2 {
        font-size: 30px;
    }

    .content__policy__pop-up h3 {
        font-size: 20px;
    }

    .content__policy__pop-up p,
    .content__policy__pop-upol li {
        font-size: 16px;
        line-height: 150%;
    }
}