/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Стили для шапки */
header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact-info p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.contact-info a {
    color: black;
    text-decoration: none;
    margin-right: 20px;
}

.messengers {
    display: flex;
    align-items: center;
}

.messenger {
    margin-left: 15px;
}

.messenger img {
    width: 32px;
    height: 32px;
}

/* Стили для меню */
.main-nav-container {
    background-color: #e0f7fa;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #ddd;
    padding: 10px 0;
}

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-nav ul li {
    margin: 0 10px;
}

.main-nav ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    background-color: #b2ebf2;
    color: #004d40;
}

/* Стили для слайдера */
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.slider-title-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slider-title {
    font-size: 36px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0;
    line-height: 1.2; /* Уменьшенное межстрочное расстояние */
}

.contact-form-container {
    flex: 1;
    max-width: 350px;
    background-color: #e0f7fa;
    padding: 20px; /* Уменьшенный отступ внутри формы */
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    color: #000;
    width: 100%;
    box-sizing: border-box;
    text-align: left; /* Выравнивание текста по левому краю */
    margin: 20px auto; /* Центрирование формы с отступами сверху и снизу */
}

.contact-form-container h2 {
    margin-top: 0;
    color: #000;
    font-size: 24px;
    text-align: center; /* Выравнивание заголовка по центру */
}

.contact-form-container label {
    display: block;
    margin-top: 15px;
}

.contact-form-container input, .contact-form-container textarea {
    width: calc(100% - 20px);
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form-container button {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    border: none;
    background-color: #00796b;
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form-container button:hover {
    background-color: #004d40;
}

#formResult {
    margin-top: 15px;
    font-size: 16px;
    color: #00796b;
    text-align: center; /* Выравнивание текста по центру */
}

/* Стили для блока "Наши услуги" */
.services-header {
    text-align: center;
    padding: 20px 0;
    background-color: white;
}

.services-header h2 {
    margin: 0;
    color: #000;
    font-size: 24px;
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px 0;
    background-color: #f0f0f0;
}

.service-item {
    position: relative;
    width: 300px; /* Ширина каждого элемента */
    height: 200px; /* Высота каждого элемента */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.service-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* Фон для пустых областей */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
}

.service-title a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.service-overlay p {
    margin: 0;
    text-align: center;
    color: #fff;
}

.service-overlay p a {
    color: #fff;
    text-decoration: underline;
    font-size: 18px;
}



/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Стили для контейнера SEO контента */
.seo-content-container {
    background-color: #ffffff;
    color: #000000;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.seo-content-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

/* Контейнер для ряда блоков */
.content-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

/* Блоки с текстом */
.content-section {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.text-left {
    text-align: left;
    font-size: 20px;
}

.text-right {
    text-align: right;
    font-size: 20px;
}

/* Блоки с изображениями */
.content-image {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    font-size: 30px;
}

.content-image img {
    width: 100%;
    height: 300px; /* Высота изображения */
    object-fit: cover; /* Обрезка изображения */
    border-radius: 10px; /* Закругленные углы */
    display: block;
}

/* Полный блок по ширине страницы */
.content-fullwidth {
    background-color: #f0f0f0;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 8px;
    margin: 0 auto;
}

.content-fullwidth p {
    margin: 0;
    color: black;
    font-size: 20px;
}

/* Контейнер для подвала */
.footer-content {
    display: flex;
    justify-content: center; /* Выравнивание по центру */
    align-items: center; /* Вертикальное выравнивание по центру */
    padding: 40px 0;
    background-color: #f0f0f0; /* Фон подвала */
}

/* Контейнер формы обратной связи */
.contact-form-container {
    max-width: 400px; /* Увеличенный размер */
    background-color: #e0f7fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    color: #000;
    width: 100%;
    box-sizing: border-box;
    text-align: left; /* Выравнивание текста по левому краю */
}

/* Заголовок формы */
.contact-form-container h2 {
    margin-top: 0;
    color: #000;
    font-size: 24px;
    text-align: center; /* Выравнивание заголовка по центру */
}

/* Поля формы */
.contact-form-container .form-group {
    margin-bottom: 15px;
}

.contact-form-container label {
    display: block;
    margin-top: 15px;
}

.contact-form-container input, .contact-form-container textarea {
    width: calc(100% - 20px);
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Кнопка отправки формы */
.contact-form-container button {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    border: none;
    background-color: #00796b;
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form-container button:hover {
    background-color: #004d40;
}

/* Сообщение об успешной отправке формы */
#formResult {
    margin-top: 15px;
    font-size: 16px;
    color: #00796b;
    text-align: center; /* Выравнивание текста по центру */
}

/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.hidden {
    display: none;
}

#success-message {
    display: none;
    color: green;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f4f4f4; /* Цвет фона, если нужен */
    border-top: 1px solid #ddd; /* Если нужен разделительный бордер */
}

.footer-menu, .footer-contacts, .footer-messengers {
    flex: 1;
}

.footer-menu {
    text-align: left;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    text-decoration: none;
    color: #333; /* Цвет ссылок, если нужен */
}

.footer-contacts {
    text-align: center;
}

.footer-contacts a {
    text-decoration: none;
    color: #333; /* Цвет ссылок, если нужен */
}

.footer-messengers {
    text-align: right;
}

.footer-messengers .messenger {
    margin-left: 10px;
    display: inline-block;
}

.footer-messengers img {
    width: 24px; /* Размер иконок */
    height: auto;
}

/* стили для сервиса 2 */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 20px 10px 20px;
    border: 2px solid #e0f7fa; /* Цвет рамки контейнера */
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.centered-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.sub-container {
    padding: 10px;
    margin-bottom: 10px; /* Уменьшение отступа между под-контейнерами */
}

.centered-subtitle {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    text-align: center;
    margin-bottom: 20px;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; /* Разрыв между элементами flex-контейнера */
}

.text-container {
    flex: 1;
    border: 2px solid #e0f7fa; /* Цвет рамки контейнера */
    padding: 15px;
    background-color: #f9f9f9;
}

.text-container ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.text-container li {
    margin-bottom: 10px;
}
