.modal-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal-image.active {
    display: block;
}

.modal-image__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-image__content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.modal-image__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-image__close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-image__close:before,
.modal-image__close:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
}

.modal-image__close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-image__close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Стили для изображений в таблице сравнения */
.tariff-comparison__description .photo-modal {
    cursor: pointer;
}

.tariff-comparison__description .photo-modal img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tariff-comparison__description .photo-modal img.lazy {
    opacity: 0;
}

.tariff-comparison__description .photo-modal img:not(.lazy) {
    opacity: 1;
}

.tariff-comparison__description .photo-modal img:hover {
    opacity: .8;
}
