.share-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
}


.share-wrapper {
    display: inline-block;
    position: relative;
}

.share-button {
   
    color: var(--primary);
    border: none;
    padding: 6px;
    line-height: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
  
}

.share-button:hover {
   /* transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 89, 152, 0.4);*/
}

.share-button:active {
    transform: translateY(1px);
}

.share-button i {
    font-size: 18px;
}
/* МОБИЛЬНОЕ МЕНЮ (снизу) */
        .share-menu.mobile {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            transform: translateY(100%);
            background-color: white;
            border-radius: 24px 24px 0 0;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
            padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 20px));
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
            z-index: 1000;
            max-height: 80vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .share-menu.mobile.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .share-menu.mobile::after {
            content: '';
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 4px;
            background-color: #e0e0e0;
            border-radius: 2px;
        }
        
        /* ДЕСКТОПНОЕ МЕНЮ (под кнопкой) */
        .share-menu.desktop {
            position: absolute;
            top: 40px;
            left: 50%;
            transform: translateX(-50%) scale(0.95);
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            padding: 15px 5px;
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 10;
        }
        
        .share-menu.desktop.active {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) scale(1);
        }
        
        .share-menu.desktop::after {
            content: '';
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid white;
        }
        
        .share-items-container {
            margin-top: 20px;
        }
        

.share-item {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.share-item:hover {
    background-color: #f5f7fa;
   
}

.share-item:last-child {
    margin-bottom: 0;
}

.share-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
    color: white;
}

.vk .share-icon {
    background-color: #4a76a8;
}

.telegram .share-icon {
    background-color: #0088cc;
}

.whatsapp .share-icon {
    background-color: #25d366;
}

.copy .share-icon {
    background-color: #6c757d;
}

.share-text {
    font-weight: 500;
    font-size: 14px;
}
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    padding-right: 20px;
}

.close-menu {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray);
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-menu:active {
    background-color: #e9ecef;
}

 /* Оверлей только для мобильной версии */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
            backdrop-filter: blur(4px);
        }
        
        .overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
.notification {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background-color: var(--primary);
            width: max-content;
            color: white;
            padding: 16px 24px;
            border-radius: 50px;
            font-weight: 500;
            font-size: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 1001;
            max-width: 90%;
            text-align: center;
            display: flex;
            align-items: center;
            gap: 10px;
        }

.notification.show {
            transform: translateX(-50%) translateY(0);
        }
        
        .notification i {
            font-size: 18px;
            color: #25d366;
        }
 /* Скрываем заголовок и оверлей на десктопе */
        @media (min-width: 768px) {
            .menu-header, .close-menu, .overlay {
                display: none;
            }
            
            .share-items-container {
                margin-top: 0;
            }
        }
        
        /* Мелкие мобильные устройства */
        @media (max-width: 320px) {
            .share-container {
                padding: 20px 16px;
            }
            
            .share-item {
                padding: 14px;
            }
            
            .share-icon {
                width: 40px;
                height: 40px;
                margin-right: 14px;
            }
        }
        
        /* Планшеты (используем десктопное меню) */
        @media (min-width: 768px) and (max-width: 1024px) {
            .share-menu.desktop {
                bottom: 75px;
                min-width: 240px;
            }
        }
        
        /* Темная тема */
        @media (prefers-color-scheme: dark) {
            .share-container {
                background-color: rgba(30, 30, 30, 0.95);
            }
            
          
            
            .share-menu.mobile,
            .share-menu.desktop {
                background-color: #1a1a1a;
            }
            
            .share-menu.mobile::after {
                background-color: #333;
            }
            
            .share-menu.desktop::after {
                border-top-color: #1a1a1a;
            }
            
            .share-item {
                background-color: #2a2a2a;
                color: #ffffff;
            }
            
            .share-item:active {
                background-color: #333;
            }
            
            .menu-header {
                border-bottom-color: #333;
            }
            
            .menu-title {
                color: #ffffff;
            }
            
            .close-menu {
                background-color: #2a2a2a;
                color: #aaaaaa;
            }
            
            .close-menu:active {
                background-color: #333;
            }
            
            @media (min-width: 768px) {
                .share-item:hover {
                    background-color: #333;
                }
            }
        }