/* Общие стили */
html {
  scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}
p{
    margin: 0, auto;
    line-height: 1.6; /* Увеличивает интервал между строками в абзацах */
}
/* Блок с видео (высота 800px) */
.video-hero {
    position: relative;
    height: 800px;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}
/* Шапка сайта */
header {
    position: relative; /* position: fixed - Фиксируем шапку поверх всего */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10; /* Убедитесь, что шапка выше видео и оверлея */
    /*background: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон для читаемости */
    color: white; /* Цвет текста */
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1bbef9; /* Яркий цвет для лого */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Тень для контраста */
    text-decoration:none;
}

.nav-links a {
    color: white;
    margin-right:5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration:none;
    
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Стили для галереи растений */
.plants-gallery {
    padding: 0px 0px;
    text-align: center;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    margin: 10px auto;
    max-width: 1200px;
}

.mosaic-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mosaic-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    
    .mosaic-grid img {
        height: 250px;
    }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Основной контент */
.main-content {
    padding: 0 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-section {
    margin-bottom: 50px;
    text-align: center;
}

/* Галерея (2 колонки) */
.gallery {
    display: flex;
    gap: 30px;
    margin-bottom: 0px;
}

.column {
    flex: 1;
}
/* На экранах ≤ 340px меняем направление на вертикальное */
@media (max-width: 750px) {
    .gallery {
        flex-direction: column; /* Колонки теперь друг под другом */
        gap: 20px; /* Уменьшаем отступ между фото */
    }
}
.column img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Таблица цен */
.pricing {
    margin-bottom: 50px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
}

/* Кнопки */
.cta-btn {
    background: #e0a800;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-btn:hover {
    background: #f8c537;
}

.bottom-cta {
    text-align: center;
    margin-top: 40px;
}


.gallery video {
    cursor: pointer; /* Показывает, что видео кликабельно */
}
.gallery video:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); 
}
/* Стили для видео в галерее */
.gallery video {
    width: 100%;
    height: 300px; /* Такая же высота, как у фото */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #000; /* На случай, если видео не загрузится */
}

/* Адаптивность */
@media (max-width: 750px) {
    .gallery video {
        height: 300px;
    }
}

 /* Дополнительные стили для модального окна и иконок */
 .photo-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('./ico/cam4.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    transition: all 0.2s ease;
	

}

.photo-icon:hover {
    transform: scale(1.2);
    
}


table td:last-child {
    min-width: 40px;
    text-align: center;
}

 /* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    -webkit-overflow-scrolling: touch; /* Для плавной прокрутки на iOS */
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Контейнер для слайдов */
.slides-container {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.slides-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    -webkit-user-select: none; /* Предотвращаем выделение на iOS */
    user-select: none;
}

/* Кнопки навигации */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при тапе на iOS */
}

/* Стили для кнопок навигации */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 11;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .photo-icon {
        width: 28px; /* Увеличиваем для удобства нажатия */
        height: 28px;
        background-size: 20px 20px; /* Четкое отображение на ретина-экранах */
    }

    table td:last-child {
        min-width: 36px; /* Больше места для иконки */
    }
}

/* Особые стили для iOS */
@supports (-webkit-touch-callout: none) {
    .photo-icon {
        background-size: 22px 22px;
    }
}

/* Стили для видео-иконок */
.video-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.2s;
    background-image: url('ico/vcam.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
	


.video-icon:hover {
    transform: scale(1.2);
}

/* Стили для видео-модального окна */
#video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

#video-modal .modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

#modal-video-player {
    width: 100%;
    max-height: 80vh;
    outline: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    #video-modal .modal-content {
        width: 95%;
        padding: 10px;
    }
    
    #modal-video-player {
        max-height: 60vh;
    }
}