/* Contacts page */

.contacts_page {
    --contacts-gap: 32px;
    --contacts-box-padding: 20px;
    --contacts-photo-size: 100px;
    --contacts-person-gap: 16px;
    --contacts-person-align: flex-start;
    --contacts-surface: #f5f5f5;
    --contacts-text: #333;
    --contacts-link: #ee302f;

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--contacts-gap);
    padding: 15px;
    color: var(--contacts-text);
}

.contacts_page__title {
    margin: 0;
}

.contacts_page__section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.contacts_page__section_title {
    margin: 0;
    width: 100%;
    font-size: 2.3rem;
    line-height: 2.8rem;
    font-weight: 500;
    word-break: break-word;
}

.contacts_page__box {
    box-sizing: border-box;
    width: 100%;
    padding: var(--contacts-box-padding);
    background: var(--contacts-surface);
    border-radius: 12px;
}

.contacts_page__note {
    margin: 0;
    font-size: 1.6rem;
    line-height: 2rem;
    word-break: break-word;
}

.contacts_page__note b {
    font-weight: 600;
}

.contacts_page__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.contacts_page__person {
    display: flex;
    align-items: var(--contacts-person-align);
    gap: var(--contacts-person-gap);
}

.contacts_page__photo {
    display: block;
    flex-shrink: 0;
    width: var(--contacts-photo-size);
    height: var(--contacts-photo-size);
    border-radius: 50%;
    object-fit: cover;
}

.contacts_page__person_info {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    min-width: 1px;
    word-break: break-word;
}

.contacts_page__name,
.contacts_page__row {
    margin: 0;
    width: 100%;
    font-size: 1.4rem;
    line-height: 1.6rem;
}

.contacts_page__name {
    font-size: 1.6rem;
    line-height: 2rem;
    font-weight: 700;
}

.contacts_page__phone a {
    color: inherit;
}

.contacts_page__mail {
    color: var(--contacts-link);
}

.contacts_page__person--featured .contacts_page__row {
    font-size: 1.6rem;
    line-height: 2rem;
}

.contacts_page__person--featured .contacts_page__phone {
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 600;
}

.contacts_page__media {
    padding: 24px;
}

.contacts_page__media_text {
    margin: 0;
    font-size: 2rem;
    line-height: 2.3rem;
    font-weight: 500;
    word-break: break-word;
}

.contacts_page__requisites {
    display: flex;
    align-items: center;
    min-height: 160px;
    font-size: 1.6rem;
    line-height: 2rem;
    font-style: normal;
    word-break: break-word;
}

@media (min-width: 665px), print {
    .contacts_page {
        --contacts-gap: 52px;
        --contacts-box-padding: 24px;
        --contacts-photo-size: 132px;
        --contacts-person-gap: 24px;
        --contacts-person-align: center;
    }
    .contacts_page__note {
        font-size: 1.7rem;
        line-height: 2.1rem;
    }
    .contacts_page__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 16px;
    }
    .contacts_page__requisites {
        min-height: 148px;
    }
}
