body {

    font-family: Arial, sans-serif;

    margin: 0;

    padding: 0;

    text-align: center;

    background-color: #E6F0FF;

    color: #003366;

}

header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background-color: papayawhip;

    padding: 20px;

    text-align: center;

    position: relative;

    z-index: 10;

}

/* Волна-дизайн */

.header-wave {

    position: absolute;

    bottom: -2px;

    left: 0;

    width: 100%;

    height: auto;

    z-index: -1; /* Убираем волну под шапку */

}

/* Логотип */

.logo img {

    width: 80px;

}

/* Заголовок */

.header-title {

    margin: 0 auto;

    text-align: center;

    flex-grow: 1;

}

@media (max-width: 400px) {

    .header-title {

        font-size: 18px;

    }

}

/* Подзаголовок */

.sub-text1 {

    font-family: 'Great Vibes', cursive;

    font-size: 14px;

    font-weight: 500;

    color: #007bff;

    text-align: center;

    letter-spacing: 0.5px;

    margin-top: -5px;

}

/* Бургер-меню */

/* Меню для ПК */

.nav {

    display: flex;

    justify-content: center;

}

.menu {

    display: flex;

    gap: 20px;

    list-style: none;

    margin: 0;

    padding: 0;

    

    

}

.menu li {

    position: relative;

}

.menu a {

    text-decoration: none;

    color: #003366;

    font-weight: bold;

    padding: 10px;

    display: block;

}

.menu a:hover {

    color: #0055A4;

}

/* Выпадающее меню */

.dropdown-menu {

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    background: white !important;

    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);

    list-style: none;

    padding: 0;

    width: 200px;

}

.dropdown:hover .dropdown-menu {

    display: block;

}

.dropdown-menu li {

    border-bottom: 1px solid #fffef4;

}

.dropdown-menu a {

    padding: 10px;

    color: #003366;

}

.dropdown-menu a:hover {

    background: #0055A4;

    color: white;

}

    

    /* Бургер-меню */

.burger-menu {

    font-size: 24px;

    background: #0055A4;

    color: white;

    border: none;

    padding: 10px;

    cursor: pointer;

    border-radius: 5px;

    position: absolute;

    right: 15px;

    top: 15px;

    width: 45px;

    height: 45px;

    display: flex;

    justify-content: center;

    align-items: center;

}

    /* Меню для мобильных */

@media (max-width: 768px) {

    .burger-menu {

        display: flex; /* Показываем кнопку бургер-меню */

    }

    .menu {

        display: none; /* Скрываем меню по умолчанию */

        flex-direction: column;

        background: white;

        width: 100%;

        position: absolute;

        top: 60px;

        left: 0;

        padding: 10px 0;

        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);

        z-index: 100;

    }

    .menu.active {

        display: flex; /* Показываем меню при нажатии */

    }

}

/* Показываем меню на ПК и скрываем бургер-меню */

@media (min-width: 769px) {

    .burger-menu {

        display: none !important;

    }

    .menu {

        display: flex !important; /* Меню всегда видно */

        flex-direction: row;

        justify-content: center;

    }

}

.hero {

    position: relative;

    height: 400px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}

.hero-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    position: absolute;

    top: 0;

    left: 0;

    z-index: -1;

}

.hero-content {

    background: rgba(255, 255, 255, 0.7);

    padding: 10px;

    border-radius: 5px;

}

.subtext {

    font-size: 20px;

    color: #007bff;

    font-weight: bold;

}

.services h2 {

    font-size: 28px;

    margin-bottom: 15px;

}

.service {

    flex-wrap: wrap;

    gap: 20px; /* Отступ между карточками */

    justify-content: space-between;

    min-height: 400px; /* Подстрой высоту, чтобы карточки были ровные */

    display: flex;

    flex-direction: column;

    text-align: center;

    align-items: center;

    background-color: #FFF6D5;

    padding: 15px;

    border-radius: 10px;

    margin: 10px auto;

    width: 90%;

    max-width: 600px;

    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

}

.service img {

    width: 100%;

    max-height: 200px; /* Можно подстроить */

    object-fit: cover; /* Обрежет лишнее, но сохранит пропорции */

    max-width: 90%;

    height: auto;/* Сохраняет пропорции */

    display: block; /* Убирает лишние отступы */

    border-radius: 10px; /* Закругление углов, если нужно */

}

.service h3 {

    min-height: 50px; /* Даст заголовкам одинаковую высоту */

    font-size: 20px;

    margin: 0;

    flex-grow: 1;

}

.service p {

    flex-grow: 1; /* Описание займет всё доступное пространство */

    font-size: 16px;

    margin: 5px 0 0;

    text-align: left;

}

.service .button {

    margin-top: auto; /* Кнопка всегда внизу */

}

/* о компании */

.about-us {

    text-align: center;

    padding: 40px 20px;

}

.about-us h2 {

    color: #003366;

    margin-bottom: 15px;

}

.about-us p {

    font-size: 18px;

    color: #333;

    max-width: 90%; /* займет 90% ширины экрана, но не больше 800px */

    max-width: min(800px, 90%);

    margin: 0 auto 20px;

}

.advantages {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 20px;

}

.advantage {

    width: 250px;

    display: flex;

    align-items: center;

    text-align: left;

    gap: 10px; /* Пространство между иконкой и текстом */

}

.advantage img {

    width: 50px;

    height: 50px;

    flex-shrink: 0; /* Чтобы изображение не сжималось */

}

.advantage h3 {

    margin: 0;

    font-size: 18px;

    color: #003366;

}

.advantage p {

    font-size: 14px;

    color: #333;

    margin: 5px 0 0;

}

/* наши услуги*/

.buttons {

    background-color: #fff6d5;

    padding: 20px;

}

.btn {

    background-color: #f8d7a2;

    color: #000;

    padding: 15px 20px;

    font-size: 18px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.3s;

}

.btn:hover {

    background-color: #f4c679;

}

.popup {

    display: none;

    position: fixed;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    background-color: white;

    padding: 20px;

    border-radius: 10px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    z-index: 1000;

    width: 80%;

    max-width: 500px;

}

.popup-content {

    text-align: center;

    color: black;

    position: relative;

}

.close {

    cursor: pointer;

    font-size: 20px;

    font-weight: bold;

    color: black;

    position: absolute;

    top: 10px;

    right: 15px;

}

/* Адаптация для мобильных устройств */

@media (max-width: 600px) {

    .header-title {

        font-size: 20px;

    }

    /* доп менб*/

    .dropdown-menu {

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    background: white;

    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);

    list-style: none;

    padding: 0;

    width: 200px;

    z-index: 20; /* Поверх header */

}

    

    

    .hero {

        height: 200px;

    }

    .hero-content {

        padding: 5px;

    }

    .subtext {

        font-size: 18px;

    }

   .service {

    display: block !important;

    flex-direction: column;

    

    text-align: left !important;

    width: 100%;

    max-width: 400px; /* Можно увеличить, если блоки слишком узкие */

    padding: 15px; /* Добавит пространства внутри */

    border-radius: 10px; /* Закругление углов */

    background: #fdf3d0; /* Лёгкий фон, чтобы блоки не сливались */

}
   .service1 {
       
       text-align: left !important;
       
       display: block;
   }

.service img {

    width: 100%; /* Адаптивность изображения */

    max-width: 350px;

    height: auto;

    margin-bottom: 15px;

    border-radius: 8px; /* Закругление для изображений */

}

.btn {

    width: 100%; /* Растягиваем кнопку */

    max-width: 250px; /* Чтобы не была слишком большой */

    padding: 10px;

    font-size: 16px;

    border-radius: 5px;

}

}

/* калькулятор*/

.calculator {

    background-color: #fff;

    padding: 20px;

    border-radius: 8px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    max-width: 600px;

    width: 100%;

    margin: 0 auto; /* Центрирование */

    text-align: center; /* Выравнивание текста */

}

h2 {

    margin-bottom: 20px;

}

label {

    display: block;

    margin-bottom: 5px;

}

input, select, button {

    width: 100%;

    padding: 10px;

    margin-bottom: 15px;

    border: 1px solid #ccc;

    border-radius: 4px;

}

button {

    background-color: #007bff;

    color: #fff;

    border: none;

    cursor: pointer;

}

.button:hover {

    background-color: #0056b3;

}

.result {

    font-size: 18px;

    font-weight: bold;

}

/*скидка*/

.discount-section h2 {

    font-size: 24px;

    font-weight: bold;

    color: #003366; /* Тёмно-синий */

    margin-bottom: 10px;

    text-align: center;

    width: 100%;

}

.discount-section p {

    font-size: 18px;

    color: #333;

    text-align: center;

    width: 100%;

}

.discount {

    font-size: 20px;

    font-weight: bold;

    color: red;

}

/*заявка*/

.contact-form {

    max-width: 600px;

    margin: 10px auto;

    padding: 30px;

    background: #f9f9f9;

    border-radius: 10px;

    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);

}

.contact-form h2 {

    text-align: center;

    color: #003366;

}

.contact-form label {

    font-weight: bold;

    display: block;

    margin-top: 10px;

}

.contact-form input,

.contact-form textarea {

    width: 100%;

    padding: 8px;

    margin-top: 5px;

    border: 1px solid #ccc;

    border-radius: 5px;

}

.contact-form button {

    width: 100%;

    padding: 10px;

    margin-top: 15px;

    background: #003366;

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;

}

.contact-form button:hover {

    background: #002244;

}

/* контакты*/

.contact-section {

    background-color: #d0e8ff; /* Мягкий синий */

    padding: 40px 20px;

    text-align: center;

    border-radius: 10px;

    margin: 20px auto;

    max-width: 600px;

}

.contact-section h2 {

    color: #003366;

    margin-bottom: 10px;

}

.contact-section p {

    font-size: 18px;

    color: #333;

}

.contact-info p {

    margin: 5px 0;

}

.contact-info a {

    color: #003366;

    text-decoration: none;

    font-weight: bold;

}

.contact-info a:hover {

    text-decoration: underline;

}

.div {
    display: flex;
    gap: 15px; /* Расстояние между иконками */
}
.a {
    color: #1877F2; /* Цвет Facebook */
    text-decoration: none;
}
.a:hover {
    color: #ff007f; /* Цвет Instagram при наведении */
}
    