.panorama {
    position: relative;
    width: 100%;
    margin: 30px 0;
    padding: 0;
}

.panorama h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin: 80px 0 40px 0;
    padding: 0;
    color: #1a1a1a;
    width: 100%;
}

.panorama h1 b {
    font-weight: 700;
    color: #000;
}

.panorama-item {
    margin-bottom: 60px;
}

.panorama-item h2 {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 20px 0;
    color: #333;
}

.panorama-container {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1400px;
    height: 600px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin: 0 auto;
}

.panorama-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.panorama-loading .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.panorama-loading p {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.custom-panorama-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 50;
}

.pano-btn {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pano-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.pano-btn:active {
    transform: translateY(0) scale(0.98);
}

.panorama-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    z-index: 40;
    transition: opacity 0.5s ease;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.panorama-hint svg {
    animation: drag 2s ease-in-out infinite;
}

@keyframes drag {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.pnlm-container {
    border-radius: 10px;
}

.pnlm-render-container {
    border-radius: 10px;
    cursor: grab;
}

.pnlm-render-container:active {
    cursor: grabbing;
}

.pnlm-controls,
.pnlm-load-box,
.pnlm-about-msg,
.pnlm-title-box,
.pnlm-author-box,
.pnlm-compass {
    display: none !important;
}

.panorama-container:fullscreen {
    border-radius: 0;
}

.panorama-container:fullscreen .custom-panorama-controls {
    bottom: 30px;
    right: 30px;
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .panorama h1 {
        font-size: 28px;
        margin: 50px 0 30px 0;
        letter-spacing: 1px;
        padding: 0 15px;
    }
    
    .panorama-item {
        margin-bottom: 40px;
    }
    
    .panorama-item h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .panorama-container {
        width: calc(100% - 30px);
        height: 400px;
        border-radius: 8px;
    }
    
    .custom-panorama-controls {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .pano-btn {
        width: 42px;
        height: 42px;
    }
    
    .pano-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .panorama-hint {
        padding: 15px 20px;
        font-size: 13px;
        border-radius: 40px;
    }
    
    .panorama-hint svg {
        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .panorama-container {
        height: 320px;
    }
    
    .pano-btn {
        width: 38px;
        height: 38px;
    }
    
    .pano-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .panorama h1 {
        font-size: 38px;
        margin: 60px 0 35px 0;
    }
    
    .panorama-container {
        height: 500px;
    }
}

/* Большие экраны */
@media only screen and (min-width: 1400px) {
    .panorama-container {
        height: 700px;
    }
}
