/* Contacts page */

.header__nav a.is-active {
    color: var(--text-main);
}

.contacts-page {
    min-height: 840px;
    padding: 150px 0 120px;
    background: var(--bg-dark);
}

.contacts-page__container {
    width: min(100% - 40px, 1018px);
    margin: 0 auto;
}

.contacts-page__head {
    margin-bottom: 80px;
}

.contacts-page__head h1 {
    color: var(--text-main);
    font-size: var(--title-size);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Верхние карточки */

.contacts-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 76px;
}

.contact-card {
    min-height: 250px;
    padding: 42px 34px 34px;
    border-radius: 10px;
    background: var(--bg-gray);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: #303743;
}

.contact-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-main);
    flex-shrink: 0;
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.contact-card h2 {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
}

.contact-card p {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

.contact-card a {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    transition: color 0.25s ease;
}

.contact-card a:hover {
    color: var(--text-main);
}

/* Социальные сети */

.socials-section h2 {
    margin-bottom: 36px;
    color: var(--text-main);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.social-card {
    display: flex;
    flex-direction: column;
    min-height: 146px;
    padding: 18px 16px 22px;
    border-radius: 8px;
    background: var(--bg-gray);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    background: #303743;
}

.social-card__head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    height: 50px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.social-card__icon {
    display: flex;
    width: 48px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.social-card__icon img {
    display: block;
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.social-card__icon--vk img {
    width: 48px;
    transform: translate(-1px, -5px);
}

.social-card__icon--tg img {
    width: 48px;
    transform: translate(0, -5px);
}

.social-card__icon--dzen img {
    width: 44px;
    transform: translate(1px, -5px);
}

.social-card__icon--tiktok img {
    width: 42px;
    transform: translate(2px, -5px);
}

.social-card__icon--youtube img {
    width: 56px;
    transform: translate(0, -5px);
}

.social-card h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
}

.social-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
}

/* Adaptive */

@media (max-width: 1100px) {
    .contacts-page__container {
        width: min(100% - 40px, 920px);
    }

    .social-card h3 {
        font-size: 19px;
    }
}

@media (max-width: 820px) {
    .contacts-page {
        min-height: auto;
        padding: 130px 0 90px;
    }

    .contacts-page__container {
        width: min(100% - 28px, 760px);
    }

    .contacts-page__head {
        margin-bottom: 54px;
    }

    .contacts-page__head h1 {
        font-size: 38px;
    }

    .contacts-main-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 62px;
    }

    .contact-card {
        min-height: 230px;
    }

    .socials-section h2 {
        font-size: 30px;
    }

    .socials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .contacts-page {
        padding: 110px 0 76px;
    }

    .contacts-page__head h1 {
        font-size: 34px;
    }

    .contact-card {
        padding: 32px 24px 28px;
    }

    .contact-card h2 {
        font-size: 22px;
    }

    .contact-card p,
    .contact-card a {
        font-size: 15px;
    }

    .socials-section h2 {
        font-size: 28px;
    }

    .socials-grid {
        grid-template-columns: 1fr;
    }

    .social-card h3 {
        font-size: 21px;
    }

    .social-card p {
        font-size: 15px;
    }
}
