.navbar {
    height: 87px;
}

.navbar__toggler {
    border: none;
    padding: 0;
    position: relative;
    z-index: 1046;
}

.navbar__toggler:focus {
    box-shadow: none;
}

.navbar__toggler.invert__true {
    filter: invert(1);
}

.navbar__toggler .navbar__toggler-center {
    transition: 0.3s;
}

.navbar__toggler:hover .navbar__toggler-center {
    x: 0;
    width: 61px;
}

.navbar__logo {
    position: relative;
    z-index: 1046;
}

.navbar__logo.invert__true {
    filter: invert(1);
}

.navbar__languages {
    color: #000;
    font-size: var(--mid-font-size);
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 26.37px */
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.navbar__languages-separator {
    width: 1px;
    height: 36px;
    background-color: var(--background-dark);
    display: inline-block;
    margin: 0 12px;
}

.dark-theme .navbar__languages-separator {
    background-color: var(--background-dark);
}

.navbar__center {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 40px;
}

.offcanvas__menu {
    margin-top: 97px;
    width: 100%;
    border-top: 1px solid #c7c7c730;
    border-bottom: 1px solid #C7C7C730;
    position: relative;
}


.main__plus-icon .open__modal #vector_1 {
    stroke: #e6e6e6;
    filter: invert(1);
}

.dark-theme .main__plus-icon .open__modal #vector_1 {
    stroke: #fff;
    filter: invert(0);
}

.offcanvas__menu a {
    text-decoration: none;
    color: #fff;
}

.offcanvas__menu::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    background: #C7C7C730;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.offcanvas__menu-item {
    padding: 27px 32px;
    border-left: 1px solid #c7c7c730;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;
}

.offcanvas__menu-item:nth-child(4n) {
    border-right: 1px solid #c7c7c730;
}

.offcanvas__menu-item:hover {
    background: #fff;
}

.offcanvas__menu-item:hover .offcanvas__menu-header, .offcanvas__menu .offcanvas__menu-item:hover a {
    color: #000;
}

.offcanvas__menu-header {
    color: #FFF;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    /* 43.2px */
}

.offcanvas__menu-img {
    width: 85%;
    height: 170px;
    border-radius: 10px;
}

.offcanvas__cases-img {
    object-fit: cover;
    border-radius: 5px;
}

.offcanvas__blog-img {
    object-fit: cover;
    border-radius: 5px;
    width: 100%;
    height: 100%;
}

.offcanvas__menu-adress {
    color: #FFF;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    /* 31.2px */
}

.offcanvas__menu-soclinc {
    display: block;
    margin-top: 20px;
    color: #FFF;
    /* Desktop/H3 */
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    /* 31.2px */
    text-decoration: none;
}

.offcanvas__menu-item:hover .offcanvas__menu-soclinc,
.offcanvas__menu-item:hover .offcanvas__menu-adress {
    color: #000;
}

.offcanvas__another {
    margin-top: 27px;
}

.offcanvas__another-col {
    padding: 0 32px;
}

.offcanvas__another-header {
    color: #FFF;
    /* Desktop/H3 */
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    /* 31.2px */
}

a.offcanvas__another-header {
    text-decoration: none;
}

.offcanvas__another-services {
    margin-top: 8px;
    color: #a7a7a7;
}

.offcanvas__another-item {
    color: #a7a7a7;
    /* Desktop/text */
    font-size: var(--mid-font-size);
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 26.37px */
    text-decoration: none;
}

.form-switch .form-check-input.navbar__switcher {
    width: 35px;
    height: 18px;
    background-color: #0000;
    border-color: #fff;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"><rect width="14" height="14" rx="7" fill="white"/></svg>');
    background-size: 14px;
    filter: invert(1);
    background-position: 2px;
    cursor: pointer;
}

.form-switch .form-check-input.navbar__switcher:checked {
    background-color: #000;
    border-color: #000;
    background-position-x: calc(100% - 2px);
    filter: invert(0);
}

.form-switch .form-check-input:focus {
    box-shadow: none;
}

.offcanvas.offcanvas-end.navbar__offcanvas {
    background: #242424;
    width: 100%;
    color: #fff;
    overflow-y: auto;
}

.carousel {
    height: 100vh;
    padding-top: 87px;
    background-color: #fff;
}

.dark-theme .carousel {
    background-color: #1F1E1F;
}

.carousel__video {
    margin-top: 0px;
}

.carousel__inner {
    position: relative;
}

.carousel__inner,
.carousel__item {
    height: 100%;
}

.carousel__header {
    margin-top: var(--big-margin-top);
    font-size: var(--header-size);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 55.2px */
}

.carousel__subheader {
    margin-top: var(--extra-margin-top);
    color: #1E1E1E;
    /* Desktop/H2 */
    font-size: var(--subheader-size);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    /* 48px */
    display: flex;
    justify-content: space-between;
}

.carousel__subheader-title {
    flex-shrink: 1;
}

.carousel__subheader-plus {
    width: fit-content;
}

.carousel__text {
    margin-top: 32px;
    color: #1E1E1E;
    /* Desktop/text */
    font-size: var(--mid-font-size);
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 26.37px */
    opacity: 0.8;
}

.dark-theme .carousel__subheader,
.dark-theme .carousel__text {
    color: var(--text-color-dark);
}

.carousel__item {
    display: none;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s, transform 0.5s;
}

.carousel__item.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Анимируйте каждый элемент слайдера отдельно с задержкой */
.carousel-item.active .carousel__header,
.carousel-item.active .carousel__subheader,
.carousel-item.active .carousel__text {
    animation: slide-up 0.5s ease forwards;
}

/* Задержки для последовательного появления */
.carousel-item.active .carousel__header {
    animation-delay: 0.1s;
}

.carousel-item.active .carousel__subheader {
    animation-delay: 0.3s;
}

.carousel-item.active .carousel__text {
    animation-delay: 0.5s;
}

.padding__offset-1 {
    padding-left: var(--offset-1);
}

.padding__offset-2 {
    padding-left: var(--offset-2);
}

/* Определение анимаций */
@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carousel__controls {
    position: absolute;
    bottom: 60px;
    width: 100%;
    z-index: 1;
}

.carousel__arrow {
    cursor: pointer;
}

.dark-theme .carousel__arrow {
    filter: invert(1);
}

.carousel__arrow-prev {
    cursor: pointer;
}

.carousel__arrow-next {
    margin-left: 9px;
    cursor: pointer;
}

.carousel__counter {
    margin-left: 23px;
    margin-right: 11px;
    color: #848484;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 26.37px */
}

.carousel__counter-current {
    color: #000;
    min-width: 22px;
}

.dark-theme .carousel__counter-current {
    color: #fff;
}

.carousel__counter-spliter {
    margin: 0 8px;
}

.carousel__progressbar {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: #DEDEDE;
}

.carousel__progress {
    position: absolute;
    width: 0;
    height: 100%;
    background-color: black;
    transition: width 0.1s linear;
}

.dark-theme .carousel__progress {
    background-color: #fff;
}

.carousel-item.active .carousel__progress {
    width: 100%;
}


.upper-h2 {
    font-size: var(--header-size);
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 55.2px */
    margin-bottom: 57px;
}

.howitworks {
    margin-bottom: 206px;
    width: 100%;
    height: 564px;
    border-radius: 10px;
    overflow: hidden;
}

.howitworks__element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.howitworks__video {
    object-fit: cover;
    background-color: #BCB1AD;
}

.howitworks__button {
    margin-top: 30px;
    display: block;
    width: fit-content;
}

.model {
    margin-bottom: 180px;
    display: flex;
}

.model__image {
    height: 580px;
    border-radius: 20px;
    overflow: hidden;
}

.model__image-long {
    height: 766px;
    border-radius: 20px;
    overflow: hidden;
    background: #EBF2EC;
}

.model__image-mini {
    width: 80px;
    height: 105px;
    background-color: #EBF2EC;
    margin-left: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.nav-pills .model__image-mini.active,
.nav-pills .show>.model__image-mini {
    background-color: #EBF2EC;
}

.model__header {
    font-size: var(--subheader-size);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.model__carousel-nav {
    flex-direction: column;
}

.model__desc-text {
    margin-top: 20px;
    margin-bottom: 40px;
}

.examples__item {
    margin-bottom: 170px;
    justify-content: flex-end;
    align-items: flex-end;
}

.examples__item:nth-of-type(3n - 2) .examples__item-wrapper {
    margin-right: 0px;
    margin-left: -5px;
}

.examples__item:nth-of-type(3n - 1) .examples__item-wrapper {
    margin-left: 160px;
    margin-right: -50px;
}

.examples__item:nth-of-type(3n) .examples__item-wrapper {
    margin-left: 200px;
}

.examples__item:nth-of-type(6n - 2) .examples__item-wrapper {
    margin-right: 200px;
}

.examples__item:nth-of-type(6n - 1) .examples__item-wrapper {
    margin-left: -50px;
    margin-right: 160px;
}

.examples__item:nth-of-type(6n) .examples__item-wrapper {
    margin-right: 0;
    margin-left: 0;
}

a.examples__item-wrapper {
    text-decoration: none;
    align-items: flex-end;
}

.examples__item-image {
    margin-bottom: 12px;
    height: 350px;
    display: flex;
    align-items: flex-end;
}

a.examples__item-wrapper:hover .examples__item-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

a.examples__item-wrapper:hover .examples__item-image::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    content: '';
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(6.5px);
    transition: 0.2s;
}

.dark-theme a.examples__item-wrapper .examples__item-name {
    color: var(--text-color-dark);
}

a.examples__item-wrapper .examples__item-name {
    color: var(--text-color-light);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}


.examples__item-img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.examples__item:nth-of-type(3n - 2) .examples__item-img,
.examples__item:nth-of-type(3n - 2) a.examples__item-wrapper:hover .examples__item-image::after {
    height: 100%;
}

.examples__item:nth-of-type(3n - 1) .examples__item-img,
.examples__item:nth-of-type(3n - 1) a.examples__item-wrapper:hover .examples__item-image::after {
    height: 80%;
}

.examples__item:nth-of-type(3n) .examples__item-img,
.examples__item:nth-of-type(3n) a.examples__item-wrapper:hover .examples__item-image::after {
    height: 60%;
}

.examples__item:nth-of-type(6n - 2) .examples__item-img,
.examples__item:nth-of-type(6n - 2) a.examples__item-wrapper:hover .examples__item-image::after {
    height: 60%;
}

.examples__item:nth-of-type(6n - 1) .examples__item-img,
.examples__item:nth-of-type(6n - 1) a.examples__item-wrapper:hover .examples__item-image::after {
    height: 80%;
}

.examples__item:nth-of-type(6n) .examples__item-img,
.examples__item:nth-of-type(6n) a.examples__item-wrapper:hover .examples__item-image::after {
    height: 100%;
}

.projects-item-picture {
    overflow: hidden;
    height: 422px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.projects__item-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.projects__item-name {
    margin-bottom: 30px;
    font-size: var(--subheader-size);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    /* 48px */
}

.projects__item-text {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 26.37px */
}

.services__item {
    margin-bottom: 70px;
}

.services-item-picture {
    overflow: hidden;
    height: 345px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.services__item-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.services__item-name {
    margin-bottom: 15px;
    font-size: var(--subheader-size);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    /* 48px */
    /* 48px */
}

.services__item-text {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 146.5%;
    /* 26.37px */
}

.caces .examples__item-img {
    border-radius: 10px;
}

.caces a.examples__item-wrapper:hover .examples__item-image::after {
    border-radius: 10px;
}

.caces .nav-pills .nav-link {
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    padding: 15px 30px;
    color: var(--text-color-light);
    background-color: var(--background-light);
    border-radius: 95px;
    border: 1px solid #D9D9D9;
    margin-right: 10px;
}

.dark-theme .caces .nav-pills .nav-link {
    color: var(--text-color-dark);
    background-color: var(--background-dark);
}

.caces .nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: var(--text-color-dark);
    background-color: var(--background-dark);
}

.dark-theme .caces .nav-pills .nav-link.active,
.dark-theme .nav-pills .show>.nav-link {
    color: var(--text-color-light);
    background-color: var(--background-light);
}

.caces {
    padding-top: 137px;
}

.caces__main-pills {
    margin-top: 48px;
}

.caces__add-pills {
    margin-bottom: 60px;
}

.period {
    margin-top: 30px;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    /* 31.2px */
    opacity: 0.6;
}

.short__desc {
    margin-top: 255px;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    /* 31.2px */
    opacity: 0.7;
}

.short__desc p {
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

.story {
    margin-top: var(--extra-margin-top);
}

.story__item {
    border-radius: 20px;
    border: 1px solid #E6E6E6;
    padding: 62px 29px;
    height: 580px;
}

.story__right {
    background-color: #E6E6E6;
}

.story__item-text {
    font-size: 24px;
    margin-top: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    /* 31.2px */
    opacity: 0.7;
}

.story__item-text p {
    font-size: 24px;
    margin-top: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

.story__photos {
    margin-top: 220px;
    border-radius: 20px;
    overflow: hidden;
}

.story__photos img {
    object-fit: cover;
    border-radius: 20px;
    height: 580px;
    width: 100%;
}

.story__photos:nth-child(2n) {
    transform: translateY(75%);
}

.bigpicture {
    height: 900px;
}

.fullwidth-outer {
    width: calc(100vw - var(--scrollbar-width) + 4px);
    /* занимает 100% ширины окна браузера */
    position: relative;
    /* чтобы .fullwidth мог быть позиционирован относительно этого */
    left: 50%;
    /* перемещает .fullwidth обратно на 50% ширины */
    right: 50%;
    /* границы на 50% ширины */
    margin-left: -50vw;
    /* компенсирует left: 50% */
    margin-right: -50vw;
    /* компенсирует right: 50% */
    padding: 0;
    box-sizing: border-box;
    margin-top: 150px;
}

.fullwidth {
    width: 100%;
    /* растягиваем на всю доступную ширину внутри fullwidth-outer */
    position: relative;
    /* позиционируем элемент относительно fullwidth-outer */
}


.gray-section {
    background-color: #FBFBFB;
    padding: 155px 0;
}

.grayitem {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grayimg {
    object-fit: cover;
    border-radius: 20px;
}

.grayitem:nth-child(1) .grayimg {
    width: 384px;
    height: 591px;
}

.grayitem:nth-child(2) .grayimg {
    width: 394px;
    height: 489px;
}

.grayitem:nth-child(3) .grayimg {
    width: 530px;
    height: 367px;
}

.graiimg-default {
    width: 100%;
    height: 579px;
    background-color: #00000020;
    border-radius: 20px;
}

.blog__h1 {
    font-weight: 600;
    font-size: var(--header-size);
    line-height: 120%;
}

.blog {
    margin: 144px 0;
}

.blog__item {
    padding: 20px 0;
    border-top: 1px solid #000;
}

.blog__item:last-child {
    border-bottom: 1px solid #000;
}

.dark-theme .blog__item {
    border-top: 1px solid #fff;
}

.dark-theme .blog__item:last-child {
    border-bottom: 1px solid #fff;
}

.blog__items {
    margin-top: 60px;
    margin-bottom: 50px;
}

.blog__item-pic, .blog__item-img {
    border-radius: 20px;
}

.blog__item-h2 {
    font-size: var(--subheader-size);
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 0em;
}

.blog__item-time {
    font-size: 24px;
    font-weight: 500;
    line-height: 31px;
    letter-spacing: 0em;
    text-align: left;
    color: #A5A5A5;
    margin-top: 14px;
}

.blog__item-preview, .blog__item-preview p, .blog__item-preview ul, .blog__item-preview ul li {
    color: #626262;
    font-size: 24px;
    font-weight: 400;
    line-height: 35px;
}

.blog__item-pic {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog__item-img {
    height: 100%;
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.3s;
}

.blog__item:hover .blog__item-img {
    filter: grayscale(0);
}

.blog__item-img.blog__item-half {
    max-height: 49%;
    height: 100%;
}

.about p {
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0em;
    text-align: left;
    color: #333;
}

.stack__bg {
    background-color: #EBF2EC;
    padding: 53px 0 124px 0;
    margin-top: 30px;
}

.stack__item {
    margin-bottom: 60px;
}

.stack__list {
    columns: 2;
    list-style: none;
    color: #707370;
}

.stack__list li {
    margin-bottom: 25px;
}

.carousel__item .carousel__video:nth-child(1) {
    display: block;
}

.carousel__item .carousel__video:nth-child(2) {
    display: none;
}

.dark-theme .carousel__item .carousel__video:nth-child(1) {
    display: none;
}

.dark-theme .carousel__item .carousel__video:nth-child(2) {
    display: block;
}

.modal__open-button {
    cursor: pointer;
}

.offcanvas.offcanvas-end.modal-form {
    background-color: #242424;
    width: 38%;
    color: #fff;
}

.modal__close {
    width: 60px;
    height: 60px;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute;
    top: 60px;
    right: 60px;
    background: none;
    --bs-btn-close-bg: none;
}

.modal__header {
    font-size: var(--header-size);
}

.modal-form .offcanvas-body {
    padding: 150px 80px;
}

.offcanvas-backdrop.show {
    opacity: 1;
    background: #0000007d;
    backdrop-filter: blur(10px);
}

.modal__form-action {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--big-margin-top);
}

.modal__form-wraplabel {
    height: 125px;
    text-align: left;
    position: relative;
}

.modal__form-label {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    font-size: var(--mid-font-size);
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0em;
}

.modal_form-input {
    background-color: #242424;
    border: 0;
    border-bottom: 1px solid #fff;
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    font-family: Gilroy;
    font-size: var(--input-size);
    font-weight: 600;
    line-height: calc(var(--input-size) + 6px);
    letter-spacing: 0em;
    text-align: left;
    color: #fff;
    padding: 13px 0;
}

.modal_form-input::placeholder {
    color: #484848;
}

.modal_form-input:focus-visible, .modal_form-input:focus {
    outline: none;
}

.modal__form-send {
    width: fit-content;
    border-radius: 15px;
    background-color: #fff;
    color: #000;
    padding: var(--button-padding);
    border: none;
    outline: none;
    font-size: var(--button-font-size);
}

.modal__form-oferta {
    margin-top: 64px;
    font-size: var(--mid-font-size);
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0em;
    text-align: left;
    color: #666;
}

.uppstack {
    margin-top: 143px;
    margin-bottom: 37px;
}

.uppstack__img {
    width: 100%;
    height: 694px;
    object-fit: cover;
    object-position: top;
}

.cases {
    margin-top: 180px;
    margin-bottom: 68px;
}

.cases__header {
    margin-bottom: 30px;
    font-size: var(--header-size);
    font-weight: 600;
    line-height: 55px;
    letter-spacing: 0em;
    text-align: left;
}

.cases .examples__item {
    margin-bottom: 30px;
}

.team {
    margin-top: 209px;
    margin-bottom: 189px;
}

.team__container {
    overflow-x: visible;
}

.team__header {
    font-size: 60px;
    font-weight: 500;
    line-height: 72px;
    letter-spacing: 0em;
    text-align: left;
    margin-bottom: 43px;
}

.team__carousel-item {
    display: inline-block;
    width: fit-content;
    min-width: calc(var(--container-size) / 3);
    height: fit-content;
    border-radius: 20px;
    margin-right: 20px;
    overflow: hidden;
}

.team__carousel .team__carousel-item img {
    min-width: 100%;
    height: 526px;
    object-fit: cover;
}

.team__spec {
    margin-top: 32px;
}

.team__spec-header {
    font-size: var(--subheader-size);
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 0em;
    text-align: left;
}

.team__spec-list {
    color: #787878;
    list-style: none;
    line-height: 48px;
}