/* Основной стиль логотипа */
.logo {
  margin: 10px 0;
}

.logo a img {
  max-height: 150px;
  max-width: 100%;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 767.98px) {
  .logo a {
    position: relative;
    display: inline-block;
  }

   .logo a::after {
    content: 'Eco\A House\A Development'; /* Перенос третьего слова на новую строку */
    font-size: 18px;
    color: #000; /* Цвет текста */
    position: absolute;
    left: 110%; /* Позиционируем текст справа от логотипа */
    top: 50%;
    transform: translateY(-50%);
    white-space: pre-wrap; /* Обрабатываем перенос строки */
    line-height: 1; /* Межстрочный интервал */
  }

  .logo a img {
    max-height: 100px; /* Уменьшение логотипа на мобильных */
  }
}



/* Стили для секции слайдера с классом .home */

/* Основной фон и контент */
.home-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 50px;
    background-size: cover;
    background-position: center;
    color: white; /* Устанавливаем белый цвет текста по умолчанию */
}

/* Затемнение нижней части */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    z-index: 1; /* Затемнение должно находиться под текстом */
}

/* Контент внутри слайда */
.home-content {
    position: relative;
    z-index: 2; /* Устанавливаем z-index выше фона */
    max-width: 1000px;
}

/* Заголовок */
.home-title {
    
    margin-bottom: 20px;
    width: 90%;
    color: white; /* Белый цвет заголовка */
    z-index: 2; /* Обеспечиваем, что текст будет выше фона */
    position: relative;
}

/* Устанавливаем конкретный размер заголовка в .home-title */
.home-title h1 {
    font-size: 4rem !important; /* Используем !important, чтобы перекрыть все другие стили */
    color: white;
}

.home-title h2 {
    font-size: 3rem;
}
    

/* Подзаголовок */
.home-subcontent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    z-index: 2; /* Обеспечиваем, что текст будет выше фона */
    position: relative;
}

.home-subtitle {
    font-size: 1.25rem;
    margin-right: 20px;
    flex: 1;
    color: white; /* Белый цвет подзаголовка */
}

/* Кнопка */
.home-btn-wrapper {
    display: flex;
    align-items: center;
    height: 36px;
}

.home-btn-link {
    text-decoration: none;
    color: #000; /* Чёрный цвет текста на кнопке */
    background-color: #ccff00; /* Яркий цвет кнопки */
    border-radius: 50px;
    display: inline-block;
    font-size: 16px;
    transition: background-color 0.3s;
    padding: 10px 30px;
    text-align: center;
    z-index: 2; /* Устанавливаем z-index выше фона */
    position: relative;
}

.home-btn-link:hover {
    background-color: #b3e600; /* Цвет кнопки при наведении */
}

/* Иконка */
.home-icon img {
    height: 46px;
    
}
img.img-fluid {
  max-width: 46px;
  height: auto;
}

/* Мобильные стили */
@media (max-width: 767.98px) {
    .home-hero {
        height: 100vh;
        padding: 20px;
    }

    .home-content {
        text-align: center;
        margin-bottom: 30px;
    }

    .home-title {
        font-size: 2.5rem;
        color: white;
    }

    .home-subcontent {
        flex-direction: column;
        text-align: center;
    }

    .home-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .home-btn-link {
        font-size: 1rem;
        padding: 10px 20px;
    }
}



/* Основные стили для секции */
        .custom-section {
            padding: 40px 0;
            
        }

        /* Высота карточек */
        .custom-left-card, .custom-right-card {
            height: 100%;
            min-height: 400px; /* Минимальная высота карточек */
        }

        /* Левая карточка */
        .custom-left-card {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            margin-right: 0px; /* Отступ между карточками */
            display: flex;
        }
         /* Градиент для затемнения нижней части изображения */
        .custom-left-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0) 70%);
            border-radius: 15px; /* Закругляем, чтобы соответствовало изображению */
        }

        .custom-left-card img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Подгоняем изображение по высоте */
            border-radius: 15px;
        }

        .custom-left-card .card-content {
            position: absolute;
            bottom: 20px;
            left: 20px;
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
             z-index: 1; 
        }

        /* Правая карточка */
        .custom-right-card {
            background-color: #1a1a1a;
            border-radius: 15px;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 30px;
        }

        .custom-right-card .icon {
            display: flex;
            justify-content: flex-end;
        }

       

        .custom-right-card .experience-item {
            margin-bottom: 20px;
        }

        .custom-right-card .experience-item .number {
            font-size: 3.5rem;
            font-weight: bold;
            color:#fff;
        }

        .custom-right-card .experience-item .description {
            color: #b5b5b5;
        }

       /* Медиазапросы для мобильных устройств */
        @media (max-width: 768px) {
            .custom-left-card, .custom-right-card {
                min-height: 300px; /* Уменьшаем минимальную высоту на мобильных устройствах */
            }

            .custom-left-card img {
                height: auto; /* Подгоняем изображение для мобильных */
            }

            .custom-left-card .card-content {
                font-size: 1.2rem;
            }

            

            

           
              .custom-right-card {
               
                margin-top: 10px;
              }
}

.tp-contact-inner {
  background-color: #000; /* Чёрный фон формы */
  color: #fff; /* Белый текст */
  border-radius: 12px; /* Закруглённые углы */
  padding: 30px;
}

/* Заголовок контактной формы */
.tp-contact-title {
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 35px;
  color: #fff;
}

/* Поля ввода формы */
.contact-form-input {
  background-color: #000; /* Чёрный фон полей */
  color: #fff; /* Белый текст */
  border: 1px solid #fff; /* Белый контур */
  border-radius: 8px;
  padding: 10px;
  width: 100%; /* Полная ширина */
}

.contact-form-input::placeholder {
  color: #ccc; /* Цвет плейсхолдера */
}

.contact-form-input:focus {
  border-color: #fff; /* Контур остаётся белым при фокусе */
  color: #fff; /* Белый текст при вводе */
  outline: none; /* Убираем стандартное выделение */
}

/* Кнопка отправки формы */
.contact-button {
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  display: block;
  width: 100%; /* Полная ширина кнопки */
}

.contact-button:hover {
  background-color: #218838;
}

/* Перекрытие дефолтных стилей для кнопки */
.contact-form .contact-button {
  background-color: #ccff00;
  color: #000;
  font-size: 16px;
  padding: 9px 30px;
  display: inline-block;
}

/* Чекбоксы */
.form-check-input {
  background-color: #000;
  border-color: #fff;
}

.form-check-label {
  color: #fff;
}

/* Поля формы с конкретными типами ввода */
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="url"],
textarea {
  background-color: #000; /* Чёрный фон */
  border: 1px solid #fff; /* Белый контур */
  color: #fff; /* Белый текст */
  font-size: 14px;
  height: 36px;
  line-height: 26px;
  outline: none;
  padding-left: 26px;
  padding-right: 26px;
  width: 100%; /* Полная ширина */
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: #fff; /* Оставляем белый контур при фокусе */
  color: #fff; /* Белый текст при фокусе */
}

/* Обёртка контактной формы */
.tp-contact-wrapper {
  margin-right: 0;
}

/* Применение для col-lg-8 только внутри .tp-contact-inner */
.tp-contact-inner .col-lg-8 {
  flex: 0 0 auto;
  width: 100%;
}

/* Адаптация для мобильных устройств */
@media (max-width: 576px) {
  .container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* Глобальное перекрытие цвета для .tp-contact-inner и контактных полей */
.contact-form-input, .tp-contact-inner {
  background-color: #000 !important;
  color: #fff;
}


.tp-subscribe-input .form-control {
        height: 60px; /* Задайте желаемую высоту */
        
    }
.tp-subscribe-input .form-control:focus {
  background-color: #000 !important;
  border-color: #fff; /* Контур остаётся белым при фокусе */
  color: #fff; /* Белый текст при вводе */
  outline: none; /* Убираем стандартное выделение */
}


.carbon-section {
        background-color: #003e67;
        position: relative;
        overflow: hidden;
    }
    
 .carbon-section::before {
        content: 'CARBON';
        position: absolute;
        top: 20%;
        left: 40%;
        font-size: 10rem;
        color: rgb(253, 253, 11); /* Тонкий жёлтый цвет */
        font-weight: 100;
        text-transform: uppercase;
        z-index: 0;
    }
    

 
 .custom-image {
    height: 400px;
    width: auto; /* Сохраняет пропорции изображения */
}
   
 /* Медиазапросы для мобильных устройств */
        @media (max-width: 768px) {
             .carbon-section::before {
        content: 'CARBON';
        position: absolute;
        top: 40%;
        left: 0%;
        font-size: 7rem;
        color: rgb(253, 253, 11); /* Тонкий жёлтый цвет */
        font-weight: 100;
        text-transform: uppercase;
        z-index: 0;
    }
            
            }
       
 
    
    .carbon-section .row {
        position: relative;
        z-index: 1; /* Основной контент остаётся поверх фонового текста */
    }
.custom-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

.custom-description {
    color: white;
    font-size: 1.25rem;
    line-height: 1.6;
}

.custom-link .custom-button {
    background-color: #6c757d;
    border: none;
    color: white;
}

.custom-stat-number {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.custom-stat-description {
    color: #ced4da; /* Серый цвет для описания статистики */
    font-size: 1rem;
}