.contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    justify-content: stretch;
    margin-top: 2rem;
}

.contacts-card {
    padding: clamp(1rem, 3.2vw, 1.35rem);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(240, 208, 62, 0.06));
    border-radius: 18px;
    border: 2px solid rgba(91, 161, 210, 0.28);
    position: relative;
    overflow: hidden;
}

.contact-info-header-name {
    align-self: center;
    justify-self: center;
    width: 100%;
    color: var(--tcontact-hover-bg);
    overflow: hidden;
    position: relative;
    border-radius: 2rem;
}

.contact-info-header-name::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    background: var(--tcontact-hover-bg);
    opacity: 0.9;
}

.contact-info-header-name h5 {
    text-align: center;
}

.contact-compact-name {
    font-size: clamp(1.75rem, 4.2vw, 2.35rem);
    padding-bottom: 0.55rem;
    margin: 0 auto 0.75rem;
    max-width: 38rem;
}

.contact-compact-name h5 {
    margin: 0;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--tcontact-hover-bg);
}

.contact-items {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0.65rem 0 0.9rem;
}

.contact-item {
    display: grid;
    grid-template-columns: 3.1rem 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(107, 114, 128, 0.20);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: rgba(91, 161, 210, 0.65);
    opacity: 0.9;
}

.contact-item__icon {
    width: 3.1rem;
    height: 3.1rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(107, 114, 128, 0.18);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.06);
}

.contact-item__icon i {
    font-size: 1.55rem;
    color: var(--header-bg-color);
    opacity: 0.95;
}

.contact-item__content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-item__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--header-bg-color);
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: clamp(1rem, 2.8vw, 1.15rem);
}

.contact-item__value {
    margin: 0;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    font-size: clamp(1.05rem, 3.2vw, 1.35rem);
    line-height: 1.25;
    word-break: break-word;
}

.mobile-tel {
    display: inline;
    font-weight: 900;
    color: var(--header-bg-color);
    text-decoration: none;
    border-radius: 12px;
    padding: 0.2rem 0.35rem;
    background: rgba(14, 165, 233, 0.10);
    border: 1px solid rgba(14, 165, 233, 0.20);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.desktop-tel {
    display: none;
    color: var(--text);
    font-weight: 800;
}

.mobile-email {
    color: var(--header-bg-color);
    font-weight: 900;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.2rem 0.35rem;
    background: rgba(14, 165, 233, 0.10);
    border: 1px solid rgba(62, 175, 240, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

@media (hover: hover) {
    .contact-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 22px rgba(0, 0, 0, 0.08);
        border-color: rgba(91, 161, 210, 0.35);
    }

    .mobile-tel:hover,
    .mobile-email:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 18px rgba(0, 0, 0, 0.10);
    }
}

.contact-item:focus-within {
    outline: none;
    box-shadow:
        0 18px 26px rgba(0, 0, 0, 0.10),
        0 0 0 4px rgba(240, 208, 62, 0.22);
}

.social-list {
    width: min(100%, 42rem);
    margin: 1.35rem auto 2rem;
}

.social-list ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: clamp(0.9rem, 4.5vw, 2.4rem);
}

.social-list ul li {
    border: 2px solid;
    border-radius: 1.1rem;
    padding: 0.95rem;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.social-list ul li a {
    display: grid;
    place-items: center;
    font-size: 2.85rem;
}

@media (hover: hover) {
    .social-list ul li:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 0.80);
    }
}

.social-list ul li:focus-within {
    box-shadow:
        0 16px 24px rgba(0, 0, 0, 0.08),
        0 0 0 4px rgba(14, 165, 233, 0.18);
}

.social-list ul li:has(> a.social-link > i.bi-youtube) {
    border-color: var(--contacts-yt-border-color);
}

.social-link .bi-youtube {
    color: var(--contacts-yt-icon-color);
}

.social-list ul li:has(> a.social-link > i.bi-tiktok) {
    border-color: var(--contacts-tt-border-color);
}

.social-link .bi-tiktok {
    color: var(--contacts-tt-icon-color);
}

.social-list ul li:has(> a.social-link > i.bi-facebook) {
    border-color: var(--contacts-fb-border-color);
}

.social-link .bi-facebook {
    color: var(--contacts-fb-icon-color);
}

.social-list ul li:has(> a.social-link > i.bi-instagram) {
    border-color: var(--contacts-ig-border-color);
}

.social-link .bi-instagram {
    color: var(--contacts-ig-icon-color);
}

@media (min-width: 992px) {
    .contact-hint {
        display: none;
    }

    .mobile-tel {
        display: none;
    }

    .desktop-tel {
        display: inline;
    }

    .social-list ul li a {
        font-size: 2.5rem;
    }

    .tap-badge {
        opacity: 0.75;
    }
}

@media (max-width: 420px) {
    .contacts-card {
        padding: 1rem;
    }

    .contact-item {
        padding: 0.85rem 0.9rem;
    }

    .social-list {
        margin-top: 1.1rem;
    }
}