/* Основные стили */
body {
    font-family: Arial;
    color: #555;
    padding: 0;
    background-color: #f4f4f4;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

.footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 40px;
    text-align: center;
}

.gdpr-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 1000;
}

.gdpr-notice button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.gdpr-notice button:hover {
    background-color: #45a049;
}

/* Кнопка наверх */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #878e97;
    opacity: 45%;
    color: white;
    border: none;
    padding: 20px 35px;
    font-size: 3em;
    font-weight: 600;
    border-radius: 31%;
    cursor: pointer;
    display: none;
    z-index: 100000000;
}

.scroll-to-top:hover {
    background-color: #333333;
}

h2 {
    text-align: center;
}

p {
    width: 70%;
    margin: 0 auto;
    text-align: center;
}

/* Блоки услуг */
.services-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-box {
    width: 18%;
    text-align: center;
    background: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    display: flex
;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 350px;
    font-size: 0.8em;
}

.service-box img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.service-box p {
    width: 100%;
    flex-grow: 1;
    font-size: 1.1em;
    margin-top: 1em;
}

.service-box button {
    width: 50%;
    margin-top: 1em;
    padding: 10px;
    border: none;
    background: #6bb918;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    align-self: center;
    font-size: 1.1em;
}

.service-box button:hover {
    background: #444444;
}

/* Бронирование */
.booking-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.booking-box {
    width: 15%;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 350px;
    font-size: 0.9em;
}

.booking-box img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.booking-box p {
    width: 95%;
    flex-grow: 1;
}

.booking-box button {
    width: 50%;
    margin-top: 1em;
    padding: 10px;
    border: none;
    background: #888888;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    align-self: center;
    font-size: 0.9em;
}

.booking-box button:hover {
    background: #444444;
}

form {
    width: 100%;
    margin: auto;
}

/* Контакты */
.contacts-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.contact-box1,
.contact-box2 {
    text-align: center;
    background: #fff;
    padding: 26px 0 0 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
    font-size: 0.9em;
}

.contact-box1 {
    width: 30%;
}

.contact-box2 {
    width: 60%;
}

.contact-box1 img,
.contact-box2 img {
    width: 50px;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 14px;
    opacity: 54%;
}

.contact-box1 p,
.contact-box2 p {
    width: 95%;
    flex-grow: 1;
    font-size: 1.2em;
}

.contact-box2 p {
    font-size: 1.1em;
}

.contact-box1 button,
.contact-box2 button {
    width: 50%;
    margin-top: 1em;
    padding: 10px;
    border: none;
    background: #888888;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    align-self: center;
    font-size: 0.9em;
}

.contact-box1 button:hover,
.contact-box2 button:hover {
    background: #444444;
}

/* GDPR баннер */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    display: none;
}

/* Хедер и навигация */
header {
    text-align: center;
    position: absolute;
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

nav {
    text-align: center;
    padding: 10px;
    margin-top: 90px;
    position: absolute;
    z-index: 10002;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px;
    background: #333;
    border-radius: 8px;
}

/* Секции */
section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    width: 1200px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

h2, h3 {
    color: #333;
    margin-bottom: 12px;
}

h3 {
    margin-top: 12px;
}

/* Форма */
form {
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: #59aa0c;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}

button:hover {
    background: #33aa0c;
}

/* Галерея */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    width: 60%;
    margin-left: 20%;
}

.gallery img,
.admin_img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

/* Popup окно */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.popup img {
    width: 70%;
    max-width: 900px;
    border-radius: 10px;
}

.popup .close,
.popup .prev,
.popup .next {
    position: absolute;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

.popup .close {
    top: 20px;
    right: 30px;
}

.popup .prev {
    left: 30px;
}

.popup .next {
    right: 30px;
}

    .logo_top {
        margin-top: 70px;
        position: relative;
        z-index: 1;
    }

/* Адаптивность */
@media (max-width: 968px) {
    .container {
        width: 95%;
    }

    header {
        justify-content: center;
    }

    header h1 {
        font-size: 1.5em;
    }

    nav {
        display: flex;
        justify-content: center;
        margin-top: 0;
        position: fixed;
        z-index: 10003;
    }

    nav a {
        font-size: 1.4em;
        background: #555;
    }

    section {
        width: 90%;
        padding: 15px;
    }

    .slider-slide span {
        display: none;
    }

    .gallery {
        width: 60%;
        margin-left: 20%;
    }

    .contacts-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-box1,
    .contact-box2 {
        width: 100%;
        font-size: 1.1em;
    }

    .contact-box2 {
        gap: 10px;
    }

    .map {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    input {
        font-size: 1em;
    }

    textarea {
        font-size: 1.1em;
        font-family: Arial;
    }

    .contact-box2 button {
        font-size: 1.2em;
        height: 50px;
    }

    p {
        width: 95%;
        margin: 0 auto;
        text-align: center;
    }

    .services-container,
    .booking-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box,
    .booking-box {
        width: 95%;
    }

    .contact-box {
        width: 95%;
    }
    
    .logo_top {
        margin-top: 100px;
        position: relative;
        z-index: 1;
    }
    #menu li a {
        font-size: 1.4em;
        background: none;
    }
}
