
@media (max-width: 1366px) {
    .wrapper{
        width: 100%;
        max-width: 1366px;
    }
    section{
        padding-left: 40px;
        padding-right: 40px;
    }
    .marquee {
        overflow: hidden;
        width: 100%;
        max-width: 1280px;
    }
}
@media (max-width: 768px) {
    .wrapper{
        width: 100%;
        max-width: 768px;
    }
    /* flex-елементи */
    .item,
    .tasks,
    .cases .item {
        flex: 1 1 auto;
    }
    .for-mobile {
        display: flex;
    }
    .btn-land.for-mobile{
        display: flex;
    }
    .bg-1{
        order: 1;
    }
    .service-for{
        order: 2;
    }
    .example-work{
        order: 3;
    }
    .possibilities{
        order: 4;
    }
    .our-team{
        order: 5;
    }
    .our-cases{
        order: 6;
    }
    .reviews{
        order: 7;
    }
    .news{
        order: 8;
    }
    .bg-2{
        order: 9;
        background:
                radial-gradient(
                        50% 50% at left center,
                        rgba(252, 127, 91, 0.2) 0%,
                        rgba(252, 127, 91, 0) 100%
                ),
                radial-gradient(
                        50% 50% at right bottom,
                        rgba(70, 86, 228, 0.2) 0%,
                        rgba(70, 86, 228, 0) 100%
                );
    }

    section{
        max-width: 768px;
    }
    .top-section{
        padding: 40px 24px 20px;
    }
    .bg-1{
        background: transparent;
    }
    .bg-mobile{
        background:
                radial-gradient(
                        90% 90% at left top,
                        rgba(252, 127, 91, 0.2) 0%,
                        rgba(252, 127, 91, 0) 100%
                ),
                radial-gradient(
                        50% 70% at right center,
                        rgba(70, 86, 228, 0.2) 0%,
                        rgba(70, 86, 228, 0) 100%
                );
    }


    /*====================================================================================*/


    /* Burger */
    .burger {
        width: 20px;
        height: 16px;
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .burger span {
        height: 2px;
        background: #111114;
        border-radius: 2px;
        transition: .3s;
    }

    /* Overlay */
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        opacity: 0;
        pointer-events: none;
        transition: .3s;
        z-index: 900;
    }

    .overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
    .header.mobile-menu .box-registration{
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 30px;
    }
    .box-registration >.btn-top{
        flex: 0 0 49%;
    }

    /* Mobile menu */
    .header.mobile-menu{
        display: flex;
    }
    .mobile-menu {
        position: fixed;
        /*inset: 0;*/
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 0 0 16px 16px;
        z-index: 1000;
        padding: 55px 20px 20px;
        transform: translateY(-100%);
        transition: transform .15s ease;
        flex-direction: column;
    }

    .mobile-menu.open {
        transform: translateY(0);
    }

    /* Header menu */
    .menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .close {
        display: inline-block;
        width: 24px;
        height: 24px;
        background: url("../img/close.png") no-repeat center;
        cursor: pointer;
    }
    .header-mobile{
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
    /* Nav */
    .nav-header.menu-nav{
        display: flex;
    }
    .menu-nav {
        margin: 15px 0;
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .menu-nav .item {
        text-decoration: none;
        color: #111114;
        font-size: 20px;
    }

    /* Actions */
    .menu-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        margin-bottom: 20px;
    }

    .btn {
        padding: 14px 20px;
        border-radius: 12px;
        font-size: 16px;
        cursor: pointer;
    }

    .btn.outline {
        background: #fff;
        border: 1px solid #000;
    }

    .btn.solid {
        background: #000;
        color: #fff;
        border: none;
    }

    /* Waitlist */
    .waitlist {
        display: flex;
        margin-top: auto;
        text-align: center;
        color: #000;
        font-weight: 600;
        text-decoration: none;
    }
    /* Burger animation */
    .burger span {
        transform-origin: center;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    .burger span {
        transition: transform .3s ease, opacity .2s ease;
    }

    /*====================================================================================*/

    .logo{
        max-width: 158px;
        margin-right: 40px;
    }
    .lang__btn{
        padding: 12px 6px;
    }
    .nav-header{
        display: none;
    }
    .box-registration{
        display: none;
    }
    .photo{
        width: 32px;
        height: 32px;
    }
    .team-lawyers .text{
        font-size: 13px;
        width: 175px;
        margin-left: 26px;
    }
    .top-box{
        padding-top: 45px;
    }
    .auto-contracts{
        font-size: 32px;
        line-height: 40px;
    }
    .auto-contracts br{
        display: none;
    }
    .choose-template{
        font-size: 16px;
        line-height: 22px;
        width: 300px;
        margin: 0 auto 30px;
    }
    .choose-template br{
        display: none;
    }
    .see-demo{
        gap: 18px;
    }
    .btn-land.btn-land-primary{
        flex: 0 0 270px;
    }
    .btn-land.btn-land-default{
        flex: 0 0 60px;
    }
    .btn-land.btn-land-default span{
        display: none;
    }
    .marquee >.text-mobile{
        display: block;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: #838597;
    }
    .marquee__item.text{
        display: none;
    }
    .marquee__item img{
        height: 30px;
    }

    /* забороняємо фіксовані ширини */
    [style*="width"],
    .tasks,
    .review__content,
    .templates,
    .cases .item {
        width: 100%;
        max-width: 100%;
    }

    .marquee {
        max-width: 100%;
    }

    .marquee__track {
        animation-duration: 22s;
    }

    .marquee > .text-mobile {
        display: block;
        text-align: center;
        font-size: 14px;
        margin-bottom: 12px;
        color: #838597;
    }

    .see-demo{
        margin-bottom: 80px;
    }
    .popular-templates > .title{
        margin-bottom: 12px;
        text-align: left;
        font-size: 16px;
        font-weight: 400;
        color: #4F505E;
    }
    .popular-templates{
        display: none;
        padding: 40px 24px 20px;
    }
    .templates-everything{
        display: none;
    }
    .templates-everything.for-mobile{
        display: flex;
        padding: 40px 24px 50px;
    }
    .templates-everything .title{
        text-align: left;
        margin-bottom: 18px;
    }
    .templates-everything .annotation {
        text-align: left;
        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
        margin-bottom: 40px;
    }
    .container-templates{
        padding: 0;
        justify-content: flex-start;
        gap: 10px;
    }
    .container-templates .link-templates {
        padding: 10px;
        font-size: 14px;
    }
    .container-templates .link-templates:hover{
        background: #111114;
        color: #ffffff;
        border: 1px solid #111114;
    }
    .new-opportunities{
        padding: 45px 0 35px 24px;
    }
    .new-opportunities .title{
        margin-bottom: 35px;
        text-align: left;
        font-size: 16px;
    }
    .new-opportunities .item-box.features__slider{
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .features__slider {
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
    }
    .feature-card {
        scroll-snap-align: start;
        border-radius: 20px;
        padding: 24px;
        min-height: 220px;
    }

    /* ховаємо scrollbar */
    .features__slider::-webkit-scrollbar {
        display: none;
    }
    .new-opportunities .item-box .item{
        padding: 18px;
        flex: 0 0 260px;
        height: 272px;
    }
    .new-opportunities .item-box .icon {
        width: 56px;
        height: 56px;
        margin-bottom: 30px;
    }
    .new-opportunities .item-1 {
        margin-bottom: 12px;
        font-size: 64px;
    }
    .new-opportunities .item-2 {
        margin-bottom: 18px;
        font-size: 16px;
        line-height: 25px;
    }
    .new-opportunities .item-3 {
        gap: 10px;
        font-weight: 600;
        font-size: 14px;
        line-height: 100%;
        color: #FC7F5B;
    }
    .service-for{
        padding: 45px 0 50px 24px;
        background:
                rgba(249, 249, 254, 1)
                radial-gradient(
                        50% 50% at right top,
                        rgba(70, 86, 228, 0.2) 0%,
                        rgba(70, 86, 228, 0) 100%
                );
    }
    .service-for .title {
        margin-bottom: 15px;
        font-size: 16px;
    }
    .box-tasks {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .service-for .item:first-child {
        justify-content: flex-start;
        flex: 0 0 405px;
        margin-bottom: 35px;
    }
    .service-for .item:first-child .annotation {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 25px;
    }
    .service-for .item:first-child img {
        max-width: 307px;
    }
    .service-for .tasks {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex: 0 0 200px;
        height: 237px;
        gap: 24px;
    }
    .service-for .item:nth-child(2) {
        gap: 17px;
        flex-direction: row;
        flex: 0 0 254px;
        margin-bottom: 15px;
    }
    .service-for .tasks .text {
        font-weight: 300;
        font-size: 16px;
        line-height: 18px;
    }
    .item.features__slider.btn-see{
        display: none;
    }
    .btn-land.for-mobile{
        display: flex;
    }
    .box-tasks .item.features__slider .btn-land{
        display: none;
    }
    .box-tasks .btn-land.btn-mobile, .contacts-box .btn-land.btn-mobile{
        display: flex;
        font-size: 16px;
        line-height: 20px;
    }
    .box-tasks .btn-land.btn-mobile{
        width: 94%;
    }
    .contacts-box .btn-land.btn-mobile{
        width: 100%;
    }
    .btn-see.for-mobile{
        display: flex;
        font-size: 16px;
        width: 94%;
    }
    .example-work{
        padding: 45px 24px 40px;
    }
    .example-work .title{
        margin-bottom: 15px;
        font-size: 16px;
    }
    .example-work .annotation .head {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 15px;
    }
    .example-work .annotation .text {
        display: none;
    }
    .watch-video {
        width: 100%;
        margin-bottom: 25px;
    }
    .action-steps{
        display: none;
    }
    .example-work .btn-land.btn-land-primary{
        flex: 0 0 60px;
        width: 100%;
        margin-bottom: 0;
    }
    .note{
        display: none;
    }
    .possibilities{
        padding: 45px 0 40px 24px;
    }
    .possibilities .title{
        margin-bottom: 15px;
        font-size: 16px;
    }
    .possibilities .item:first-child {
        justify-content: flex-start;
        flex: 0 0 350px;
    }
    .possibilities .item:first-child .annotation {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 30px;
    }
    .possibilities .item:first-child img {
        max-width: 257px;
        margin: 0 auto 40px;
    }
    .possibilities .item:nth-child(2) {
        gap: 17px;
        flex-direction: row;
    }
    .possibilities .tasks {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex: 0 0 200px;
        height: 237px;
        gap: 24px;
    }
    .possibilities .tasks .text {
        font-size: 16px;
        line-height: 18px;
    }
    .possibilities .item:nth-child(2) {
        gap: 17px;
        flex-direction: row;
        flex: 0 0 254px;
        margin-bottom: 15px;
    }
    .possibilities .tasks img {
        width: 30px;
    }
    .our-team{
        padding: 45px 0 40px 24px;
        background: #ffffff;
    }
    .our-team .title{
        margin-bottom: 15px;
        font-size: 16px;
    }
    .our-team .annotation {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 40px;
    }
    .box-team .item {
        flex: 0 0 280px;
        height: 470px;
        padding: 20px;
    }
    .box-team .item > img {
        width: 120px;
    }
    .expert .expert-name {
        font-size: 20px;
        font-weight: 700;
        line-height: 22px;
    }
    .expert .expert-what {
        padding: 8px 15px;
        font-size: 14px;
    }
    .expert .expert-text {
        font-size: 14px;
        line-height: 24px;
    }
    .box-team {
        display: flex;
        justify-content: space-between;
        gap: 17px;
    }
    .our-cases{
        display: none;
        padding: 45px 0 40px 24px;
    }
    .our-cases .title{
        display: none;
        margin-bottom: 15px;
        font-size: 16px;
    }
    .our-cases .annotation {
        text-transform: uppercase;
        font-weight: 500;
        color: #4F505E;
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 30px;
    }

    .our-cases.mobile-tabs {
        display: flex;
        max-width: 100%;
        padding: 45px 0 40px 24px;
        background:
                radial-gradient(
                        60% 60% at right bottom,
                        rgba(70, 86, 228, 0.2) 0%,
                        rgba(70, 86, 228, 0) 100%
                );

    }

    /* TABS */
    .tabs-header {
        position: relative;
        display: flex;
        border-bottom: 1px solid #222;
        width: 94%;
    }

    .tab {
        flex: 1;
        font-size: 24px;
        font-weight: 700;
        padding: 20px 0;
        background: none;
        border: none;
        color: #838597;
    }

    .tab.active {
        color: #111114;
    }

    .indicator {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50%;
        height: 3px;
        background: #FC7F5B;
        transition: transform 0.3s ease;
    }

    /* CHIPS */
    .chips {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 12px 0;
        scroll-snap-type: x proximity;
    }

    .chip {
        padding: 8px 14px;
        border-radius: 24px;
        font-size: 14px;
        border: 1px solid #111114;
        background: transparent;
        color: #111114;
        white-space: nowrap;
    }
    .chip:hover{
        background: #111114;
        color: #ffffff;
    }

    /* SLIDER */
    .viewport {
        overflow: hidden;
    }

    .trackСases {
        display: flex;
        width: 200%;
        transition: transform 0.35s ease;
    }

    .panel {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .panel-box.list-services {
        display: flex;
        flex-direction: column;
        padding: 0 24px 0 0;
        min-height: 180px;
        gap: 17px;
    }
    .panel-box .case-features-panel {
        display: flex;
        gap: 17px;
    }
    .one-service{
        align-items: center;
    }
    .one-service .text {
        font-size: 14px;
        color: #111114;
        line-height: 18px;
    }
    .icon-service {
        margin-right: 15px;
    }
    .panel-box.list-services .btn-land.btn-land-primary{
        flex: 0 0 60px;
        margin-top: 10px;
    }
    .reviews {
        padding: 45px 24px 40px;
    }
    .review {
        grid-template-columns: 1fr;
    }
    .reviews__title{
        font-size: 16px;
        margin-bottom: 40px;
    }
    .review h2 {
        margin-bottom: 30px;
        font-size: 32px;
        line-height: 40px;
    }
    .review .text {
        font-size: 16px;
        color: #111114;
        line-height: 21px;
    }
    .reviews__slider {
        position: relative;
        overflow: hidden;
        min-height: 485px;
    }
    .review__content {
        width: 100%;
        height: 365px;
    }
    .review__author img {
        width: 48px;
    }
    .author__info {
        font-size: 20px;
        gap: 7px;
        padding-top: 2px;
    }
    .author__status {
        font-size: 14px;
    }
    .reviews__dots {
        margin-top: 0;
    }
    .dot {
        height: 12px;
        width: 12px;
    }
    .quote {
        width: 37px;
        height: 37px;
        margin-bottom: 18px;
    }
    .review__author {
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: 382px;
        height: 50px;
        align-items: center;
    }
    .news{
        padding: 45px 0 40px 24px;
    }
    .news>.btn-land-see{
       display: none;
    }
    .news .title{
        margin-bottom: 15px;
        font-size: 16px;
    }
    .reed-news.for-mobile{
        display: none;
    }
    .section-annotation {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 40px;
    }
    .box-news {
        display: flex;
        justify-content: space-between;
        gap: 17px;
    }
    .one-news {
        flex: 0 0 280px;
        height: 373px;
        padding: 20px;
        gap: 17px;
    }
    .news-date {
        font-size: 14px;
    }
    .news-notice{
        font-size: 20px;
        line-height: 24px;
        -webkit-line-clamp: 3;
    }
    .get-routine{
        padding: 20px 24px 40px;
    }
    .routine-title {
        display: none;
    }
    .routine-title.for-mobile{
        display: block;
        font-size: 32px;
        text-align: center;
        line-height: 40px;
        margin-bottom: 30px;
    }
    .routine-img{
        display: none;
    }
    .button-box{
        flex-direction: column;
        gap: 17px;
    }
    .button-box .btn-land {
        flex: 0 0 60px;
        width: 100%;
    }
    .contacts .item:last-child{
        flex: 0 0 100%;
        gap: 35px;
    }

    .contacts .item:first-child{
        display: none;
    }
    .contacts .item:last-child .btn-see{
        display: flex;
        width: 100%;
        flex: 0 0 60px;
    }
    .call-us .text, .write-us .text {
        font-size: 16px;
        line-height: 20px;
    }
    .call-us .tel-number, .write-us .email {
        font-size: 32px;
        line-height: 35px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 0 40px;
        gap: 20px;
    }
    .bg-1, .bg-2{
        max-width: 768px;
    }
    .contacts{
        padding: 30px 0;
        border-top: 1px solid #B9BEC8;
        border-bottom: 1px solid #B9BEC8;
    }
    .contacts-box .call-us, .contacts-box .write-us {
        gap: 16px;
    }
    .review h2 {
        margin-bottom: 30px;
        font-size: 32px;
        line-height: 40px;
        max-width: 320px;
    }
    .footer-links{
        border-top: none;
    }
}

@media (max-width: 540px) {
    section{
        max-width: 540px;
    }
    .btn-see.for-mobile {
        display: flex;
        font-size: 16px;
        width: 94%;
    }
}
@media (max-width: 460px) {
    section{
        max-width: 460px;
    }
    .btn-see.for-mobile {
        display: flex;
        font-size: 16px;
        width: 94%;
    }
}
@media (max-width: 430px) {
    section{
        max-width: 430px;
    }
    .btn-see.for-mobile {
        display: flex;
        font-size: 16px;
        width: 94%;
    }
}
@media (max-width: 414px) {
    section{
        max-width: 414px;
    }
}
@media (max-width: 390px) {
    section{
        max-width: 390px;
    }
}
@media (max-width: 375px) {
    section{
        max-width: 375px;
    }
}
