@media (min-width: 1700px) {
    body {
        min-height: 700px;
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1600px;
    }

    .main__plus-icon {
        right: calc((100vw - 1600px) / 2);
    }
}

@media (min-width: 768px) {
    /* 1-й ряд: мал — сред — больш */
    .examples__item:nth-of-type(4n + 1) .examples__item-img,
    .examples__item:nth-of-type(4n + 1) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 60%; /* "мал" */
    }

    .examples__item:nth-of-type(4n + 2) .examples__item-img,
    .examples__item:nth-of-type(4n + 2) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 80%; /* "сред" */
    }

    .examples__item:nth-of-type(4n + 3) .examples__item-img,
    .examples__item:nth-of-type(4n + 3) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 100%; /* "больш" */
    }

    /* 2-й ряд: мал — больш — сред */
    .examples__item:nth-of-type(4n + 4) .examples__item-img,
    .examples__item:nth-of-type(4n + 4) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 60%; /* "мал" */
    }

    .examples__item:nth-of-type(4n + 5) .examples__item-img,
    .examples__item:nth-of-type(4n + 5) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 100%; /* "больш" */
    }

    .examples__item:nth-of-type(4n + 6) .examples__item-img,
    .examples__item:nth-of-type(4n + 6) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 80%; /* "сред" */
    }

    /* 3-й ряд: больш — сред — мал */
    .examples__item:nth-of-type(4n + 7) .examples__item-img,
    .examples__item:nth-of-type(4n + 7) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 100%; /* "больш" */
    }

    .examples__item:nth-of-type(4n + 8) .examples__item-img,
    .examples__item:nth-of-type(4n + 8) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 80%; /* "сред" */
    }

    .examples__item:nth-of-type(4n + 9) .examples__item-img,
    .examples__item:nth-of-type(4n + 9) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 60%; /* "мал" */
    }

    /* 4-й ряд: сред — больш — мал */
    .examples__item:nth-of-type(4n + 10) .examples__item-img,
    .examples__item:nth-of-type(4n + 10) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 80%; /* "сред" */
    }

    .examples__item:nth-of-type(4n + 11) .examples__item-img,
    .examples__item:nth-of-type(4n + 11) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 100%; /* "больш" */
    }

    .examples__item:nth-of-type(4n + 12) .examples__item-img,
    .examples__item:nth-of-type(4n + 12) a.examples__item-wrapper:hover .examples__item-image::after {
        height: 60%; /* "мал" */
    }
}
  

@media (max-width: 1700px) {
    .short {
        margin-right: 70px;
    }

    .main__plus-icon {
        right: calc((100vw - 1320px) / 2);
    }

    .offcanvas__menu-item {
        padding: 15px 25px;
        height: 255px;
    }

    .offcanvas__menu-header {
        font-size: 26px;
    }

    .offcanvas__menu-adress {
        font-size: 22px;
    }

    .offcanvas__menu-soclinc {
        margin-top: 16px;
        font-size: 20px;
    }

    .offcanvas__menu-img {
        height: 140px;
    }

    .model__header {
        font-size: 34px;
    }
}

@media (max-width: 1400px) {
    .main__plus-icon {
        right: calc((100vw - 1140px) / 2);
    }

    .modal-form .offcanvas-body {
        padding: 120px 60px;
    }

    .modal__close {
        width: 60px;
        height: 60px;
        top: 45px;
        right: 45px;
    }
}

@media (max-width: 1200px) {
    .main__plus-icon {
        right: calc((100vw - 960px) / 2);
    }

    .modal-form .offcanvas-body {
        padding: 100px 50px;
    }

    .modal__close {
        width: 50px;
        height: 50px;
        top: 40px;
        right: 40px;
    }
}

@media (max-width: 992px) {
    .video-container {
        height: 50vh;
    }

    .main__plus-icon {
        right: calc((100vw - 720px) / 2);
    }


    .team {
        margin-top: 115px;
        margin-bottom: 105px;
    }

    .team__header {
        font-size: 38px;
        line-height: 54px;
    }

    .uppstack {
        margin-top: 97px;
        margin-bottom: 34px;
    }

    .uppstack__header, .cases__header,
    .stack__header, .intro__header {
        font-size: 38px;
    }

    .team__spec-header {
        font-size: 35px;
    }

    .team__spec-list li, .stack__list li, .uppstack__text {
        font-size: 19px;
    }

    .team__spec-list li, .stack__list li {
        line-height: 28px;
    }

    .intro__text {
        font-size: 15px;
    }

    .cases {
        margin-top: 115px;
    }

    .team__carousel-item {
        width: 435px !important;
        height: 435px !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 20px;
    }

    h1 {
        font-size: 30px;
        font-weight: 600;
        line-height: 36px;
        letter-spacing: 0em;
        text-align: left;
    }

    main {
        margin-top: 38px;
    }
    .welcome {
        height: 500px;
    }

    p {
        font-size: 14px;
        font-weight: 400;
        line-height: 18px;
        letter-spacing: 0em;
    }

    .short {
        margin-right: 0;
        margin-bottom: 0;
    }

    .video-container {
        height: 40vh;
    }

    .main__plus-icon {
        right: calc((100vw - 540px) / 2);
    }

    .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .navbar {
        background: #D9D9D9;
        height: 50px;
        padding: 5px;
    }

    .navbar__logo {
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar__logo svg,
    .navbar__logo img {
        width: 64px;
    }

    .navbar__languages {
        display: none;
    }

    .navbar__center {
        justify-content: flex-end;
    }

    .navbar__toggler svg {
        width: 50px;
        height: 22px;
    }

    .carousel__header {
        margin-top: 0;
        font-size: 22px;
        font-weight: 600;
        line-height: 26px;
        letter-spacing: 0em;
    }

    .carousel__subheader {
        margin-top: 50px;
        font-size: 18px;
        font-weight: 600;
        line-height: 22px;
        letter-spacing: 0em;
        text-align: left;

    }

    .carousel__controls {
        bottom: calc(5vh + 40px);
    }

    .offcanvas__menu {
        border-bottom: none;
        border-top: none;
        border-right: none;
        border-bottom: none;
        border-left: none;
    }

    .offcanvas__menu-item {
        border-top: 1px solid #C7C7C730;
        border-left: 1px solid #C7C7C730;
        border-right: 1px solid #C7C7C730;
        position: relative;
        height: 267px;
        box-sizing: border-box;
    }

    .offcanvas__menu-item:last-child {
        border-bottom: 1px solid #C7C7C730;
    }

    .offcanvas__menu-item::after {
        position: absolute;
        right: -15px;
        top: -1px;
        width: 15px;
        content: "";
        border-top: 1px solid #C7C7C730;
    }

    .offcanvas__menu-item::before {
        position: absolute;
        left: -15px;
        top: -1px;
        width: 15px;
        content: "";
        border-top: 1px solid #C7C7C730;
    }

    .offcanvas__menu-contacts::before {
        position: absolute;
        left: -15px;
        bottom: -1px;
        width: 15px;
        content: "";
        border-bottom: 1px solid #C7C7C730;
    }

    .offcanvas__menu-contacts::after {
        position: absolute;
        right: -15px;
        bottom: -1px;
        width: 15px;
        content: "";
        border-bottom: 1px solid #C7C7C730;
    }

    .offcanvas__menu-header {
        font-size: 18px;
        font-weight: 600;
        line-height: 22px;
        letter-spacing: 0em;
        text-align: left;
    }

    .offcanvas__menu-img {
        height: 170px;
    }

    .offcanvas__cases-img {
        width: 77px;
        height: 72px;
    }

    .offcanvas__menu-adress {
        margin-top: 25px;
    }

    .offcanvas__menu-adress,
    .offcanvas__menu-soclinc {
        font-size: 18px;
        font-weight: 600;
        line-height: 22px;
        letter-spacing: 0em;
    }

    .offcanvas__another-header {
        font-size: 18px;
        font-weight: 600;
        line-height: 22px;
        letter-spacing: 0em;
        text-align: left;
    }

    .offcanvas__another-services {
        font-size: 14px;
        font-weight: 400;
        line-height: 18px;
        letter-spacing: 0em;
        text-align: left;
        margin-bottom: 30px;
    }

    .open__modal {
        width: 60px;
        height: 60px;
    }

    .main__plus-icon {
        right: 15px;
        top: -70px;
    }

    .main__plus-icon .open__modal-border,
    .offcanvas .open__modal-border {
        width: 66px;
        height: 66px;
    }

    .offcanvas .modal__open-button,
    .main__plus-icon .modal__open-button {
        width: 60px;
        height: 60px;
        clip-path: polygon(47% 0, 100% 0, 100% 70%, 53% 100%, 0 100%, 0 31%);
    }

    .main__plus-icon .open__modal #vector_1 {
        stroke: #e6e6e6;
        fill: #fff;
        filter: invert(1);
    }

    .dark-theme .main__plus-icon .open__modal #vector_1 {
        stroke: #000;
        filter: invert(1);
    }

    .examples__item-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .model__image,
    .examples__item-image,
    .examples__item-img {
        height: 255px;
    }

    .model {
        margin-bottom: 0;
        flex-direction: column;
    }

    .model__item:first-child {
        order: 2;
    }

    .model:not(.model__carousel) {
        margin-top: 30px;
    }

    .model__header {
        margin-top: 20px;
        font-size: 18px;
        font-weight: 600;
        line-height: 22px;
        letter-spacing: 0em;
    }

    .model__carousel-container {
        flex-direction: column;
    }

    .model__image-long {
        height: 468px;
    }

    .model__carousel-nav {
        flex-direction: row;
        justify-content: space-between;
    }

    .model__image-mini {
        margin-left: 0;
        margin-bottom: 0;
        margin-top: 20px;
    }

    .upper-h2 {
        font-size: 30px;
        font-weight: 600;
        line-height: 36px;
        letter-spacing: 0em;
        margin-top: 60px;
        margin-bottom: 30px;
    }

    .examples__item {
        margin-bottom: 30px;
        width: 100%;
    }

    .offcanvas.offcanvas-end.modal-form {
        background-color: #242424;
        width: 100%;
    }

    .projects-item-picture {
        margin: 20px auto;
    }

    .howitworks {
        margin-bottom: 56px;
        height: fit-content;
    }

    .howitworks__video {
        border-radius: 10px
    }

    .examples__item-name {
        margin-bottom: 30px;
    }

    .text-end svg, .text-end img {
        display: block;
        margin: 30px auto;
    }

    .stack__item {
        display: block;
        width: 80%;
        margin: 50px auto;
    }

    .blog {
        margin: 95px 0;
    }

    h1.blog__h1 {
        font-size: 30px !important;
    }

    .blog__items {
        margin-top: 15px;
    }

    h2.blog__item-h2 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.5;
    }

    .blog__item-time {
        font-size: 18px;
        font-weight: 400;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .blog__item-preview {
        margin-top: 20px;
    }

    .blog__item-preview, .blog__item-preview  p {
        font-size: 14px;
        line-height: 18px;
    }

    .team__carousel-item  {
        width: unset;
        min-width: unset;
    }
    
    .team__carousel-item img {
        width: 100%; /* Ширина картинки займет всю доступную ширину */
    }

    .team__carousel-prev, .team__carousel-next {
        display: none;
    }
    .rai {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-height: 768px) {

}

@media (max-width: 576px) {
    .main__plus-icon {
        right: 15px;
    }

    .team {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .team__header {
        font-size: 30px;
        line-height: 36px;
    }

    .uppstack {
        margin-top: 50px;
        margin-bottom: 30px;
    }

    .uppstack__header, .cases__header,
    .stack__header, .intro__header {
        font-size: 30px;
    }

    .team__spec-header {
        font-size: 30px;
    }

    .team__spec-list li, .stack__list li, .uppstack__text {
        font-size: 14px;
    }

    .team__spec-list li, .stack__list li {
        line-height: 28px;
    }

    .intro__text {
        font-size: 14px;
    }

    .cases {
        margin-top: 50px;
    }

    .team__carousel-item {
        width: 350px !important;
        height: 350px !important;
    }
}