Oleg0,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
label.hide {
display: none;
}
</style>
<script>
document.addEventListener("click", function({
target
}) {
if (target = target.closest('[name="panes[webform_nid3005][0][___sposob_polucheniya]"]')) {
let hide = target.id === "sposob-polucheniya-2";
if (hide) document.querySelector("#payment-method-3").checked = true;
document.querySelectorAll("#payment-method-1, #payment-method-2").forEach(el => {
el.parentNode.classList.toggle("hide", hide)
})
}
});
</script>
</head>
<body>
<input type="radio" id="sposob-polucheniya-1" name="panes[webform_nid3005][0][___sposob_polucheniya]" value="sankt_piter" class="form-radio">
<input type="radio" id="sposob-polucheniya-2" name="panes[webform_nid3005][0][___sposob_polucheniya]" value="ozon" checked="checked" class="form-radio"> Оплата:
<label class="hide">1<input type="radio" id="payment-method-1" name="panes[payment][payment_method]" value="cod" onclick="get_payment_details(Drupal.settings.ucURL.checkoutPaymentDetails + this.value);" class="form-radio"></label>
<label class="hide">2<input type="radio" id="payment-method-2" name="panes[payment][payment_method]" value="check" onclick="get_payment_details(Drupal.settings.ucURL.checkoutPaymentDetails + this.value);" class="form-radio"></label>
<label>3<input type="radio" id="payment-method-3" name="panes[payment][payment_method]" value="check1" onclick="get_payment_details(Drupal.settings.ucURL.checkoutPaymentDetails + this.value);" class="form-radio" checked="checked"></label>
<label>4<input type="radio" id="payment-method-4" name="panes[payment][payment_method]" value="other" onclick="get_payment_details(Drupal.settings.ucURL.checkoutPaymentDetails + this.value);" class="form-radio"></label>
</body>
</html>