@media (max-width: 1200px) {
  .sp-container {
    margin-left: 8%;
    margin-right: 8%;
  }

  .spage .sidebar {
    right: 8%;
  }

  .spage .main > p,
  .spage .main > blockquote,
  .spage .main > h2,
  .spage .main > h3,
  .spage .main > h4,
  .spage .main > ol,
  .spage .main > ul,
  .spage .main .b-accordion-content,
  .spage .main .b-text-slider,
  .spage .main .cards,
  .spage .main .numbered-services-list-block,
  .spage .main .text-expand,
  .text-card-block-items__wrap {
    max-width: 56%;
    margin-left: 8%;
  }

  .h1 {
    font-size: 48px;
    line-height: 52px;
  }
}

@media (max-width: 1024px) {
  .spage .content {
    width: auto;
  }

  .sp-container {
    padding: 0 79px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
  }

  .spage .content .main > * {
    margin-left: 79px;
    margin-right: 79px;
    width: auto;
    max-width: 100%;
  }

  .spage .content .main .b-accordion-content,
  .spage .content .main .b-text-slider {
    margin-bottom: 48px;
  }

  .spage .main h3 {
    margin-bottom: 32px !important;
    margin-top: 64px !important;
  }

  .spage .main > p {
    margin-bottom: 32px !important;
  }

  .spage .hero .p-title {
    margin-bottom: 0;
    margin-top: 80px;
  }

  .spage .hero .p-title h1 {
    font-size: 40px;
    line-height: 48px;
    max-width: 530px;
  }

  .spage .hero .cards {
    flex-direction: column;
    gap: 0;
    row-gap: 20px;
  }

  .spage .hero .cards .card {
    width: 100%;
  }

  .spage .hero .cards .card .card_header {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .spage .content .cards .card_content,
  .spage .content .cards .card {
    display: block;
  }

  .spage .content .main .cards {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 0 79px;
  }

  body .spage .content .main .b-text-card-block {
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
  }

  .spage .text-card-block-items__wrap {
    max-width: 100%;
    margin-left: 0;
    padding: 0 79px;
  }

  .spage .content .main .article__toc {
    max-width: 100%;
    width: auto;
    margin-right: 79px;
    margin-left: 79px;
    margin-top: 50px;
  }

  .spage .sidebar__nav a {
    color: #1d1d1b;
  }

  .spage .content .cards .card .card_side {
    margin-bottom: 24px;
  }

  .spage .card_content .read-more .read-more-link {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  .spage .card_content .icon {
    margin-bottom: 0;
  }

  .spage .article__toc {
    display: block;
  }

  .spage .sidebar__buttons {
    display: flex;
  }

  .sidebar__buttons .services__button {
    flex: 1 0 50%;
  }

  body .spage .sidebar__nav ul > li {
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  body .spage .sidebar__nav ul {
    padding-bottom: 0;
    margin-bottom: 48px;
  }

  .sidebar__buttons .services__button {
    margin-bottom: 0 !important;
  }

  .spage .sidebar {
    display: none;
  }

  .spage .accordion-content-item .head .title {
    max-width: 84%;
    padding-right: 0;
  }

  .spage .post-slider-tablet .post-slider__item {
    padding: 40px 0 0;
  }

  .spage .post-slider-tablet .post-slider__item::after {
    display: none;
  }

  .spage .post-slider.desktop {
    display: none;
  }

  .spage .post-slider.tablet {
    display: block;
  }

  .spage .content .main .b-accordion-content {
    margin-bottom: 96px;
  }

  .spage__form {
    margin-bottom: 96px;
  }

  .spage .service-slider .slick-slide.service-slider__item.post_slider__item {
    margin: 0 5px;
  }

  .spage .service-slider .slick-list {
    margin: 0 -5px;
  }

  .fixed-bottom-menu {
    display: block;
  }

  .spage__form {
    display: block;
  }

  .spage__form br {
    display: none;
  }

  .spage__form .title {
    width: 100%;
    margin-bottom: 64px;
  }

  .spage__form .b24-form-field {
    margin-bottom: 32px;
  }

  .spage .fixed-bottom-menu .services__button.btn_request_service .icon {
    display: none;
  }

  .spage .main blockquote {
    padding: 28px 32px 32px 28px;
  }

  div.service-slider .service-slider__item.post_slider__item {
    padding: 32px 24px 56px;
  }
}

@media (max-width: 767px) {
  .spage .content .main > * {
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
    max-width: 100%;
  }

  .spage * {
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
  }

  .spage .main {
    padding-top: 0;
    padding-bottom: 0;
  }

  .sp-container {
    padding: 0;
  }

  .hero .sp-container {
    padding: 0 20px;
  }

  .spage .content .main .cards {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 32px;
    padding: 0 20px;
  }

  .spage .hero .p-title h1 {
    font-weight: 500;
    font-size: 40px;
    line-height: 48px;
  }

  .spage .hero .p-title {
    margin-top: 120px;
  }

  .spage .hero {
    padding-bottom: 20px;
  }

  .spage .hero .breadcrumbs {
    padding-top: 16px;
  }

  .spage .hero .breadcrumbs__list {
    display: none;
  }

  .spage .breadcrumbs ._mobile {
    display: block;
  }

  .spage .breadcrumbs ._mobile a {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #999;
  }

  .spage .breadcrumbs ._mobile .arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: transparent url('../images/icons/Icon-arrow-grey-left.png')
      center center no-repeat;
    margin-right: 12px;
  }

  .spage .hero .p-title__label {
    font-weight: 500;
    font-size: 12px;
    line-height: 24px;
    height: 24px;
  }

  .spage .content .cards .card .card_side {
    gap: 12px;
  }

  .spage .card_content .icon {
    height: 32px;
    width: 32px;
  }

  .spage .content .card_content .title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
  }

  .spage .content .cards .card .card_side {
    margin-bottom: 16px;
  }

  .spage .content .cards .card {
    padding: 28px 0;
  }

  .spage .content .main .article__toc {
    margin-right: 20px;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .spage .sidebar__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .spage .text-card-block-items__wrap {
    padding: 0 20px;
  }

  .text-card-block-title h2 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 32px;
  }

  .text-card-block-items .item .image {
    flex-shrink: 0;
    height: 40px;
    width: 40px;
  }

  .text-card-block-items .item .title {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  .text-card-block-items .item {
    padding: 16px;
  }

  .text-card-block-items .row._width_50 .item {
    width: 100%;
    flex-shrink: 0;
  }

  body .spage .sidebar__nav ul > li {
    margin-bottom: 12px !;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  .spage .main > h2 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
  }

  .spage .main > h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
  }

  .spage h4 {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
  }

  .spage .main ol > li {
    padding-left: 36px;
  }

  .spage .main ol > li .ol-list-marker {
    top: 0;
    height: 24px;
    width: 24px;
    margin-right: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
  }

  .spage .main ul > li::before {
    top: 9px;
  }

  .text-card-block-items .row._title_place_under .item .title {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  .spage__form {
    padding: 32px 16px;
  }

  .spage__form br {
    display: inline-block;
  }

  .text-card-block-items .item {
    margin-bottom: 12px;
  }

  .text-card-block-items .item:last-child {
    margin-bottom: 0;
  }

  .text-card-block-items .item .text {
    margin-top: 20px;
  }

  .text-card-block-items {
    margin-bottom: 30px;
  }

  .text-card-block-title_after {
    margin-bottom: 30px;
  }

  .b-text-card-block {
    padding: 30px 0;
  }

  .spage__form .title {
    margin-bottom: 40px;
  }

  .spage .post_slider {
    padding-left: 16px;
    padding-right: 16px;
  }

  .spage .main blockquote {
    margin-bottom: 24px;
    padding: 20px 16px;
  }

  .spage .post_slider__title {
    font-size: 20px;
    line-height: 28px;
  }

  div.service-slider .service-slider__item.post_slider__item {
    padding: 24px 16px 48px;
  }

  .service-slider__item ._bottom {
    margin-top: 16px;
    height: 60px;
  }

  .spage .accordion-content-item .head .title {
    font-size: 20px;
    line-height: 24px;
  }

  .wp-block-table {
    margin-bottom: 32px;
  }
}

@media (max-width: 567px) {
  .spage .hero .card_content .title {
    font-size: 16px;
    line-height: 24px;
  }

  .spage .hero .cards {
    row-gap: 16px;
  }

  .spage .hero .cards .card {
    padding: 20px 16px 32px;
  }

  .spage .hero .cards .card .text {
    margin-bottom: 0;
  }

  .spage .hero .cards .card .card_header {
    margin-bottom: 20px;
  }

  .spage .sidebar__buttons {
    flex-direction: column;
    row-gap: 12px;
  }

  .spage .sidebar__nav ul {
    padding-bottom: 32px;
  }

  .spage .sidebar__nav ul > li {
    margin-bottom: 8px;
  }

  .spage .main > h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .spage .main h3 {
    margin-top: 48px !important;
    font-size: 20px;
    line-height: 24px;
  }

  .spage .main > p {
    margin-bottom: 24px !important;
  }

  .spage .accordion-content-title {
    margin-bottom: 10px;
  }

  .spage .accordion-content-title h2 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 0;
  }

  .spage .main ol li .ol-list-marker {
    height: 24px;
    width: 24px;
    margin-right: 12px;
  }

  .text-slider .slick-slide {
    font-size: 14px;
    line-height: 22px;
  }

  .service-slider__items > .post_slider__item:nth-child(n + 4) {
    display: none;
    /* скрыть все начиная с 4-го */
  }

  .accordion-content-item .head .arrow {
    width: 24px;
    height: 24px;
  }

  .accordion-content-item .text {
    padding: 0;
  }

  .spage .accordion-content-item .text {
    padding-bottom: 4px;
  }

  .spage .accordion-content-item .text p {
    margin-bottom: 20px;
  }

  .spage .accordion-content-item blockquote {
    padding: 20px 16px 20px 20px;
    margin-bottom: 20px;
  }

  .spage .post-slider__item::after {
    display: none;
  }

  .spage .post_slider__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    line-height: 28px;
  }

  .spage .post_slider__head .post_slider__all {
    display: block;
  }

  .spage .post_slider .post-slider__all.post_slider__all {
    display: none;
  }

  .spage .post_slider__item .title {
    font-size: 20px;
    padding-right: 0;
  }

  .spage .service-slider .service-slider__item.post_slider__item {
    margin: 0;
  }

  .spage .service-slider__item.post_slider__item:nth-child(n + 4) {
    display: none;
  }

  .service-slider__items {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
  }

  .spage .post-slider.desktop {
    display: block;
  }

  .spage .post-slider.tablet {
    display: none;
  }

  .spage .service-slider .service-slider__all {
    display: none;
  }

  .fixed-bottom-menu .btn_request_service .icon,
  .fixed-bottom-menu .services__button_download {
    display: none !important;
  }

  .spage .content .main .b-accordion-content,
  .spage .content .main .b-text-slider {
    margin-bottom: 48px;
  }
}

@media (max-width: 1440px) {
  .spage .hero {
    background-size: cover, calc((100% - 184px) * 0.3 + 92px);
  }
}

@media (max-width: 1200px) {
  .spage .hero {
    background-size: cover, calc((100% - 48px) * 0.3 + 24px);
  }
}

@media (max-width: 1024px) {
  .spage .hero {
    background-size: cover, 16%;
  }
}

@media (max-width: 567px) {
  .spage .hero {
    background-size: cover, 0;
  }
}

@media (max-width: 1024px) {
  .spage .service-slider .slick-list {
    margin: 0 -10px;
  }

  .spage .service-slider .slick-slide.service-slider__item.post_slider__item {
    margin: 0 10px;
  }
}

@media (max-width: 569px) {
  div.service-slider .service-slider__item.post_slider__item {
    margin: 0 10px 12px;
  }

  .service-slider__items > .post_slider__item:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 567px) {
  .spage__form {
    margin-bottom: 64px;
  }

  .service-slider__item .icon {
    height: 80px;
    margin-bottom: 28px;
  }

  .service-slider__items {
    row-gap: 12px;
  }

  .spage .post_slider.desktop .post_slider__head {
    margin-bottom: 40px;
  }

  .post-slider.post_slider.desktop .post-slider__items a:before {
    content: '';
    display: block;
    border-bottom: 1px solid #c4c4c4;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .post-slider.post_slider.desktop
    .post-slider__items
    a:nth-of-type(1)::before {
    display: none;
  }

  .post_slider {
    margin-bottom: 64px;
  }

  .post-slider-desktop .post-slider__item {
    padding: 0;
  }

  .service-slider__items > .post_slider__item:nth-child(n + 4) {
    display: none;
  }

  .post_slider.desktop
    .post_slider__items
    > .post_slider__item:nth-child(n + 4) {
    display: none;
  }
}
