@import url(../fonts/gilroy/stylesheet.css);
@import url(../fonts/helveticaneue/stylesheet.css);

/* Определите переменные CSS для темы */
:root {
    --background-light: #FFFFFF;
    --text-color-light: #000;
    --background-dark: #1e1e1e;
    --text-color-dark: #fff;
    --scrollbar-width: 9px;
}

/* Стили для темной темы */
.dark-theme {
    --background-color: var(--background-dark);
    --text-color: var(--text-color-dark);
}

/* Меняем цвета меню */

/* Общие стили для темной темы */
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

/* Стили для навбара в темной теме при открытом offcanvas */
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .navbar__default {
    background-color: var(--background-light);
    color: var(--text-color-light);
}

body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .navbar__logo svg path {
    fill: var(--text-color-light);
}

body.dark-theme .navbar__logo.invert__true {
    filter: invert(0);
}

body.dark-theme .navbar__toggler.invert__true {
    filter: invert(0);
}

body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .navbar__switcher {
    background-color: var(--text-color-light);
}

/* Стили для offcanvas в темной теме при открытом offcanvas */
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu {
    background-color: var(--background-light);
    color: var(--text-color-light);
}

.offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu-social{
    display: flex; align-items: center; column-gap: 24px;
}

body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu-header,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu-social a,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu-contacts {
    color: var(--text-color-light);
}

body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu-img img,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__cases-img,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__blog-img {
    border-color: var(--background-light);
}

body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__another {
    background-color: var(--background-light);
    color: var(--text-color-light);
}

body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__another-header,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__another-item {
    color: var(--text-color-light);
}

/* Стили для svg иконок при открытом offcanvas */
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .btn-close svg circle,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .btn-close svg path,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .open__modal svg rect,
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .open__modal svg ellipse {
    stroke: var(--text-color-light);
    fill: var(--text-color-light);
}

/* Стили для container в темной теме при открытом offcanvas */
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .container {
    background-color: var(--background-light);
    color: var(--text-color-light);
}

/* Стили для элементов при наведении */
body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu-item:hover {
    background-color: var(--background-dark);
    color: var(--text-color-dark);
}

body.dark-theme .offcanvas.offcanvas-end.navbar__offcanvas.show .offcanvas__menu-item:hover .offcanvas__menu-header {
    color: var(--text-color-dark);
}


/* Дефолтные стили для последних трех элементов */
body.dark-theme .offcanvas__menu-item .offcanvas__menu-header {
    background-color: #FFFFFF; /* --background-light */
    color: #000; /* --text-color-light */
}

body.dark-theme .offcanvas__menu-item .offcanvas__menu-header a {
    color: #000; /* --text-color-light */
}

/* Ховер эффекты для последних трех элементов */
body.dark-theme .offcanvas__menu-item:hover .offcanvas__menu-header {
    background-color: var(--background-dark); /* --background-dark */
    color: #fff; /* --text-color-dark */
}

body.dark-theme .offcanvas__menu-item:hover .offcanvas__menu-header a {
    color: #fff; /* --text-color-dark */
}

/* Дефолтные стили для последнего элемента */
body.dark-theme .offcanvas__menu-contacts .offcanvas__menu-adress {
    background-color: #FFFFFF; /* --background-light */
    color: #000; /* --text-color-light */
}

/* Ховер эффекты для последнего элемента */
body.dark-theme .offcanvas__menu-contacts:hover .offcanvas__menu-adress {
    background-color: var(--background-dark); /* --background-dark */
    color: #fff; /* --text-color-dark */
}

/* Ховер эффекты для родительского блока, которые влияют на ссылки */
body.dark-theme .offcanvas__menu-contacts:hover .offcanvas__menu-soclinc {
    color: #fff !important; /* Цвет текста при наведении на родительский блок */
}

/* Попап делаем светлым */
.dark-theme .offcanvas-body {
    background-color: var(--background-light);
    color: var(--text-color-light);
}

body.dark-theme .modal__close svg {
    color: black; /* Белый цвет для темной темы */
}

body.dark-theme .modal__close svg circle,
body.dark-theme .modal__close svg path {
    stroke: currentColor; /* Использует значение цвета из свойства color */
}

/* Стили для полей формы в темной теме */
body.dark-theme .offcanvas-body .modal__form-input {
    border: none;
    border-bottom: 1px solid #FFFFFF; /* Белый цвет для границы в темной теме */
    background: var(--background-light);
    color: #FFFFFF; /* Белый цвет для текста в темной теме */
    margin-bottom: 20px;
    padding: 10px 5px;
}

.dark-theme .modal_form-input {
    color: var(--text-color-light);
    background-color: var(--background-light);
    border-bottom: 1px solid black;
}

/* Стили для кнопки в темной теме */
.dark-theme .modal__form-send {
    width: fit-content;
    border-radius: 15px;
    background-color: var(--background-dark);
    color: var(--text-color-dark);
    padding: var(--button-padding);
    border: none;
    outline: none;
    font-size: var(--button-font-size);
}

.dark-theme .modal_form-send:hover {
    background-color: var(--text-color-light);
    color: var(--background-light);
}

.dark-theme * {
    --background-color: var(--background-dark);
    --text-color: var(--text-color-dark);
}

body {
    background-color: var(--background-color, var(--background-light));
    /* Значение по умолчанию - светлое */
    color: var(--text-color, var(--text-color-light));
    /* Значение по умолчанию - светлое */
    font-family: Gilroy;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 35.16px */
    padding-bottom: 200px;
}

body::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

body::-webkit-scrollbar-track {
    background: #E6E6E6;
    /* цвет зоны отслеживания */
}

body::-webkit-scrollbar-thumb {
    background-color: #000;
    /* цвет бегунка */
    border-radius: 20px;
    /* округлось бегунка */
    border: 3px solid #000;
    /* отступ вокруг бегунка */
}

.overflow-auto {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-pills .nav-item {
    display: inline-block; /* Сделаем элементы табов строчными */
}

.follow-cursor {
    display: block;
    width: 15px;
    height: 15px;
    background: rgba(83, 146, 0, 0.5);
    border-radius: 50%;
    transform: translateY(-50%) translateX(-50%);
    /* центрируем кружок */
    position: absolute;
    /* задаём абсолютное позиционирование, чтобы элемент не влиял на остальные элементы и его можно было бы позиционировать следом за курсором */
    z-index: 9999;
    /* чтобы элемент был над остальными элементами */
    pointer-events: none;
    /* чтобы сквозь элемент можно было взаимодействовать с элементами, находящимися под ним */
    transition: all 0.2s ease-out;
}

/* Активный класс для кружка при наведении на ссылку */
.follow-cursor_active {
    height: 80px;
    width: 80px;
    border-width: 2px;
    background: rgba(83, 146, 0, 0.5);
    animation: bubble 0.7s ease 0s 1 normal forwards;
}

@keyframes bubble {
    0% {
        transform: translateY(-50%) translateX(-50%) scale3d(1, 1, 1);
    }

    30% {
        transform: translateY(-50%) translateX(-50%) scale3d(1.25, 0.75, 1);
    }

    40% {
        transform: translateY(-50%) translateX(-50%) scale3d(0.75, 1.25, 1);
    }

    50% {
        transform: translateY(-50%) translateX(-50%) scale3d(1.15, 0.85, 1);
    }

    65% {
        transform: translateY(-50%) translateX(-50%) scale3d(0.95, 1.05, 1);
    }

    75% {
        transform: translateY(-50%) translateX(-50%) scale3d(1.05, 0.95, 1);
    }

    100% {
        transform: translateY(-50%) translateX(-50%) scale3d(1, 1, 1);
    }
}

/* Скрываем декоративный элемент при ширине браузера меньше 992px */
@media (max-width: 991.98px) {
    .follow-cursor {
        display: none;
    }
}

.navbar__background {
    background-color: #fff;
    /* Замените на ваш желаемый цвет фона */
    transition: background-color 0.3s ease;
    /* Добавляем плавный переход */
}

.dark-theme .navbar__background {
    background-color: var(--background-dark);
    /* Замените на ваш желаемый цвет фона */
}

h1 {
    font-size: var(--header-size);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 55.2px */
}

h2 {
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 43.2px */
}

h3 {
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    /* 31.2px */
}

p {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 26.37px */
}

img {
    max-width: 100%;
}

header .bg-body-tertiary {
    background-color: unset !important;
}

main {
    margin-top: 30px;
    position: relative;
}

.welcome {
    height: 640px;
    filter: grayscale(1);
}

.main__plus-icon {
    position: absolute;
    top: 0;
    filter: invert(1);
}

.dark-theme .main__plus-icon {
    filter: invert(0);
}

.short {
    margin-right: 170px;
    margin-bottom: 122px;
}

.button {
    text-decoration: none;
    border-radius: 15px;
    color: #fff;
    background: #000;
    padding: 15px 55px;
    font-size: 20px;
    text-align: center;
    font-weight: 500;
    border: 2px solid var(--background-dark);
}

.button:hover {
    background-color: var(--background-light);
    color: var(--text-color-light);
    border: 2px solid var(--background-dark);
}

.dark-theme .button {
    background-color: var(--background-light);
    color: var(--text-color-light);
    border: 2px solid var(--background-light);
}

.dark-theme .button:hover {
    background-color: var(--background-dark);
    color: var(--text-color-dark);
    border: 2px solid var(--background-light);
}

.dark-theme .navbar__toggler,
.dark-theme .navbar__logo,
.dark-theme .navbar__languages {
    filter: invert(1);
    color: var(--text-color-light);
}