.btn-dark {
    background-color: transparent;
    font-size: 1rem;
    color: #e2e2e2;
    padding: 0.5rem 1.2rem;
    border: 0.5px solid #f0a202;
    border-radius: 25px;
}

.btn-dark:hover {
    background-color: #f93b54;
}

.btn-dark:active {
    background: none;
}

.text-nav {
    color: #e2e2e2;
    transition: 0.3s;
}

.text-nav:hover {
    color: #f93b54;
}

.btn-primary {
    color: #e2e2e2;
    font-size: 1rem;
    background-color: #f93b54;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #f93b54;
    transform: scale(1.1);
}

.btn-primary:active,
.btn-primary.active {
    background-color: #ff4757 !important;
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 71, 87, 0.5) !important;
    transform: translateY(2px);
}

.card {
    border: none;
    max-width: 300px; /* Ширина карточки */
    max-height: 380px; /* Высота карточки */
    overflow: hidden; /* Обрезаем всё за пределами карточки */
    position: relative; /* Для позиционирования внутреннего контейнера */
    transition: 0.3s;
}

.card:hover {
    border: solid 1px #f0a202;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(22, 22, 22, 1);
}

#myCarousel {
    margin-top: -100px; /* Высота навбара + дополнительный отступ */
    position: relative;
    background-color: rgba(22, 22, 22, 0.8);
    z-index: 1020; /* Меньше чем у хэдера */
}

.hero {
    height: 100vh; /* Занимает всю высоту экрана */
    overflow: hidden; /* Обрезает выходящие за пределы части */
    position: relative;
}

.hero-content {
    /* background-color: rgba(22, 22, 22, 0.8); */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 3;
    border-radius: 2rem;
}

.btn-hero {
    padding: 20px 40px;
    font-size: 1rem;
}

.carousel-item {
    height: 100vh;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохраняет пропорции и заполняет область */
    object-position: center;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    z-index: 10;
}

/* Фикс для затемнения изображения */
.carousel-image-wrapper {
    position: relative;
    height: 100%;
}

.carousel-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Кастомизация форм */

.form-control {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #e2e2e2;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #f0a202;
    box-shadow: none;
    color: #e2e2e2;
    font-weight: 200;
    background: transparent;
}


.form-control::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f0a202; /* Цвет линии */
    transition: width 0.6s ease;
}

.form-control::placeholder {
    color: #e2e2e2;
    font-weight: 200;
}

/* Эффект при фокусе или наведении */
.form-control:hover::after,
.form-control:focus::after {
    width: 100%;
}

.btn-form {
    position: relative;
    /* padding: 12px 30px; */
    border: none;
    color: #e2e2e2;
    font-weight: 500;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-form::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #f0a202;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn-form:hover {
    background: none;
    color: #fff;
}

.btn-form:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Дополнительные эффекты при фокусе */
.btn-form:focus {
    box-shadow: none;
    background: none;
}

.btn-form:focus::after {
    transform: scaleX(1);
}


.modal-content {
    background-color: rgba(22, 22, 22, 0.9);
    color: #e2e2e2;
}

.modal-header {
    border: none;
    border-bottom: solid 1px #f93b54;
}

.custom {
    font-size: 1.2rem;
    font-weight: 300;
}

.btn-close {
    filter: invert(26%) sepia(89%) saturate(1583%) hue-rotate(346deg) brightness(99%) contrast(91%);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

    .carousel-caption {
        padding: 15px;
        bottom: 20px;
        transform: none;
    }
    .hero-content {
        position: absolute;
        top: 40%;
        font-size: 0.6rem;
    }

    .btn-hero {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}
