/* ===========================
   RIGHT SIDE CONTAINER
   =========================== */
.right-side {
    display: flex;
    align-items: center;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* ===========================
   PHONE NUMBER (сверху)
   =========================== */
.phone-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.phone-modern:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.phone-icon {
    color: rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

.phone-link {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ===========================
   LANGUAGE SWITCHER (снизу)
   =========================== */
.language-switcher-modern {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.language-switcher-modern:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-option .flag-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.lang-option:hover .flag-icon {
    transform: scale(1.1) rotate(5deg);
}

.lang-option.active {
    color: #000000;
    background: rgba(255, 255, 255, 0.2);
}

.lang-option.active .flag-icon {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.lang-code {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .phone-modern {
        padding: 8px 14px;
    }

    .phone-link {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .contact-block {
        gap: 6px;
    }

    .phone-modern {
        padding: 7px 12px;
    }

    .phone-link {
        font-size: 13px;
    }

    .phone-icon {
        width: 16px;
        height: 16px;
    }

    .language-switcher-modern {
        padding: 3px;
        border-radius: 12px;
    }

    .lang-option {
        padding: 5px 10px;
        font-size: 12px;
    }

    .lang-option .flag-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .contact-block {
        gap: 5px;
    }
}