@media (max-width:767px) {
    :root {
        --bs-body-font-size:18px;
        --bs-gutter-x: 60px;
        --section-gutter-y: 1.666667rem;
    }
    body {
        overflow-x: hidden;
    }
    body:not(.tpl-index) {
        padding-top: 5rem;
    }
    h1, .h1 {
        font-size: 1.33333rem;
        margin-bottom: 1.33333rem;
    }
    h2, .h2 {
        font-size: 1.33333rem;
        margin-bottom: 1.33333rem;
    }
    p {
        margin-bottom: 0.83333rem;
    }
    p:last-of-type,
    .p:last-of-type {
        margin-bottom: 0;
    }
    .breadcrumb {
        overflow-x: scroll;
        flex-wrap: nowrap;
        flex-direction: row;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        --bs-breadcrumb-item-padding-x: 1.1rem;
    }
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .breadcrumb-item+.breadcrumb-item {
        display: flex;
        flex-wrap: nowrap;
        text-wrap: nowrap;
    }
    .accordion {
        --bs-accordion-btn-icon-width:0.83333rem;
    }
    .accordion-button {
        font-size: 1.33333rem;
        --bs-accordion-btn-padding-x: 0;
    }
    .accordion-button:after {
        margin-right: 0.83333em;
        background-size:cover;
    }
    .section-header {
        margin-bottom: 1.33333rem;
    }
    .section-title {
        margin-bottom:2rem;
    }
    .container-fluid {
        --bs-gutter-x: 60px;
    }
    .row {
        --bs-gutter-x: 60px;
    }
    .btn {
        width:100%;
        --bs-btn-padding-y: 0.775rem;
    }
    .navbar {
        --bs-navbar-toggler-focus-width:0;
    }
    body:not(.tpl-index) .navbar {
        background-color: var(--light-color);
    }
    .dropdown-menu {
        --bs-dropdown-border-width: 0;
        --bs-dropdown-padding-y: 0;
    }
    .navbar-toggler {
        /*padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);*/
        /*font-size: var(--bs-navbar-toggler-font-size);*/
        /*color: var(--bs-navbar-color);*/
        --bs-navbar-toggler-padding-x:0;
        --bs-border-width:0;
        --bs-navbar-toggler-border-color:transparent;
        --bs-navbar-toggler-border-radius:0;
    }
    .modal-dialog {
        --bs-modal-margin:0;
    }
    .modal-content {
        height:100vh;
    }
    .modal-body {
        padding-top:1.33333rem;
    }
    .modal-title {
        text-wrap: wrap;
        font-size: 1.33333rem;
        line-height: initial;
    }
    .modal .form-control {
        padding-top:0.775rem;
        padding-bottom:0.775rem;
    }
    .modal .form-check-input {
        width: 1.4em;
        height: 1.4em;
    }
    .modal .form-check {
        padding-left: 2.5em;
    }
    .modal .form-check .form-check-input {
        margin-left: -2.5em;
    }
    .modal .ajax_form {
        padding-top: 5rem;
    }
    
    
    .tpl-index .navbar-toggler {
        --bs-navbar-color:var(--light-color);
    }
    .tpl-index .navbar:not(.scrolled-up):not(.bg-light) .navbar-toggler-icon {
        --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    header .title {
        /*font-size: 13vw;*/
        font-size: 10vw;
    }
    header .nav-link {
        font-size:1.3333rem;
    }
    header .navbar-brand img {
        height:2rem;
    }
    header nav .autocollapse>.dropdown-toggle {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        color: transparent!important;
    }
    .tpl-index header nav:not(.scrolled-up) .autocollapse>.dropdown-toggle {
        /*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");*/
    }
    header .autocollapse-expanded {
        /*background-color: var(--light-color);*/
    }
    header .autocollapse-expanded .autocollapse>.dropdown-toggle {
        background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    }
    header .dropdown-submenu .nav-link  {
        text-wrap: pretty !important;
        font-size: 0.75rem;
        --bs-nav-link-padding-y: 0.25rem;
        --bs-nav-link-padding-x: 0;
    }
    header .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Vector' d='M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18' stroke='%231D2329' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E");
    }
    header .navbar-nav {
        margin-bottom: 2rem;
        margin-top: 1rem;
    }
    /*header .navbar-nav:before {*/
    header .navbar-collapse.show:before {
        content: '';
        display: block;
        position: absolute;
        background-color: var(--dark-color-30);
        height: 1px;
        width: 100%;
        left: 0;
    }
    header .navbar-nav .nav-link {
        --bs-nav-link-padding-y: 1rem;
    }
    header .navbar-nav>.nav-item>.nav-link {
        border-bottom: 1px solid var(--dark-color-10);
    }
    header .navbar-nav>.nav-item:nth-last-child(-n + 2)>.nav-link {
        border-bottom: 0;
    }
    header .navbar-collapse.show {
        height:calc(100vh - 90px);
        overflow-y: scroll;
        margin-top: 1rem;
        scrollbar-width: thin;
        margin-right: calc(var(--bs-gutter-x)* -0.5);
        padding-right: calc(var(--bs-gutter-x)* 0.5);
    }
    header .navbar-collapse.show::-webkit-scrollbar {
        display: none;
    }
    .tpl-index header {
        background-position-x: 11%;
    }
    .tpl-index header section .container-fluid {
        /*height: calc(100vh - 7rem);*/
        display: flex;
        align-items: flex-end;
    }
    .tpl-index header section .container-fluid .title {
        margin-bottom: 1rem;
    }
    .tpl-index header section .container-fluid .h2 {
        margin-bottom: 1rem;
    }
    .tpl-index header {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .tpl-index header nav:not(.scrolled-up) .nav-link {
        --bs-nav-link-color: var(--dark-color);
        --bs-nav-link-hover-color: var(--dark-color-50);
        --bs-navbar-active-color: var(--dark-color-50);
    }
    .dropdown-menu {
        background-color:var(--light-color);
    }
    .section {
        /*padding-top: 1.66667rem;*/
        /*padding-bottom: 1.66667rem;*/
    }
    .section:after {
        /*margin-top: 1.66667rem;*/
        /*margin-bottom: -1.66667rem;*/
    }
    header nav .dropdown-menu>ul>li {
        margin-bottom: 1.5rem;
    }
    #navbarNav>ul>li:first-child .dropdown-menu.show {
        padding: var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);
    }
    #navbarNav>ul>li:first-child .dropdown-menu.show h5 {
        font-size: 1.33333rem;
        padding-top:0.5rem;
    }
    #navbarNav>ul>li:first-child .dropdown-menu.show .nav-link {
        padding: 0.25rem 0 0 0;
        font-size: 1rem;
    }
    #navbarNav>ul>li:first-child .dropdown-menu.show h5,
    #navbarNav>ul>li:first-child .dropdown-menu.show .h5 {
        padding-top: 1.5rem;
        font-size: 1.25rem;
        border-bottom: 1px solid var(--dark-color-10);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    #navbarNav>ul>li .dropdown-menu.show>ul>li:not(:first-child) h5,
    #navbarNav>ul>li .dropdown-menu.show>ul>li:not(:first-child) .h5 {
        border-top: 1px solid var(--dark-color-10);
    }
    #navbarNav>ul>li:first-child .dropdown-menu.show {
        margin-top: var(--bs-dropdown-spacer);
        overflow-y: visible;
    }
    #navbarNav .dropdown-toggle::after {
        float: inline-end;
        left: auto;
        right: 0.2em;
    }
    #navbarNav .dropdown-toggle.show::after {
        transform: rotate(324deg) skewX(20deg) scaleY(cos(11deg));
    }
    #menu_19 {
        max-height: fit-content;
        overflow-y: visible;
    }
    #menu_19>ul {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
    .card-set .card-title {
        font-size: 1.3333rem;
    }
    
    #myHelp .list-group-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
        padding-right: 0;
        padding-top: 1.333rem;
        padding-bottom: 1.333rem;
    }
    #myHelp .list-group-item a {
        width: 100%;
        padding-right: 2rem;
    }
    #myHelp .list-group-item a::before {
        position: absolute;
        right: 0;
        top: 0.25rem;
        margin-right: 0;
        font-size: 0.7rem;
    }
    #myHelp .list-group-item p {
        width: auto;
    }

    #consultations .card, #consultations .row {
        --bs-card-spacer-y: 1.3rem;
        --bs-card-spacer-x: 1.3rem;
        --bs-card-cap-padding-y: 1.3rem;
        --bs-card-cap-padding-x: 1.3rem;
    } 
    #consultations .card .card-footer {
        flex-direction: column;
        padding-top:0;
    }

    #faq .accordion-body {
        padding: 0 0 1rem 2.1rem;
    }
    #faq .accordion-button:after {
        --bs-accordion-btn-icon-width: 0.7rem;
    }

    #process ol {
        /*list-style-position: outside;*/
        margin-left: 1rem;
        margin-bottom: 0;
    }
    #process li {
        padding-right: calc(var(--bs-gutter-x)* .25);
        padding-left: calc(var(--bs-gutter-x)* .25);
    }
    #process li:before {
        position: absolute;
        top: 2.3px;
        left: -1rem;
        line-height: 1;
        font-size: 1.333333rem;    
        font-weight: 500;
    }
    #process li:first-child:before {
        left: -0.9rem;
    }
    /*#process li:not(:last-child):before {*/
    #process li:not(:last-child):after {
        content: '';
        position: absolute;
        top: 2rem;
        width: 4px;
        height: calc(100% - 3rem);
        left: -14px;
        background-color: var(--primary-color);
    }
    #process li:last-child {
        padding-bottom:0;
    }
    
    
    #blog .nav-link {
        padding-left: 0;
        padding-right: 2rem;
        font-size: 1.33333rem;
}
    /*
    #causes .card-hover .col:before {
        content:'';
        position: absolute;
        width: 100%;
        background-color: red;
        padding-bottom: 100%;
    }
    */
    .card-hover .card {
        min-height: 60vw;
        height:auto!important;
    }
    /* добавил :not, влияет на  Главная-м. Карточки консультаций */
    .card-set .card a:not(.btn) {
        font-size: 1.333333rem;
    }
    
    #blog .tab-pane .row:not(:first-child) .card-img-top {
        width:60%;
    }
    #blog .tab-pane .row:not(:first-child) .card-text {
        display: -webkit-box;
        max-width: 100%;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: var(--bs-card-spacer-y);
    }
    
    #tests .card .card-body {
        padding-bottom:0;
    }
    #tests .card .card-footer a {
        font-size: 0.6rem;
    }
    #tests .card-set .card-title {
        color: var(--dark-color);
    }    
    #tests .card-hover .card:hover .card-title {
        color: var(--light-color);
    }
    #about-me-img {
        height: calc(100vh - 5rem - 54px);
        object-fit: cover;
    }
    
    #moments .slick-list {
        padding:5% 5% 5% 0 !important;
    }
    
    #moments .container-fluid:nth-child(2) {
        /*padding:0;*/
    }
    #moments .container-fluid:nth-child(3) .row {
        gap: 1rem;
    }
    
    #expirience .h1 {
        font-size: 3rem;
        margin-bottom:0;
    }
    #expirience .container-fluid .row:nth-child(2) {
        gap: 1rem;
    }
    #expirience .container-fluid .row:nth-child(2)>div:not(:last-child) {
        border-right:none;
    }
    #expirience .container-fluid .row:nth-child(2)>div:not(:last-child) p {
        border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
        padding-bottom: 1.33333rem;
        margin-bottom: 0;
    }
    .hscroll {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: scroll;        
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .hscroll::-webkit-scrollbar {
        display: none;
    }
    .hscroll>* {
        display: flex;
        flex-wrap: nowrap;
        text-wrap: nowrap;
        justify-content: center;
        width:auto;
    }
    
    #accordionFaq .accordion-item:first-child .accordion-button {
        padding-top:0;
    }
    #accordionFaq .accordion-item:last-child .accordion-button {
        padding-bottom:0;
    }
    
    #article h1 {
        margin-bottom: 1.1rem;
    }
    #myAdvantages ol {
        gap: 1.7rem;    
    }
    #myAdvantages li {
        padding: 0;
    }
    #myAdvantages li::marker {
        font-size: 3.5rem;
        line-height: 1;
    }
    #myAdvantages li:last-child p {
        margin-bottom: 0;
    }
    
    .article-date .ya-share2__container_size_m .ya-share2__item_more.ya-share2__item_has-pretty-view .ya-share2__link_more.ya-share2__link_more-button-type_short {
        padding:0;
    }
    .article-date .ya-share2__container_mobile.ya-share2__container_size_m .ya-share2__icon {
        height: 16px;
        width: 16px;
    }
    .article-date .ya-share2__container_mobile .ya-share2__badge {
        border-radius:0;
    }
    .cookie-wrap {
        width: auto;
        left: 1rem;
    }
}
