.contacts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 54px;
    margin-bottom: 150px;

    .contacts__title__block {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 18px;

        .contacts__title {
            font-family: "Fira Sans", sans-serif;
            font-weight: 600;
            font-size: 22px;
            color: #1E1E1E;
        }
    }

    .contacts__blocks {
        display: -ms-grid;
        display: grid;
        gap: 20px;
        -ms-grid-columns: 1fr 20px 1fr 20px 1fr;
        grid-template-columns: 1fr 1fr 1fr;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        justify-items: center;

        .contacts__block:nth-child(4) {
            -ms-grid-column: 2;
            grid-column: 2; /* Центрирование четвертого элемента */
        }
        @media (max-width: 1220px) {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-wrap: wrap;
                flex-wrap: wrap;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            -webkit-box-pack: center;
                -ms-flex-pack: center;
                    justify-content: center;
        }

        .contacts__block {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: start;
                -ms-flex-align: start;
                    align-items: start;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-direction: column;
                    flex-direction: column;
            padding: 20px;
            gap: 18px;
            width: 373px;
            height: 173px;
            background-color: #FBFBFB;
            border: 1px solid #1E1E1E26;
            border-radius: 10px;
            -webkit-transition: background-color 0.3s ease, height 0.5s ease, -webkit-box-shadow 0.3s ease;
            transition: background-color 0.3s ease, height 0.5s ease, -webkit-box-shadow 0.3s ease;
            transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.5s ease;
            transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.5s ease, -webkit-box-shadow 0.3s ease;
            position: relative;
            @media (max-width: 1024px) {
                -webkit-box-pack: justify;
                    -ms-flex-pack: justify;
                        justify-content: space-between;
            }
            @media (max-width: 800px) {
                width: 100%;
                -webkit-box-align: center;
                    -ms-flex-align: center;
                        align-items: center;
            }
            @media (max-width: 570px) {
                -webkit-box-align: start;
                    -ms-flex-align: start;
                        align-items: start;
            }

            &:hover {
                background-color: #F0F4FF;
                -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }

            .contacts__a__tag {
                -webkit-transition: 1s ease;
                transition: 1s ease;
                width: -webkit-max-content;
                width: -moz-max-content;
                width: max-content;
                height: -webkit-max-content;
                height: -moz-max-content;
                height: max-content;
                text-decoration: none;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                    -ms-flex-direction: column;
                        flex-direction: column;
                gap: 20px;
                opacity: 0;
                pointer-events: none;
                position: absolute;
                opacity: 0;
                bottom: 20px;

                @media (max-width: 1024px) {
                    position: relative;
                    bottom: 0;
                    opacity: 1;
                    pointer-events: all;
                }
                @media (max-width: 800px) {
                    width: 100%;
                    -webkit-box-align: center;
                        -ms-flex-align: center;
                            align-items: center;
                }
                @media (max-width: 570px) {
                    -webkit-box-align: start;
                        -ms-flex-align: start;
                            align-items: start;
                }
            }

            @media (max-width: 1024px) {
                height: 200px;
            }
            @media (min-width: 1024px) {
                &:hover {
                    height: 200px;
                    .contacts__a__tag {
                        opacity: 1;
                        pointer-events: all;
                        -webkit-transition: 1s ease;
                        transition: 1s ease;

                    }
                }
            }


            .contacts__top__block {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                    -ms-flex-align: center;
                        align-items: center;
                gap: 20px;

                .contacts__data {
                    font-family: "Fira Sans", sans-serif;
                    font-weight: 700;
                    font-size: 18px;
                    color: #2D63E4;
                    -webkit-transition: color 0.3s ease, -webkit-text-decoration 0.3s ease;
                    transition: color 0.3s ease, -webkit-text-decoration 0.3s ease;
                    transition: color 0.3s ease, text-decoration 0.3s ease;
                    transition: color 0.3s ease, text-decoration 0.3s ease, -webkit-text-decoration 0.3s ease;
                    text-decoration: underline;
                }

                img {
                    width: 34px;
                    height: 34px;
                }
            }

            .contacts__description {
                font-family: "Arial", sans-serif;
                font-weight: 400;
                font-size: 14px;
                color: #667085;
                line-height: 22px;
                &:hover {
                    color: #3D4F70;
                }
            }
        }
    }

    @media (max-width: 400px) {
        gap: 30px;
        margin-bottom: 40px;
    }
}