/* Центрирование и стилизация контактной плашки */
.contact-card {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 340px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
}

.contact-card:hover::before {
    transform: translateX(30%) rotate(45deg);
}

/* Контейнер с фиксированными размерами */
.contact-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Исходный текст */
#trigger-text {
    margin: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Телефон (скрыт, но занимает место) */
.phone-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    white-space: nowrap;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.phone-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Класс, который будет добавляться при клике */
.contact-content.show-phone #trigger-text {
    opacity: 0;
    visibility: hidden;
}

.contact-content.show-phone .phone-link {
    opacity: 1;
    visibility: visible;
}
