@media (min-width:2500px) {
    .hero-image {
        left: 47%;
    }
}

@media screen and (max-width: 1500px) {
    .hero-image {

        left: 43%;
    }

    .hero-image img {
        max-width: 522px;
    }

    .container {
        width: 1200px;
    }

    .menu-items {
        display: flex;
        gap: 50px;
    }

    .online-expert-left {
        max-width: 50%;
    }

    .online-expert form {
        width: 100%;
        height: auto;
    }

    .question-form textarea {
        width: 100%;
        height: 132px;
    }

    .online-expert-right {
        max-width: 50%;
    }

    .benefits-list li {
        font-size: 18px;
    }

    .logos img {
        width: 68px;
        min-width: 68px;
    }

    .hero .consultation-form .btn {
        position: relative;
        z-index: 1;
        height: 60px;
    }

    .media-logos img,
    .media-publications img {
        max-width: 80px;
    }

    .media-slider .slider-item .bg {
        width: 100%;
    }

    .quiz-options label {
        width: 48%;
    }

    .quiz-navigation {
        max-width: 683px;
    }

    .quiz-step.final .quiz-bonuses {

        width: 450px;
    }

    .quiz-step.final {
        background-size: 250px;
    }

    .review-video {
        max-width: 580px;
    }

    .video-review .review-text {
        max-width: 600px;
    }

    .review-video .thumbnail img {
        width: 281px;
    }

    .video-review .review-text p {
        margin-bottom: 5px;
        font-size: 18px;
        line-height: 145%;

    }

    .video-review .review-text h2 {
        font-size: 46px;
    }

    .video-slider .slider-item h3 {
        font-size: 18px;
    }

    .video-slider .refund-amount {
        font-size: 24px;
    }

    .video-slider .thumbnail img {
        width: 169px;
    }

    .case-slider .slider-item {
        width: 585px;
        min-width: auto;
        max-width: 585px;
    }

    .case-slider .item-left p.quote {
        width: 332px;
        height: auto;
    }

    .consultation-text h2 {
        font-size: 27px;
        line-height: 130%;
    }

    .team-photo-display {
        width: 400px;
        min-width: 400px;
    }

    .team-info-container {
        width: 780px;
        height: auto;
    }

    .team-slider {
        width: 789px;
    }

    .team-thumbnails,
    .team-thumbnails2 {
        gap: 10px;
    }

    .team-thumbnail {
        width: 187px;
        min-width: 187px;
    }

    .contact-form-section .form-content h2 {
        font-size: 37px;
        line-height: 140%;
    }

    .contact-form-section .form-wrapper {
        position: relative;
    }

    .contact-form-section .image-wrapper {
        position: absolute;
        max-width: 45%;
        bottom: 0;
        right: 0;
    }

    .team .info-right .flex img {
        width: 77px;
        height: 108px;
        object-fit: contain;
    }

    .team .info-left p.fio {
        font-size: 28px;
        margin-bottom: 22px;
    }

    .team .info-left p {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .team .info-left p:last-child {
        margin-top: 0;
    }

    .team .info-right {
        padding: 0;
    }

    .contact-form {
        gap: 10px;
    }

    #popup-case .popup {
        padding: 30px 40px;
        border-radius: 10px;
        width: 80%;
        height: auto;
    }

    .tabs-items .right h2 {
        font-size: 24px;
    }

    .tabs-items .right p {
        font-size: 18px;
    }

}

@media screen and (max-width: 1200px) {
    .container {
        width: 960px;
    }

    .hero-info {
        width: 670px;
    }

    .hero h1 {
        font-size: 40px;

    }

    .hero-image {
        left: 50%;
    }

    .hero-image img {
        max-width: 400px;
    }

    .highlight-item {
        width: 312px;
    }

    .stat-number {
        font-size: 70px;
    }

    .menu {
        display: none;
    }

    .media {
        padding-bottom: 60px;
    }

    .media-info {
        align-items: flex-start;
    }

    .media-image {
        width: 498px;
        padding: 0px;
        object-fit: contain;
        object-position: top;
        height: 427px;
    }

    .media-description h2 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 46px;
    }

    .media-logos img,
    .media-publications img {
        max-width: 66px;
    }

    .media-description p {
        font-size: 23px;
    }

    .media-slider .slider-item h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .media-slider .slider-item {
        height: auto;
    }

    .quiz-title {
        padding-right: 0;
        font-size: 46px;
    }

    .quiz-info-section {
        max-width: 340px;
    }

    .lawyer-photo {
        width: 100%;
    }

    .lawyer-photo img {
        width: 100%;
    }

    .online-status {
        right: 20px;
        padding: 0px;
        width: 100px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .quiz-options label {
        font-size: 20px;
        padding: 12px 15px;
    }

    .quiz-navigation {
        max-width: 556px;
    }

    .quiz-navigation .next-btn {
        width: 244px;
        height: 50px;
        font-size: 20px;
    }

    .quiz-step.final h2 {
        font-size: 33px;
    }

    .quiz-step.final form {
        flex-direction: column;
    }

    .services .service-item h3 {
        font-size: 21px;
    }

    .team-thumbnails,
    .team-thumbnails2 {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .team-thumbnail {
        width: 24%;
    }

    .team-thumbnail img {
        object-position: top;
        display: block;
    }

    .team-info-container {
        width: 540px;
        height: auto;
    }

    .team-info {
        flex-direction: column;
    }

    .team .info-left p.fio {
        margin-bottom: 5px;
        line-height: 145%;
    }

    .team .info-left p {
        margin-bottom: 5px;
    }

    .quick-help .section-title {
        font-size: 40px;

    }

    .help-text h3 {
        font-size: 18px;

    }

    .help-text p {
        font-size: 16px;

    }

    .online-expert-left h2 strong {
        font-size: 40px;
    }

    .online-expert-content {
        flex-direction: column;
        align-items: center;
    }

    .auto-dealers .section-title {
        font-size: 40px;
    }

    .video-review-content {
        flex-direction: column-reverse;
        align-items: center;
    }

    .video-slider .thumbnail img {
        width: 129px;
    }

    .case-slider h2 {
        font-size: 40px;

    }

    .case-slider .slider-item {
        width: 465px;
        min-width: 465px;
        max-width: 465px;
        height: auto;
    }

    .services-tabs .service-item {
        gap: 10px;
        padding: 10px 20px;
        height: 80px;
    }

    .services-tabs .service-item .text p {
        font-size: 18px;

    }

    .case-slider .item-left p.quote {
        width: auto;
        height: auto;
    }

    .office-section .ratings {
        flex-wrap: wrap;
    }

    .office-section .office-badge img {
        width: 120px;
    }

    .consultation .consultation-form {
        height: auto;

    }

    #popup-case {
        overflow: auto;
    }

    #popup-case .popup {
        width: 80%;
        height: auto;
        top: 20px;
        transform: translate(-50%, 0);
    }

}



@media screen and (max-width: 960px) {
    .container {
        width: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr auto;

    }

    .hero-image {
        left: 280px;
    }

    .media-info {
        flex-direction: column;
    }

    .media-slider .slider-item {
        background-color: #f8f8f8;
        /*
        min-width: 350px;
*/
    }

    .quiz-title {
        padding-right: 0;
        font-size: 36px;
    }

    .quiz-body {
        flex-direction: column;

    }

    .quiz-question-section {
        border-top-left-radius: 20px;
        border-bottom-left-radius: revert-layer;
        border-top-right-radius: 20px;
        padding-bottom: 100px;

    }

    .quiz-info-section {
        max-width: 100%;
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
        border-top-right-radius: 0;
    }

    .bonus-item {
        width: 48%;
    }

    .bonus-item p {
        font-size: 20px;

    }

    .quiz-navigation {
        max-width: 656px;
    }

    .services .section-title {
        font-size: 40px;
    }

    .services .service-item {
        width: 49%;
        max-width: calc(50% - 20px);
    }

    .team-content {
        flex-direction: column;
        align-items: center;
    }

    .team-photo-display {
        width: 100%;

    }

    .team-info-container {
        width: 100%;

    }

    .team-info {
        flex-direction: row;
    }

    .quick-help .section-title {
        font-size: 27px;
    }

    .quick-help-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .video-slider .slider-item {
        width: calc(50% - 20px);
    }

    .video-slider .slider-item h3 {
        font-size: 20px;
    }

    .video-slider .thumbnail img {
        width: 149px;
    }

    .online-expert-left {
        max-width: 100%;
    }

    .online-expert-left h2 strong {

        font-size: 27px;
    }

    .online-expert-left p {
        font-size: 18px;
        line-height: 145%;
    }

    .online-expert-left p span {
        font-weight: 700;
        background: linear-gradient(180deg, #2d65a8 0%, #233f67 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .online-expert-left h4 {
        font-size: 18px;
    }

    .case-slider .slider-item {
        width: auto;
        min-width: auto;
        max-width: auto;
        height: auto;
    }

    .case-slider h2 {
        font-size: 33px;
    }

    .case-slider .view-all-btn {
        padding: 0px;
        width: 190px;
        height: 39px;
    }

    .contact-form-section .form-content {
        max-width: 100%;
    }

    .contact-form-section .form-wrapper {
        position: relative;
        flex-direction: column;
    }

    .contact-form-section .image-wrapper {
        position: relative;
        max-width: 70%;
        margin: 0 auto;
    }

    .services-tabs .service-item {
        width: 239px;
    }

    .video-slider .refund-amount {
        font-size: 22px;
    }

    .auto-dealers .section-title {
        font-size: 27px;
    }

    .consultation-content {
        flex-direction: column;
        align-items: center;
    }

    .quiz-step.loading:before {
        display: none;
    }

    .quiz-step.loading {
        flex-direction: column;
        padding: 20px;
        height: auto;
    }

    .quiz-step.loading h2 {
        font-size: 28px;
    }

    .quiz-step.loading .bonus {
        flex-direction: row;
    }

    .loading-animation svg {
        width: 120px;
        height: 120px;
    }

    .quiz-step.loading .quiz-bonuses {
        height: auto;
    }

    .quiz-step.final:before {
        display: none;
    }

    .quiz-step.final {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .quiz-step.final form {
        order: 2;
    }

    .quiz-step.final p {
        order: 3;
    }

    .contact-section .contact-info {
        width: 45%;
    }

    .footer-section .consult-btn {
        padding: 5px;
        width: 230px;
        height: 50px;
        font-size: 17px;
    }

    .office-section .office-gallery {
        gap: 7px;
    }

}

@media screen and (max-width: 720px) {
    .container {
        width: 375px;
    }

    .contact-form-section .image-wrapper {
        position: relative;
        max-width: 94%;
        margin: 0 auto;
    }

    .services-tabs {
        background-size: 118px;
        background-position-y: 243px;
    }

    .team {
        padding: 40px 0;
        background: linear-gradient(35deg, #f6f6f6 0%, #f6f6f6 50%, #dfdfdf 100%);
    }

    .contact-form-section {
        padding: 50px 0 50px 0;
    }

    .contact-form-section .form-content h2 {
        font-size: 27px;
    }

    .wrap {
        border: 1px solid var(--osnovnoy-siniy);
        border-radius: 20px;
        padding: 20px 0px 0px 0px;
        margin-top: 0;
        padding-top: 20px;
    }

    .contact-form-section .form-content p {
        font-weight: 300;
        font-size: 16px;
        line-height: 137%;
        color: #323232;
        padding: 0 20px;
    }

    .borab {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        border-bottom: none !important;
    }

    .consultation-text p {
        font-size: 18px;
    }

    .online-expert-left .online-status {
        display: none;
    }

    .quick-help {
        border-bottom: 1px solid var(--osnovnoy-seryy);
    }

    .team .section-title {
        font-size: 27px;
    }

    .services .section-title {
        font-size: 27px;
    }

    .media .prev-btn,
    .media .next-btn {

        width: 45px;

        height: 45px;

        background-size: cover;

        min-width: 45px;
    }

    .header {
        padding: 10px 0;
    }

    #block {
        background-size: cover;
    }

    .header-content {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .header-logo img {
        width: 121px
    }

    .phone {
        font-size: 18px;
        font-weight: 700;
        font-size: 16px;
        line-height: 156%;
        background: linear-gradient(180deg, #2d65a8 0%, #233f67 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: flex;
        align-items: center;
        margin-right: auto;
    }

    .phone span {
        display: none;
    }

    .callback {
        display: none;
    }

    header .btn-primary {
        padding: 5px;
        width: 175px;
        height: 45px;
        font-size: 18px;
        margin-left: 10px;
        display: none;
    }

    .hero-info {
        width: 375px;
        flex-direction: column;
        display: flex;
    }

    .highlight-item {
        width: 100%;
        height: 67px;
        font-size: 18px;
        line-height: 139%;
        text-align: center;
        padding-right: 35px;
        padding: 10px 60px;
    }

    .highlight-item:before {

        width: 37px;
        height: 37px;
        background-size: 37px;

    }

    .highlights {
        order: 3;
        margin-top: 30px;
    }

    .hero .consultation-form {
        width: 100vw;
        height: auto;
        padding: 20px;
        margin-bottom: 10px;
        position: relative;
        z-index: 2;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0;
    }

    .hero .consultation-form h2 {
        font-size: 27px;
        margin-bottom: 20px;
    }

    .hero .consultation-form form {
        flex-direction: column;
    }

    .hero h1 {
        font-weight: 700;
        font-size: 30px;
        line-height: 133%;
        text-transform: uppercase;
        background: linear-gradient(180deg, #323232 0%, #656565 50%, #202020 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .text-secondary {
        font-size: 18px;
        text-align: center;
        padding: 10px 30px;
    }

    .stats-content {
        background: url('../images/bg-plus-mob.webp') top center no-repeat;
        height: 430px;
        flex-direction: column;
        box-sizing: content-box;
        width: 335px;
        padding: 0;
        justify-content: center;
        gap: 15px;
    }

    .divider {
        height: 1px;
        width: 77%;
    }

    .hero-image {
        left: 178px;
        bottom: inherit;
        top: 322px;
        z-index: 1;
    }

    .stat-number {
        font-size: 64px;
    }

    .media-image {
        width: 100%;
        height: auto;
    }

    .media-description h2 {

        font-size: 27px;

        line-height: 130%;
    }

    .media-description p {
        font-size: 16px;
    }

    .services-tabs .services-flex-container {
        flex-direction: column;
    }

    .price-item {
        transition: background-color 0.3s;
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #323232;
    }

    .price-table-header {
        display: none;
    }

    .price-item-service {
        width: 100%;
    }

    .price-item td.price-item-cost {
        width: 100%;
        border: 1px solid var(--osnovnoy-siniy);
        border-radius: 10px;
        padding: 5px 10px;
        width: fit-content;
        height: 32px;
        font-weight: 400;
        font-size: 16px;
        line-height: 137%;
        color: #323232;
        margin-left: 15px;
    }

    .contact-form-section .contact-form .flex {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form-section .image-caption {
        left: revert-layer;
        transform: translateX(0%);
        padding: 5px;
        width: 200px;
        height: 62px;
        bottom: 40px;
    }

    .contact-form-section .image-caption p {
        font-weight: 700;
        font-size: 16px;
        line-height: 137%;
        padding: 0;
        margin-bottom: 0;
    }

    .contact-form-section .image-caption span {
        font-size: 14px;
    }

    .office-section .office-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .contact-form-section .contact-form {
        width: 100%;
    }

    .online-expert-right {
        max-width: 100%;
        position: relative;
        top: -400px;
    }

    .online-expert-right .online-status {
        display: flex;
    }

    .online-expert .logos {
        flex-wrap: nowrap;
        justify-content: start;
    }

    .review-video {
        width: 100%;
    }

    .review-video .thumbnail img {
        width: 100%;
    }

    .video-review .review-text {
        width: 100%;
    }

    .video-review form {
        flex-direction: column;
    }

    .video-slider .thumbnail img {
        width: 100%;
    }

    .case-slider h2 {
        font-size: 24px;
    }

    .case-slider .slider-item {
        width: 375px;
        min-width: 375px;
        max-width: 375px;
        flex-direction: column-reverse;
    }

    .case-slider .slider-item:after {
        transform: rotate(0deg);
        height: 124%;
        width: 100%;
        right: 0;
        top: -487px;
    }

    .case-slider .item-right {
        align-items: center;
        justify-content: center;
        display: flex;

    }

    .consultation .consultation-form {
        width: 100%;
        margin-top: -122px;
        padding: 30px 20px;
    }

    .consultation .consultation-form h3 {
        font-size: 20px;
    }

    .consultation .consultation-form p {
        font-size: 16px;
    }

    .services .service-item {
        width: 100%;
        max-width: 100%;
    }

    .quiz-options label {
        width: 100%;
        font-weight: 300;
        font-size: 16px;
        line-height: 137%;
        color: #323232;
        height: 46px;
        margin-bottom: 0;
    }

    .quiz-options input[type="radio"] {
        width: 20px;
        height: 20px;
    }

    .quiz-navigation {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 20px;
    }

    .quiz-navigation .prev-btn {
        border-radius: 10px;
        padding: 15px;
        width: 100%;
        height: 55px;
        border: 2px solid #323232;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
        font-weight: 700;
        font-size: 18px;
        line-height: 100%;
        color: #323232;
    }

    .quiz-navigation .next-btn {
        width: 100%;
        order: 1;
        font-weight: 700;
        font-size: 18px;
        line-height: 100%;
        color: #fff;
    }

    .quiz-navigation .prev-btn svg {
        display: none;
    }

    .quiz-question-section {
        border-top-left-radius: 10px;
        border-bottom-left-radius: revert-layer;
        border-top-right-radius: 10px;
        padding-bottom: 20px;
    }

    .quiz .lawyer-info {
        display: none;
    }

    .quiz-question-text {
        font-weight: 700;
        font-size: 18px;
        line-height: 139%;
        color: #323232;
    }

    .quiz-question-title {
        font-weight: 300;
        font-size: 16px;
        line-height: 137%;
        color: #323232;
    }

    .team-slider {
        width: 375px;
    }

    .team-content .team-thumbnails {
        display: flex;
        overflow-x: auto;
        /* Включаем горизонтальную прокрутку */
        white-space: nowrap;
        /* Запрещаем перенос элементов на новую строку */
        scrollbar-width: none;
        /* Убираем стандартный скроллбар (для Firefox) */
        flex-wrap: nowrap;
        justify-content: start;
        width: max-content;
        overflow: hidden;
    }

    .right-arrow,
    .left-arrow {
        display: none;
    }

    .team-content .team-thumbnails::-webkit-scrollbar {
        display: none;
        /* Убираем скроллбар (для Chrome, Safari) */
    }

    .team-content .team-thumbnails .item {
        flex: 0 0 auto;
        /* Элементы не сжимаются и занимают свою ширину */
        width: 150px;
        /* Ширина каждого элемента */
        height: 150px;
        background-color: lightblue;
        margin-right: 10px;
        text-align: center;
        line-height: 150px;
        /* Центрируем текст по вертикали */
    }

    .team-info.active {
        flex-direction: column;
    }

    .team-thumbnail {
        width: 104px;
        height: 110px;
        min-width: 104px;

    }

    .quick-help-item {
        width: 100%;
        max-width: 100%;
    }

    .benefits-list {
        flex-direction: column;
        margin: 30px 0;
    }

    .online-expert form {
        position: relative;
        top: 420px;
        max-height: 368px;
        padding: 20px;
    }

    #questionForm {
        gap: 20px;
    }

    .question-form h3,
    .contact-form h3 {
        font-size: 20px;
    }

    .question-form textarea {
        height: 135px;
    }

    .benefits-list li {
        font-size: 18px;
    }


    .video-slider .next-btn,
    .video-slider .prev-btn {
        width: 32px;
        height: 32px;
        object-fit: contain;
        background-size: cover;
        min-width: 32px;
    }

    .consultation .consultation-form input {
        width: 100%;
        height: 60px;
    }

    .consultation .btn-primary {
        width: 100%;
        font-size: 18px;
        height: 60px;
    }

    .services-tabs h2 {
        font-size: 30px;
    }

    .price-list-title {
        font-size: 30px;
    }

    .price-item-num {
        display: none;
    }

    .services-tabs .service-item {
        width: 100%;
    }

    .services-tabs .tabs {
        flex-direction: column;
        gap: 15px;
    }

    .video-review .review-text input {
        width: 100%;
    }

    .price-list td {
        width: 100%;
        border-bottom: none;
    }

    .price-item-service a {
        font-weight: 700;
        font-size: 20px;
        line-height: 139%;
        color: #323232;
    }

    .price-item-order .btn-order {
        font-weight: 700;
        font-size: 18px;
        line-height: 100%;
        color: #fff;
        box-shadow: 0 2px 0 0 #12335a, inset 0 4px 4px 0 #3b71b0;
        background: linear-gradient(180deg, #2d65a8 0%, #233f67 100%);
        border-radius: 10px;
        padding: 12px 40px;
        width: 295px;
        height: 54px;
    }

    .video-section {
        padding: 30px 0;
    }

    .video-section .video-wrapper {
        flex-direction: column;
    }

    .video-section .video-thumbnail {
        width: 100%;
        background: #fff;
    }

    .video-description {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .video-section .video-description h3 {
        font-size: 18px;
        text-align: left;
    }

    .video-section .video-description p {
        font-weight: 400;
        font-size: 16px;
        line-height: 137%;
        color: #323232;
        text-align: left;
    }

    .video-section .video-thumbnail {
        margin-right: 0;
        height: auto;
        width: 160px;
    }

    .office-section .office-title {
        font-size: 27px;
    }

    .office-section .rating-item {
        width: 46%;
        height: 81px;
    }

    .office-section .office-gallery img:nth-child(1) {
        width: 100%;
    }

    .office-section .office-gallery img:nth-child(3) {
        width: 49%;
        height: 169px;
        object-fit: cover;
    }

    .office-section .office-gallery img:nth-child(6) {
        width: 49%;
        height: 169px;
        object-fit: cover;
    }

    .office-section .rating-item:nth-child(2) {
        display: none;
    }

    .rating-item .right {
        width: inherit;
        gap: 0px;
    }

    .rating-item span {
        white-space: normal;
        font-size: 10px;
    }

    .contact-section {
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        background: #fff;
        padding: 20px 0;
    }

    .contact-section .container {

        margin-bottom: 20px;

    }

    .contact-section:before {
        display: none;
    }

    .contact-section .contact-map {
        position: relative;
        width: 100%;
        z-index: 1;
    }

    .contact-section .contact-info {
        width: 100%;
    }

    .contact-section .contact-info p {
        font-size: 18px;
    }

    .contact-section .callback-btn {
        font-size: 18px;
        height: 60px;
    }

    .contact-section .contact-map img {
        display: block;
    }

    .footer-section .footer-content {
        flex-direction: column;
    }

    .contact-section .contact-title {
        font-size: 27px;
    }

    .services-tabs .services-flex-container {
        border: none;
    }

    .services-tabs .tab-content.active {
        border: 1px solid #2D65A8;
        border-radius: 20px;
    }

    .services-tabs .service-item {
        border: none;
        border-bottom: 1px solid #2D65A8;
    }

    .services-tabs .services-flex-container {
        border: none;
        border-right: 1px solid #2D65A8;
        border-radius: 20px;
    }

    .services-tabs .services-block {
        border: none;
    }

    .services-tabs .services-flex-container {
        border: none;
        background: transparent;
    }

    .service-item.even {
        background: #fff;
    }

    .service-item.even.bora {
        border-top;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        background: transparent;
    }

    .service-item.odd {
        background: var(--osnovnoy-seryy);
    }

    .services-tabs .service-item:last-child {

        border-bottom: 1px solid #2D65A8;
    }

    .hero .lawyer-info {
        top: 0;
        margin-left: 0;
        width: 100%;
        display: none;
    }

    .subtitle {
        font-weight: 400;
        font-size: 18px;
        line-height: 139%;
        color: #323232;
        margin-bottom: 265px;
    }

    .hero {
        padding-top: 91px;
        padding-bottom: 74px;
    }

    .hero .consultation-form .input-phone {
        width: 100%;
        height: 60px;

    }

    .hero .consultation-form .btn {
        width: 100%;
        margin-top: 20px;
    }

    .hero .hero-image img {
        max-width: 296px;
        width: 248px;
        height: 384px;
        : :after attr(href="images/urist1.png");
    }

    .hero .rating-item {
        width: 100%;
        height: 70px;
        width: 287px;
        height: 53px;
        padding: 8px 17px;
    }

    .hero .ratings .rating-item:nth-child(1) {
        display: block;
        padding: 7px 17px;
        padding-right: 40px;
    }

    .hero .rating-item p.pay {
        padding: 0;
        font-size: 13px;
        padding-right: 40px;
    }

    .hero .rating-item p.pay strong {
        font-size: 16px;
    }

    .hero .rating-item p.auto {
        padding: 0;
        font-size: 16px;
        padding-right: 10px;
        padding-left: 0px;
        line-height: 120%;
    }

    .hero .rating-item p.auto strong {
        font-size: 16px;
    }

    .hero .ratings .rating-item:nth-child(2),
    .hero .ratings .rating-item:nth-child(3) {
        display: block;
        padding-right: 93px;
    }

    .hero .ratings .rating-item:nth-child(3) {
        order: 4;
    }

    .hero .rating-item p.expert {

        padding: 0;

        font-weight: 400;

        font-size: 16px;

        line-height: 138%;

        color: #323232;
    }

    .rating-item p.expert .flex {
        right: 26px;
        bottom: 4px;
    }

    .hero .rating-item p.expert strong {
        font-size: 16px;
    }

    .hero .ratings .rating-item:nth-child(4) {
        display: flex;
        flex-direction: column;
        height: 60px;
        order: 3;
        position: relative;
    }

    .hero .ratings .rating-item:nth-child(4) .right {
        text-align: left;
    }

    .hero .ratings .rating-item:nth-child(4) .right .rait {
        display: none;
    }

    .hero .ratings .rating-item:nth-child(4) .right strong {
        position: absolute;
        left: 100px;
        bottom: 16px;
        font-size: 16px;
        line-height: 100%;
    }

    .rating-item .left {
        gap: 5px;
        width: 34%;
    }

    .rating-item .left img {
        max-height: 15px;
        height: 15px;
        object-fit: contain;
        object-position: left;
    }

    .hero-info .ratings {
        display: flex;
    }

    .hero .ratings {
        gap: 10px;
        flex-wrap: wrap;
        flex-direction: row;
        position: absolute;
        top: 360px;
        z-index: 0;
    }

    .statistics {
        background-size: cover;
        background-position: top center;
    }

    .stats-item {
        justify-content: center;
        align-items: center;
        max-height: 91px;
    }

    .stats-item:last-child {
        max-height: 108px;
    }

    .stat-number small {
        font-size: 16px
    }

    .stat-label {
        padding: 0 20px;
        font-weight: 400;
        font-size: 16px;
        line-height: 137%;
        text-align: center;
        color: #323232;
    }

    .quiz {
        margin-top: 50px;
    }

    .quiz-title {
        font-weight: 700;
        font-size: 25px;
        line-height: 140%;
        text-transform: uppercase;
        background: linear-gradient(131deg, #f0f0f0 0%, #fff 50%, #ddd 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 30px;
    }

    .video-review .review-text h2 {
        font-size: 33px;
    }

    .consultation {
        padding-top: 50px;
    }

    .video-section .video-description p {
        margin-top: 15px;
    }

    .office-section .office-badge p {
        font-size: 18px;
    }

    .office-section .office-badge p br {
        display: none;
    }

    .online-expert .contact-form input {
        width: 100%;
    }
    
    .contact-form-section .form-content .privacy-policy {
        width: 94%;
        margin-left: auto;
        margin-right: auto;
    }

    .online-expert .btn-primary {
        width: 100%;
        font-size: 18px;
        height: 60px;
    }

    .quiz-step.final {
        height: auto;
    }

    .quiz-step.final .quiz-bonuses {
        width: 100%;
    }

    .quiz-step.final input {
        width: 100%;
    }

    .bonus-item {
        width: 100%;
    }

    .quiz-step.final .bonus-item img {
        width: 100%;
    }

    .quiz-step.final button {
        width: 100%;
    }

    .quiz-step.final form {
        width: 100%;
    }

    .quiz-step.final .bonus {
        width: 100%;
        gap: 10px;
    }

    .quiz-step.final h2 {
        font-size: 25px;
    }

    .popup {
        width: 375px;
        height: auto;
        padding: 20px;
    }

    .popup h2 {
        font-size: 20px;
    }

    .popup form input {
        width: 100%;
        margin-bottom: 10px;
    }

    .popup form button {
        width: 100%;
        margin-top: 0;
        font-size: 18px;
        padding: 0;
    }

    .popup form {
        width: 100%;
        margin-top: 20px;
    }

    .popup p {
        margin-top: 10px;
        font-size: 18px;
    }

    .contact-form-section .image-caption span:last-child {
        bottom: -14px;
        font-size: 14px;
        height: 24px;
    }

    .contact-form-section .contact-form input {
        width: 94%;
        margin: 0 auto;
        height: 60px;
    }

    .rating-item p {

        font-size: 14px;
        line-height: 135%;
    }

    .office-section .rating-item .left>img {

        height: 18px;

    }

    .contact-form-section .contact-form .submit-button {
        width: 94%;
        font-size: 18px;
        margin: 0 auto;
        display: block;
        height: 60px;
    }
    
    .contact-form-section .form-content .privacy-policy {
        width: 94%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form-section .contact-info {
        width: 100%;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        padding: 0;
        min-width: 320px;
    }

    .contact-form-section .contact-info p {
        padding: 0;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tabs-nav li {
        width: 50%;
    }

    .tabs-nav {
        height: auto;
    }

    .tabs-nav li a {
        border-right: 1px solid #233f67;
        padding: 5px;
        border-right: none;
    }

    .tabs-items .flex {
        flex-direction: column;
    }

    .tabs-items .right h2 {
        font-size: 18px;
    }

    #popup-case .popup {
        padding: 20px;
    }

    .tabs-items .right p {
        font-size: 16px;
    }

    .tabs-items .right p span {
        font-size: 16px;
    }

    .logo-track {
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
        padding: 0 20px;
    }

    .logo-track img {
        max-height: 66px;
        border: 1px solid var(--osnovnoy-seryy);
        border-radius: 5px;
    }

    .burger {
        display: block;
    }

    .menu {
        display: block;
        order: 4;
        position: relative;
    }

    .header-contacts {
        margin-left: auto;
    }

    .menu-items {
        display: none;
    }

    /* Стили для бургер-кнопки */
    .burger {
        width: 35px;
        height: 35px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        background: linear-gradient(180deg, #2d65a8 0%, #233f67 100%);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    .burger span {
        display: block;
        height: 1.4px;
        background-color: #ffffff;
        transition: 0.3s;
        width: 19px;
        max-height: 1.4px;
        min-height: 1.4px;
    }

    /* Стили для видимого меню */
    .menu.open .menu-items {
        display: flex;
        position: absolute;
        right: 0;
        top: 45px;
        border-radius: 0 0 10px 10px;
        padding: 20px 20px 20px 60px;
        width: 148px;
        height: 192px;
        backdrop-filter: blur(60px);
        box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
        background: #fff;
        opacity: 0.95;
        flex-direction: column;
        align-items: baseline;
        gap: 20px;
    }

    .menu a {
        font-weight: 400;
        font-size: 16px;
        line-height: 144%;
        color: #323232;
    }

    /* Анимация для крестика */
    .menu.open .burger span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
        margin-top: 4px;
    }

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

    .menu.open .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .slider-wrapper {
        overflow: hidden;
        position: relative;
        max-width: 320px;
    }

    .media-logos img,
    .media-publications img {
        max-width: 100px;
    }

    .media-logos,
    .media-publications {
        justify-content: start;
        flex-wrap: nowrap;
    }

    .slider-wrapper .dots {
        display: flex;
        justify-content: left;
        margin-top: 10px;
        align-items: center;
    }

    .slider-wrapper .dot {
        width: 10px;
        height: 10px;
        background-color: transparent;
        border-radius: 50%;
        margin: 0 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        border: 1px solid #253D64;
    }

    .slider-wrapper .dots .arrow {
        margin-left: 10px;
    }

    .slider-wrapper .dot.active {
        background-color: #253D64;
    }


    .team-slider .dots {
        display: flex;
        justify-content: left;
        margin-top: 10px;
        align-items: center;
    }

    .team-slider .dot {
        width: 10px;
        height: 10px;
        background-color: transparent;
        border-radius: 50%;
        margin: 0 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        border: 1px solid #253D64;
    }

    .team-slider .dots .arrow {
        margin-left: 10px;
    }

    .team-slider .dot.active {
        background-color: #253D64;
    }

    .media-slider .slider-item {
        min-width: 320px;
    }

    .media-slider .slider-item h3 {

        border-bottom: 1px solid #c5c5c5;

        padding-bottom: 20px;

        font-size: 22px;
    }

    .mob {
        display: block;

    }

    .pc {
        display: none;
    }
    
    .policy-checkbox {
        margin-bottom: 20px;
    }

}



@media screen and (max-width: 400px) {
    #block {
        background-size: cover
    }

    .video-review {
        padding: 20px 0;
    }

    .video-slider {
        /*
        padding-top:20px;
*/
    }

    .video-slider h2 {
        font-family: var(--second-family);
        font-weight: 700;
        font-size: 20px;
        line-height: 135%;
        text-transform: uppercase;
        color: #323232;
        margin-bottom: 20px;
    }

    .container {
        width: 320px;
    }

    .services-tabs {
        background-size: 118px;
        background-position-y: 281px;
        background-position-x: 248px;
    }

    .popup {
        width: 320px;
        height: auto;
        padding: 20px;
    }

    .auto-dealers {
        padding: 20px 0;
    }

    .header-logo img {
        width: 121px;
    }

    .header-contacts {
        flex-direction: column;
    }

    .hero {
        padding-top: 91px;
        overflow: hidden;
        position: relative;
    }

    .hero-image {
        left: 144px;
        top: 294px;
    }

    .hero-image img {
        width: 265px;
    }

    .team-photo-display {
        width: 100%;
        min-width: 320px;
    }

    .team-content .team-thumbnails {}

    .video-review .btn-primary {
        width: 100%;
    }

    .hero-info {
        width: 320px;
        display: flex;
        flex-direction: column;
    }

    .text-secondary {
        font-size: 18px;
        padding: 10px;
        width: 100%;
        display: block;
        text-align: center;
    }

    .highlight-item {
        padding: 10px 40px;
    }

    .highlights .highlight-item:nth-child(1) {}

    .highlights .highlight-item:nth-child(2) {

        order: 3;
    }

    .highlights .highlight-item:nth-child(3) {

        order: 2;
    }

    .highlights .highlight-item:nth-child(4) {

        order: 1;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 120%;
    }

    .rating-item {
        position: relative;
        width: 100%;
    }

    .quiz-step.final h3 {
        font-size: 20px;
    }

    .quiz-step.final .quiz-bonuses {
        width: 100%;
        height: auto;
    }

    .services .section-title {
        font-size: 24px;
    }

    .team .section-title {
        font-size: 30px;
    }

    .quick-help .section-title {
        font-size: 24px;
    }

    .online-expert-left h2 {
        font-size: 30px;
    }

    .auto-dealers .section-title {
        font-size: 28px;
    }

    .review-video .thumbnail p {
        margin-top: 5px;
        bottom: 10px;
        font-size: 14px;

        left: 5px;
    }

    .question-form h3,
    .contact-form h3 {
        font-size: 20px;
        line-height: 120%;
    }

    .online-expert form {

        top: 400px;

    }

    .online-expert {
        padding-bottom: 0px;
    }

    .case-slider .slider-item {
        width: 320px;
        min-width: 320px;
        max-width: 320px;

    }

    .case-slider h2 {
        font-size: 19px;
    }

    .consultation-text h2 {
        font-size: 20px;
    }

    .consultation .phone-link {
        font-size: 19px;
    }

    .contact-form-section .form-content h2 {
        font-size: 29px;
    }

    .office-section .office-title {
        font-size: 24px;
    }

    .office-section .office-gallery {
        gap: 6px;
    }

    .contact-section .contact-info p {
        font-size: 16px;
    }

    header .btn-primary {
        margin-left: 0;
        display: none;
    }

    .stat-number {
        font-size: 54px;
    }

}

/* responsiv 2 */

@media (max-width:720px) {
    .hero .rating-item.shadow p.pay {
        font-weight: 700;
        font-size: 16px;
        line-height: 127%;
        color: #323232;
    }

    .video-review .btn-primary {
        width: 100%;
        height: 60px;
    }

    .media-slider .slider-item p {
        margin-bottom: 15px;
        font-weight: 400;
        font-size: 18px;
        line-height: 139%;
        color: #323232;
    }

    .media-slider .btn-read {
        font-weight: 400;
        font-size: 18px;
        line-height: 139%;
        text-decoration: underline;
        text-decoration-skip-ink: none;
        color: #646464;
        background: transparent;
    }

    .services .service-description li {
        margin-bottom: 5px;
        font-weight: 400;
        font-size: 18px;
        line-height: 122%;
        color: #323232;
    }

    .services .service-item .btn-primary {
        background-color: #0056b3;
        color: #fff;
        text-align: center;
        border: none;
        border-radius: 10px;
        padding: 15px 45px;
        width: 210px;
        height: 48px;
        box-shadow: 0 2px 0 0 #12335a, inset 0 4px 4px 0 #3b71b0;
        background: linear-gradient(180deg, #2d65a8 0%, #233f67 100%);
        font-weight: 700;
        font-size: 22px;
        line-height: 82%;
        color: #fff;
    }

    .video-review .review-text p {
        margin-bottom: 5px;
        font-size: 20px;
        line-height: 140%;
    }

    .case-slider .item-left h3 {
        font-weight: 400;
        font-size: 16px;
        line-height: 137%;
        color: #323232;
        margin-bottom: 20px;
    }

    .case-slider .item-left h3 strong {
        font-weight: 700;
        font-size: 18px;
        line-height: 122%;
        color: #323232;
        margin-bottom: 5px;
        display: block;
    }

    .case-slider .item-left p {
        font-weight: 400;
        font-size: 16px;
        line-height: 125%;
        color: #323232;
        margin-bottom: 20px;
    }

    .footer-section .footer-info p {
        margin-bottom: 10px;
        font-weight: 300;
        font-size: 18px;
        line-height: 139%;
        color: #fff;
    }

    .bonus-item p {
        font-size: 12px;
    }

    .video-slider .slider-item h3 {
        font-size: 15px;
    }
}

/* responsiv 2 */

@media (max-width:400px) {
    .media-slider .slider-item p {
        font-size: 16px;
    }

    .quiz-title {
        font-size: 18px;
    }

    .quiz-step.final h2 {
        font-size: 22px;
    }

    .services .service-description li {
        font-size: 16px;
    }

    .services .service-item h3 {
        font-size: 18px;
    }

    .help-text h3 {
        font-size: 17px;
    }

    .help-text p {
        font-size: 14px;
    }

    .online-expert-left p {
        font-size: 16px;
        line-height: 145%;
    }

    .video-review .review-text p {
        font-size: 16px;
    }

    .video-slider .refund-amount {
        font-size: 20px;
    }

    .video-slider blockquote p {
        font-size: 14px;
    }

    .consultation .consultation-form p {
        font-size: 14px;
    }

    .consultation-text p {
        font-size: 16px;
    }

    .services-tabs h2 {
        font-size: 28px;
    }

    .office-section .office-badge p {
        font-size: 16px;
    }
}

.show-on-ipad {
    display: none;
}

@media (max-width: 1200px) and (min-width: 961px) {

    .wrap-team-slider,
    .team-slider {
        width: 100%;
    }



    .services .service-item {
        flex: 1 1 calc(49% - 16px);
        max-width: calc(49% - 16px);
    }

    .hidden-on-ipad {
        display: none !important;
        /* Скрывает элемент */
    }

    .show-on-ipad {
        display: block;
        /* или flex, grid, inline-block и т.д. */
    }

    .team-info-container {
        height: 100%;
    }

    .team-content {
        margin-bottom: 10px;
    }

    .online-expert-content {
        flex-direction: row;
    }

    .video-review-content {
        flex-direction: row;
    }

    .video-review .review-text {
        max-width: auto;
    }

    .video-review .review-text input {
        width: 200px;
    }

    .video-review .btn-primary {
        font-size: 16px;
        width: 253px;
    }

    .review-video .thumbnail img {
        width: 100%;
    }

    .video-slider .slider-item h3 {
        font-size: 14px;
    }

    .video-slider .thumbnails {
        justify-content: space-between;
    }

    .video-review-content {
        align-items: flex-start;
    }

    .video-review .review-text h2 {
        font-size: 33px;
        margin-bottom: 5px;
    }

    .video-review .review-text p {
        font-size: 14px;
    }

    .video-slider .slider-item p.moneyback {
        font-size: 16px;
    }

    .video-slider .refund-amount {
        font-size: 16px;
    }

    .quick-help .section-title {
        font-size: 36px;
    }

    .office-section .rating-item {
        width: 31%;
    }
}

@media screen and (max-width: 960px) and (min-width: 721px) {


    .container {
        width: 90%;
    }

    .hero-content {
        grid-template-columns: 1fr auto;

    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .lawyer-info {
        width: auto;
        top: -2.6px;
    }

    .hero-info {
        width: 77%;
    }

    .highlight-item {
        width: 47%;
        font-size: 16px;
        padding: 8px 12px 8px 22px;
    }

    .subtitle {
        font-size: 19px;
        margin-bottom: 16px;
    }

    .hero-image {
        left: 45%;
    }

    .hero-image img {
        width: 380px;
    }

    .hero .consultation-form {
        padding: 24px 31px;
        width: auto;
    }

    .highlights-mobile {
        width: 416px;
    }

    .hero .consultation-form form {
        gap: 5px;
    }

    .hero .consultation-form .input-phone {
        width: 200px;
    }

    .hero .consultation-form .btn {
        height: 50px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .media-info {
        align-items: center;
    }

    .quiz-title {
        font-size: 22px;
    }

    .team-slider {
        width: 100%;
    }

    .team-thumbnails {
        flex-wrap: nowrap;
    }

    .media-logos,
    .media-publications {
        justify-content: space-around;
    }

    .services .service-item {
        flex: 1 1 calc(49% - 16px);
        max-width: calc(49% - 16px);
    }

    .online-expert-right {
        max-width: 100%;
    }

    .lawyer-photo img {
        width: 100%;
    }

    .logos {
        justify-content: space-around;
    }

    .media-image {
        object-fit: unset;
        object-position: unset;
        width: 100%;
        height: unset;
    }

    .review-video,
    .video-review .review-text {
        width: 100%;
        max-width: 100%;
    }

    .review-video .thumbnail img {
        width: 100%;
    }

    .video-slider .slider-item h3 {
        font-size: 16px;
    }

    .case-slider .slider-item {
        height: 336px;
    }

    .popup-link img {
        width: 150px;
    }

    body.popup-open {
        overflow: hidden;
    }

    .consultation-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-items: stretch;
        justify-items: center;
    }

    .consultation .consultation-form {
        grid-column: 1 / 3;
        max-width: 100% !important;
    }

    .consultation-image {
        width: 210px;
        height: 420px;
        overflow: hidden;
    }

    .consultation-image img {
        width: 210px;
        height: auto;
    }

    .services-tabs .service-item .text p {
        font-size: 15px;
        line-height: 100%;
    }

    .contact-form-section .form-content {
        width: 100%;
        max-width: 100%;
    }

    .contact-form-section .contact-form {
        width: 100%;
    }

    .contact-form-section .contact-form input {
        width: 48%;
    }

    .contact-form-section .flex>div {
        width: 48%;
    }

    .contact-form-section .contact-info {
        width: 48%;
    }

    .office-section .office-title {
        font-size: 40px;
    }

    .office-section .office-header {
        flex-direction: column;
        align-items: unset;
        padding: 0 16px;
    }

    .office-section .ratings {
        justify-content: space-between;
    }

    .office-section .rating-item {
        width: 30%;
    }

    .office-section .office-badge {
        justify-content: space-between;
    }

    .office-section .office-badge p {
        font-size: 30px;
    }

    .office-section .office-badge img {
        width: 210px;
        position: relative;
        top: -10px;
    }
}


@media(max-width: 768px) {
    .team-details {
        width: 90%;
        overflow: hidden;
    }

}

@media(max-width: 720px) {
    #block {
        width: 100%;
        overflow: hidden;
    }

    .logo-track img {
        width: 47%;
    }
}

@media(max-width: 360px) {
    .team-details {
        width: 360px;
        overflow: hidden;
    }

    .media .media-wrap {
        overflow: hidden;
    }

    .media .prev-btn {
        left: 0;
    }

    .media .next-btn {
        right: 0;
    }
}


@media(max-width: 320px) {

    .hero-content,
    .team-details {
        width: 320px;
        overflow: hidden;
    }

    .highlights.highlights-mobile {
        position: relative;
        width: 320px;
        justify-content: center;
    }

    .highlight-item {
        width: 92%;
    }

    .media .media-wrap {
        overflow: hidden;
    }

    .media .prev-btn {
        left: 0;
    }

    .media .next-btn {
        right: 0;
    }
}
