:root {
    --uae-dark: rgb(33, 37, 41);
    --uae-dark-hover: rgb(44, 49, 54);
    --uae-green: #7F9A14;
    --uae-text-light: #fcfbfb;

    --brand-green: rgb(201, 235, 37);
    --brand-green-light: rgb(230, 245, 180);
    --brand-green-dark: rgb(161, 188, 30);
    --brand-grey-dark: rgb(74, 74, 74);
    --brand-grey: rgb(107, 114, 128);
    --brand-grey-light: rgb(243, 244, 246);
}

.hero-section {
    background: var(--hero-background-image) center/cover no-repeat;
    color: var(--brand-grey-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: .75rem;
}

.card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.navbar {
    min-height: 126px;
}

.nav-link {
    font-size: 1.2rem;
}

/* Убираем отступ у body из-за fixed navbar */
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    /* padding-top: 154px; */
}

.nav-link {
    color: var(--brand-grey-dark);
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--brand-grey);
}

/* Увеличиваем расстояние между пунктами меню */
/*.navbar-nav .nav-link {*/
/*    padding-left: 1.1rem !important;*/
/*    padding-right: 1.1rem !important;*/
/*}*/

.btn-miran {
    background-color: var(--brand-green);
    color: var(--brand-grey-dark);
    border: 2px solid var(--brand-green);
    font-weight: 600;
    text-decoration: none;
}

/*.btn-miran-contact {*/
/*    background-color: var(--brand-green);*/
/*    color: var(--brand-grey-dark);*/
/*    border: none;*/
/*}*/

/*.btn-miran-contact:hover,*/
/*.btn-miran-contact:focus,*/
/*.btn-miran-contact:active:focus,*/
/*.btn-miran-contact.active:focus {*/
/*    box-shadow: none !important;*/
/*    outline: none !important;*/
/*    !*background-color: rgba(161, 188, 30, 0.8) !important;*!*/
/*    background-color: rgb(139, 162, 26) !important;*/
/*    color: var(--brand-grey-dark) !important;*/
/*}*/

.btn-miran:hover,
.btn-miran:focus,
.btn-miran:active:focus,
.btn-miran.active:focus {
    box-shadow: none !important;
    outline: none !important;
    background-color: var(--brand-green-dark);
    color: var(--brand-grey-dark);
    border-color: var(--brand-green-dark);
}

.hero-lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-text {
    font-weight: 500;
    color: var(--brand-grey-light);
}

.carousel-control-prev,
.carousel-control-next {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon {
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C9EB25'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");*/
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E6F5B4'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");*/
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A1BC1E'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-size: 64px 64px;
    background-repeat: no-repeat;
}

.carousel-control-next-icon {
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C9EB25'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");*/
    /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E6F5B4'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");*/
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A1BC1E'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 64px 64px;
    background-repeat: no-repeat;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    /*opacity: 1;*/
}

#products .card:hover {
    transform: none;
}

#products {
    /*background-color: rgba(127, 154, 20, 0.09) !important;*/
    background-color: rgba(230, 245, 180, 0.5) !important;
    color: var(--brand-grey-dark);
}


#about {
    background-color: rgba(213, 226, 175, 0.09);
}

.about-title {
    font-weight: 500 !important;
}

.bg-uae {
    background-color: var(--brand-green);
}

.text-white {
    color: var(--brand-grey) !important;
}

#advantages {
    color: var(--brand-grey-dark);
}

#contacts {
    color: var(--brand-grey-light);
    background-color: var(--brand-grey);
}

.miran-icon {
    color: var(--brand-grey-light);
}

.address-border-top {
    border-top: 1px solid var(--brand-grey-light) !important;
    /*color: var(--brand-grey-light) !important;*/
}

.footer {
    background-color: var(--brand-grey-dark);
    color: var(--brand-grey-light);
}

.text-primary {
    color: var(--brand-green-dark) !important;
}

/* Адаптивность карточек */
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        text-align: center;
    }

    body {
        /* padding-top: 80px; */
    }
}

/* Стили для анимации выдвижения */
.about-us-section .row>* {
    transition: transform 1s ease-out, opacity 1s ease-out;
    opacity: 0;

    color: var(--brand-grey-dark);
    font-weight: 500;
}

.about-us-section .slide-in-left {
    transform: translateX(-100%);
}

.about-us-section .slide-in-right {
    transform: translateX(100%);
}

.about-us-section.visible .row>* {
    transform: translateX(0);
    opacity: 1;
}

#about .row {
    overflow-x: hidden;
}

.header-color {
    /* background-image: linear-gradient(to right, #f8f9fa, #495057); */
    /* border: none; */
    background-color: var(--brand-grey-light);
    border-bottom: 1px solid var(--brand-grey);
}

.back-to-up {
    color: var(--brand-grey-dark);
    background-color: var(--brand-green);
    text-decoration: none;
    border: none;
}

.back-to-up:hover {
    /*background-color: rgba(161, 188, 30, 0.8);*/
    background-color: rgb(139, 162, 26) !important;

}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;

    /* Скрываем кнопку по умолчанию */
    opacity: 0;
    visibility: hidden;

    /* Анимация появления/исчезновения */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

    /* Делаем кнопку круглой и центрируем иконку */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 576px) {
    #backToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        bottom: 15px;
        right: 15px;
    }
}

#productsCarousel .carousel-indicators button {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    /*border: 2px solid var(--uae-dark);*/
    border: 2px solid var(--brand-grey-dark);
    background-color: transparent;    /* Неактивный индикатор - прозрачный */
    opacity: 0.75;    /* Сделаем неактивные чуть бледнее */
}

/* Стиль для АКТИВНОГО индикатора */
#productsCarousel .carousel-indicators .active {
    background-color: var(--brand-grey-dark);
    opacity: 1;
}