/* =========================================================
   contacts — «Контакты»: контактные данные + 2 карточки связи.
   Заголовок — h1 страницы (страница без hero).
   ========================================================= */

.contacts-section {
    padding: var(--section-pad) 0;
}

.contacts-title {
    margin-bottom: 64px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1;
    color: var(--color-bg-dark);
}

.contacts-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}

.contacts-info {
    max-width: 640px;
}

/* Контактные строки */
.contacts-rows {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.contacts-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contacts-row-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent-orange);
}

.contacts-row-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.contacts-row-text {
    min-width: 0;
    font-size: 20px;
    line-height: 1.35;
    color: var(--color-bg-dark);
}

.contacts-row-link {
    text-decoration: none;
    transition: color 0.25s ease;
}

.contacts-row-link:hover {
    color: var(--color-accent-orange);
}

.contacts-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-bg-dark);
    transition: color 0.25s ease;
}

.contacts-map:hover {
    color: var(--color-accent-orange);
}

/* Соцсети — белые кнопки 50×50 с тёмными иконками (файлы иконок общие с футером) */
.contacts-socials {
    display: flex;
    gap: 16px;
    margin-top: 88px;
}

.contacts-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    transition: background-color 0.25s ease;
}

.contacts-social:hover {
    background-color: #f3f3f5;
}

.contacts-social img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0);
}

/* Иконка Rutube — готовая тёмная плитка с белой «R» — не перекрашиваем */
.contacts-social img[src*="rutube"] {
    filter: none;
}

/* Карточки связи */
.contacts-cards {
    display: flex;
    flex-direction: column;
    gap: 29px;
    width: 582px;
    flex-shrink: 0;
}

.contact-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 36px;
    padding: 40px 24px;
    border-radius: var(--radius-card-lg);
    background-color: #fbfbfd;
    transition: background-color 0.25s ease;
}

/* Вся карточка — одна ссылка (как в «Поддержке»): ховер на блок + растянутый клик */
.contact-card:hover {
    background-color: #e3e8f9;
}

.contact-card:hover .contact-card-icon {
    color: #0e41d2;
}

.contact-card:hover .contact-card-link {
    color: #0e41d2;
}

.contact-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.contact-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    color: #dcdee5;
    transition: color 0.25s ease;
}

.contact-card-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-card-body {
    min-width: 0;
}

.contact-card-title {
    font-family: 'Onest', var(--font-body);
    font-weight: 600;
    font-size: 32.4px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-bg-dark);
}

.contact-card-text {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-text-gray);
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-bg-dark);
    transition: color 0.25s ease;
}

@media (max-width: 1024px) {
    .contacts-layout {
        flex-direction: column;
        gap: 48px;
    }

    .contacts-info {
        max-width: 100%;
    }

    .contacts-cards {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .contact-card {
        flex-direction: column;
        gap: 20px;
        padding: 32px 24px;
    }

    .contacts-socials {
        margin-top: 48px;
    }
}
