* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

.header {
    position: relative; /* Для того чтобы псевдоэлемент был на заднем плане */
    background: url('images/banner-service-3.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 20px 0;
}
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Черный цвет с прозрачностью */
    z-index: 1; /* Псевдоэлемент будет на заднем плане */
}

.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2; /* Устанавливаем элемент на передний план, чтобы текст был виден */
}

.header__top,
.header__banner {
    position: relative; /* Обеспечивает, чтобы текст был поверх затемненного фона */
    z-index: 2; /* Устанавливаем на передний план */
}

.header__contacts a {
    color: #fff;  /* Белый цвет текста */
    text-decoration: none;  /* Убираем подчеркивание */
    font-weight: bold;
    font-size: 18px;
}

.header__contacts a:hover {
    text-decoration: underline;  /* Подчеркивание при наведении (по желанию) */
}

.header__banner {
    text-align: center;
    padding: 50px 0;
    position: relative;
    z-index: 2; /* Устанавливаем элемент на передний план */
}

.header__banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.header__banner p {
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 24px;
}

.btn {
    display: inline-block;
    padding: 10px 40px;
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #447f46;
}

.services {
    padding: 50px 0;
}

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

.services__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service .btn {
    margin-top: 20px;
}

.service {
    text-align: center;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

.service img {
    width: 100%;
    height: 220px;
    margin-bottom: 15px;
    object-fit: cover;
}

.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.benefits {
    padding: 50px 0;
    background: #f9f9f9;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.benefits__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit img {
    display: block;
    margin: 0 auto 15px;
    width: 80px;
    height: 80px;
}

.benefit h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #222;
}

.benefit p {
    font-size: 14px;
    color: #555;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-us {
    padding: 50px 0;
    background: #ffffff;
}

.about-us h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.about-us p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
}

.about-us .button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: #4caf50;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}

.about-us .container {
    text-align: center; /* Центрирование содержимого */
}
.about-us .button:hover {
    background: #447f46;
}


/* whatsapp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px; /* Увеличиваем размер кнопки */
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    z-index: 1000; /* Чтобы кнопка была поверх других элементов */
}

.whatsapp-btn img {
    width: 100%;
}

.whatsapp-btn:hover {
    background-color: #128C7E;  /* Темный оттенок при наведении */
}
/* whatsapp */

/* Мобильные устройства (меньше 768px) */
@media (max-width: 767px) {
    .header__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header__banner h1 {
        font-size: 28px;
    }

    .header__banner p {
        font-size: 16px;
    }

    .header__contacts a {
        font-size: 14px;
    }

    .services__list {
        grid-template-columns: 1fr;  /* Одно место для услуги на экране */
    }

    .service img {
        width: 100%;
    }

    .benefits__list {
        grid-template-columns: 1fr;  /* Все элементы по одному на линии */
        gap: 15px;  /* Уменьшаем промежутки */
    }

    .benefit {
        padding: 15px;  /* Уменьшаем отступы */
        text-align: center;
    }

    .benefit img {
        width: 60px;  /* Уменьшаем размер изображений */
        height: 60px;  /* Уменьшаем высоту изображений */
    }

    .benefit h3 {
        font-size: 18px;  /* Уменьшаем размер заголовка */
    }

    .benefit p {
        font-size: 14px;  /* Уменьшаем размер текста */
    }

    .about-us p {
        font-size: 14px;
    }

    .about-us .button {
        padding: 12px 24px;
    }

    .whatsapp-btn {
        width: 60px; /* Меньший размер кнопки */
        height: 60px;
    }

    .whatsapp-btn img {
        width: 50px; /* Меньше иконка */
    }
}

/* Планшеты (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .services__list {
        grid-template-columns: repeat(2, 1fr);  /* Два столбца для планшетов */
    }

    .benefits__list {
        grid-template-columns: repeat(2, 1fr);  /* Два элемента на строку */
    }

    .benefit img {
        width: 70px;  /* Средний размер для изображений */
        height: 70px;
    }

    .benefit h3 {
        font-size: 20px;  /* Средний размер заголовков */
    }

    .benefit p {
        font-size: 16px;  /* Средний размер текста */
    }
    .header__banner h1 {
        font-size: 32px;
    }

    .header__banner p {
        font-size: 18px;
    }

    .whatsapp-btn {
        width: 70px;
        height: 70px;
    }

    .whatsapp-btn img {
        width: 60px;
    }
}

.btn-instagram {
    display: inline-block;
    padding: 10px 40px;
    background-color: #e1306c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px; /* Отступ от нижней части */
}

.btn-instagram:hover {
    background-color: #c13584;
}