.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Высокое окно на маленьком экране прокручивается, на большом стоит по центру */
.inst-overlay {
  overflow-y: auto;
  align-items: flex-start;
}
.inst-overlay .modal {
  margin: auto;
}

.modal--wide {
  max-width: 560px;
}

.inst-modal .modal__subtitle u {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Логотипы банков в анкете: блок скрыт, пока в нём пусто */
.inst-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--modal-border);
}
.inst-logos:empty {
  display: none;
}
.inst-logos img {
  height: 44px;
  width: auto;
}

/* Сумма */
.inst-total {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--modal-border);
  text-align: center;
}
.inst-total__label {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--modal-text);
}
.inst-total__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--modal-text);
}
.inst-total__row input {
  width: 150px;
  font-size: 18px;
  text-align: center;
}

/* Чекбокс согласия */
.inst-agree__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--modal-text-muted);
  cursor: pointer;
}
.modal__field .inst-agree__label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--modal-accent);
}
.inst-agree__label a {
  color: var(--modal-accent);
  text-decoration: underline;
}
.inst-agree.has-error .inst-agree__label {
  color: var(--modal-error);
}

/* Кнопки банков */
.inst-banks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 22px;
}
.inst-bank {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 10px;
  border: 1px solid var(--modal-border);
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.inst-bank:hover,
.inst-bank:focus-visible {
  background: #fff;
  border-color: var(--modal-accent);
  outline: none;
}
.inst-bank img {
  max-width: 80%;
  max-height: 100%;
}

.inst-widget {
  min-height: 60px;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .inst-banks {
    grid-template-columns: 1fr;
  }
  .inst-bank {
    height: 110px;
  }
}