/* Общий стиль pop-up */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    bottom: 60px;
    right: 20px;
    width: auto;
    max-width: 320px;
    background-color: transparent;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Содержимое pop-up */
.popup-content {
    position: relative;
    background: linear-gradient(to bottom, #222 0%, #444 100%);
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: all 0.3s ease;
    color: white;
    font-family: Arial, sans-serif;
}

    /* Заголовок */
    .popup-content h2 {
        color: #fff;
        font-weight: 500;
        font-size: 20px;
        margin: 8px 0 3px 0;
        text-align: center;
        letter-spacing: 1px;
        line-height: 1.2;
        padding: 0;
        border: none;
    }

    /* Изображение (внутри ссылки) */
    .popup-content a img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 0;
        transition: transform 0.3s ease;
    }

        .popup-content a img:hover {
            transform: scale(1.01);
        }

/* Кнопка закрытия */
.close {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #888;
    font-size: 22px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    background-color: transparent;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    z-index: 10;
}

    .close:hover {
        color: #aaa;
        transform: scale(1.1);
    }

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
