/* Общие настройки */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/background_gradient.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: #282c34; /* Темный фон */
    color: #ffffff; /* Белый текст */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.site-header {
    background-image: url('../images/header_image.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: #1e2127; /* Темно-серый фон */
    padding: 10px 0;
    height: 100px;
    display: flex;

}
/* Контейнер в шапке */
.header-container {
    display: flex; /* Делаем контейнер flex-контейнером */
    justify-content: space-between; /* Размещаем элементы по краям */
    align-items: center; /* Выравниваем элементы по центру вертикально */
    width: 100%; /* Растягиваем контейнер на всю ширину */
    max-width: 1200px; /* Ограничиваем максимальную ширину */
    margin: 0 auto; /* Центрируем контейнер */
    padding: 0 20px; /* Добавляем внутренние отступы */
    box-sizing: border-box; /* Учитываем padding в ширине */
}
.logo {
    flex: 1; /* Занимает доступное место слева */
}

.logo-image {
    width: 100px;
    height: 100px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: right;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    color: #61dafb; /* Голубой цвет ссылок */
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff; /* Белый цвет при наведении */
}

/* Основной контент */
.site-content {
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
    margin-top: 40px;
}

h1, h2, h3 {
    color: #61dafb; /* Голубой цвет заголовков */
    margin-bottom: 20px;
    
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
    
}

/* Контейнеры для текста и изображений */
.text-container {
    background-color: #363b46; /* Серый фон */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    
}

.yandex-reviews-container {
    background-color: #363b46; /* Серый фон */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.image-container {
    text-align: center;
    margin-bottom: 20px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Подвал */
.site-footer {
    background-color: #1e2127; /* Темно-серый фон */
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 10px 0;
    }
}
/* Стили для таблицы */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.services-table th,
.services-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #44475a; /* Темно-серый разделитель */
}

.services-table th {
    background-color: #363b46; /* Серый фон для заголовков */
    color: #61dafb; /* Голубой цвет текста */
    font-weight: bold;
}

.services-table tr:nth-child(even) {
    background-color: #2c303b; /* Темно-серый фон для четных строк */
}

.services-table tr:hover {
    background-color: #44475a; /* Темно-серый при наведении */
    cursor: pointer;
}

.services-table td:first-child {
    font-weight: bold; /* Усиление названия услуги */
}

.services-table td:last-child {
    text-align: center; /* Выравнивание цены по правому краю */
}
/* Горизонтальная галерея */
.image-gallery-container {
    margin-top: 40px;
    padding: 20px;
    background-color: #363b46; /* Серый фон */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.image-gallery-container h2 {
    color: #61dafb; /* Голубой цвет заголовка */
    margin-bottom: 20px;
}

.image-gallery {
    display: flex;
    overflow-x: auto; /* Включаем горизонтальный скролл */
    scroll-snap-type: x mandatory; /* Плавный скролл между изображениями */
    gap: 10px; /* Пробел между изображениями */
    padding-bottom: 10px; /* Для видимости скроллбара */
    -webkit-overflow-scrolling: touch; /* Для плавного скролла на iOS */
}

.image-gallery img {
    width: 250px; /* Фиксированная ширина каждого изображения */
    height: 250px;
    border-radius: 5px;
    scroll-snap-align: start; /* Изображение останавливается в начале области */
    transition: transform 0.3s ease; /* Анимация при наведении */
    flex-shrink: 0; /* Запрещаем сжатие изображений */
}

.image-gallery img:hover {
    transform: scale(1.1); /* Увеличение изображения при наведении */
}

/* Скрытие стандартного скроллбара */
.image-gallery::-webkit-scrollbar {
    display: none;
}

.image-gallery {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-button {
    background-color: #61dafb;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 10px;
}

.gallery-button:hover {
    background-color: #49a1c7;
}
/* Модальное окно */
.modal {
    display: none; /* Сначала скрыто */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    max-width: 90%; /* Максимальная ширина */
    max-height: 90%; /* Максимальная высота */
    margin: auto;
    display: block;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
/* Кнопка "Наверх" */
#back-to-top {
    display: none; /* Сначала скрыта */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 120px; /* Увеличим ширину для текста */
    height: 40px; /* Уменьшим высоту для прямоугольной формы */
    border: none;
    background-color: #2ba8fb; /* Светлый фон */
    color: #ffffff; /* Темно-серый цвет текста */
    font-size: 16px; /* Размер шрифта */
    font-weight: bold; /* Жирный шрифт для лучшей читаемости */
    text-align: center;
    line-height: 0px; /* Центрируем текст вертикально */
    border-radius: 100px; /* Закруглённые углы */
    cursor: pointer;
    outline: none;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Лёгкая тень для объёма */
}

#back-to-top:hover {
    background-color: #6fc5ff;
    box-shadow: 0 0 20px #6fc5ff50;
    transform: scale(1.1);
}
#back-to-top:active {
  background-color: #3d94cf;
  transition: all 0.25s;
  -webkit-transition: all 0.25s;
  box-shadow: none;
  transform: scale(0.98);
}
/* Бургер-меню */
.burger-menu {
    display: none; /* Скрыто по умолчанию */
    font-size: 24px;
    background-color: transparent;
    border: none;
    color: #61dafb; /* Голубой цвет */
    cursor: pointer;
}

/* Меню по умолчанию */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: right;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    color: #61dafb; /* Голубой цвет ссылок */
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff; /* Белый цвет при наведении */
}


/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    /* Показываем кнопку бургер-меню */
    .burger-menu {
        display: block;
    margin-left: auto;
    }

    /* Скрываем меню по умолчанию */
    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background-color: #1e2127; /* Темно-серый фон */
        padding: 10px;
        border-radius: 5px;
        position: absolute;
        top: 60px;
        right: 20px;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active ul {
        display: flex; /* Показываем меню, когда оно активно */
    }

    .main-nav li {
        margin: 10px 0;
    }

    .main-nav a {
        font-size: 16px;
    }
}
/* --- Стили для красивой формы поиска --- */

.search-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 800px; /* Ограничиваем ширину формы */
    gap: 10px; /* Расстояние между полем и кнопкой */
    background-color: #363b46;
    padding: 8px;
    border-radius: 50px; /* Сильное скругление самой формы */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #44475a;
    transition: all 0.3s ease;
}

.search-form:hover,
.search-form:focus-within {
    border-color: #61dafb; /* Голубая рамка при наведении */
    box-shadow: 0 4px 20px rgba(97, 218, 251, 0.2);
    transform: translateY(-2px);
}

.input-group {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #61dafb;
    z-index: 2;
    pointer-events: none; /* Чтобы клик проходил сквозь иконку */
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Отступ слева больше из-за иконки */
    border: none;
    background-color: transparent;
    color: #ffffff;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
}

.search-input::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.search-input:focus {
    background-color: #2c303b; /* Чуть темнее фон при вводе */
}

.search-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #61dafb 0%, #21a4c9 100%);
    color: #282c34;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-btn:hover {
    background: linear-gradient(135deg, #49a1c7 0%, #1885a3 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(97, 218, 251, 0.4);
}

.search-btn:active {
    transform: scale(0.98);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        border-radius: 15px;
        padding: 10px;
    }

    .search-btn {
        width: 100%;
        border-radius: 10px;
        padding: 12px;
    }
    
    .input-group {
        width: 100%;
    }
    
    .search-input {
        padding: 12px 15px 12px 40px;
        font-size: 14px;
    }
}