/* Сброс стилей браузера */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Сброс стилей элементов */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

/* Навбар */
header {
    position: fixed;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #05ac88, #f4f4f4);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.navbar .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgb(98, 0, 255);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #09b325;
}

.tel {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(98, 0, 255);
}

/* Основной контент */
main {
    flex: 1;
    padding: 2rem 0;
    width: 100%;
}

/* Геройский блок */
.hero {
    text-align: center;
    padding: 1rem 0;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 2rem;
    color: #07eb80;
    margin: 0 auto 1rem auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #035c48;
    color: white;
}

.btn-primary:hover {
    background-color: #08b187;
}

/* Содержимое страниц */
.page-content {
    padding: 2rem 0;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.page-content ul {
    list-style-position: inside;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Форма контактов */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #09a066;
    box-shadow: 0 0 5px rgba(150, 52, 135, 0.3);
}

/* Ошибка 404 */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Галерея изображений */
.images-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    font-size: 1.2rem;

}

.image-square {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.image-square:hover {
    box-shadow: 0 0 5px #06e08d, 0 0 10px #06e08d, 0 0 15px #06e08d;
}

.image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Футер */
footer {
    background: linear-gradient(to bottom, #f4f4f4, #05ac88);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    width: 100%;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .images-gallery {
        gap: 1rem;
    }
}

/* Lightbox styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 75%;
    max-height: 75%;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 80%;
    width: auto;
    height: auto;
    padding: 1px;
    margin-top: -140px;
    color: white;
    font-weight: bold;
    font-size: 80px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Make gallery images clickable */
.image-square {
    cursor: pointer;
}

/* Gallery Sections */
.featured-gallery, .main-gallery {
    margin-bottom: 2rem;
}

.featured-gallery h2, .main-gallery h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

/* Video Section */
.video-section-add {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.video-square-add {
    width: 450px;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background-color: #000; /* Black background for the video container */
    transition: box-shadow 0.3s ease;
}

.video-square-add:hover {
    box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000;
}

.video-square-add video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Section */
.video-section {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.video-square {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background-color: #000; /* Black background for the video container */
    transition: box-shadow 0.3s ease;
}

.video-square:hover {
    box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000;
}

.video-square video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
