/* Общие стили */
*,
*::after,
*::before {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    cursor: pointer;
}

li {
    list-style: none;
}

.container {
    max-width: 1370px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

/* Стили для шапки */
.header {
    position: fixed;
    padding: 30px 0;
    background-color: #fbf7f7;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
    gap: 15px;
}

.contact__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.contact.address {
    max-width: 250px;
}

/* Стили для баннера */
.section-banner {
    background-image: url('../images/banner-img.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

.banner__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 928px;
    height: 100%;
    color: #ffffff;
}

.banner__wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.banner__title {
    font-size: 42px;
    line-height: 52px;
}

.banner__text {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
}

/* Стили для секций */
.section {
    padding: 100px 0;
}

.section__title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 24px;
    line-height: 28px;
}

.section__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    text-align: center;
    max-width: 728px;
    margin: 0 auto;
}

.text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-transform: uppercase;
}

.description {
    display: flex;
    gap: 50px;
    justify-content: space-between;
    align-items: center;
}

.promotion__img-wrap {
    flex: 0 0 50%;
}

.promotion__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-description {
    background-color: #242241;
    color: #ffffff;
}

.description__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.description__text .text {
    text-transform: initial;
}

.list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding-left: 10px;
}

.list .list__item {
    position: relative; /* Для позиционирования псевдоэлемента */
    padding-left: 20px; /* Отступ для галочки */
}

.list .list__item::before {
    content: '\2713'; /* Юникод символ галочки */
    position: absolute;
    left: 0;
    color: green; /* Цвет галочки */
    font-size: 16px; /* Размер галочки */
}

.section-services {
    color: #242241;
    text-shadow: 0 0 8px #ffffff;
}

.section-services .section__content {
    position: relative;
}

.services__img-wrap {
    position: absolute;
    top: 0%;
    right: -6%;
    width: 100%;
    transform: rotate(8deg);
    z-index: -1;
}

.services__img {
    width: 100%;
    height: 100%;
}

.review {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.review__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Стили для секции "О нас" */
.section-about {
    background-color: #242241;
    color: #ffffff;
}

/* Стили для секции "Контактная форма" */
.section-contact {
    position: relative;
    background-image: url('../images/photo_1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #ffffff;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    z-index: 0; /* Устанавливаем z-index ниже содержимого */
}

.contact {
    position: relative;
    z-index: 1; /* Устанавливаем z-index выше псевдоэлемента */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact__title {
    margin-bottom: 0;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 450px;
}

.contact__form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact__label {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #ffffff;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 24px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif;
}

.contact__input {
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый фон */
    color: #000;
}

.contact__textarea {
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый фон */
    color: #000;
    resize: vertical;
    height: 150px;
}

.contact__button {
    padding: 15px 30px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #ffffff;
    background-color: #242241;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact__button:hover {
    background-color: #1e1c3a;
}

.contact__button:hover {
    background-color: #1e1c3a;
}

/* Стили для футера */
.footer {
    background-color: #242241;
    color: #ffffff;
}

.footer__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 100px 0;
}

.footer__title {
    font-size: 18px;
    line-height: 21px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

.footer__wrap {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.map {
    height: 450px;
}

.footer__contact-wrap {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer .contact__list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.footer .contact__title {
    font-weight: 700;
}

.footer .contact__item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Адаптивные стили */
@media(min-width: 687px) {
    .section {
        padding: 100px 0;
    }

    .section__title {
        font-size: 24px;
        line-height: 28px;
        text-transform: uppercase;
    }

    .header__content { 
        font-size: 16px;
        line-height: 21px;
        font-weight: 500;
    }

    .banner__title {
        font-size: 42px;
        line-height: 52px;
    }

    .banner__text {
        font-size: 18px;
        line-height: 24px;
        font-weight: 500;
    }

    .contact__input,
    .contact__textarea {
        flex: 1;
    }

    .footer__title {
        font-size: 28px;
        line-height: 28px;
    }

    .footer__wrap {
        flex-direction: row;

    }

    .footer__contact-wrap {
        flex: 0 0 50%;
    }

    .map {
        flex: 0 0 50%;
    }
}

/* Адаптивные стили для планшетов (от 768px до 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 20px;
        line-height: 24px;
    }

    .banner__title {
        font-size: 36px;
        line-height: 44px;
    }

    .banner__text {
        font-size: 16px;
        line-height: 20px;
    }

    .description {
        flex-direction: column;
        gap: 30px;
    }

    .promotion__img-wrap {
        width: 100%;
    }

    .promotion__img {
        width: 100%;
        height: auto;
    }

    .review {
        flex-direction: column;
        gap: 30px;
    }

    .contact__form {
        max-width: 100%;
    }
}

/* Адаптивные стили для мобильных устройств (до 767px) */
@media (max-width: 767px) {
    .section {
        padding: 30px 0;
    }

    .section__title {
        font-size: 18px;
        line-height: 22px;
    }

    .banner__title {
        font-size: 28px;
        line-height: 34px;
    }

    .banner__text {
        font-size: 14px;
        line-height: 18px;
    }

    .description {
        flex-direction: column;
        gap: 20px;
    }

    .promotion__img-wrap {
        width: 100%;
    }

    .promotion__img {
        width: 100%;
        height: auto;
    }

    .review {
        flex-direction: column;
        gap: 20px;
    }

    .contact__form {
        max-width: 100%;
    }

    .contact__form-group {
        gap: 5px;
    }

    .contact__label {
        font-size: 14px;
        line-height: 18px;
    }

    .contact__input,
    .contact__textarea {
        font-size: 14px;
        line-height: 18px;
    }

    .contact__button {
        padding: 10px 20px;
        font-size: 14px;
        line-height: 18px;
    }
}
