* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: #F5F5F5;
    padding: 15px 0;
    border-bottom: 1px solid #00A3E0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 200px;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.language-switcher {
    margin-bottom: 10px;
}

.language-switcher a {
    color: #1A3C5A;
    text-decoration: none;
    font-size: 14px;
}

.language-switcher a.active {
    font-weight: bold;
    color: #00A3E0;
}

.language-switcher a:hover {
    color: #00A3E0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    color: #1A3C5A;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.nav-menu li a.active {
    color: #00A3E0;
    font-weight: bold;
}

.nav-menu li a:hover {
    color: #00A3E0;
}

/* Баннер (для главной страницы) */
.banner {
    padding: 40px 0;
    background-color: #fff;
}

.banner-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.banner-text {
    flex: 1;
}

.banner-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #1A3C5A;
    margin-bottom: 20px;
}

.banner-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.banner-image {
    flex: 1;
}

.banner-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

/* Секция Услуги */
.services {
    padding: 40px 0;
    background-color: #fff;
}

.services h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #1A3C5A;
    margin-bottom: 30px;
    text-align: center;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item.active {
    background-color: #e0f4ff;
}

.service-item h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #1A3C5A;
    margin-bottom: 10px;
}

.service-short-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.service-description {
    display: none;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Секция Контакты */
.contacts {
    padding: 40px 0;
    background-color: #fff;
}

.contacts h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #1A3C5A;
    margin-bottom: 30px;
    text-align: center;
}

.contacts-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.contacts-info {
    flex: 1;
}

.contacts-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #1A3C5A;
    margin-bottom: 15px;
}

.contacts-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contacts-map {
    flex: 1;
}

.contacts-map h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #1A3C5A;
    margin-bottom: 15px;
}

.contacts-map iframe {
    width: 100%;
    border-radius: 10px;
}

.contacts-form {
    max-width: 600px;
    margin: 0 auto;
}

.contacts-form h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #1A3C5A;
    margin-bottom: 20px;
    text-align: center;
}

.contacts-form .form-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.contacts-form .form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.contacts-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.contacts-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: #1A3C5A;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.contacts-form button {
    background-color: #00A3E0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contacts-form button:hover {
    background-color: #1A3C5A;
}

/* Стили для значка reCAPTCHA */
.grecaptcha-badge {
    bottom: 80px !important;
    z-index: 1000;
}

/* Секция Цены */
.prices {
    padding: 40px 0;
    background-color: #fff;
}

.prices h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #1A3C5A;
    margin-bottom: 30px;
    text-align: center;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price-table th {
    background-color: #1A3C5A;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.price-table td {
    font-size: 14px;
    color: #333;
}

.price-table tbody tr:nth-child(even) {
    background-color: #F5F5F5;
}

.price-table tbody tr:hover {
    background-color: #e0f4ff;
}

.price-table .category-header td {
    background-color: #00A3E0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
}

.price-notes {
    margin-top: 20px;
}

.price-notes p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Секция О нас */
.about {
    padding: 40px 0;
    background-color: #fff;
}

.about h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #1A3C5A;
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

/* Футер */
.footer {
    background-color: #1A3C5A;
    color: #fff;
    padding: 20px 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.footer-address,
.footer-contacts,
.footer-details {
    max-width: 300px;
}

.footer-contacts {
    justify-self: center;
    text-align: center;
}

.footer-address {
    justify-self: start;
    text-align: left;
}

.footer-details {
    justify-self: end;
    text-align: right;
}

.footer p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Стиль для кликабельного номера телефона и email */
.footer .phone-link,
.footer .email-link {
    color: #66C7F4; /* Светло-голубой цвет */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .phone-link:hover,
.footer .email-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Кнопка "Наверх" */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00A3E0;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease;
}

#scroll-to-top:hover {
    background-color: #1A3C5A;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        align-items: flex-start;
        margin-top: 10px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-image {
        margin-top: 20px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .service-item {
        min-height: 100px;
    }

    .contacts-content {
        flex-direction: column;
    }

    .price-table th,
    .price-table td {
        padding: 10px;
        font-size: 12px;
    }

    .price-table th:nth-child(2),
    .price-table td:nth-child(2) {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .footer-address,
    .footer-contacts,
    .footer-details {
        justify-self: center;
        text-align: center;
        max-width: 100%;
    }

    .grecaptcha-badge {
        bottom: 120px !important;
    }

    .about-content p {
        font-size: 14px;
    }
    
}
/* Секция Вопросы-ответы */
.faq {
    padding: 40px 0;
    background-color: #fff;
}

.faq h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #1A3C5A;
    margin-bottom: 30px;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #1A3C5A;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #00A3E0;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 20px;
    color: #1A3C5A;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    padding: 0 0 15px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; /* Используем Flexbox для расположения текста и изображения */
    flex-wrap: wrap; /* Позволяем тексту переноситься */
    gap: 15px; /* Отступ между текстом и изображением */
    align-items: center; /* Выравниваем элементы по центру по вертикали */
}

.faq .faq-list .faq-answer {
    display: none !important;
}

.faq-item.active .faq-answer {
    display: flex !important; /* Меняем на flex при открытии */
    opacity: 1;
}

/* Контейнер для текста внутри ответа */
.faq-answer-text {
    flex: 1; /* Текст занимает доступное пространство */
    min-width: 200px; /* Минимальная ширина текста, чтобы не сжиматься слишком сильно */
}

/* Стили для изображений в ответах */
.faq-answer .faq-image {
    width: 150px; /* Размер превью */
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.faq-answer .faq-image:hover {
    transform: scale(2); /* Увеличение при наведении */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq h1 {
        font-size: 24px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 13px;
        flex-direction: column; /* На мобильных текст и изображение друг под другом */
        align-items: flex-start; /* Выравнивание по левому краю */
    }

    .faq-answer-text {
        min-width: 100%; /* На мобильных текст занимает всю ширину */
    }

    .faq-answer .faq-image {
        width: 120px; /* Меньший размер превью на мобильных */
    }

    .faq-answer .faq-image:hover {
        transform: scale(1.3); /* Меньшее увеличение на мобильных */
    }
}