.flex-row {
	display: flex;
	gap: 1em;
	position: relative;
  justify-content: space-between;
}
.flex-col {
  flex: auto;
}

.fields {
	display: flex;
  flex-flow: column nowrap;
	gap: 1em;
	position: relative;
}

.field {
	display: flex;
	flex-flow: column nowrap;
	gap: 0;
}
.field__title {
  display: block;
  font-size: 14px;
}

.field_group {
	display: flex;
	gap: 1em;
	position: relative;
}
.field_append {
  position: absolute;
	right: 10px;
	top: 10px;
}

.mw-800 {
  max-width: 800px;
}

.help-form.help-form_online .form {
  --switch-color-on: #3b9cb7;
  margin-bottom: 32px;
}
.help-form.help-form_online .link {
  color: #43aecb;
}

.help-form.help-form_online .pills {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 10px;
}
.help-form.help-form_online .pills .pill {
  position: relative;
  flex: 1;
  max-width: 100px;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
	padding: 8px 12px;
	text-transform: none;
	font-size: 20px;
	line-height: 24px;
	font-family: "GothamProRegular", Arial, sans-serif;
	text-align: center;
	background-color: #e6e6e6;
}
.help-form.help-form_online .pills .pill span {
	display: inline-block;
	margin-top: 2px;
}
.help-form.help-form_online .pills .pill > input[type="radio"] {
  position: absolute;
	clip: rect(0, 0, 0, 0);
	pointer-events: none;
}
.help-form.help-form_online .pills .pill:has(input:checked) {
	background-color: #b1e4f2;
	color: #274961;
	box-shadow: none;
}

.help-form.help-form_online .error-msg {
  display: none;
  color: #d9534f;
  font-size: 13px;
  margin-top: 0px;
}


.help-form.help-form_online .control-label {
  font-size: 18px;
  padding-top: 4px;
}

.help-form.help-form_online .form-control {
  border-radius: 4px;
}

.help-form.help-form_online .form-control,
.help-form.help-form_online input.form-control,
.help-form.help-form_online select.form-control {
  font-size: 16px;
  line-height: 1;
	padding: 14px 16px 10px;
}

.help-form.help-form_online input.form-control[disabled] {
  background-color: rgba(from lightgray r g b / 0.25);
}
.help-form.help-form_online input.form-control[required] {
	border-left-width: 2px;
	border-left-color: red;
}
.help-form.help-form_online .pills input.form-control {
  width: auto;
  flex: 1;
}

/* Анонимность: радиокнопки-пилюли "Без стеснений / Анонимно" */
.help-form.help-form_online .segmented {
  display: flex;
  margin-bottom: 0;
}
.help-form.help-form_online .segmented__item {
  flex: 1 1 0;
  cursor: pointer;
}
.help-form.help-form_online .segmented__item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.help-form.help-form_online .segmented__item span {
  display: block;
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  color: #274961;
  background: #fff;
  border: 1px solid #cfe3ec;
}
.help-form.help-form_online .segmented__item:first-child span {
  border-right: 0;
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
}
.help-form.help-form_online .segmented__item:last-child span {
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
}
.help-form.help-form_online
  .segmented__item
  input[type="radio"]:checked
  + span {
  background: #43aecb;
  color: #fff;
  border-color: #43aecb;
}

/* Чекбоксы (согласие + новости) */
.help-form.help-form_online .form__list {
  display: flex;
  flex-flow: column wrap;
  /* margin: 4px 0; */
}

.help-form.help-form_online .main_submit span {
  margin-top: 3px;
	display: inline-block;
}

.help-form.help-form_online .main_submit {
  width: fit-content;
  margin: 0 auto;
  padding: 14px 28px;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background: #43aecb;
  border: 1px solid #43aecb;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.help-form.help-form_online .main_submit:hover {
  background: #359bb6;
  border-color: #359bb6;
}
.help-form.help-form_online .main_submit[disabled] {
  opacity: 0.6;
  cursor: default;
}
.help-form.help-form_online .main_submit[disabled]:hover {
  background: #43aecb;
  border-color: #43aecb;
}

/* Хинт о готовности платёжной системы (под кнопкой) */
.help-form.help-form_online .pay-hint {
  font-size: 13px;
  line-height: 1.3;
  color: gray;
  margin-top: 6px;
}
.help-form.help-form_online .pay-hint_error {
  color: #d9534f;
}

@media (max-width: 767px) {
  .help-form.help-form_online .pills {
    column-gap: 16px;
  }
  .help-form.help-form_online .pills .pill {
    font-size: 18px;
  }
  .help-form .how_help {
    font-size: 18px;
  }
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.switch__label {
  font-size: 12px;
  cursor: pointer;
}
.switch__control {
  --size: var(--switch-size, 1.2em);
  --bg-on: var(--switch-bg-on, Canvas);
  --color-on: var(--switch-color-on, AccentColor);
  --color-off: var(--switch-color-off, lightgray);
  --transition-speed: 0.3s;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  width: calc(var(--size) * 2);
  height: var(--size);
  flex: none;
  display: flex;
  padding: 1px;
  background-color: rgba(from var(--color-off) r g b / 0.25);
  border: 1px solid var(--color-off);
  border-radius: var(--size);
  box-sizing: content-box;
  cursor: pointer;
}
/* Нативный инпут, превращенный в бегунок */
input[type="checkbox"].switch__input {
  /*accent-color: var(--color-on);*/
  -webkit-appearance: none;
  appearance: none;
  width: var(--size);
  height: var(--size);
  margin: 0;
  position: relative;
  transform: translateX(100%);
  transition:
    transform var(--transition-speed) var(--easing),
    background-color var(--transition-speed) var(--easing),
    border-color var(--transition-speed) var(--easing);
  z-index: 2;
  cursor: pointer;
  border-radius: 50%;
  border: 1.5px solid var(--color-off);
  background: Canvas;
  box-sizing: border-box;
}
/* Состояние Checked */
.switch__control:has(.switch__input:checked) {
  background-color: var(--bg-on);
  border-color: var(--color-on);
}
input[type="checkbox"].switch__input:checked {
  transform: translateX(0%);
  background: var(--color-on);
  border-color: var(--color-on);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M3 8.5L6.5 12L13 4'/%3E%3C/svg%3E");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
}

input[type="checkbox"].switch__input:focus,
input[type="checkbox"].switch__input:focus-visible {
  outline: none;
}


/* === Способ оплаты под формой (по умолчанию — только логотип) === */
.payment-system-info {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

.payment-system-info .selector-wrapper {
  position: static;
  height: auto;
  width: auto;
}

.payment-system-info .selector-options {
  position: static;
  right: auto;
  top: auto;
  width: auto;
  max-height: none;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
  transition: none;
  flex-flow: row nowrap;
  justify-content: center;
}

.payment-system-info .selector-options:hover {
  width: auto;
  max-height: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.payment-system-info .selector-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.payment-system-info .selector-options .selector-option:not(:has(input:checked)) {
  display: none;
}

.payment-system-info .selector-option {
  height: auto;
  min-height: auto;
  padding: 4px 8px;
  margin-bottom: 0;
  gap: 0;
  pointer-events: none;
  user-select: none;
  transition: none;
}

.payment-system-info .selector-options:hover .selector-option:hover {
  background-color: transparent;
}

.payment-system-info .selector-option:has(input:checked) {
  order: 0;
}

.payment-system-info .option-image {
  width: 72px;
  height: 36px;
}

.payment-system-info .option-image img {
  max-width: 72px;
  max-height: 36px;
}

.payment-system-info .option-text {
  display: none;
}

.payment-system-info .selector-options:hover .selector-option .option-text {
  opacity: 0;
  display: none;
}

.payment-system-info .selector-options:hover .selector-option + .selector-option {
  border-top: none;
}

.payment-system-info .selector-option:has(input:checked)::after {
  content: none;
}

/* === Селектор оплаты в режиме выбора (включается классом .help-form_selectable) === */
.help-form_selectable .selector-wrapper {
  position: relative;
  /* width: 280px; */
  width: auto;
  height: 56px;
  flex-shrink: 0;
}

.help-form_selectable .selector-options {
  position: absolute;
  right: 0;
  top: 0;
  width: 108px;
  max-height: 56px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid transparent;
  box-sizing: border-box;
  display: flex;
  flex-flow: column nowrap;
  cursor: pointer;
  z-index: 1000;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-form_selectable .selector-options:hover {
  width: 310px;
  max-height: 340px;
  background: #ffffff;
  border-color: #d1d5db;
}

.help-form_selectable .selector-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.help-form_selectable .selector-option {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 0;
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  pointer-events: auto;
}

.help-form_selectable .selector-options:hover .selector-option:hover {
  background-color: #f3f4f6;
}

.help-form_selectable .selector-option:has(input:checked) {
  order: -1;
}

.help-form_selectable .option-image {
  width: 88px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.help-form_selectable .option-image img {
  max-width: 100%;
  max-height: 100%;
  flex: auto;
  flex-shrink: 0;
  display: inline-block;
  object-fit: contain;
}

.help-form_selectable .option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 132px);
  opacity: 0;
}
.help-form_selectable .selector-options:hover .selector-option .option-text  {
  opacity: 1;
}

.help-form_selectable .option-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.2;
}

.help-form_selectable .option-role {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.2;
}

.help-form_selectable .selector-options:hover .selector-option + .selector-option {
  border-top: 1px solid #f0f0f0;
}

.help-form_selectable .selector-option:has(input:checked)::after {
  content: '✓';
  margin-left: auto;
  color: #3b82f6;
  font-weight: bold;
  font-size: 14px;
  padding-left: 8px;
}




/* ===== Tooltip — Pure CSS ===== */

.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
}

/* Контент тултипа */
.tooltip-content {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  background-color: #fafafa;
  color: #18181b;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(138, 138, 138, 0.4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

/* Стрелочка */
.tooltip-content::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 1px;
}

/* ===== Позиции ===== */

/* Top */
.tooltip-top .tooltip-content {
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
.tooltip-top .tooltip-content::after {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border-top: none;
  border-left: none;
}
.tooltip-top:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Bottom */
.tooltip-bottom .tooltip-content {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}
.tooltip-bottom .tooltip-content::after {
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border-bottom: none;
  border-right: none;
}
.tooltip-bottom:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Left */
.tooltip-left .tooltip-content {
  white-space: break-spaces;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
}
.tooltip-left .tooltip-content::after {
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-bottom: none;
  border-left: none;
}
.tooltip-left:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Right */
.tooltip-right .tooltip-content {
  white-space: break-spaces;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}
.tooltip-right .tooltip-content::after {
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-top: none;
  border-right: none;
}
.tooltip-right:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ===== Hover-эффект на триггере ===== */
.tooltip-wrapper:hover {
  color: #e4e4e7;
}

/* Для инлайн-текста — подчёркивание пунктиром */
.tooltip-wrapper > span:first-child:not(svg):not(.tooltip-content),
.tooltip-wrapper > a:first-child {
  border-bottom: 1px dashed #52525b;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tooltip-wrapper:hover > span:first-child:not(svg):not(.tooltip-content),
.tooltip-wrapper:hover > a:first-child {
  border-bottom-color: #a1a1aa;
  color: #ffffff;
}

/* Для SVG-иконок */
.tooltip-wrapper:hover svg {
  color: #a1a1aa;
}

.form__hint {
  font-size: 13px;
  color: gray;
  line-height: 1;
  /* margin-top: 4px; */
}
