/* The desktop hero's primary action supplies the shared dimensions. */
html body :is(
  #rd-mobile-experience .rdm-client-cta.rd-cta-standard,
  .rdh-next-step > .rdh-cta,
  .rdh-actions > .rdh-cta,
  a.rd-cta-standard.js-modal,
  .rdq-mission-action > a.cursor-interaction,
  .rd-cf-invite > .rd-cf-primary,
  .rds-inner > .rds-cta,
  .profile-actions > a.cta,
  .side-card > a[href="https://romandusenko.ru/#contacts"],
  .mission-action > a.contact,
  .rdp-paths .session .actions > a.primary,
  .side-consult > a.cta,
  .consultation-band > a[href="https://t.me/RomanDusenko"],
  a.elementor-button[href="#contact"],
  a.elementor-button[href="#forma"],
  a.elementor-button[href*="eyJpZCI6IjE5NiIsInRvZ2dsZSI6ZmFsc2V9"],
  a.button.js-cta[href="#application"],
  #allrecords a.rd-primary-cta
) {
  box-sizing: border-box !important;
  width: var(--rd-primary-width, min(300px, 100%)) !important;
  max-width: var(--rd-primary-max-width, 100%) !important;
  min-width: 0 !important;
  min-height: 58px !important;
  height: 58px !important;
  padding-block: 0 !important;
  align-content: center;
}

html body #rd-desktop-hero .rdh-next-step > .rdh-hero-cta {
  width: min(300px, 100%) !important;
  min-height: 58px !important;
  min-width: 0 !important;
  height: 58px !important;
}

html body .consultation-band > a[href="https://t.me/RomanDusenko"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html body #allrecords .t396__elem:has(> a.rd-primary-cta) {
  width: min(300px, calc(100vw - 32px)) !important;
  height: 58px !important;
}

html body #allrecords .t396__elem > a.rd-primary-cta {
  width: 100% !important;
  height: 58px !important;
}

@media (max-width: 480px) {
  html body #allrecords .t396__elem:has(> a.rd-primary-cta) {
    left: max(16px, calc(50% - 150px)) !important;
  }
}

html body .elementor-button-wrapper:has(> a.elementor-button:is([href="#contact"],[href="#forma"])):not(header *) {
  display: flex;
  justify-content: center;
}

html body a.elementor-button:is([href="#contact"],[href="#forma"]):not(header *) {
  --rd-primary-width: min(300px, calc(100vw - 32px));
  --rd-primary-max-width: none;
  flex: none;
}
