.hr {
  position: relative;
  isolation: isolate;
  width: calc(100% - 40px);
  max-width: none;
  margin-inline: 20px;
  padding: var(--hr-pt) var(--hr-pr) var(--hr-pb) var(--hr-pl);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: var(--hr-rtl) var(--hr-rtr) var(--hr-rbr) var(--hr-rbl);
  background: var(--hr-bg);
  font-family: Inter, Arial, sans-serif;
  color: #191919;
}
.hr__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #000;
  opacity: var(--hr-overlay);
  pointer-events: none;
}
.hr__inner {
  width: 100%;
  max-width: var(--hr-max);
  margin: auto;
}
.hr h2 {
  margin: 0 0 38px;
  color: var(--hr-title-color);
  font:
    400 var(--hr-title-size) / 1.08 Wremena,
    Georgia,
    serif;
}
.hr-about > .hr__inner {
  display: flex;
  align-items: stretch;
  gap: var(--hr-gap);
}
.hr-about.is-image-left > .hr__inner {
  flex-direction: row-reverse;
}
.hr-about__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}
.hr-about__text {
  font-size: 18px;
  line-height: 1.35;
  color: white;
  @media (max-width: 760px) {
    font-size: 14px;
    margin-bottom: 28px;
  }
}
.hr-about__copy > a,
.hr-catalog article > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--hr-button-bg);
  color: var(--hr-button-color);
  text-decoration: none;
}
.hr-about__media {
  width: var(--hr-image-w);
  flex: none;
}
.hr-about__media img {
  display: block;
  width: 100%;
  height: var(--hr-image-h);
  object-fit: cover;
  border-radius: var(--hr-image-radius);
}
.hr-catalog > .hr__inner > h2,
.hr-steps > .hr__inner > h2,
.hr-logos > .hr__inner > h2 {
  text-align: center;
}
.hr-logos > .hr__inner > h2 {
  font-size: var(--hr-title-size, 32px);
}
.hr-catalog__grid {
  display: grid;
  grid-template-columns: repeat(var(--hr-cols), minmax(0, 1fr));
  gap: var(--hr-gap);
}
.hr-catalog article {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 16px;
  border-radius: var(--hr-card-radius);
  background: var(--hr-card-bg);
}
.hr-catalog article > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hr-image-radius);
  object-fit: contain;
}
.hr-catalog article h3 {
  margin: 15px 0 10px;
  font: 400 20px/1.2 Wremena, Georgia, serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}
.hr-catalog__excerpt {
  margin-bottom: 30px;
  line-height: 1.3;
}
.hr-catalog__price {
  margin-bottom: 24px;
}
.hr-catalog__price del {
  margin-left: 12px;
  color: #999;
}
.hr-catalog.is-posts article > a {
  margin-top: 70px;
  padding: 0;
  justify-content: flex-start;
  border-radius: 0;
  background: none;
  color: #191919;
  text-decoration: underline;
}
.hr-catalog.is-posts article h3 {
  margin-bottom: 0;
}
.hr-steps__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--hr-cols), minmax(0, 1fr));
  gap: var(--hr-gap);
}
.hr-step {
  display: grid;
  grid-template-rows: auto 42px auto;
  gap: 10px;
}
.hr-step__top,
.hr-step__bottom {
  min-height: 112px;
  padding: 20px;
  border-radius: var(--hr-card-radius);
  background: var(--hr-card-bg);
  height: max-content;
}
.hr-step__top small {
  font-size: 16px;
}
.hr-step__top h3 {
  margin: 42px 0 0;
  font:
    400 24px/1.15 Wremena,
    Georgia,
    serif;
}
.hr-step > i {
  position: relative;
}
.hr-step > i:before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--hr-gap) / -2);
  width: calc(100% + var(--hr-gap));
  height: 1px;
  background: var(--hr-line);
}
.hr-step > i:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--hr-line);
}
/* Share row heights across steps so long copy cannot move an individual line. */
@media (min-width: 761px) {
  .hr-steps__grid {
    row-gap: 10px;
  }
  .hr-step {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
  .hr-step > i {
    min-height: 42px;
  }
}
.hr-form > .hr__inner {
  display: flex;
  justify-content: center;
}
.hr-form form {
  display: flex;
  width: min(100%, var(--hr-form-w));
  padding: 16px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--hr-form-radius);
  background: var(--hr-form-bg);
}
.hr-form input:not([type="checkbox"]),
.hr-form textarea,
.hr-form select {
  width: 100%;
  height: var(--hr-field-h);
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #d4d4d4;
  border-radius: var(--hr-field-radius);
  background: var(--hr-field-bg);
  font:
    14px Inter,
    Arial,
    sans-serif;
}
.hr-form textarea {
  min-height: calc(var(--hr-field-h) * 1.2);
  padding-top: 14px;
  resize: vertical;
}
.hr-form__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 7px 0 18px;
  color: #888;
  font-size: 11px;
}
.hr-form button {
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--hr-button-bg);
  color: var(--hr-button-color);
  font-size: 16px;
}
.hr-logos__grid {
  display: grid;
  grid-template-columns: repeat(var(--hr-cols), minmax(0, 1fr));
  gap: var(--hr-gap);
}
.hr-logos__grid > a,
.hr-logos__grid > div {
  display: flex;
  height: var(--hr-logo-h);
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  border-radius: var(--hr-logo-radius);
  background: var(--hr-logo-bg);
}
.hr-logos img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hr-action__grid {
  display: grid;
  grid-template-columns: repeat(var(--hr-cols), minmax(0, 1fr));
  column-gap: var(--hr-gap-x);
  row-gap: var(--hr-gap-y);
}
.hr-action article {
  display: flex;
  min-height: var(--hr-card-h);
  padding: var(--hr-card-pad);
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--hr-card-rtl) var(--hr-card-rtr) var(--hr-card-rbr)
    var(--hr-card-rbl);
  background: var(--hr-card-bg);
}
.hr-action article h3 {
  margin: 0 0 28px;
  font:
    400 var(--hr-heading-size) / 1.12 Wremena,
    Georgia,
    serif;
}
.hr-action__text {
  font-size: var(--hr-text-size);
  line-height: 1.25;
}
.hr-action article > a,
.hr-action article > .hr-action__button {
  display: flex;
  width: min(100%, var(--hr-button-w));
  height: var(--hr-button-h);
  margin-top: auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hr-button-bg);
  color: var(--hr-button-color);
  font-size: 20px;
  text-decoration: none;
}
.hr-split-features > .hr__inner {
  display: grid;
  grid-template-columns: var(--hr-left) minmax(0, 1fr);
  align-items: start;
}
.hr-split-features > .hr__inner > h2 {
  padding-right: 30px;
}
.hr-split-features__grid {
  display: grid;
  grid-template-columns: repeat(var(--hr-cols), minmax(0, 1fr));
  gap: var(--hr-gap);
}
.hr-split-features article {
  display: flex;
  min-height: var(--hr-card-h);
  padding: var(--hr-card-pad);
  box-sizing: border-box;
  flex-direction: column;
  border-radius: var(--hr-card-radius);
  background-color: var(--hr-card-bg);
  background-position: center;
  background-size: cover;
}
.hr-split-features article h3 {
  margin: 0;
  font:
    400 var(--hr-card-title) / 1.15 Wremena,
    Georgia,
    serif;
}
.hr-split-features article > div {
  margin-top: auto;
  font-size: var(--hr-card-text);
  line-height: 1.25;
}
@media (max-width: 900px) {
  .hr-catalog__grid,
  .hr-logos__grid,
  .hr-action__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hr-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hr-about > .hr__inner,
  .hr-about.is-image-left > .hr__inner {
    flex-direction: column;
  }
  .hr-about__media {
    width: 100%;
  }
  .hr-split-features > .hr__inner {
    grid-template-columns: 1fr;
  }
  .hr-split-features > .hr__inner > h2 {
    padding-right: 0;
  }
  .hr-split-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .hr {
    width: calc(100% - 40px);
  }
  .hr-catalog__grid,
  .hr-logos__grid,
  .hr-steps__grid,
  .hr-action__grid,
  .hr-split-features__grid {
    grid-template-columns: 1fr;
  }
  .hr-step > i:before {
    left: 50%;
    width: 1px;
    height: 100%;
  }
  .hr-about__media img {
    height: auto;
    min-height: 220px;
  }
  .hr h2 {
    font-size: clamp(28px, var(--hr-title-size), 44px);
  }
  .hr-action article {
    min-height: 280px;
  }
}

/* Карточки с кнопками: независимая мобильная геометрия и типографика. */
@media (max-width: 760px) {
  .hr-action article {
    min-height: var(--hr-card-h-m, 280px) !important;
    padding: var(--hr-card-pt-m, 18px) var(--hr-card-pr-m, 18px)
      var(--hr-card-pb-m, 18px) var(--hr-card-pl-m, 18px) !important;
  }

  .hr-action article h3 {
    font-size: var(--hr-heading-size-m, 18px) !important;
  }

  .hr-action__text {
    font-size: var(--hr-text-size-m, 12px) !important;
  }

  .hr-action article > a,
  .hr-action article > .hr-action__button {
    width: var(--hr-button-w-m, 100%) !important;
    height: var(--hr-button-h-m, 56px) !important;
    font-size: var(--hr-button-size-m, 16px) !important;
  }
}
.hr-action article > a,
.hr-action article > .hr-action__button {
  font-size: var(--hr-button-size, 20px);
}
.hr.hr-split-features {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 20px;
  padding-right: 20px;
}
.hr-split-features > .hr__inner {
  max-width: none;
}
.hr-split-features article h3 {
  color: var(--hr-card-title-color, #fff);
}
.hr-split-features article > div {
  color: var(--hr-card-text-color, #fff);
}
.hr {
  border-radius: var(--hr-rtl) var(--hr-rtr) var(--hr-rbr) var(--hr-rbl) !important;
}
.hr-form > .hr__inner {
  min-height: inherit;
  align-items: center;
}
.hr-form__composition {
  display: flex;
  width: min(100%, var(--hr-fi-w));
  min-height: var(--hr-fi-min);
  padding: var(--hr-fi-py) var(--hr-fi-px);
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hr-fc-gap);
  border: var(--hr-fi-border) solid var(--hr-fi-border-color);
  border-radius: var(--hr-fi-rtl) var(--hr-fi-rtr) var(--hr-fi-rbr)
    var(--hr-fi-rbl);
  background: var(--hr-fi-bg);
  overflow: hidden;
}
.hr-form__composition > header {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: var(--hr-fh-gap);
  text-align: center;
}
.hr-form__composition > header h2 {
  margin: 0;
  color: var(--hr-ft-color);
  font-family: var(--hr-ft-family, Wremena, Georgia, serif);
  font-size: var(--hr-ft-size);
}
.hr-form__composition > header > div {
  color: var(--hr-fs-color);
  font-family: var(--hr-fs-family, Inter, Arial, sans-serif);
  font-size: var(--hr-fs-size);
  line-height: 1.4;
}
.hr-form__composition > form {
  flex: none;
}
/* Единая геометрия: фон секции во всю ширину, контент с полями 20px. */
.hr,
.hr.hr-split-features {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.hr > .hr__inner {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.hr-form__composition {
  padding-top: var(--hr-fi-pt, var(--hr-fi-py)) !important;
  padding-bottom: var(--hr-fi-pb, var(--hr-fi-py)) !important;
}
.hr.hr-form {
  padding-bottom: var(--hr-pb) !important;
  background: var(--hr-bg) !important;
}

/* Мобильные макеты отдельных референсных блоков. */
@media (max-width: 760px) {
  /* Базовое мобильное скругление; локальная настройка Gutenberg приоритетнее. */
  .hr {
    border-radius: 20px !important;
  }

  .hr.hr-split-features,
  .hr.hr-steps,
  .hr.hr-logos {
    border-radius: 20px !important;
    overflow: hidden;
  }

  /* «Заголовок слева, карточки справа»: на телефоне это компактная сетка 2×N. */
  .hr.hr-split-features {
    padding: 26px 11px 49px !important;
  }
  .hr-split-features > .hr__inner {
    display: block;
  }
  .hr-split-features > .hr__inner > h2 {
    margin: 0 0 36px;
    padding: 0;
    font-size: 22px;
    line-height: 1.08;
    text-align: center;
  }
  .hr-split-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 11px;
  }
  .hr-split-features article {
    min-height: 144px;
    padding: 12px;
    border-radius: 15px;
  }

  .hr-action article,
  .hr-form__composition {
    border-radius: 20px !important;
    padding: 20px 10px 10px !important;
  }

  .hr-form__composition > header h2 {
    font-size: 20px !important;
    line-height: 1.08;
  }
  .hr-form__composition > header > div {
    font-size: 14px !important;
  }
  .hr-split-features article h3 {
    font-size: 20px;
    line-height: 1.15;
  }
  .hr-split-features article > div {
    font-size: 14px;
    line-height: 1.15;
  }

  /* «Этапы с линиями»: две компактные карточки этапа и единая линия позади них. */
  .hr.hr-steps {
    padding: 21px 11px 40px !important;
  }
  .hr-steps > .hr__inner > h2 {
    max-width: 330px;
    margin: 0 auto 36px;
    font-size: 24px;
    line-height: 0.98;
    text-align: center;
  }
  .hr-steps__grid {
    position: relative;
    display: block;
  }
  .hr-steps__grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 70px;
    bottom: 70px;
    left: 50%;
    width: 1px;
    background: var(--hr-line);
    transform: translateX(-50%);
  }
  .hr-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 12px auto;
    gap: 0;
    margin: 0 0 35px;
  }
  .hr-step:last-child {
    margin-bottom: 0;
  }
  .hr-step__top,
  .hr-step__bottom {
    padding: 17px;
    border-radius: 15px;
  }
  .hr-step__top {
    min-height: 94px;
  }
  .hr-step__bottom {
    display: flex;
    min-height: 70px;
    align-items: center;
    font-size: 14px;
    line-height: 1.2;
  }
  .hr-step__top small {
    font-size: 14px;
    line-height: 1.2;
  }
  .hr-step__top h3 {
    margin: 20px 0 0;
    font-size: 20px;
    line-height: 1.1;
  }
  .hr-step > i::before,
  .hr-step > i::after {
    display: none;
  }

  /* Логотипы: нативный горизонтальный слайдер со свайпом и snap-позициями. */
  .hr.hr-logos {
    padding: 30px 0 25px 20px !important;
  }
  .hr-logos > .hr__inner {
    overflow: visible;
  }
  .hr-logos > .hr__inner > h2 {
    margin: 0 20px 18px 0;
    font-size: 20px;
    line-height: 1.08;
    text-align: center;
  }
  .hr-logos__grid {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 86px;
    grid-template-columns: none;
    gap: 9px;
    padding: 0 20px 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .hr-logos__grid::-webkit-scrollbar {
    display: none;
  }
  .hr-logos__grid > a,
  .hr-logos__grid > div {
    width: auto;
    height: 82px;
    min-width: 0;
    flex: 0 0 44%;
    border-radius: 15px;
    scroll-snap-align: start;
  }
}
