@media (max-width: 1919px) {
    body {
        transform: none !important;
        width: 100% !important;
        max-width: 1920px;
        height: auto !important;
    }

    #modal-root {
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* --------------------------------------------------------------------------
   ≤1440px — планшет-ландшафт
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    :root {
        --header-h: 72px;
    }

    .container {
        padding: 0 22px;
    }

    .header-top__phone {
        font-size: 20px;
    }

    .header-top__icon {
        width: 46px;
        height: 46px;
    }

    .header-top__icon svg {
        width: 21px;
        height: 21px;
    }

    /* навигация: чуть уменьшаем интервалы */
    .nav__list {
        gap: 36px;
    }

    .nav__link {
        font-size: 17px;
        padding: 14px 0;
    }

    .nav__actions {
        gap: 6px;
    }

    .nav__city {
        font-size: 16px;
    }

    #searchTrigger {
        margin-left: 14px;
    }

    /* hero */
    .hero {
        height: 540px;
    }

    .hero .hero__title {
        font-size: 46px;
    }

    .hero__slogan {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .hero__shield svg {
        width: 760px;
    }

    /* боковые колонки */
    .sidebar-left,
    .sidebar-right {
        width: 250px;
        min-width: 220px;
    }

    .sidebar-nav,
    .consultation-card {
        width: 100%;
    }

    .sidebar-nav__title {
        font-size: 22px;
    }

    .sidebar-nav a {
        font-size: 17px;
    }

    .consultation-card__text {
        font-size: 20px;
    }

    /* секции */
    .section-card {
        padding: 34px;
    }

    .section-card__title {
        font-size: 28px;
        margin-bottom: 26px;
    }

    .service-item {
        width: 100%;
        min-height: 96px;
        height: auto;
        padding: 18px 20px;
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* .team-card {
        flex-basis: 220px;
    } */

    .team-card__wrap {
        height: 316px;
    }

    .section-card--has-swiper {
        padding-right: 34px;
    }

    .swiper-section .swiper-slide:last-child {
        margin-right: 34px;
    }

    .casesSwiper .swiper-slide,
    .reviewsSwiper .swiper-slide,
    .relatedSwiper .swiper-slide,
    .newsSwiper .swiper-slide {
        width: 320px;
    }

    .case-card__image {
        height: 220px;
    }

    .review-card {
        padding: 30px 20px;
    }

    .review-card__text {
        font-size: 17px;
    }

    .review-card__name {
        font-size: 20px;
    }

    .cta-card {
        padding: 50px;
    }

    .cta-card__title {
        font-size: 28px;
    }

    .contact-modal__window {
        width: 94vw;
        padding: 50px;
    }

    .footer__links a,
    .footer__phone,
    .footer__email,
    .footer__social-title,
    .footer__heading {
        font-size: 17px;
    }

    .footer__grid {
        grid-template-columns: 1.3fr 1fr 1.2fr auto;
    }
}

/* --------------------------------------------------------------------------
   ≤1200px — планшет
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {

    /* hero: щит уменьшаем, текст выше */
    .hero {
        height: auto;
        padding-bottom: 0;
    }

    .hero__inner {
        height: auto;
        padding-top: 48px;
        align-items: flex-start;
    }

    .hero__content {
        max-width: 640px;
    }

    .hero .hero__title {
        font-size: 42px;
    }

    .hero__shield {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 24px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .hero__shield svg {
        width: 640px;
        max-width: 100%;
    }

    .hero__decoration {
        width: 70%;
        opacity: 0.6;
    }

    .hero__arc--1 {
        width: 460px;
        height: 460px;
    }

    .hero__arc--2 {
        width: 620px;
        height: 620px;
    }

    .hero__arc--3 {
        width: 780px;
        height: 780px;
    }

    /* main: колонки перестраиваем */
    .main {
        flex-wrap: wrap;
    }

    .sidebar-left {
        display: none;
        /* навигацию-якоря скрываем, не критично */
    }

    .sidebar-right {
        order: 0;
        width: 100%;
        position: static;
        margin-bottom: 24px;
    }

    .consultation-card {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        text-align: left;
        padding: 26px 30px;
    }

    .consultation-card__icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .consultation-card__text {
        margin-bottom: 0;
        flex: 1 1 auto;
        font-size: 19px;
        max-width: none;
    }

    .consultation-card__btn {
        width: auto;
        min-width: 200px;
        height: 54px;
        flex-shrink: 0;
        font-size: 18px;
    }

    .main .container {
        width: 100%;
        margin: 0 auto;
        order: 1;
        padding: 0 22px;
    }

    /* секции */
    .section-card,
    .section-card--has-swiper {
        padding: 28px;
    }

    .section-card__title {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .service-item {
        font-size: 19px;
        padding: 16px 18px;
        min-height: 90px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .swiper-section .swiper-slide:last-child {
        margin-right: 28px;
    }

    .casesSwiper .swiper-slide,
    .reviewsSwiper .swiper-slide,
    .relatedSwiper .swiper-slide,
    .newsSwiper .swiper-slide {
        width: 300px;
    }

    .docs-list,
    .docs-2-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-list__item,
    .docs-2-list__item {
        width: 100%;
    }

    .pricing-grid,
    .pricing-grid[data-count="3"],
    .pricing-grid[data-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* модалки */
    .team-modal__content,
    .case-modal__window,
    .step-modal__window,
    .review-modal__window {
        width: 92vw;
        height: auto;
        max-height: calc(100vh - 120px);
    }

    .team-modal__content {
        padding: 40px 16px 40px 40px;
    }

    .case-modal__content,
    .step-modal__content {
        padding: 40px 16px 40px 40px;
    }

    .team-modal__photo {
        width: 260px;
        height: 400px;
    }

    .team-modal__info,
    .review-modal__body {
        padding-right: 24px;
    }

    /* футер */
    .footer__grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 24px;
    }

    .footer__col--up {
        grid-column: 3;
        align-items: flex-end;
    }
}

/* --------------------------------------------------------------------------
   ≤1024px — планшет вертикальный
   -------------------------------------------------------------------------- */
.hidden-desctop {
    display: none;
}

@media (max-width: 1024px) {
    .hidden-desctop {
        display: block;
    }

    .team-card {
        flex: none;
    }

    /* Скрываем верхнее меню, включаем бургер */
    .header-top__icons {
        display: none;
    }

    .header-top__phone {
        font-size: 18px;
    }

    .header-top__inner {
        gap: 16px;
    }

    .header-nav__inner {
        min-height: 56px;
        flex-wrap: wrap;
    }

    .nav__list {
        display: none;
        /* бургер + мобильное меню */
    }

    .nav__burger {
        display: flex;
    }

    .nav__actions {
        margin-left: auto;
    }

    .nav__city {
        display: none;
    }

    /* Мобильное поведение: разделы меню можно показывать через overlay,
       но разметка меню в nav__list — поэтому включаем его как выезжающую панель */
    .nav__list {
        display: none;
    }

    body.menu-open .nav__list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 86vw);
        height: 100vh;
        padding: 80px 28px 40px;
        background: #fff;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
        animation: navSlideIn 0.3s var(--ease);
    }

    body.menu-open .nav__list>li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    body.menu-open .nav__list .nav__link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        font-size: 18px;
    }

    @keyframes navSlideIn {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    /* hero */
    .hero .hero__title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero__slogan {
        font-size: 24px;
    }

    .hero__shield svg {
        width: 560px;
    }

    /* услуги/карточки */
    .section-card,
    .section-card--has-swiper {
        padding: 24px;
    }

    .section-card__title {
        font-size: 24px;
        margin-bottom: 22px;
    }

    /* .team-card {
        flex-basis: 200px;
    } */

    .team-card__wrap {
        height: 288px;
    }

    .team-card__name {
        font-size: 19px;
    }

    .team-card__position {
        font-size: 16px;
    }

    .case-card__image {
        height: 200px;
    }

    .case-card__title {
        font-size: 19px;
    }

    .reviews-header {
        gap: 16px;
    }

    .reviews-header__title {
        font-size: 26px;
    }

    .reviews-header__rating-value {
        font-size: 26px;
    }

    .related-card {
        padding: 20px;
    }

    .related-card__title {
        font-size: 19px;
    }

    .related-card__text {
        font-size: 16px;
    }

    .cta-card {
        padding: 40px 28px;
    }

    .cta-card__title {
        font-size: 24px;
    }

    .cta-form {
        max-width: 100%;

    }

    .video-card {
        height: 340px;
    }

    /* модалки */
    .team-modal__body {
        flex-direction: column;
        gap: 20px;
    }

    .team-modal__photo {
        width: 100%;
        height: 320px;
    }

    .team-modal__content {
        height: auto;
        max-height: calc(100vh - 100px);
        overflow: hidden;
    }

    .team-modal__info {
        overflow-y: auto;
        max-height: 40vh;
    }

    .team-modal__name {
        font-size: 24px;
    }

    .team-modal__position {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .case-modal__window,
    .step-modal__window {
        height: auto;
        max-height: calc(100vh - 100px);
    }

    .contact-modal__window {
        width: 94vw;
        padding: 36px;
    }

    /* футер */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer__col--main {
        grid-column: 1 / -1;
    }

    .footer__col--wide {
        max-width: 100%;
    }

    .footer__col--up {
        grid-column: 1 / -1;
        align-items: flex-start;
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* --------------------------------------------------------------------------
   ≤900px — крупный телефон / маленький планшет
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .container {
        padding: 20px;
    }

    .header-top .container {
        padding: 0;
    }

    /* header */
    .header-top {
        padding: 16px 10px;
        height: auto;
        width: 100%;
        margin: auto
    }

    .logo {

        gap: 2px;
    }

    .logo__icon {
        width: 38px;
        height: 38px;
    }

    .logo__icon svg {
        width: 24px;
        height: 24px;
    }

    .logo__title {
        font-size: 18px;
    }

    .logo__subtitle {
        font-size: 12px;
    }

    .header-top__phone {
        display: none;
    }

    /* hero */
    .hero__inner {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .hero .hero__title {
        font-size: 32px;
        letter-spacing: -0.5px;
        margin-bottom: 14px;
    }

    .hero__slogan {
        font-size: 21px;
        margin-bottom: 12px;
    }

    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 26px;
    }

    .hero__btn {
        height: 56px;
        padding: 0 26px;
        font-size: 18px;
        margin: auto;
        margin-top: 20px;
    }

    .hero__shield .shit-svg {
        position: relative;
        z-index: 2;
        width: 60%;
        margin: auto;
    }

    .hero__shield .line-svg {
        position: absolute;
        z-index: 1;
        top: -15%;
        width: 100%;
        max-width: 100%;
    }

    .hero__shield {
        margin-top: 16px;
    }

    .hero__shield .shit-svg {
        position: relative;
        z-index: 2;
        width: 60%;
        margin: auto;
    }

    .hero__shield svg {
        width: 100%;
        max-width: 440px;
    }

    .hero__decoration {
        display: none;
    }

    .page-title {
        font-size: 30px;
    }

    /* сайдбар-карточка */
    .consultation-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .consultation-card__text {
        font-size: 17px;
    }

    .consultation-card__btn {
        width: 100%;
    }

    /* услуги */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        min-height: 78px;
        font-size: 17px;
        border-radius: 12px;
        text-align: left;
        justify-content: flex-start;
        padding: 16px 20px;
    }

    .section-card,
    .section-card--has-swiper {
        padding: 20px;
        border-radius: 18px;
    }

    .section-card__title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* swiper карточки: 1.1 слайда */
    .casesSwiper .swiper-slide,
    .reviewsSwiper .swiper-slide,
    .relatedSwiper .swiper-slide,
    .newsSwiper .swiper-slide {
        width: 78vw;
        max-width: 340px;
    }

    .swiper-section .swiper-slide:last-child {
        margin-right: 0px !important;
    }

    .swiper-container .swiper-button-prev,
    .swiper-container .swiper-button-next {
        display: none;
        /* на мобилке свайп */
    }

    .case-card__image {
        height: 190px;
    }

    .reviews-header {

        align-items: center;
        gap: 12px;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .reviews-header__icon {

        margin-top: 0px;
    }

    .reviews-header__rating-label {
        display: none;
    }

    .reviews-header__title {
        font-size: 22px;
    }

    .reviews-header__rating-block {
        margin-top: 6px;
    }

    .reviews-header__rating-value {
        font-size: 22px;
    }

    .review-card {
        padding: 24px 18px;
    }

    .team-card {}

    .team-card__wrap {
        height: 240px;
    }

    .team-card__name {
        font-size: 17px;
    }

    .team-card__position {
        font-size: 14px;
    }

    .related-card {
        padding: 18px;
    }

    .docs-list,
    .docs-2-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .docs-list__item::before,
    .docs-list__item::after {
        width: calc(100% - 32px);
    }

    .docs-2-list__item {
        height: auto;
        min-height: unset;
    }

    .btn.btn--outline:hover {
        background: #fff;
        color: var(--blue-color);
    }

    .doc-actions-mob {
        padding-top: 10px;
    }

    .doc-actions-mob a {
        text-decoration: none;
    }

    .doc-actions-mob a span {
        text-decoration: none;
        color: var(--font-2-color)
    }

    .docs-list__name,
    .docs-2-list__name {
        font-size: 19px;
    }

    .docs-list__desc,
    .docs-2-list__desc {
        font-size: 16px;
        height: auto;
    }

    .pricing-grid,
    .pricing-grid[data-count="2"],
    .pricing-grid[data-count="3"],
    .pricing-grid[data-count="4"] {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .stat-card__number {
        font-size: 40px;
    }

    .stat-card__label {
        font-size: 16px;
        padding: 0;
    }

    /* Формы */
    .cta-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .cta-card__title {
        font-size: 21px;
        margin-bottom: 24px;
    }

    .cta-form__field {
        height: 54px;
        font-size: 16px;
        padding: 0 16px;
    }

    .cta-form__field input {
        font-size: 16px;
    }

    .cta-form__bottom {
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
    }

    .cta-form .btn {
        height: 56px;
        width: 100%;
    }

    .cta-form__agreement {
        max-width: 100%;
        font-size: 13px;
    }

    /* Видео */
    .video-card {
        height: 260px;
        border-radius: 18px;
    }

    .video-card__play {
        width: 64px;
        height: 64px;
    }

    .video-card__play svg {
        width: 26px;
        height: 26px;
    }

    .video-card__caption {
        font-size: 17px;
        bottom: 20px;
        left: 16px;
        right: 16px;
    }

    .article-card {
        padding: 24px;
        border-radius: 18px;
    }

    .article-card h2 {
        font-size: 22px;
    }

    .article-card__text {
        font-size: 17px;
    }

    /* модалки */
    .team-modal,
    .step-modal,
    .contact-modal,
    .review-modal,
    .case-modal {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .team-modal__content,
    .case-modal__window,
    .step-modal__window,
    .review-modal__window,
    .contact-modal__window {
        width: 100%;
        max-width: 560px;
        height: auto;
        max-height: calc(100vh - 40px);
    }

    .team-modal__content {
        padding: 28px 16px 28px 22px;
    }

    .case-modal__content,
    .step-modal__content {
        padding: 28px 12px 28px 22px;
    }

    .review-modal__window {
        padding: 28px 12px 28px 22px;
    }

    .team-modal__close,
    .step-modal__close,
    .contact-modal__close,
    .review-modal__close,
    .case-modal__close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        background: none;
        border-radius: 50%;
        opacity: 1;
    }

    .team-modal__close svg,
    .step-modal__close svg,
    .contact-modal__close svg,
    .review-modal__close svg,
    .case-modal__close svg {
        width: 24px;
        height: 24px;
    }

    .news-preview__introtext {
        margin-bottom: 0;
    }

    .team-modal__photo {
        height: 260px;
    }

    .case-modal__body h3,
    .case-modal__body h4 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .case-modal__body p,
    .case-modal__body li {
        font-size: 16px;
    }

    .contact-modal__window {
        padding: 28px 20px;
    }

    /* футер */
    .footer {
        padding: 30px 0 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer__col--up {
        justify-content: flex-start;
    }

    .footer__up {
        width: 48px;
        height: 48px;
    }

    .footer__bottom {
        padding-top: 20px;
    }

    .footer__copy {
        font-size: 13px;
        line-height: 1.4;
    }

    /* поиск */
    .search-overlay {
        padding: 16px 0;
    }

    .search-container {
        padding: 4px 6px 4px 14px;
    }

    .search-input {
        font-size: 16px;
    }

    .section-card button.services-toggle .open {
        display: none;
    }

    .section-card.active button.services-toggle .closed {
        display: none;
    }

    .section-card.active button.services-toggle .open {
        display: inline;
    }

    .section-card .services-grid--collapsed {
        overflow: hidden;
        max-height: 270px;
        transition: .5s ease-in-out;
    }

    .section-card.active .services-grid--collapsed {
        max-height: none !important;
    }

    .footer {
        text-align: center;
        margin-top: 0;
    }

    .footer .footer__yandex,
    .footer .footer__social-icons,
    .footer .logo {
        margin: auto;
    }

    .faq-item__icon {
        width: 36px;
        height: 36px;
    }

    .faq-item__question {
        padding: 10px 20px;
    }

    .faq-item__question p+p {
        margin-top: 3px;
    }

    .faq-item__answer-inner>*:last-child {
        margin-bottom: 10px;
    }

    section.stats-grid {
        width: 95%;
        margin: auto;
    }

    .article-card__text p:not(:last-child) {
        margin-bottom: 5px;
    }

    .article-card h2 {
        margin-bottom: 5px;
    }

    .hero__inner {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

/* --------------------------------------------------------------------------
   ≤640px — телефон
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    /* .container {
        padding: 0 14px;
    } */

    /* header: упрощаем */
    .header-top__inner {
        gap: 10px;
    }

    .logo__text {
        max-width: 130px;
    }

    .logo__title {
        font-size: 16px;
        letter-spacing: 0.3px;
    }

    .logo__subtitle {
        font-size: 11px;
    }

    .header-top .btn {
        height: 44px;
        padding: 0 14px;
        font-size: 15px;
        border-radius: 8px;
    }

    .header-top .btn span {
        white-space: nowrap;
    }

    .services-grid {

        gap: 10px;
    }

    .nav__actions {
        gap: 4px;
    }

    /* hero */
    .hero__inner {
        padding-top: 30px;
    }

    .hero .hero__title {
        font-size: 27px;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .hero__slogan {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .hero__subtitle {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 5px;
    }

    .hero__shield {
        margin-top: 0px;
    }

    .hero__btn {
        width: 100%;
        height: 52px;
        font-size: 18px;
        margin-top: 20px;
    }


    .hero__shield svg {
        max-width: 100%;
    }

    /* сайдбар */
    .consultation-card {
        padding: 20px;
        border-radius: 16px;
    }

    .consultation-card__icon svg {
        width: 36px;
        height: 36px;
    }

    .consultation-card__text {
        font-size: 16px;
    }

    .consultation-card__btn {
        height: 50px;
        font-size: 17px;
    }

    .section-card,
    .section-card--has-swiper {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .section-card__title {
        font-size: 20px;
        margin-bottom: 16px;
        letter-spacing: -0.3px;
    }

    .service-item {
        font-size: 16px;
        min-height: 68px;
        padding: 14px 16px;
    }

    /* команда */
    /* .team-card {
        flex-basis: 120px;
    } */

    .team-card__wrap {
        height: 201px;

    }

    .team-card__wrap {

        margin-bottom: 10px;
    }

    .team-card__photo {

        min-width: 145px;
    }

    .team-card__name {
        font-size: 18px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .team-card__position {
        font-size: 16px;
        line-height: 1.2;
    }

    .review-card__source {

        width: 45%;
    }

    .step-card__bottom {
        padding: 10px 10px;
    }

    .faq-item__question {

        line-height: 1.1;
        font-size: 18px;
    }

    .faq-item__answer-inner {

        font-size: 16px;
        line-height: 1.3;
    }

    .cta-card {
        margin-bottom: 20px;
    }

    .btn.btn--outline.services-toggle {
        width: 90%;
        margin: auto;
        margin-top: 18px;
        height: 54px;

    }

    .btn.btn--outline.services-toggle:hover {
        background-color: #fff;
        color: var(--blue-hover-color);
    }

    /* кейсы / отзывы / related */
    .casesSwiper .swiper-slide,
    .reviewsSwiper .swiper-slide,
    .relatedSwiper .swiper-slide,
    .newsSwiper .swiper-slide {
        width: 65vw;
        max-width: none;
    }

    .news-card__content {
        padding: 10px 0px 0 0px;
    }

    .news-card__meta {
        font-size: 14px;
    }

    .news-card__meta svg {
        width: 17px;
    }

    .blog-title {
        padding: 0px 20px;
        margin-top: -2px;
    }

    .step-card__icon {
        width: 60px;
        height: 60px;
        padding: 12px;
    }

    .step-card__label {
        font-size: 16px;
    }

    .consequence-item__image {
        border-radius: 8px;
    }

    .step-card__bottom {
        font-size: 18px;
    }

    .consequence-item {
        display: block;
        position: relative;
        padding-right: 0px;
    }

    .consequence-item__image {
        width: 100%;
        height: 145px;
        object-fit: cover;
        object-position: bottom;
    }

    .consequence-item__text {
        font-size: 18px;
        line-height: 1.1;
        padding-top: 10px;
    }

    .consequence-item__number {
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 18px;
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        border-radius: 100px;
        background: #fff;
    }

    .news-card__image {

        height: 145px;

    }

    .news-card__title {
        font-size: 18px;
    }

    .case-card__image {
        height: 145px;
        border-radius: 12px;
    }

    .case-card__title {
        font-size: 16px;
    }

    .case-card__content {
        padding: 0 4px;
    }

    .reviews-header__title {
        font-size: 25px;
    }

    .reviews-header__rating-value {
        font-size: 20px;
    }

    .reviews-header__icon {
        margin-top: 0px;
        height: 20px;
    }

    .review-card {
        padding: 10px 14px;
        gap: 10px;
        border-radius: 12px;
    }

    .reviews-header__rating-block {

        width: 42%;
    }

    .reviews-header__rating-wrapper {
        gap: 2px;

    }

    .review-card__rating .star,
    .reviews-header__stars .star,
    .review-modal__stars .star {
        width: 13px;
        height: 13px;
    }

    .reviews-header__rating-top {
        gap: 9px;
    }

    .review-card__text {
        font-size: 15px;
        -webkit-line-clamp: 5;
    }

    .review-card__name {
        font-size: 17px;
    }

    .review-card__rating .star {
        width: 14px;
        height: 14px;
    }

    .review-card__header {
        margin-bottom: -5px;
    }

    .related-card {
        padding: 16px;
    }

    .related-card__title {
        font-size: 17px;
    }

    .related-card__text {
        font-size: 14px;
    }

    /* CTA */
    .cta-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .cta-card__title {
        font-size: 19px;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .cta-form__field {
        height: 50px;
        font-size: 15px;
    }

    .cta-form .btn {
        height: 52px;
        font-size: 17px;
    }

    .cta-form__agreement {
        font-size: 14px;
    }

    .contacts-page .hero__title {
        padding-top: 0px;
    }

    .docs-page .docs-list .docs-list__item+.docs-list__item {
        margin-top: 20px;
    }

    .docs-2-list__desc {
        margin-top: 10px;
    }

    /* видео */
    .video-card {
        height: 220px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .video-card__play {
        width: 46px;
        height: 46px;
    }

    .video-card__caption {
        font-size: 15px;
    }

    /* статьи */
    .article-card {
        padding: 18px;
    }

    .article-card h2 {
        font-size: 24px;
        line-height: 1;
        margin-bottom: 20px;
    }

    .article-card__text {
        font-size: 16px;
    }

    .section-content {
        padding: 20px;
    }

    .text .faq-item__answer-inner h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .footer {
        padding: 20px 0 0px;
        background: var(--body-color);
        border-top: none;
    }

    .footer .logo__icon {
        width: 45px;
        height: 45px;
    }

    .footer .container {
        padding: 0;
    }

    .footer__grid {
        gap: 16px;
        margin-bottom: 20px;
    }

    .footer__col {

        gap: 6px;
    }

    .overflow .modal-container-menu .body-menu {
        padding-top: 10px;
    }

    .mm__back {
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .team-modal__body {

        gap: 10px;
    }

    .team-modal__name,
    .team-modal__position {
        margin-bottom: 10px;
    }

    .case-modal__content,
    .step-modal__content {
        padding: 0;
    }

    .footer__bottom {
        padding: 20px;
        background: #fff;
    }

    .footer .footer__yandex {
        width: calc(100% - 20px);
        background: #fff;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .footer__col--up {
        display: none;
    }

    .pt-10-auto {}

    .pt-20-auto {
        padding: 0px 20px;
    }

    .section-content .faq-item+.faq-item {
        margin-top: 10px;
    }

    /* Модалки — на весь экран снизу-доверху */
    .team-modal,
    .step-modal,
    .contact-modal,
    .review-modal,
    .case-modal {
        padding: 0;
        align-items: stretch;
    }

    .team-modal__content,
    .case-modal__window,
    .step-modal__window,
    .review-modal__window,
    .contact-modal__window {
        width: 94%;
        margin-top: 8dvh;
        max-width: none;
        height: min-content;
        max-height: 87dvh;
        border-radius: 0;
        padding: 20px 14px;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
    }

    .team-modal__content,
    .step-modal__window,
    .contact-modal__window {
        background: none;
    }

    .team-modal__body {
        background: #fff;
        padding: 10px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .team-modal__content {
        margin-top: 4dvh;
    }

    .case-modal__content,
    .step-modal__content {
        padding: 0px 0;

    }

    .case-modal__body h3,
    .case-modal__body h4 {

        margin-bottom: 10px;
    }

    .step-card {
        border-radius: 8px;
    }

    body {
        padding-top: 70px;
    }

    .header-top {
        border-bottom: 1px solid #DFDFDF;
    }

    .team-modal__close {
        top: 0px;
        right: 10px;
    }

    .step-modal__close,
    .contact-modal__close,
    .review-modal__close,
    .case-modal__close {
        top: -43px;
        right: -5px;
        width: 40px;
        height: 40px;
    }

    .team-modal__body {
        flex: 1 1 auto;
        min-height: 0;

    }

    .team-modal__scroll {
        max-height: 26vh;
        overflow-y: auto;

    }

    .contact-modal__window {

        background: #fff;
    }

    .pricing-card__header {
        padding: 20px;
        padding-bottom: 10px;
        padding-top: 5px;
        text-align: center;
        min-height: 50px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        flex-direction: column;
    }

    .pricing-card__price {
        padding: 0;
    }

    .pricing-card__body {
        padding: 15px 0 0px;
    }

    .stat-card {
        padding: 15px 16px;
        border-radius: 18px;
    }

    .pricing-card__body ul li:not(:last-child) {
        margin-bottom: 5px;
    }

    .pricing-card__body {
        font-size: 16px;
        line-height: 1.1;

    }

    .hero__title {
        font-size: 27px;
        padding: 0px 0px;
    }

    main.main.doc-desc .sidebar-right {
        order: 2;
    }

    main.main.doc-desc .text,
    main.main.doc-desc .text p {
        font-size: 16px;

    }

    .section-card__title {

        padding: 18px 0px 0px 20px;
    }

    .pmb-20 {
        padding-bottom: 20px;
    }

    .text {

        overflow: hidden;
    }

    .overflow-toogle .text-toogle {
        max-height: 350px;
        overflow: hidden;
        position: relative;
        transition: 0.5s ease;
    }

    .overflow-toogle.active .text-toogle {
        max-height: 10000px;
    }

    .overflow-toogle .text-toogle::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    }

    .overflow-toogle.active .btns-block button .open,
    .overflow-toogle .btns-block button .closed {
        display: none;
    }

    .overflow-toogle.active .btns-block button .closed {
        display: block;
    }

    .doc-desc .doc-actions {
        padding: 0 10px;
        width: 100%;
        width: 100%;
        max-width: 100%;
        font-size: 18px;
    }

    .card-mini {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .mobile-flex-doc {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 20px;
        flex-direction: column;
    }

    .mobile-flex-doc .card-mini {
        margin-bottom: 0;
    }

    .mobile-flex-doc .attention.card-mini {
        order: -1;
        padding: 20px;
    }

    .author__title {

        margin-top: 10px;
    }

    .author .btn--outline {
        width: 100%;
    }

    .city-selector .is-city-container {

        top: 7vh;
        left: 18vw;
    }

    .yandex-link .contacts-social__title {
        padding-bottom: 15px;
        text-align: center;
        font-size: 16px;
    }

    .docs-page .hero__title {
        margin-bottom: -6px;
    }

    .yandex-link .btn {
        width: 100%;
        text-align: center;
    }

    .section-card>div.yandex-link {
        padding: 20px 10px;
    }

    .contacts-col .section-card.order-1 {
        order: 1;
    }

    .contacts-col .section-card.order-2 {
        order: 3;
    }

    .contacts-col .section-card.order-3 {
        order: 2;
    }

    .contacts-col .section-card.order-4 {
        order: 2;
    }

    .contacts-col .section-card .contacts-social>div>div {
        width: 100%;
        text-align: center;
    }

    .contacts-col .section-card .contacts-social .footer__social-icons {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .contacts-social__group {

        gap: 14px;
    }

    .contacts-page .cta-form [name="message"] {
        display: none;
    }

    .contacts-page .cta-form .cta-form__field {
        border: none;
    }

    .contacts-page .footer__yandex,
    .contacts-page .footer__social-block,
    .contacts-page .footer__contacts {
        display: none;
    }

    .footer .logo__title {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .footer .logo__subtitle {
        font-size: 18px;
    }

    .contacts-social__group {
        text-align: center;
    }

    .cta-form-card {
        padding: 20px;
    }

    .overflow-toogle .btns-block button {
        width: 100%;
        text-align: center;
    }

    .overflow-toogle .btns-block {
        padding-bottom: 20px;



    }

    .contacts-grid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 20px;
    }

    .contacts-info li {
        font-size: 16px;
    }

    .contacts-social__top {
        gap: 20px;
    }

    .sidebar-nav,
    .consultation-card {
        display: none;
    }

    .news-preview__img {
        height: 196px;

    }

    .article .news-preview__img {
        margin-bottom: 10px;
    }

    .section-card>div.article__meta-row {
        padding-top: 10px;
    }


    .news-preview__img img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .section-card {
        padding: 0;
    }

    .section-card>div:not(.pmb-20, .pmb-15) {
        padding: 20px;
    }

    .section-card>div.news-preview__bottom {
        padding-top: 0px;
    }

    .news-preview__title {
        font-size: 20px;
        letter-spacing: -0.5px;
        margin-bottom: 6px;
    }

    .news-preview__introtext {
        font-size: 16px;
        line-height: 1.1;
    }

    .news-preview__bottom>* {
        width: 100%;
    }

    .news-preview__bottom {
        gap: 10px;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .news-preview__meta {
        order: -1;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 100%;
        font-size: 14px;
    }

    .news-preview__meta .date,
    .news-preview__meta .view,
    .news-preview__meta .reading {
        font-size: 14px;
        font-weight: 500;
        color: #424151;
    }

    .contacts-col {
        gap: 20px;
    }

    .rcvisits-card,
    .contacts-info {

        padding: 20px;

    }

    .news-preview__bottom a {
        width: 100%;
    }

    .section-card.visible.article {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        flex-direction: column;
    }

    .pricing-card__title {
        font-size: 18px;
    }

    .pricing-card {
        padding: 10px;
    }

    .article .news-preview__img {
        order: 1;
        padding: 0;
        border-radius: 15px;
    }

    .article__meta-row {
        order: 3;
    }

    .article .hero__title {
        order: 2;
        font-size: 24px;
        padding: 0px 10px;
        margin-bottom: 0px;
    }

    .author__img {
        width: 36px;
        height: 36px;
    }

    .article__meta-row {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 13px
    }

    .blog-article-page .author__title {
        margin-top: 7px;
    }

    .blog-article-page .text h2 {
        font-size: 20px;
    }



    .author__name {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .article__meta-row {

        margin-bottom: 0px;
    }

    .article .text {
        order: 4;
        font-size: 16px;
        padding-top: 0;
        padding-bottom: 5px;
    }

    .tags__container div:not(:last-child) {
        margin-bottom: 5px;
    }

    .article .ico-wrap:not(.dowload-link-koz) {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 14px;
    }

    .article .ico-wrap.dowload-link-koz {
        font-size: 18px;
        padding: 10px;
        white-space: normal;
        border-radius: 8px;
    }

    .doc-actions-mob a {
        text-decoration: none;
        height: 47px;
    }

    .article .ico-wrap.dowload-link-koz .ico-wrap-icon {
        flex-shrink: 0;
        margin-right: 10px;
    }

    .article .ico-wrap>*:not(.icon-btn-dowload) {
        width: 93%;
        height: 54px;
        text-align: center;
        margin: auto;
    }

    .blog-article-page .tags__container {
        line-height: 1.4;
    }

    .blog-article-page .rating-wrap {
        gap: 11px;
    }





    .article .ico-wrap>.ico-wrap-icon.download:not(.icon-btn-dowload) {
        display: none;
    }

    .text p:not(:last-child),
    .text ul,
    .text ol,
    .text h2 {
        margin-bottom: 0px;
    }

    .article .ico-url+&nbsp {
        display: none;
    }

    .article .tags {
        margin-top: 0;
        font-size: 16px;
        padding-top: 5px;
        padding-bottom: 15px;
    }

    .flex-mobile-collumn {
        display: flex;
        flex-direction: column;

    }

    .flex-mobile-collumn .section-card.visible.article {
        order: 0;
        margin-top: 0px;
    }

    .flex-mobile-collumn .cta-card {
        order: 1;
    }

    .flex-mobile-collumn .reviews-section {
        order: 2;
    }

    .flex-mobile-collumn .reviews-section .review-container {
        padding: 20px 10px;
    }

    .blog-article-page .section-card>div.news-preview__img {
        padding: 0px;
        height: 29vh;
        margin-bottom: 18px;
    }

    .flex-mobile-collumn .reviews-section .review-container textarea[name="review"] {
        min-height: 0px;
        height: 60px;
    }

    .flex-mobile-collumn .reviews-section .review-container .review__title {
        display: none;
    }

    .review-form input[type="text"],
    .review-form input[type="email"],
    .review-form input[type="tel"],
    .review-form input[type="search"],
    .review-form textarea {
        font-size: 16px;
        padding: 18px 20px;
    }

    .review-form .form__bottom,
    .review-form .form__bottom.reverse {
        margin-top: 15px;
    }

    .review-form .btn-block,
    .review-form button[type="submit"] {
        width: 100%;
    }

    .review-form button[type="submit"],
    .review-form .btn.btn-rose,
    .review-form .btn-rose.lg {
        font-size: 18px;
    }

    .reviews-new-wrap>.article-item-list,
    .reviews-empty {
        padding: 20px 20px;
        font-size: 16px;
    }

    .contacts-page .container.title-contact-page {
        padding-bottom: 10px;
    }

    .contacts-page .contacts-info>li:first-child {
        display: inline-block;
    }

    .flex-mobile-collumn .cta-card {
        order: 3;
        margin-top: -10px;
    }

    .team-card__photo {
        min-width: 100%;
    }

    .flex-mobile-collumn .bog-list-container {
        order: 4;
    }

    .article .ico-url:last-child {
        margin-bottom: 0;
    }

    .article .ico-url+br {
        display: none;
    }

    .bog-list-container.test .section-card__title {
        padding: 5px 0px 20px 10px;
    }

    .about-page .article-card__title {
        font-weight: 600;
        margin-left: 10px;
    }

    .article .ico-wrap .ancor-wrap a {
        width: 100%;
        text-align: center;
        display: block;
        font-size: 18px;
    }

    .text h2 {
        font-size: 24px;
    }

    .news-preview__meta .view {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }

    .article .tags {
        order: 5;
        display: block;
    }

    .article .tags .raiting {
        padding-top: 5px;
    }

    .review-form .input-block {

        margin-bottom: 10px;
    }

    .review-form .politics {
        font-weight: 500;
    }

    .reviews-new-wrap {

        margin-top: -10px;
    }

    .section-card__title {
        letter-spacing: -1px;
        margin-bottom: 0;
    }

    .hero__inner {

        padding-bottom: 30px;
    }

    .news-preview__img {

        margin-bottom: 0px;
    }

    .team-modal__scroll::-webkit-scrollbar {
        width: 2px;
        /* ширина scrollbar */
    }

    .team-modal__scroll::-webkit-scrollbar-track {
        background: var(--cs-track);
        /* цвет дорожки */
    }

    .team-modal__scroll::-webkit-scrollbar-thumb {
        background-color: var(--cs-thumb);
        /* цвет плашки */
        border-radius: 20px;
        /* закругления плашки */

    }

    .custom-scroll__thumb {
        display: none;
    }

    .team-modal__photo {
        height: 300px;
        width: 100%;
    }

    .team-modal__info {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .team-modal__name {
        font-size: 22px;
    }

    .team-modal__position {
        font-size: 16px;
    }

    .team-modal__text {
        font-size: 15px;
    }

    .case-modal__body,
    .step-modal__body,
    .review-modal__body {
        padding-right: 0;
    }

    .review-modal__name {
        font-size: 19px;
    }

    .review-modal__text {
        font-size: 15px;
    }

    .review-modal__date {
        font-size: 14px;
    }

    .contact-modal__window {
        justify-content: center;
    }

    /* Поиск */
    .search-overlay {
        padding: 12px 0;
    }

    .search-input {
        font-size: 18px;
    }

    /* футер */
    .footer__heading {
        font-size: 16px;
    }

    .footer__links a,
    .footer__phone,
    .footer__email {
        font-size: 18px;
    }

    .footer__social-title {
        font-size: 15px;
    }

    .footer__social-icons {
        gap: 5px;
    }

    .footer__social-icon {
        width: 63px;
        height: 63px;
        border-radius: 6px;
    }

    .footer__social-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer__yandex {
        padding: 18px 12px;
    }

    .footer__yandex svg {
        width: 100px;
        height: auto;
    }

    /* мобильное меню */
    body.menu-open .nav__list {
        width: 100vw;
        max-width: none;
        padding: 80px 20px 40px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .hero__inner {
        flex-direction: column;
    }

    .section-card .services-grid--collapsed {
        overflow: hidden;
        max-height: var(--max-height);
        transition: .5s ease-in-out;
    }

    .step-card__top {
        padding: 22px 34px;
        gap: 10px;
        padding-bottom: 17px;
    }

    body.menu-open .nav__burger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.menu-open .nav__burger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main .container {
        padding: 0;
    }

    .pricing-card {
        border-radius: 8px;
    }

    .footer {
        text-align: center;
    }

    .section-card>div.swiper-container {
        padding-right: 0;
        padding-top: 0;
        padding-left: 0;
    }

    .section-card>div.reviews-header {
        padding-bottom: 0px;
        padding-top: 10px;
    }

    .swiper.teamSwiper {
        padding-left: 20px;
        padding-right: 20px;
    }

    :root {
        --header-h: 55px;
    }

    .hero {

        background: linear-gradient(180deg, #ffffff 0%, var(--blue-2-color) 100%);

    }

    .footer .footer__yandex,
    .footer .footer__social-icons,
    .footer .logo {
        margin: auto;
    }

    .footer .footer__yandex {
        margin-top: 15px;
    }

    .footer__links {
        gap: 8px;
    }

    .hero {

        margin-bottom: -20px;
        padding-bottom: 20px;
    }

    .newsSwiper .swiper-slide {
        width: 60vw;
    }

    .contacts-page .hero__title {
        margin-bottom: 5px;
    }

    .contacts-page .section-card__title {
        padding: 0px 0px 20px 0px;
    }

    .contacts-requisites {

        gap: 2px;
        font-size: 16px;
        line-height: 1.22;

    }

    .contacts-page .section-card>div.contacts-social {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .blog-wrap-page .hero__title {
        margin-bottom: 10px;
    }

    .blog-article-page .sidebar-right {
        margin-bottom: 0px;
    }

    .blog-article-page .main {
        background: #fff;
        margin-top: -3px;
    }

    .blog-article-page .section-card>div.article__meta-row {
        padding-top: 6px;
    }

    .blog-article-page .article .hero__title {

        padding: 0px 20px;
        letter-spacing: -2%;
    }



    .news-preview__title {
        font-weight: 500;
        line-height: 1.2;
    }

    section.section-card.news-preview>div {
        padding-bottom: 12px;
    }

    .news-preview__meta svg {
        margin-right: 4px;
        width: 20px;
    }

    .btn--outline {

        height: 55px;
    }

    .news-preview__meta .reading {
        width: 14px;
    }

    .in-uslugi+.section-card .section-card__title {
        padding-bottom: 20px;
    }

    .section-card>div.docs-list {
        padding-top: 40px;
    }

    .docs-list__item {

        padding: 20px 10px 10px;

    }

    .docs-list__item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        flex-direction: column;
    }

    .doc-desc .hero__title,
    .docs-2-desc .hero__title {
        margin-bottom: 0;
    }
}

/* --------------------------------------------------------------------------
   ≤420px — очень маленькие экраны
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
    /* .container {
        padding: 0 12px;
    } */

    .logo__text {
        max-width: 100px;
    }

    .logo__title {
        font-size: 15px;
    }

    .logo__subtitle {
        font-size: 10px;
    }

    .header-top .btn {
        padding: 0 10px;
        font-size: 14px;
        height: 40px;
    }

    .hero .hero__title {
        font-size: 27px;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero__shield .shit-svg {
        position: relative;
        z-index: 2;
        width: 42.5%;
        margin: auto;
    }

    .hero__shield .line-svg {
        position: absolute;

        z-index: 1;
        top: -50%;
    }

    .hero__slogan {
        font-size: 22px;
    }

    .news-preview__img {
        height: 145px;

    }

    .hero__subtitle {
        font-size: 20px;
    }

    .docs-2-desc .hero__title {
        margin-bottom: 5px;
    }

    .docs-2-list__icon {
        margin-top: 6px;
        margin-bottom: 5px;
    }

    .section-card__title {
        font-size: 24px;
    }

    /* .usluga-desc .section-card .steps-grid {
        padding-top: 15px;
    } */
    .section-card>div.consequences-grid {
        padding-bottom: 0;
    }

    .consequences-grid {

        gap: 20px;
    }

    .doc-desc .author .title-autor {
        font-size: 23px;
        font-weight: 500;
        line-height: 1;
        margin-top: -4px;
    }

    .doc-desc .sidebar-right .author__img {
        font-size: 18px;
        font-weight: 500;
        margin-top: 20px;
    }

    .doc-desc .sidebar-right .author__name {
        font-size: 18px;
        font-weight: 500;
        padding-top: 7px;
    }

    .doc-desc .sidebar-right .author__data {
        margin-bottom: 48px;
    }

    .doc-desc .author .btn--outline {
        width: 100%;
        height: 46px;
    }

    .service-item {
        font-size: 18px;
        min-height: 54px;
    }

    .services-grid.services-grid--collapsed {
        padding-top: 10px;
    }

    .cta-card__title {
        font-size: 24px;
        line-height: 1.1;
    }

    .bog-list-container .section-card__title {
        padding: 5px 0px 0 10px;
    }

    .cta-form__field {
        height: 63px;
        padding: 0 14px;
    }

    .cta-form__field input {
        font-size: 15px;
    }

    .team-modal__photo {
        height: 320px;
    }

    .team-modal__photo img {
        object-position: top;
    }

    .stat-card__number {
        font-size: 44px;
    }

    .stat-card__label {
        font-size: 18px;
        line-height: 1.1;
    }

    .news-card__image,
    .related-card {
        border-radius: 6px;
    }

    .footer__copy {
        font-size: 15px;
    }
}

/* --------------------------------------------------------------------------
   Дополнительно: поддержка touch-устройств
   -------------------------------------------------------------------------- */
@media (hover: none) {

    .service-item:hover,
    .team-card:hover .team-card__photo,
    .case-card:hover .case-card__image img,
    .news-card__image:hover img {
        transform: none;
        box-shadow: none;
    }

    .btn:hover span {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   print
   -------------------------------------------------------------------------- */
@media print {

    .header-top,
    .header-nav,
    .sidebar-left,
    .sidebar-right,
    .cta-card,
    .contact-modal,
    .team-modal,
    .case-modal,
    .review-modal,
    .step-modal,
    .submenu,
    .submenu-overlay,
    .nav__overlay,
    .footer__up,
    .video-card__play,
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: #fff;
    }

    .section-card,
    .case-card,
    .review-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* ==========================================================================
   МОБИЛЬНАЯ ШАПКА (строго по макету)
   ========================================================================== */

@media (max-width: 1024px) {
    .breadcrumbs {
        display: none !important;
    }

    /* Скрываем лишнее: телефон и кнопку обратного звонка */
    .header-top__phone,
    .header-top>.btn[data-contact-open] {
        display: none !important;
    }

    .hidden-mob {
        display: none !important;
    }

    /* Показываем иконки соцсетей/связи */
    .header-top__icons {
        display: flex !important;
        gap: 4px;
        margin-left: auto;
        /* прижимаем вправо к бургеру */
        margin-right: 12px;
    }

    /* Уменьшаем иконки до аккуратных размеров */
    .header-top__icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid var(--blue-2-color);
    }

    .header-top__icon svg {
        width: 18px;
        height: 18px;
    }

    /* Логотип */
    .header-top__inner {
        gap: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav__burger {

        gap: 3px;
    }

    .logo__text {
        max-width: none;
    }

    .logo__title {
        font-size: 16px;
    }

    .logo__subtitle {
        font-size: 11px;
    }

    .logo__icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .logo__icon svg {
        width: 22px;
        height: 22px;
    }

    /* Кнопка-бургер */
    .nav__burger {
        display: flex !important;
        margin-left: 0;
        /* убираем авто-отступ, так как он уже распределен */
        width: 36px;
        height: 36px;
        background: transparent;
        box-shadow: none;
        flex-shrink: 0;
        align-items: flex-start;
        margin-left: 0px;
    }

    .nav__burger span {
        width: 20px;
    }

    .nav__burger span {
        width: 24px;
        height: 3px;
        background: #333;
        /* темный цвет как на макете */
    }

    /* Убираем тень у бургера при открытом меню */
    body.menu-open .nav__burger {
        background: transparent;
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    .nav__burger {
        margin-left: 6px;
    }

    a.header-top__icon[aria-label="Max"] {
        padding: 5px;
    }

    .overflow .modal-container-menu .body-menu {
        padding-right: 0;
        padding-top: 20px;
    }

    .mm__level li {

        margin-right: 20px;
    }

    .mm__level li .mm__arrow {

        padding-right: 20px;
        margin-right: -20px;
    }

    /* Чуть уменьшаем иконки на самых маленьких экранах, чтобы все влезло */
    .header-top__icons {
        gap: 3px;
        margin-right: 0px;
    }

    .header-top__icon {
        width: 38px;
        height: 38px;
        border-radius: 4px;
    }

    .pmb-15 {
        padding-bottom: 15px;
    }

    .header-top__icon svg {
        width: 22px;
        height: 22px;
    }

    .logo__icon {
        width: 30px;
        height: 30px;
    }

    .swiper.relatedSwiper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo {
        gap: 5px;
    }

    .logo__icon svg {
        width: 20px;
        height: 20px;
    }

    .logo__title {
        font-size: 15px;
        white-space: nowrap;
        letter-spacing: 0px;
    }

    .hero__btn {
        height: 60px;
    }

    .logo__subtitle {
        font-size: 10px;
        white-space: nowrap;
        font-weight: 500;
        margin-top: 5px;
    }

    .header-top__inner {
        gap: 15px;
    }

    .nav__burger span {
        width: 20px;
    }

    .header-top .container {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .nav__burger span {
        border-radius: 0;
    }


}

@media (max-width: 360px) {

    /* Для очень узких экранов скрываем 2 иконки, оставляем телефон и телеграм */
    /* .header-top__icon:nth-child(2),
    .header-top__icon:nth-child(4) {
        display: none;
    } */
    .logo__title {
        font-size: 12px;
    }

    .logo__subtitle {
        font-size: 7px;
    }

    .header-top__icon {
        width: 30px;
        height: 30px;
    }

    .header-top__icons {
        gap: 5px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}