/* J21 night R1 — independent LOCAL next-party candidate.
   Bound to before/HERO_STRUCTURE.json and HERO_BINDING.json (20 Oct 2026).
   Existing title, copy, images and jqm attributes remain in their native DOM.
   Native adaptive_info repeats the copy as a SPAN, so only that hero row is hidden.
   Register this isolated asset after vendor CSS, through the reviewed custom block.
   Root must verify actual desktop/mobile rendering before reporting this as applied. */

body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX {
  --j21-hero-warm: #f7f3ee;
  --j21-hero-ink: #262421;
  --j21-hero-accent: #bb4c26;
  --j21-hero-line: #ddd5cc;
  --j21-hero-pad: clamp(24px, 2.3vw, 34px);
  background: var(--j21-hero-warm);
  color: var(--j21-hero-ink);
  font-family: Manrope, Arial, sans-serif;
}

@supports (display: grid) {
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .top_big_one_banner,
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .top_slider_wrapp,
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .main-slider,
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .main-slider__wrapper,
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .main-slider__item {
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .top_slider_wrapp {
    width: calc(100% - 96px) !important;
    max-width: 1280px;
    margin: 24px auto 36px;
    background: var(--j21-hero-warm);
    border: 1px solid var(--j21-hero-line);
    border-radius: 6px;
    overflow: hidden;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .top_slider_wrapp .wrapper_inner {
    width: 100%;
    max-width: none;
    height: auto !important;
    padding: 0;
    margin: 0;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .main-slider__item table,
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .main-slider__item tbody {
    display: block;
    width: 100%;
    height: auto !important;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.adaptive_info {
    display: none !important;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: auto !important;
    min-height: 420px;
    margin: 0;
    padding: 0;
    background: var(--j21-hero-warm);
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    float: none;
    width: auto !important;
    height: auto;
    min-width: 0;
    padding: var(--j21-hero-pad) !important;
    text-align: left;
    vertical-align: top;
    background: transparent;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_title {
    margin: 0 0 14px;
    padding: 0;
    color: var(--j21-hero-ink);
    text-align: left;
  }
  /* Decorative repetition only: the unchanged real H1 already states this geography. */
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_title::before {
    content: "Москва и Московская область";
    display: block;
    margin-bottom: 12px;
    color: var(--j21-hero-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text h1.head-title {
    display: block !important;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--j21-hero-ink);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(36px, 3.2vw, 44px);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-align: left;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_text {
    width: auto;
    margin: 0 0 22px;
    padding: 0;
    color: #514b45;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: auto;
    margin: 0;
    padding: 0;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_buttons > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 48px;
    height: auto;
    margin: 0;
    padding: 10px 8px;
    border: 1px solid var(--j21-hero-accent);
    border-radius: 6px;
    background: var(--j21-hero-accent);
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    text-align: center;
    white-space: normal;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_buttons > .btn[data-param-form_id="J21_PHOTO_CALC"] {
    background: transparent;
    color: var(--j21-hero-accent);
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_buttons > .btn:hover {
    border-color: #a6401f;
    background: #a6401f;
    color: #fff;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_buttons > .btn:focus-visible {
    outline: 2px solid var(--j21-hero-accent);
    outline-offset: 3px;
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.img {
    display: block !important;
    position: relative;
    float: none;
    width: auto !important;
    min-width: 0;
    min-height: 0;
    height: auto !important;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    background: var(--j21-hero-warm);
  }
  body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.img > img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none;
    height: 100% !important;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  @supports (display: grid) {
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .top_slider_wrapp {
      width: calc(100% - 48px) !important;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info {
      grid-template-columns: minmax(0, 1fr);
      min-height: 0;
      padding: 24px !important;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text {
      display: contents !important;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_title {
      grid-column: 1;
      grid-row: 1;
      margin: 0;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text h1.head-title {
      font-size: clamp(32px, 4.5vw, 40px);
      line-height: 1.12;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.img {
      grid-column: 1;
      grid-row: 2;
      width: 100% !important;
      aspect-ratio: 4 / 3;
      max-height: 420px;
      margin: 20px 0 0;
      border-radius: 4px;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_text {
      grid-column: 1;
      grid-row: 3;
      margin: 18px 0 16px;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_buttons {
      grid-column: 1;
      grid-row: 4;
    }
  }
}
@media (max-width: 600px) {
  @supports (display: grid) {
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX .top_slider_wrapp {
      width: calc(100% - 36px) !important;
      margin: 22px auto 32px;
      border: 0;
      border-radius: 0;
      overflow: visible;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info {
      padding: 0 !important;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_title::before {
      margin-bottom: 10px;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text h1.head-title {
      font-size: clamp(30px, 8.2vw, 35px);
      line-height: 1.12;
      letter-spacing: -1.2px;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.img {
      max-height: 290px;
    }
    body.site_s1.BIG_BANNER_INDEX_type_5 .BIG_BANNER_INDEX tr.main_info > td.text .banner_buttons {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }
  }
}

/* PROCESS P2-R2: exact native COMPANY_TEXT_type_6 / company.sm.no-img.type2.
   Replaces failed P1 append; base remains exact EFDEF. P1 is immutable.
   Native middle/container padding!important stays zero: section rhythm belongs
   to front_company. Explicit inner background/text/video resets are scoped here.
   Existing copy, H2, three steps, links and scripts stay native.
   R2 selects the proven identical text CTA after steps at every width. */
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #262421;
  color: #f7f3ee;
  font-family: Manrope, Arial, sans-serif;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container > .front_company.content_wrapper_block {
  margin: 0;
  padding: 64px 0;
  border: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container > .front_company.content_wrapper_block > .maxwidth-theme {
  box-sizing: border-box;
  width: calc(100% - 96px);
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.no-img.type2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.no-img.type2 .company-block {
  border: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.no-img.type2 .company-block > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company-block > .row::before,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company-block > .row::after,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .tizers > .items > .row::before,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .tizers > .items > .row::after {
  content: none;
  display: none;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company-block > .row > .image-block,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company-block > .row > .text-block {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company-block > .row > .image-block { grid-row: 1; }
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company-block > .row > .text-block { grid-row: 2; }
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.sm.no-img.type2 .image-block > .item.video-block,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.no-img.type2 .with-text-block-wrapper {
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .with-text-block-wrapper > .show_all {
  display: inline-block;
  margin: 0 0 16px;
  color: #e9ac8e;
  font-size: 14px;
  line-height: 1.45;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .with-text-block-wrapper > .show_all:hover { color: #f3c0ab; }
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.no-img.type2 .js-h2 { margin: 0; }
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.no-img.type2 h2.top_block_title {
  max-width: 780px;
  margin: 0;
  color: #f7f3ee;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -1.3px;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text-block > .item,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text-block > .item > .item-inner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text-block > .item > .item-inner > .text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text > .preview-text {
  grid-row: 1;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 0;
  color: #d8cfc4;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text > .js-tizers {
  grid-row: 2;
  width: 100%;
  min-width: 0;
  margin: 40px 0 0;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text > .buttons {
  grid-row: 3;
  margin: 26px 0 0;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .front_tizers,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .front_tizers > .maxwidth-theme,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .item-views.tizers,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .tizers > .items {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .tizers > .items > .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .row > .item-wrapper {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid #635a50;
  background: transparent;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .item-wrapper > .item {
  display: block;
  margin: 0;
  padding: 0;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .inner-text {
  width: 100%;
  margin: 0;
  padding: 0;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .inner-text .title,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .inner-text .title > span {
  color: #f7f3ee;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .inner-text .value {
  margin: 10px 0 0;
  color: #d8cfc4;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .buttons > a.btn:not(.font-ignore) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #a27961;
  background: transparent;
  color: #f3c0ab;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
  text-decoration: none;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .buttons > a.btn:not(.round-ignore) { border-radius: 6px !important; }
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .buttons > a.btn:not(:disabled):not(.disabled):hover {
  border-color: #a27961;
  background: #ffffff0d;
  color: #f7f3ee;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container a:focus-visible,
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .buttons > a.btn:focus-visible {
  outline: 2px solid #f3c0ab;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container > .front_company.content_wrapper_block > .maxwidth-theme { width: calc(100% - 48px); }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .tizers > .items > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .row > .item-wrapper:nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container > .front_company.content_wrapper_block { padding: 40px 0; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container > .front_company.content_wrapper_block > .maxwidth-theme { width: calc(100% - 36px); }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .with-text-block-wrapper > .show_all { margin-bottom: 14px; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.no-img.type2 h2.top_block_title {
    font-size: 31px;
    line-height: 1.16;
    letter-spacing: -1px;
  }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text > .js-tizers { margin-top: 28px; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .tizers > .items > .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .row > .item-wrapper { padding: 20px 0; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .row > .item-wrapper:nth-child(3):last-child { grid-column: auto; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .inner-text .title,
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .inner-text .title > span { line-height: 1.35; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .js-tizers .inner-text .value { margin-top: 7px; }
  body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .text > .buttons { margin-top: 24px; }
}

/* P2-R2: both native anchors are exactly /company/ + Подробности.
   Choose the existing text copy after the steps; keep both anchors in the DOM. */
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.sm.no-img.type2 .image-block > .item.video-block > .with-text-block-wrapper > .buttons {
  display: none;
}
body.site_s1.COMPANY_TEXT_type_6 .COMPANY_TEXT.drag-block.container .company.sm.no-img.type2 .text-block > .item > .item-inner > .text > .buttons {
  display: block;
}
