/* Шахматка послуг: стабільна сітка + захист від Bitrix/Bootstrap у WYSIWYG */

.s3-chess__row {
  min-width: 0;
}

.s3-chess__row > .s3-chess__media,
.s3-chess__row > .s3-chess__img,
.s3-chess__row > .s3-chess__text,
.s3-chess__row > .s3-chess__video,
.s3-chess__video {
  min-width: 0;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 1024px) {
  .s3-chess__row > .s3-chess__media,
  .s3-chess__row > .s3-chess__img,
  .s3-chess__row > .s3-chess__video,
  .s3-chess__row > .s3-chess__text,
  .s3-chess__row > .s3-chess__media.s3-chess__video {
    flex: 1 1 50%;
    width: 50% !important;
    max-width: 50% !important;
  }
}

.s3-chess__text .container,
.s3-chess__text .container-fluid,
.s3-chess__text .row,
.s3-chess__text section,
.s3-chess__text [class*="col-"],
.s3-chess__text [class*="order-"],
.s3-chess__text [class*="offset-"],
.s3-chess__text .d-flex,
.s3-chess__text .landing-block-node-text-container,
.s3-chess__text .landing-block-node-text,
.s3-chess__text .block-wrapper,
.s3-chess__text .g-color {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: static !important;
}

.s3-chess .grid_botton {
  flex-wrap: wrap;
  gap: 10px;
}

.s3-chess .grid_botton a.btn_in-header {
  width: auto !important;
  max-width: none !important;
  min-width: 140px;
  height: auto !important;
  min-height: 40px;
  padding: 10px 18px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box;
}
