@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa; /* 60% фон */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #1a1a1b;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 380px;
    min-width: 380px;
    background: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #eeeeee;
    z-index: 10;
    animation: fadeIn 0.8s ease-out forwards;
}

.gold-title {
    color: #d8a71e; /* 10% акцент */
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.main-description {
    color: #6c757d; /* 30% вторичный */
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Стили адреса */
.address-block { margin-bottom: 20px; }
.map-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #495057;
    font-size: 0.85rem;
    transition: 0.3s;
    line-height: 1.4;
}
.map-link i { color: #d8a71e; font-size: 1rem; }
.map-link:hover { color: #d8a71e; }

.social-links { margin-bottom: 30px; }
.social-links a { 
    color: #1a1a1b; font-size: 1.4rem; margin-right: 20px; 
    text-decoration: none; transition: 0.3s; display: inline-block;
}
.social-links a:hover { color: #d8a71e; transform: translateY(-2px); }

#mini-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.thumb {
    height: 85px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f1f1;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: 0.3s; }
.thumb:hover img, .thumb.active img { opacity: 1; }
.thumb.active { border-color: #d8a71e; }

#viewer {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.content-box {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.img-container {
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

#main-photo {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 4px solid #ffffff;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

#detail-title { color: #d8a71e; font-size: 1.8rem; margin-bottom: 10px; font-weight: 900; text-transform: uppercase; }
#detail-desc { color: #495057; font-size: 1rem; line-height: 1.5; }

footer p { color: #ced4da; font-size: 0.7rem; margin-top: 20px; }

/* МОБИЛЬНАЯ ВЕРСИЯ (5UP LENS STYLE) */
@media (max-width: 768px) {
    body { flex-direction: column; overflow-y: auto; height: auto; }
    
    #sidebar {
        width: 100%; min-width: 100%; height: auto;
        padding: 30px 20px; border-right: none; border-bottom: 1px solid #f0f0f0;
        align-items: center; text-align: center;
    }

    .address-block { display: flex; justify-content: center; }

    #mini-gallery {
        grid-template-columns: repeat(4, 1fr);
        width: 100%; max-width: 400px;
    }

    .thumb { height: 65px; }

    #viewer { padding: 40px 15px; }
    .img-container { height: auto; margin-bottom: 20px; }
    #main-photo { border-width: 3px; width: 100%; height: auto; }
}