/* Лендинг «Регистрация медицинских изделий» (RU /registratsiya-meditsinskikh-izdeliy/,
   EN /en/medical-device-registration/). Оформление — по КП в Figma F8wrOWGhTxF73Egt7bKiBa:
   оливковая гамма, лайм-акценты, графит, тёмно-зелёная карточка финального этапа.
   Все классы с префиксом .rg-*, чтобы не пересекаться с глобальными стилями. */

.rg {
  --rg-bg: #f6f7f2;
  --rg-surface: #fff;
  --rg-olive: #e5e9d3;
  --rg-olive-2: #d6ddb4;
  --rg-lime: #e8f800;
  --rg-ink: #101512;
  --rg-text: #3a3f3b;
  --rg-muted: #646a5f;
  --rg-line: #e2e5d6;
  --rg-forest: #0f3928;
  --rg-green: #5f9900;
  --rg-radius: 20px;
  --rg-font: var(--mg-ref-font-primary, 'Manrope', sans-serif);

  display: block;
  background: var(--rg-bg);
  color: var(--rg-ink);
  font-family: var(--rg-font);
  padding-bottom: 24px;
}
.rg *, .rg *::before, .rg *::after { box-sizing: border-box; }
:where(.rg) :where(h1, h2, h3, p, dl, dd, ol, ul) { margin: 0; }
:where(.rg) :where(ol, ul) { padding: 0; list-style: none; }
.rg img { display: block; max-width: 100%; }
:where(.rg) a { color: inherit; }

.rg-wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}
.rg-section { padding-block: 56px; }
.rg-section--tint { background: var(--rg-surface); border-block: 1px solid var(--rg-line); }

.rg-h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 32px;
  max-width: 900px;
}
.rg-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--rg-text);
  max-width: 720px;
}

.rg-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rg-lime);
  color: var(--rg-ink);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Кнопки ---------- */
.rg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 12px;
  font: 700 15px/1.4 var(--rg-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.rg-btn--primary { border: 0; background: var(--rg-ink); color: #fff; }
.rg-btn--primary:hover { background: var(--rg-forest); color: #fff; }
.rg-btn--primary:disabled { opacity: .6; cursor: progress; }
.rg-btn--ghost { border: 1.5px solid rgba(16, 21, 18, .35); background: transparent; color: var(--rg-ink); }
.rg-btn--ghost:hover { border-color: var(--rg-ink); background: rgba(255, 255, 255, .35); color: var(--rg-ink); }
.rg-btn:focus-visible,
.rg a:focus-visible,
.rg-faq__item summary:focus-visible { outline: 2px solid var(--rg-forest); outline-offset: 3px; }

/* ---------- Hero ---------- */
.rg-hero { padding-block: 24px 8px; }
.rg-crumbs { margin-bottom: 20px; }
.rg-crumbs .breadcrumbs { margin-bottom: 0; }
.rg-crumbs__en { display: flex; gap: 8px; font-size: 14px; color: var(--rg-muted); }
.rg-crumbs__en a { text-decoration: none; color: var(--rg-muted); }
.rg-crumbs__en a:hover { color: var(--rg-ink); }

.rg-hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--rg-olive-2);
  padding: 56px 56px 0;
}
.rg-hero__top { position: relative; z-index: 1; }
.rg-hero__title {
  margin-top: 24px;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
  max-width: 900px;
}
.rg-hero__lead {
  margin-top: 24px;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--rg-text);
}
.rg-hero__alt {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  gap: 10px;
  justify-items: end;
}
.rg-hero__alt a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}
.rg-hero__alt a b {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 21, 18, .08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.rg-hero__alt a span { border-bottom: 1px solid rgba(16, 21, 18, .35); }
.rg-hero__alt a i { font-style: normal; }
.rg-hero__alt a:hover span { border-color: currentColor; }
.rg .rg-hero__wave {
  width: calc(100% + 112px);
  max-width: none;
  height: clamp(110px, 13vw, 190px);
  margin: 16px -56px 0;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.rg-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}
.rg-stats__item { padding: 4px 32px; border-left: 1px solid rgba(16, 21, 18, .25); }
.rg-stats__item:first-child { padding-left: 0; border-left: 0; }
.rg-stats dt {
  display: inline-block;
  padding-block: 2px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}
.rg-stats__hl { padding: 2px 16px; border-radius: 999px; background: var(--rg-lime); }
.rg-stats dd { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--rg-text); max-width: 320px; }

/* ---------- Этапы ---------- */
.rg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rg-step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--rg-radius);
  background: var(--rg-surface);
  border: 1px solid var(--rg-line);
}
.rg-step__num { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.rg-step__title { margin-top: 20px; font-size: 20px; line-height: 1.3; font-weight: 800; }
.rg-step__list { margin-top: 16px; border-top: 1px solid var(--rg-line); }
.rg-step__list li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--rg-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--rg-text);
}
.rg-step__list li:last-child { border-bottom: 0; }
.rg-step__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rg-ink);
}
.rg-step--final { background: var(--rg-forest); border-color: var(--rg-forest); color: #fff; }
.rg-step--final .rg-step__num { color: var(--rg-lime); }
.rg-step--final .rg-step__list { border-color: rgba(255, 255, 255, .18); }
.rg-step--final .rg-step__list li { color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .18); }
.rg-step--final .rg-step__list li::before { background: var(--rg-lime); }

/* ---------- График ---------- */
.rg-plan__head { display: grid; gap: 0; margin-bottom: 36px; }
.rg-plan__head .rg-h2 { margin-bottom: 14px; }
.rg-gantt { --rg-label: 280px; display: grid; gap: 10px; }
.rg-gantt__axis,
.rg-gantt__row,
.rg-gantt__finish {
  display: grid;
  grid-template-columns: var(--rg-label) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.rg-gantt__label { font-size: 15px; line-height: 1.35; font-weight: 600; }
.rg-gantt__label b { display: inline-block; min-width: 28px; font-weight: 800; color: var(--rg-muted); }
.rg-gantt__scale { position: relative; height: 22px; }
.rg-gantt__scale i {
  position: absolute;
  left: calc(var(--rg-at) / var(--rg-months) * 100%);
  top: 0;
  font: 600 12px/22px var(--rg-font);
  font-style: normal;
  color: var(--rg-muted);
  white-space: nowrap;
  transform: translateX(-50%);
}
.rg-gantt__scale i:first-child { transform: none; }
.rg-gantt__finish .rg-gantt__scale i { transform: translateX(-100%); color: var(--rg-forest); font-weight: 800; }
.rg-gantt__track {
  position: relative;
  height: 30px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(to right, var(--rg-line) 0 1px, transparent 1px calc(100% / var(--rg-months))),
    var(--rg-bg);
}
.rg-gantt__bar {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(var(--rg-from) / var(--rg-months) * 100%);
  width: calc((var(--rg-to) - var(--rg-from)) / var(--rg-months) * 100%);
  border-radius: 6px;
  background: #c3cc94;
  box-shadow: inset 0 0 0 1px #b2bb7f;
}
.rg-gantt__row--final .rg-gantt__bar { background: var(--rg-forest); box-shadow: none; }
.rg-gantt__row--final .rg-gantt__label b { color: var(--rg-forest); }
.rg-notes { margin-top: 28px; display: grid; gap: 8px; max-width: 900px; }
.rg-notes li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; color: #4a524c; }
.rg-notes li::before { content: "*"; position: absolute; left: 2px; top: 0; color: var(--rg-ink); font-weight: 800; }

/* ---------- Что нужно от производителя ---------- */
.rg-need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rg-need__item { padding: 28px; border-radius: var(--rg-radius); background: var(--rg-olive); border: 1px solid rgba(16, 21, 18, .1); }
.rg-need__ico {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rg-lime);
}
.rg-need__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--rg-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-need__item h3 { margin-top: 20px; font-size: 19px; line-height: 1.3; font-weight: 800; }
.rg-need__item p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--rg-text); }
.rg-need__note { margin-top: 20px; font-size: 15px; line-height: 1.55; color: #4a524c; }

/* ---------- Кейс ---------- */
.rg-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  padding: 44px;
  border-radius: 28px;
  background: var(--rg-ink);
  color: #fff;
}
.rg-case__title { margin-top: 20px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.rg-case__text p { margin-top: 18px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .82); max-width: 620px; }
.rg-case__link {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--rg-lime) !important;
  border-bottom: 1.5px solid currentColor;
}
.rg-case__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  align-self: start;
  border-radius: var(--rg-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
}
.rg-case__facts div { padding: 22px 24px; background: #1a201c; }
.rg-case__facts dt { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.rg-case__facts dd { margin-top: 6px; font-size: 19px; line-height: 1.3; font-weight: 800; }
.rg-case__facts div:first-child { grid-column: 1 / -1; }
.rg-case__facts div:first-child dd { font-size: 24px; color: var(--rg-lime); }

/* ---------- FAQ ---------- */
.rg-faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.rg-faq { display: grid; gap: 10px; }
.rg-faq__item { border-radius: 16px; background: var(--rg-surface); border: 1px solid var(--rg-line); }
.rg-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.rg-faq__item summary::-webkit-details-marker { display: none; }
.rg-faq__ico { position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--rg-olive); }
.rg-faq__ico::before,
.rg-faq__ico::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--rg-ink); transition: transform .2s ease; }
.rg-faq__ico::after { transform: rotate(90deg); }
.rg-faq__item[open] .rg-faq__ico { background: var(--rg-lime); }
.rg-faq__item[open] .rg-faq__ico::after { transform: rotate(0); }
.rg-faq__item p { padding: 0 24px 22px; font-size: 16px; line-height: 1.65; color: var(--rg-text); max-width: 860px; }

/* ---------- Форма ---------- */
.rg-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  padding: 48px;
  border-radius: 28px;
  background: var(--rg-olive-2);
}
.rg-cta__title { margin: 20px 0 16px; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.rg-contacts { display: grid; justify-items: start; gap: 8px; margin-top: 36px; }
.rg-contacts__h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rg-muted); }
.rg-contacts__mail {
  margin-top: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--rg-lime);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  text-decoration: none;
}
.rg-contacts__person { font-size: 16px; line-height: 1.5; color: var(--rg-text); }
.rg-contacts__person b { color: var(--rg-ink); font-weight: 800; }
.rg-contacts__tel { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rg-contacts__tel a { font-size: clamp(17px, 1.6vw, 20px); font-weight: 800; text-decoration: none; }
.rg-contacts__tel a:hover { text-decoration: underline; }
.rg-contacts__lbl { min-width: 76px; font-size: 13px; color: var(--rg-muted); }

.rg-wechat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
}
.rg-wechat__label { min-width: 76px; font-size: 13px; color: var(--rg-muted); }
.rg-wechat__id { font-size: 16px; font-weight: 800; letter-spacing: .01em; word-break: break-all; }
.rg-wechat__copy {
  min-height: 36px;
  padding: 6px 14px;
  border: 1.5px solid rgba(16, 21, 18, .35);
  border-radius: 999px;
  background: transparent;
  font: 700 13px/1.2 var(--rg-font);
  color: var(--rg-ink);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .12s var(--rg-ease, ease);
}
.rg-wechat__copy:hover { border-color: var(--rg-ink); }
.rg-wechat__copy:active { transform: scale(.97); }
.rg-wechat__copy.is-done { background: var(--rg-lime); border-color: var(--rg-lime); }
.rg-wechat__copy:focus-visible { outline: 2px solid var(--rg-forest); outline-offset: 3px; }
/* ZH: WeChat — главный канал, крупная карточка первой в контактах */
.rg-wechat--main {
  margin: 4px 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 21, 18, .1);
}
.rg-wechat--main .rg-wechat__label { flex: 1 0 100%; font-weight: 700; color: #07c160; }
.rg-wechat--main .rg-wechat__id { font-size: clamp(18px, 2vw, 24px); }
.rg-wechat--main .rg-wechat__copy { margin-left: auto; min-height: 44px; padding: 8px 20px; border: 0; background: var(--rg-ink); color: #fff; font-size: 15px; }
.rg-wechat--main .rg-wechat__copy.is-done { background: var(--rg-lime); color: var(--rg-ink); }

.rg-form { padding: 32px; border-radius: var(--rg-radius); background: var(--rg-surface); align-self: start; }
.rg-field { display: grid; gap: 6px; margin-bottom: 14px; }
.rg-field > span { font-size: 13px; font-weight: 700; color: var(--rg-text); }
.rg-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--rg-line);
  border-radius: 10px;
  background: #fff;
  font: 500 16px/1.4 var(--rg-font);
  color: var(--rg-ink);
}
.rg-field input:focus { outline: none; border-color: var(--rg-forest); }
.rg-field input[aria-invalid="true"] { border-color: #c62828; }
.rg-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: 13px; line-height: 1.5; color: var(--rg-muted); cursor: pointer; }
.rg-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rg-forest); }
.rg-consent a { text-decoration: underline; }
.rg-form__submit { width: 100%; }
.rg-form__error { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #c62828; }
.rg-form__done b { display: block; font-size: 22px; font-weight: 800; }
.rg-form__done p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--rg-text); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .rg-steps, .rg-need { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-case, .rg-cta, .rg-faq-wrap { grid-template-columns: 1fr; }
  .rg-faq-wrap { gap: 0; }
  .rg-gantt { --rg-label: 220px; }
  .rg-hero__alt { position: static; margin-top: 24px; justify-items: start; }
}
@media (max-width: 767px) {
  .rg-wrap { padding-inline: 16px; }
  .rg-section { padding-block: 40px; }
  .rg-hero__panel { padding: 28px 22px 0; border-radius: 22px; }
  .rg-hero__lead { font-size: 16px; }
  .rg .rg-hero__wave { width: calc(100% + 44px); margin: 0 -22px; }
  .rg-actions .rg-btn { flex: 1 1 100%; }
  .rg-stats { grid-template-columns: 1fr; gap: 18px; }
  .rg-stats__item { padding: 0 0 18px; border-left: 0; border-bottom: 1px solid rgba(16, 21, 18, .18); }
  .rg-stats__item:last-child { border-bottom: 0; padding-bottom: 0; }
  .rg-steps, .rg-need { grid-template-columns: 1fr; }
  .rg-step, .rg-need__item { padding: 20px; }
  .rg-step__num { font-size: 28px; }
  .rg-step__title { margin-top: 14px; }
  .rg-gantt__axis, .rg-gantt__row, .rg-gantt__finish { grid-template-columns: 1fr; gap: 6px; }
  .rg-gantt__axis .rg-gantt__label, .rg-gantt__finish .rg-gantt__label { display: none; }
  .rg-gantt__row { margin-top: 6px; }
  .rg-gantt__axis { order: 0; }
  .rg-case, .rg-cta { padding: 24px; gap: 28px; border-radius: 22px; }
  .rg-case__facts { grid-template-columns: 1fr; }
  .rg-form { padding: 22px; }
  .rg-faq__item summary { padding: 16px 18px; font-size: 16px; }
  .rg-faq__item p { padding: 0 18px 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-faq__ico::before, .rg-faq__ico::after { transition: none; }
}

/* ---------- Анимация ----------
   Страница маркетинговая, заходят редко → допустимы появление блоков при прокрутке,
   «рисование» графика и счётчики. Только transform/opacity. Скрытое состояние — только
   под .rg--js (класс ставит registration.js), без JS всё видно сразу. */
.rg { --rg-ease: var(--ease-emphasized, cubic-bezier(.2, 0, 0, 1)); }

/* Hero: текст поднимается при загрузке, волна точек медленно «дышит». */
@keyframes rg-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rg-breathe { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-10px) scaleY(1.06); } }
.rg-hero__main > *, .rg-hero__alt { animation: rg-rise .6s var(--rg-ease) both; }
.rg-hero__main > :nth-child(2) { animation-delay: .06s; }
.rg-hero__main > :nth-child(3) { animation-delay: .12s; }
.rg-hero__main > :nth-child(4) { animation-delay: .18s; }
.rg-hero__alt { animation-delay: .24s; }
.rg .rg-hero__wave { transform-origin: 50% 100%; animation: rg-breathe 7s ease-in-out infinite alternate; }
/* «Звуковая» волна на canvas (registration.js) заменяет картинку и двигается сама. */
.rg .rg-hero__wave--live { display: block; animation: none; }
.rg img.rg-hero__wave[hidden] { display: none; }

/* Появление при прокрутке: [data-rg-reveal] получает .is-in; дети со --rg-i — лесенкой 60 мс. */
.rg--js [data-rg-reveal] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--rg-ease), transform .5s var(--rg-ease), box-shadow .25s var(--rg-ease);
  transition-delay: calc(var(--rg-i, 0) * 60ms);
}
.rg--js [data-rg-reveal].is-in > * { opacity: 1; transform: none; }
/* После появления лесенка не должна задерживать наведение. */
.rg--js [data-rg-reveal].is-done > * { transition-delay: 0s; transition-duration: .25s; }

.rg--prep [data-rg-reveal] > *, .rg--prep .rg-gantt__bar { transition: none !important; }

/* График: полосы «рисуются» слева направо по порядку старта этапа. */
.rg--js .rg-gantt__bar {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--rg-ease);
  transition-delay: calc(var(--rg-from) * 70ms + 150ms);
}
.rg--js .rg-gantt.is-in .rg-gantt__bar { transform: none; }

/* Наведение — только мышью. Нажатие — короткое сжатие. */
.rg-step, .rg-need__item { transition: transform .25s var(--rg-ease), box-shadow .25s var(--rg-ease), opacity .5s var(--rg-ease); }
@media (hover: hover) and (pointer: fine) {
  .rg .rg-step:hover, .rg .rg-need__item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -14px rgba(16, 21, 18, .28); }
  .rg-need__item:hover .rg-need__ico { transform: rotate(-8deg) scale(1.06); }
}
.rg-need__ico { transition: transform .25s var(--rg-ease); }
.rg-btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s var(--rg-ease); }
.rg-btn:active { transform: scale(.97); }

/* FAQ: ответ проявляется при раскрытии. */
@keyframes rg-fade-down { from { opacity: 0; transform: translateY(-6px); } }
.rg-faq__item[open] p { animation: rg-fade-down .25s var(--rg-ease); }

/* Форма: «Заявка отправлена» появляется, а не подменяет форму рывком. */
.rg-form__done:not([hidden]) { animation: rg-rise .4s var(--rg-ease) both; }

@media (prefers-reduced-motion: reduce) {
  .rg-hero__main > *, .rg-hero__alt, .rg-form__done:not([hidden]) { animation: rg-fade .3s ease both; }
  .rg .rg-hero__wave, .rg-faq__item[open] p { animation: none; }
  .rg--js [data-rg-reveal] > * { transform: none; transition: opacity .3s ease; transition-delay: 0s; }
  .rg--js .rg-gantt__bar { transform: none; transition: none; }
  .rg .rg-step:hover, .rg .rg-need__item:hover, .rg-need__item:hover .rg-need__ico, .rg-btn:active { transform: none; }
}
@keyframes rg-fade { from { opacity: 0; } }

/* ---------- ZH: иероглифы системным шрифтом (без Google Fonts — в Китае недоступен),
   латиница и цифры остаются на Manrope. Отрицательный трекинг иероглифам вреден. ---------- */
.rg:lang(zh-Hans) {
  --rg-font: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
}
.rg:lang(zh-Hans) :is(.rg-hero__title, .rg-h2, .rg-case__title, .rg-cta__title, .rg-stats dt, .rg-step__num) { letter-spacing: 0; }
.rg:lang(zh-Hans) .rg-hero__title { line-height: 1.15; }
.rg:lang(zh-Hans) :is(p, li, dd) { line-height: 1.75; }
.rg:lang(zh-Hans) .rg-pill { letter-spacing: .12em; }

/* ---------- Упрощённая шапка EN/ZH (header.php, $_mgIntl) ---------- */
.mgh--intl .mgh__inner { justify-content: space-between; gap: 16px; }
.mgh-intl__langs { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: #f1f3ec; }
.mgh-intl__langs a {
  min-width: 44px;
  padding: 7px 12px;
  border-radius: 999px;
  text-align: center;
  font: 700 14px/1.2 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #3a3f3b;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.mgh-intl__langs a:hover { color: #101512; background: #e5e9d3; }
.mgh-intl__langs a[aria-current="page"] { background: #101512; color: #fff; }
.mgh-intl__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #e8f800;
  color: #101512;
  font: 800 14px/1.2 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.mgh-intl__cta:hover { background: #d9e800; color: #101512; }
.mgh-intl__langs a:focus-visible, .mgh-intl__cta:focus-visible { outline: 2px solid #0f3928; outline-offset: 2px; }
body:has(.mgh--intl) .main, body.mgh-scrolled:has(.mgh--intl) .main { padding-top: var(--mgh-h, 72px) !important; }
@media (max-width: 767px) {
  .mgh--intl .mgh__inner { gap: 8px; }
  /* header.css на мобиле ставит логотип в центр (order:2; flex:1) — у упрощённой шапки он слева */
  .mgh--intl .mgh__logo { order: 0; flex: 0 0 auto; justify-content: flex-start; }
  .mgh--intl .mgh__logo svg { height: 22px; }
  .mgh-intl__langs a { min-width: 0; padding: 7px 9px; font-size: 13px; }
  .mgh-intl__cta { min-height: 40px; padding: 8px 12px; font-size: 13px; }
}
