* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* затемнение */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

/* видео фон */
.video-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.mobile-video { display: none; }

@media (max-width: 768px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }
}

/* === LAYOUT === */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo img {
    height: 65px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #00d4ff;
}

/* === MAIN === */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* === HERO === */
.hero {
    text-align: center;
    padding: 40px 20px 30px;
}

/* ================= HERO TYPOGRAPHY ================= */

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.15;
}
.hero h1 {
    text-shadow:
        0 0 12px rgba(0, 212, 255, 0.45),
        0 0 30px rgba(0, 212, 255, 0.25),
        0 12px 50px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    position: relative;
}

.hero h1::after {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 255, 0.25),
        transparent 70%
    );
    z-index: -1;
    filter: blur(30px);
}

.hero p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    max-width: 680px;
    margin: 24px auto 0;
    opacity: 0.9;
}
.hero p {
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.65);
}



.hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 38px;
    border-radius: 40px;
    background: linear-gradient(135deg,#00d4ff,#0077ff);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

/* === GALLERY === */
.gallery {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumb:hover {
    transform: scale(1.05);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 25px 15px;
    background: rgba(0,0,0,0.25);
}

.social a {
    color: #fff;
    font-size: 24px;
    margin: 0 12px;
}

.note {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 10px;
}

/* === ADAPTIVE === */
@media (max-width: 1000px) {
    .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 0;
        font-size: 14px;
        background: rgba(255,255,255,0.1);
        padding: 6px 12px;
        border-radius: 14px;
    }

    .hero h1 { font-size: 30px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}


/* ================= LIGHTBOX — ФИКС ДЛЯ ГЛАВНОЙ ================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

/* Центр изображения */
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* КНОПКА ЗАКРЫТИЯ */
.lightbox .close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 42px;
    color: white;
    cursor: pointer;
    z-index: 10001;
}

/* СТРЕЛКИ — ТОЛЬКО В LIGHTBOX */
.lightbox .arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10001;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.3s, transform 0.3s;
}

.lightbox .arrow:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-50%) scale(1.1);
}

.lightbox .left {
    left: 20px;
}

.lightbox .right {
    right: 20px;
}


/* ================= DESKTOP NAV SIZE ================= */
@media (min-width: 1024px) {
    nav a {
        font-size: 23px;
        margin-left: 36px;
        letter-spacing: 0.5px;
    }
}
