.contacts-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contacts-title {
    font-family: var(--solomon);
    font-weight: 600;
    font-size: 40px;
    line-height: 48px;
    color: var(--darkblue);
}

.contacts-address {
    font-family: var(--solomon);
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    color: var(--lightblue);
    margin-bottom: 16px;
}

.contacts-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 40px;
    grid-row-gap: 40px;
}

.contacts-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    border: 1px solid var(--lightgray);
    border-radius: 10px;
    padding: 32px 24px;
}

.contacts-item:last-child {
    justify-content: normal;
    border: 1px solid var(--deepblue);
}

.contacts-item:last-child :is(.contacts-item__icons, .contacts-item__small-text) {
    margin-top: 16px;
}

.contacts-item:last-child :is(.contacts-item__phone, .contacts-item__email) {
    margin-top: 24px;
}

.contacts-item__title {
    font-family: var(--solomon);
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    color: var(--accent);
}

.contacts-item__description {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--lightblue);
    padding-top: 16px;
}

.contacts-item__phones, .contacts-item__emails {
    display: flex;
    border-bottom: 1px solid var(--lightgray);
    padding-top: 16px;
}

.phones-left, .emails-left {
    display: flex;
}

.phones-name, .emails-name {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--deepblue);
    width: 120px;
    padding-left: 12px;
    padding-right: 12px;
}

.phones-right, .emails-right {

}

.phone, .email {
    padding-bottom: 12px;
}

.phone a, .phone-country, .email-country {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--lightblue);
}

.email a {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--deepblue);
    border-bottom: 1px solid;
    /*display: inline-block;*/
    word-break: break-all;
}


.contacts-item__text {
    font-family: var(--solomon);
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    color: var(--darkblue);
}

.contacts-item__phone a {
    font-family: var(--solomon);
    font-weight: 600;
    font-size: 28px;
    line-height: 33px;
    color: var(--darkblue);
}

.contacts-item__email a {
    font-family: var(--solomon);
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
    color: var(--deepblue);
    border-bottom: 1px solid;
}

.contacts-item__small-text {
    font-family: var(--solomon);
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
}


@media screen and (max-width: 1024px) {
    .contacts .contacts-items {
        grid-column-gap: 20px;
    }

    .contacts .contacts-item .contacts-item__phones, .contacts-item__emails {
        flex-direction: column;
    }

    .contacts .contacts-item :is(.phones-right, .emails-right) {
        margin-left: 36px;
    }
}

@media screen and (max-width: 768px) {
    .contacts .contacts-items {
        grid-row-gap: 20px;
    }

    .contacts .contacts-item .contacts-item__phone {
        width: 70%;
    }
}

@media screen and (max-width: 600px) {
    .contacts .contacts-top {
        flex-direction: column;
    }

    .contacts .contacts-title {
        margin-bottom: 40px;
        align-self: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .contacts .contacts-items {
        grid-template-columns: repeat(1, 1fr);
    }
}
