/* Модалка */
#share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 360px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.share-grid img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    fill: currentColor;
}

.share-grid span {
    font-size: 14px;
    color: #444;
}

#facebook-share {
    color: #3b5998;
}

#instagram-share {
    color: #C13584;
}

#telegram-share {
    color: #0088cc;
}

#twitter-share {
    color: #1da1f2;
}

#linkedin-share {
    color: #0077b5;
}

#close-modal {
    padding: 8px 16px;
    background: #888;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#close-modal:hover {
    background: #555;
}

.small-btn {
    margin: 8px 5px 0;
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    background: #888;
    color: #fff;
}

.small-btn#copy-link {
    background: #4caf50;
}

.small-btn#copy-link:hover {
    background: #45a049;
}

.small-btn#close-modal:hover {
    background: #555;
}