@import url('https://fonts.googleapis.com/css2?family=GFS+Didot&display=swap');

/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
body {
    margin: 0; padding: 0; font-family: 'GFS Didot', serif;
    background-color: #fdfdfd; color: #111; min-height: 100vh;
    box-sizing: border-box; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a, button { 
    text-decoration: none; color: inherit; 
    font-family: 'GFS Didot', serif; background: none; border: none;
    cursor: pointer; transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ЭФФЕКТ РАЗМЫТИЯ */
body.menu-active main, body.lightbox-open main {
    filter: blur(30px); transition: filter 0.4s ease;
}

/* --- НАВИГАЦИЯ --- */
.menu-btn { position: fixed; top: 30px; right: 30px; font-size: 18px; z-index: 101; letter-spacing: 2px; }
.back-btn { position: fixed; top: 30px; left: 30px; font-size: 18px; z-index: 101; letter-spacing: 2px; text-transform: uppercase; }

body.menu-active .menu-btn, body.menu-active .back-btn, 
body.lightbox-open .menu-btn, body.lightbox-open .back-btn { 
    opacity: 0 !important; pointer-events: none; 
}

/* --- МЕНЮ (OVERLAY) --- */
.overlay {
    height: 100vh; width: 100vw; position: fixed; z-index: 999; top: 0; left: 0;
    background-color: rgba(255, 255, 255, 0.95); opacity: 0; visibility: hidden;
    transition: 0.4s ease; display: flex; align-items: center; justify-content: center;
}
.overlay.active { opacity: 1; visibility: visible; }
.overlay-content a { display: block; font-size: 32px; margin: 25px; letter-spacing: 8px; text-transform: uppercase; }
.close-btn, .lightbox-close { position: absolute; top: 30px; right: 30px; font-size: 35px; z-index: 1000; display: none; }
.overlay.active .close-btn, .lightbox.active .lightbox-close { display: block; }

/* --- ГЛАВНАЯ --- */
.gallery-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; width: 100vw; overflow: hidden; }
.photo-wrapper { height: 60vh; width: 100%; display: flex; align-items: center; justify-content: center; }
.photo-wrapper img { max-height: 100%; max-width: 90vw; transition: opacity 0.5s ease; cursor: pointer; }
.photo-info { height: 80px; margin-top: 30px; text-align: left; width: 100%; max-width: 600px; padding: 0 20px; display: flex; flex-direction: column; }
.photo-info h2 { margin: 0; font-size: 18px; font-weight: normal; letter-spacing: 2px; }
.photo-info p { margin: 5px 0 0; font-size: 14px; opacity: 0.6; }
.next-btn { margin-top: 20px; font-size: 16px; letter-spacing: 5px; text-transform: uppercase; }

/* --- ГАЛЕРЕЯ (МОЗАИКА) --- */
.grid-container { column-count: 3; column-gap: 25px; padding: 100px 40px 40px; }
.grid-item { break-inside: avoid; margin-bottom: 25px; }
.grid-item img { width: 100%; height: auto; display: block; cursor: pointer; }

/* --- ПРОЕКТЫ (СПИСОК) --- */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px 20px; padding: 150px 10% 100px; }
.project-link { font-size: 42px; letter-spacing: 7px; text-transform: uppercase; text-align: center; }

/* --- СТРАНИЦА ПРОЕКТА + СЛАЙДЕР --- */
.project-container { max-width: 1000px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.project-slider { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 30px; }
.project-slider img { max-height: 70vh; max-width: 90%; cursor: pointer; transition: opacity 0.4s ease; }

/* Новые навигационные кнопки: под фото, рядом друг с другом */
.slider-nav { margin-top: 25px; display: flex; gap: 20px; }
.slider-nav button { font-size: 24px; padding: 0 10px; opacity: 0.6; transition: 0.3s; }
.slider-nav button:hover { opacity: 1; }

.project-header { max-width: 600px; margin: 20px auto 0; text-align: left; padding: 0 20px; }
.project-header h1 { font-size: 24px; letter-spacing: 4px; text-transform: uppercase; font-weight: normal; margin-bottom: 10px; }
.project-text { font-size: 15px; line-height: 1.6; color: #555; }

/* --- КОНТАКТЫ --- */
.contact-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; }
.say-hello { font-size: 48px; letter-spacing: 15px; margin-bottom: 50px; font-weight: normal; text-transform: uppercase; }
.contact-links { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.contact-links a { font-size: 20px; letter-spacing: 4px; text-transform: uppercase; }

/* --- ЛАЙТБОКС --- */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.98); z-index: 1100; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; transform: scale(0.97); transition: 0.4s; }
.lightbox.active img { transform: scale(1); }

@media (max-width: 900px) { .grid-container { column-count: 2; } .projects-grid { grid-template-columns: 1fr; } }