/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== ФОН САЙТА (МЕНЯЕТСЯ В КОДЕ) ===== */
body {
    min-height: 100vh;
    background-image: url("../BG_IMG/bg.jpg"); /* ← фон меняешь тут */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

/* затемнение поверх фона */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* логотип */
.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* навигация */
.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 1;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.page {
    max-width: 1200px;
    margin: auto;
    padding: 40px 24px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* ===== АДАПТИВ ===== */

/* планшет */
@media (max-width: 900px) {
    .page-title {
        font-size: 26px;
    }

    .nav a {
        margin-left: 16px;
    }
}

/* телефон */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    .page {
        padding: 30px 16px;
    }

    .gallery img {
        height: 180px;
    }
}