/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Убирает горизонтальный скролл */
}
/*html, body {
    overflow: visible !important; /* Принудительно включаем скролл */
    /*height: auto !important;
}*/
html, body {
    overflow-x: hidden; /* Отключаем только горизонтальный скролл */
    overflow-y: auto; /* Оставляем вертикальный */
    height: auto;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Orbitron', sans-serif;
}
body, html {
    position: relative; /* ✅ Теперь скролл работает */
}

#services {
    scroll-margin-top: 80px; /* Отступ сверху, равный высоте navbar */
}
#contacts {
    scroll-margin-top: 80px; /* Отступ сверху, равный высоте navbar */
}


/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* ✅ Сохраняем компактный navbar */
    background: rgba(0, 64, 128, 0.8); /* ✅ Прозрачный фон */
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    max-height: 70px; /* ✅ Фиксируем высоту navbar */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0; /* ✅ Убираем возможные отступы */
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #99ccff;
}

/* Когда ссылка активна (пользователь смотрит на её секцию) */
.nav-links a.active {
    color: #00bcd4; /* Выделяем цветом */
}

/* Главная */
.home {
    background:  url('baner.png') no-repeat center center;
	background-size: cover;
	width: 100%;  /* 100% ширины экрана */
	min-height: 100vh; /* 100% высоты экрана */

    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home .content {
    max-width: 600px;
    background: rgba(3, 11, 20, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.home h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.home p {
    font-size: 18px;
}

.logo_img {
	width: 100px;
	height: 100px;
}

.logo_name a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.section {
    min-height: 100vh; /* Секция занимает всю высоту экрана */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем содержимое */
    align-items: center; /* Центрируем содержимое */
    text-align: center; /* Выравниваем текст по центру */
    padding: 20px; /* Добавляем отступы */
}


.contacts {
    background-color: #d9e6f2;
}

.services {
	min-height: 100vh;
    display: flex;
    flex-wrap: wrap; /* ✅ Позволяет плиткам переноситься */
    justify-content: center; /* ✅ Выравниваем плитки по центру */
    gap: 20px; /* ✅ Добавляем расстояние между плитками */
    padding: 20px;
}

/* Стили для каждой карточки */
.services .card {
    width: 300px; /* ✅ Ограничиваем ширину */
    min-height: 150px; /* ✅ Минимальная высота */
    background: linear-gradient(135deg, #004080, #00bcd4); /* ✅ Красивый градиент */
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

/* Светлые карточки */
.services .card.light {
    background: linear-gradient(135deg, #e0efff, #d0e0f5);
    color: #004080;
}


.services-title {
    text-align: center; /* Центрирование текста */
    width: 100%; /* Заголовок занимает всю ширину */
    font-size: 24px; /* Размер шрифта */
    font-weight: bold; /* Жирное начертание */
}


.services .card .icon i {
    background: none;
    color: #004080;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: none;
    margin-right: 10px;
}

.services .card p {
    margin: 0;
    line-height: 1.5;
}


.services ul li {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 10px;
    border-left: 4px solid #004080;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.services ul li:hover {
    transform: translateX(10px);
}

.services ul li::before {
    content: '✔';
    color: #004080;
    font-size: 20px;
    margin-right: 10px;
}

/* Импорт шрифта для текста */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* Стиль для основного текста */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 18px;
    padding: 0;
}

.section p {
    margin: 15px 0;
    text-align: justify;
}



/*
body {
    padding-top: 50px; 
}*/


/* Подвал */
footer {
    text-align: center;
    padding: 15px;
    background-color: #003366;
    color: #fff;
    font-size: 14px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');


/* Общие стили для заголовков */
h1, h2 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color: transparent;
    background: linear-gradient(#fff, #389cff, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 40px 0 20px 0;  /* Отступы сверху и снизу */
    position: relative;
}

/* Разделяющие линии */
h1::before, h1::after, h2::before, h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #004080;
    margin: 10px auto;
}

h1::before, h2::before {
    margin-bottom: 5px;
}

h1::after, h2::after {
    margin-top: 5px;
}

.map-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Общий стиль секции */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
}

/* Стиль плитки */
.services .card {
    width: 300px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-100%); /* Уходят за экран влево */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    background: linear-gradient(135deg, #004080, #00bcd4); /* Градиент */
}

/* Светлые карточки (альтернативный градиент) */
.services .card.light {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
	
    color: #004080;
}

/* Анимация появления */
.services .card.show {
    opacity: 1;
    transform: translateX(0); /* Вылетает слева */
}

#contacts {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует текст по горизонтали */
    justify-content: center; /* Центрирует текст по вертикали */
    text-align: center; /* Центрирует текст внутри блока */
    min-height: 50vh; /* Устанавливает минимальную высоту секции */
    background: linear-gradient(to bottom, #e0efff, #d0e0f5); /* Красивый градиент */
    padding: 20px;
}

.contacts p {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px; /* Отступ между иконкой и текстом */
    margin: 10px 0;
}

.contacts p i {
    color: #004080; /* Цвет иконок */
    font-size: 22px;
}
@media (max-width: 768px) {
    .services {
        flex-direction: column; /* ✅ На мобильных плитки в столбец */
        align-items: center;
    }

    .services .card {
        width: 90%; /* ✅ Плитки растягиваются на 90% экрана */
    }
	.navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .nav-links {
        display: none; /* ✅ Прячем меню по умолчанию */
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        background: rgba(0, 64, 128, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 15px 0;
        border-radius: 0 0 10px 10px;
    }

    .nav-links.active {
        display: flex; /* ✅ Показываем меню при клике */
    }

    .menu-toggle {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: white;
    }
}



.working-hours {
    background: linear-gradient(135deg, #e0efff, #d0e0f5); /* Светлый градиент */
    color: #004080; /* Темно-синий текст */
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 350px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    border-left: 5px solid #007acc; /* Акцентная линия слева */
}

.working-hours h3 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #003366; /* Темный оттенок синего */
}

.working-hours ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.working-hours li {
    margin: 5px 0;
}

.working-hours .closed {
    color: #cc0000; /* Мягкий красный */
    font-weight: bold;
}








@media (max-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 40px; /* ✅ Оптимальный размер логотипа */
        width: auto;
    }

    .menu-toggle {
        font-size: 30px;
        cursor: pointer;
        color: white;
        margin-left: auto; /* ✅ Сдвигаем кнопку влево, рядом с логотипом */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        background: rgba(0, 64, 128, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 15px 0;
        border-radius: 0 0 10px 10px;
    }

    .nav-links.active {
        display: flex; /* ✅ Показываем меню при клике */
    }
}

