/* Основные стили */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: relative;
    text-align: center;
    height: 300px;
    overflow: hidden;
}

.banner {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Унифицированное меню */
.menu {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

.menu ul li a:hover {
    color: #ffa500;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: linear-gradient(45deg, #ff6347, #ff4500);
    transform: scale(1.05);
}

/* Заголовки страниц */
.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin: 40px 0;
    letter-spacing: 1px;
    color: #fff;
}

.page-title span {
    color: #ffa500;
}


/* Галерея */
.photo-gallery {
    padding: 40px;
    text-align: center;
    flex: 1; /* Контент растягивается до футера */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.gallery img {
    width: 300px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    transform-origin: center center;
    margin: 10px;
}

/* Наклоны для каждого фото */
.gallery img:nth-child(1) { transform: rotate(-5deg); }
.gallery img:nth-child(2) { transform: rotate(10deg); }
.gallery img:nth-child(3) { transform: rotate(-8deg); }
.gallery img:nth-child(4) { transform: rotate(6deg); }
.gallery img:nth-child(5) { transform: rotate(-12deg); }
.gallery img:nth-child(6) { transform: rotate(3deg); }
.gallery img:nth-child(7) { transform: rotate(-6deg); }
.gallery img:nth-child(8) { transform: rotate(9deg); }
.gallery img:nth-child(9) { transform: rotate(-4deg); }
.gallery img:nth-child(10) { transform: rotate(7deg); }

/* Увеличение при наведении */
.gallery img:hover {
    transform: scale(2) rotate(0deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #aaa;
    font-size: 14px;
    width: 100%;
    position: relative; /* Убедимся, что футер остаётся внизу */
    margin-top: auto; /* Футер опускается вниз страницы */
    box-sizing: border-box;
}

footer p {
    margin: 0;
    padding: 0;
}
