@import url('https://fonts.googleapis.com/css2?family=Antic+Didone&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 30px;
    height: 100vh;
    font-family: "Antic Didone", serif;
}

section {
    height: 100%;
    border-radius: 8px;
    padding: 20px 40px 100px 100px;
    max-width: 1100px;
    margin: auto;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.offline-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    ;
}

.socials {
    position: absolute;
    bottom: 100px!important;
}

h1 {
    font-size: 50px;
    font-style: italic;
    font-weight: bold;
}

h2 {
    font-size: 20px;
    color: #686767;
    margin-top: 20px;
    font-weight: 600;
}

input {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
    padding: 14px 20px;
    width: 300px;
    border: none;
    outline: none;
}

.search {
    position: relative;
    margin-top: 20px;
    width: fit-content;
    cursor: pointer;
}

.search:hover i {
    right: 10px;
}

.search i {
    position: absolute;
    transition: .4s;
    top: 50%;
    right: 30px;
    transform: translate(0, -50%);
}


.socials div {
    display: flex;
    gap: 20px;
}

.tel {
    color: gray;
    margin-top: 20px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;

}

.socials i {
    font-size: 35px;
    color: rgb(160, 158, 158);
}

.socials i {
    /* Обеспечивает корректное применение transform */
    transition: transform 0.3s ease;
    /* Плавное вращение */
}

.socials a:hover i {
    transform: rotateY(180deg);
    /* Полный оборот вокруг оси X */
}


.offline-img {
    display: flex;
    display: flex;
    justify-content: center;
}

.offline-img img {
    width: 400px;
    object-fit: contain;
}

.tel i {
    font-size: 16px !important;
    display: inline-block;
    margin-right: 7px;
}

@media only screen and (max-width: 992px) {
    section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .socials {
        position: inherit;
    }
    .offline-img {
        justify-content: center;
    }
    .offline-content {
        text-align: center;
    }

    .socials div {
        justify-content: center;
    }
    h1 {
        font-size: 30px;
    }

    h2  {
        font-size: 16px;
    }

    .offline-img img {
        width: 100%;
    }
}