:root {
    --radial-gradient: radial-gradient(141.89% 129.71% at 10% 6.59%, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.06) 100%);
    --section-bg: rgba(245, 245, 245, 0.50);
    --social-icon: hsla(0, 0%, 96%, 0.5);
}
main {
    background-repeat: no-repeat;
    background-size: 100% auto;
}
.breadcrumbs {
    margin-top: 100px;
    margin-bottom: 20px;
}
.content.wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    padding-bottom: 100px;
}
section.info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 26px;
    padding: 29px 36px 60px 29px;
    border-radius: 30px;
    border: 1px solid var(--main);
    background: url(../images/contacts/info-bg.webp) center / 100% 100% no-repeat, var(--radial-gradient), var(--section-bg);
    backdrop-filter: blur(10px);
    h1 {
        font-size: 20px;
        font-weight: 500;
        line-height: 23px;
        grid-area: 1/1/2/3;
    }
    & > div {
        display: flex;
        flex-direction: column;
        gap: 20px;
        & > a, & > p {
            display: flex;
            flex-direction: column;
            align-items: start;
            gap: 6px;
            font-size: 18px;
            line-height: 20px;
            &.phone {
                font-weight: 500;
                &::before {
                    content: '\e008';
                }
            }
            &::before {
                content: '\e009';
                font-family: 'icon';
                font-size: 20px;
                color: var(--second);
                display: flex;
                justify-content: center;
                align-items: center;
                width: 40px;
                height: 40px;
                border-radius: 12px;
                border: 1px solid var(--main);
                background: var(--social-icon-color);
                box-shadow:var(--box-shadow); 
            }
        }
        & > p {
            &::before {
                content: '\e015';
            }
            &:first-of-type::before {
                content: '\e007';
            }
        }
        .social-media {
            gap: 10px;
            a {
                background: var(--social-icon);
                border: 1px solid var(--main);
            }
        }
    }
}
main form {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--main);
    background: url(../images/contacts/form-bg.webp) center / 100% 100% no-repeat, var(--radial-gradient), var(--section-bg);
    backdrop-filter: blur(10px);
    grid-area: 2/1/3/2;
    h2 { 
        font-size: 20px;
        font-weight: 500;
        line-height: 23px;
        margin-bottom: 20px;
    }
    label {
        display: flex;
        padding-left: 10px;
        margin-bottom: 3px;
        font-size: 14px;
        line-height: 16px;
        letter-spacing: -0.028px;
    }
    input:not([type="submit"], [type="checkbox"]), textarea {
        display: flex;
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 10px;
        border-radius: 10px;
        border: 2px solid var(--main);
        background: var(--input-bg);
        color: var(--text-3);
        font-weight: 400;
        line-height: 18px;
        letter-spacing: -0.032px;
        transition: .3s linear;
        &:focus {
            border: 2px solid var(--second);
        }
        &.error {
            border: 2px solid rgb(233, 0, 0);
        }
        &:placeholder {
            font-weight: 400;
            line-height: 18px;
            letter-spacing: -0.032px;
            color: var(--placeholder);
        }
    }
    textarea {
        height: 100px;
        margin-bottom: 20px;
    }
    input[type="submit"] {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 218px;
        padding: 12px;
        margin-bottom: 10px;
        border: none;
        border-radius: 10px;
        background: var(--second);
        color: var(--main);
        font-size: 14px;
        font-weight: 700;
        line-height: 24px;
        transition: .3s linear;
    }
    label {
        display: flex;
        align-items: center;
        gap: 10px;
        p {
            color: var(--text-2);
            font-size: 12px;
            font-weight: 300;
            line-height: 14px;
            letter-spacing: -0.2px;
            text-align: left;
            a {
                font-size: 12px;
                font-weight: 300;
                line-height: 14px;
                letter-spacing: -0.2px;
                color: var(--second);
            }
        }
    }
}
.map {
    width: 100%;
    height: 318px;
    border-radius: 20px;
    border: 1px solid var(--main);
    box-shadow: var(--box-shadow); 
    overflow: hidden;
    grid-area: 2/2/3/3;
    align-self: flex-end;
    .ymaps3x0--map-copyrights__logo,
    .ymaps3x0--map-copyrights__container {
        display: none;
    }
    canvas {
        filter: grayscale(1);
    }
    .marker {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 115px;
        position: relative;
        left: -40px;
        top: -40px;
    }
}
@media screen and (max-width: 1240px) { 
    .breadcrumbs {
        margin-bottom: 160px;
    }
    .content.wrapper {
        display: flex;
        flex-direction: column;
        max-width: 700px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 767px) {
    main {
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 180% auto;
    }
    .breadcrumbs {
        margin-top: 80px;
        margin-bottom: 200px;
    }
    .content.wrapper {
        padding-bottom: 80px;
    }
    section.info {
        grid-template-columns: 1fr;
        gap: 0px;
        padding: 29px;
        background: url(../images/contacts/info-bg-mob.webp) center / 100% 100% no-repeat, var(--radial-gradient), var(--section-bg);
        h1 {
            grid-area: 1/1/2/2;
            margin-bottom: 20px;
        }
        & > div {
            & > p {
                padding-right: 50px;
            }
            .social-media {
                margin-bottom: 26px;
            }
        }
    }
    main form {
        padding: 30px 20px;
        background: url(../images/contacts/form-bg-mob.webp) center / 100% 100% no-repeat, var(--radial-gradient), var(--section-bg);
        h2 { 
            margin-bottom: 10px;
            text-align: center;
        }
    }
    .map {
        height: 500px;
    }
}
@media screen and (max-width: 420px) { 
    main {
        background-repeat: no-repeat;
        background-position: 59% top;
        background-size: 200% auto;
    }
    .breadcrumbs {
        margin-bottom: 183px;
    }
}
@media (hover:hover) {
    .info {
        & > div > a:hover {
            color: var(--btn-hover);
        }
    }
    main form {
        input[type="submit"]:hover {
            background: var(--btn-hover);
        }
        p a:hover {
            color: var(--btn-hover);
        }
    }
}