/* Социальные ссылки на странице «Свяжитесь с нами».
   Загружается после contact-responsive.css и не меняет геометрию формы. */

.contact-page__intro {
    min-width: 0;
}

.contact-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 500px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.contact-socials > li {
    min-width: 0;
}

.contact-social {
    --social-color: var(--purple);

    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 66px;
    padding: 10px 18px 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(247, 249, 253, 0.82);
    box-shadow:
        -2px 4px 5px rgba(148, 230, 249, 0.72),
        inset 0 0 0 1px rgba(36, 43, 81, 0.025);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.contact-social:hover {
    transform: translateY(-2px);
    border-color: var(--social-color);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        -2px 7px 12px rgba(148, 230, 249, 0.82),
        inset 0 0 0 1px rgba(36, 43, 81, 0.05);
}

.contact-social:active {
    transform: translateY(0);
}

.contact-social:focus-visible {
    border-color: var(--social-color);
}

.contact-social > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-social__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 9px rgba(36, 43, 81, 0.12);
}

.contact-social__icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.contact-social--telegram { --social-color: #26a5e4; }
.contact-social--vk       { --social-color: #0077ff; }
.contact-social--max      { --social-color: #6e1aff; }
.contact-social--ok       { --social-color: #ff7700; }

.contact-social--max .contact-social__icon img {
    width: 32px;
    height: 32px;
}

@media (max-width: 1180px) and (min-width: 761px) {
    .contact-socials {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 820px;
        margin-top: 30px;
    }

    .contact-social {
        min-height: 62px;
        padding-right: 15px;
        font-size: 17px;
    }

    .contact-social__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (max-width: 760px) {
    .contact-socials {
        max-width: 520px;
        margin-top: 28px;
        gap: 12px;
    }

    .contact-social {
        min-height: 60px;
        padding: 8px 14px 8px 9px;
        font-size: 16px;
    }

    .contact-social__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .contact-social__icon img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 420px) {
    .contact-socials {
        gap: 10px;
        margin-top: 24px;
    }

    .contact-social {
        gap: 8px;
        min-height: 56px;
        padding: 7px 10px 7px 8px;
        font-size: 15px;
    }

    .contact-social__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .contact-social__icon img {
        width: 26px;
        height: 26px;
    }

    .contact-social--max .contact-social__icon img {
        width: 28px;
        height: 28px;
    }
}

@media (hover: none) {
    .contact-social:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-social {
        transition: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .contact-social {
        background: #f7f9fd;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
