.contacts {
    background-color: #242424;
    border-radius: 32px;
    padding: 160px 67px 97px 67px;
    position: relative;
}

.contacts__gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../images/background/background-decoration-4.png") no-repeat bottom;
    opacity: 0;
    animation: gradientIn 1.0s forwards;
    border-radius: 24px;
    pointer-events: none;
    background-size: cover;
}

.contacts__title {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: contentIn 1.1s 1.3s forwards;
}

.contacts__block:first-child {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: contentIn 1.3s 1.5s forwards;

}

.contacts__block:first-child:before {
    position: absolute;
    right: 0;
    top: 31px;
    content: url("../images/decoration/star.png");
}

.contacts__details {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: contentIn 1.5s 1.7s forwards;
}

.contacts__social {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: contentIn 1.7s 1.9s forwards;
}

.contacts__map {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: contentIn 1.9s 2.2s forwards;
}

.contacts > .container {
    max-width: 1270px;
}

.contacts__content {
    display: flex;
    gap: 26px;
}

.contacts__title {
    background: linear-gradient(90deg, #7F98DE 0%, #FFFFFF 45.67%, #758DCF 100%);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    margin-bottom: 64px;
    text-align: center;
}

.contacts__subtitle {
    background: var(--gradient-light);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts__block {
    padding: 32px;
    border-radius: 32px;
    background-color: #2A2A2A;
    max-width: 513px;
    width: 100%;
}

.contacts__details {
    background: rgba(246, 246, 246, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts__hours {
    margin-top: 32px;
}

.contacts__hours-list {
    display: flex;
    justify-content: space-between;
    max-width: 221px;
    width: 100%;
}

.contacts__email, .contacts__phone {
    font-family: "Days One", sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 120%;
    color: transparent;
    background: var(--gradient-light);
    background-clip: text;
    -webkit-background-clip: text;
}

.contacts__address {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    color: var(--neutral-50);
    margin-top: 12px;
}

.contacts__social {
    display: flex;
    gap: 20px;
}

.contacts__social-link {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contacts__map {
    max-width: 731px;
    width: 100%;
    height: 100%;
    max-height: 629px;
    border-radius: 44px;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .contacts {
        padding: 50px 25px;
    }
}

@media (max-width: 1420px) {
    .contacts__content {
        flex-direction: column-reverse;
    }

    .contacts__map {
        max-width: 100%;
    }

    .contacts__block {
        max-width: 650px;
        margin-inline: auto;
    }

    .contacts__hours-list {
        max-width: 100%;
    }

    .contacts__social {
        justify-content: center;
    }

    .contacts__map {
        max-width: 650px;
        max-height: 300px;
        margin-inline: auto;
    }

    #yamap0 {
        height: 300px !important;
    }

    .contacts {
        padding: 50px 10px;
    }

    .contacts__subtitle {
        font-size: 20px;
    }

    .contacts__email {
        font-size: 20px;
    }

    .contacts__phone {
        font-size: 20px;
    }

    .contacts__address {
        font-size: 20px;
    }

    .contacts__map {
        max-height: 300px;
    }

    .contacts__title {
        margin-bottom: 20px;
    }

    .contacts__block:first-child {
        animation: contentIn 1.5s 1.7s forwards;

    }

    .contacts__details {
        animation: contentIn 1.7s 1.9s forwards;
    }

    .contacts__social {
        animation: contentIn 1.9s 2.1s forwards;
    }

    .contacts__map {
        animation: contentIn 1.3s 1.5s forwards;
    }
}
