/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка */
header {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
}

/* Контейнер для логотипа и названия */
.logo-container {
    display: flex;
    align-items: center;
}

/* Логотип */
.logo {
    width: 50px; /* Настройте размер логотипа */
    height: auto;
    margin-right: 15px; /* Отступ между логотипом и текстом */
}

/* Название компании */
header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Навигация */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600;
}

/* Кнопка заказа звонка */
.cta-button {
    background: #ff6600;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #e65c00;
}

/* Герой-секция */
#hero {
    background: url('images/hero-bg.webp') no-repeat center center/cover;
    color: #fff;
    padding: 150px 0;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Затемнение фона */
    z-index: 1;
}

#hero h2, #hero p, #hero .cta-button {
    position: relative;
    z-index: 2;
}

#hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
}

#hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

#hero .cta-button {
    font-size: 16px;
    padding: 15px 30px;
}

/* Секции */
section {
    padding: 80px 0;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #001d3a;
}

/* Услуги */
.service-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 40px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 200px; /* Настройте высоту картинки */
    object-fit: cover;
    border-radius: 10px 10px 0 0; /* Закругленные углы сверху */
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-item p {
    font-size: 16px;
    color: #666;
}

/* Цены */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background: #2c3e50;
    color: #fff;
    font-weight: 500;
}

tr:nth-child(even) {
    background: #f4f4f4;
}

/* Отзывы */
.review-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.review-image {
    width: 80px; /* Настройте размер картинки */
    height: 80px;
    border-radius: 50%; /* Круглая картинка */
    object-fit: cover;
}

.review-item p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.review-item span {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .review-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Блог */
.blog-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px; /* Настройте высоту картинки */
    object-fit: cover;
    border-radius: 10px 10px 0 0; /* Закругленные углы сверху */
    margin-bottom: 15px;
}

.blog-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.blog-item p {
    font-size: 16px;
    color: #666;
}

/* Контакты */
#contact {
    background: #2c3e50;
    color: #fff;
    padding: 80px 0;
}

#contact h2 {
    color: #fff;
}

#contact p {
    font-size: 18px;
    margin-bottom: 20px;
}

#contact ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

#contact ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

#contact ul li a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact ul li a:hover {
    color: #e65c00;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact form input, #contact form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

#contact form button {
    background: #ff6600;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contact form button:hover {
    background: #e65c00;
}
/* Вопросы */
.faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}
.faq-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.faq-question {
    padding: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    background-color: #f1f1f1;
}
.faq-answer {
    padding: 0 15px;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer.active {
    max-height: 200px; /* Увеличьте это значение, если ответы длиннее */
    padding: 15px;
}
.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}
.arrow.active {
    transform: rotate(180deg);
}

/* Подвал */
footer {
    background: #1a252f;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

footer p {
    margin: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        margin-top: 15px;
    }
}