.bank-view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.bank-view[hidden] {
  display: none !important;
}

.bank-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.bank-home {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.bank-home:hover,
.bank-home:focus-visible {
  border-color: #e53935;
  color: #e53935;
  outline: none;
}

.bank-crumb-sep {
  color: #b0b6c2;
}

.bank-crumb-link {
  color: var(--muted);
  font-weight: 600;
}

.bank-crumb-link:hover,
.bank-crumb-link:focus-visible {
  color: #e53935;
  outline: none;
}

.bank-crumb-current {
  color: var(--ink);
}

.bank-heading {
  margin: 0 0 18px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
}

.bank-heading-center {
  text-align: center;
  margin-bottom: 28px;
}

.bank-heading + .bank-subject-grid {
  margin-bottom: 40px;
}

.bank-subject-grid,
.bank-number-grid {
  display: grid;
  gap: 16px;
}

.bank-subject-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bank-number-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.bank-card,
.bank-number {
  border: 1px solid #d9dde5;
  border-radius: 16px;
  background: #fff;
  color: #2a2e36;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bank-card {
  min-height: 112px;
  padding: 22px 18px;
  font-size: 18px;
  cursor: pointer;
}

.bank-card.is-ege:hover,
.bank-card.is-ege:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 0 10px red;
  border: 1px solid red;
  outline: none;
}

.bank-card.is-oge:hover,
.bank-card.is-oge:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 0 10px orange;
  border: 1px solid orange;
  outline: none;
}

.bank-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.bank-number {
  min-height: 76px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.bank-number:hover,
.bank-number:focus-visible {
  outline: none;
}

.bank-number:hover .bank-number-text,
.bank-number:focus-visible .bank-number-text {
  color: #e53935;
  background: #fff1f1;
  box-shadow: 0 0 0 4px #fff1f1;
  border-radius: 6px;
}

.bank-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bank-task {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}

.bank-task-meta {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.bank-task-condition {
  font-size: 16px;
  line-height: 1.6;
}

.bank-task-condition p + p,
.bank-solution-body p + p {
  margin-top: 8px;
}

.bank-task-image,
.bank-solution-image {
  margin: 14px 0;
}

.bank-task-image svg,
.bank-task-image img,
.bank-solution-image svg,
.bank-solution-image img {
  display: block;
  max-width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.bank-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bank-action,
.bank-error-send {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bank-action-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.bank-action:hover,
.bank-action:focus-visible,
.bank-error-send:hover,
.bank-error-send:focus-visible {
  background: #162c48;
  outline: none;
}

.bank-action-ghost:hover,
.bank-action-ghost:focus-visible {
  background: #f6f3ec;
  color: var(--ink);
}

.bank-solution {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.bank-solution.is-open {
  grid-template-rows: 1fr;
}

.bank-solution-inner {
  overflow: hidden;
}

.bank-solution-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
}

.bank-answer {
  margin-top: 12px;
  font-weight: 700;
}

.bank-empty {
  padding: 28px;
  border-radius: 16px;
  background: var(--white);
  text-align: center;
  color: var(--muted);
}

.bank-error-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 21, 28, 0.55);
}

.bank-error-modal[hidden] {
  display: none !important;
}

.bank-error-dialog {
  position: relative;
  width: min(100%, 460px);
  padding: 28px 26px 24px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.bank-error-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.bank-error-dialog h2 {
  margin: 0 32px 10px 0;
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.bank-error-dialog p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.bank-error-dialog textarea {
  width: 100%;
  min-height: 120px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  color: var(--ink);
}

.bank-error-dialog textarea:focus {
  outline: 2px solid #e53935;
  border-color: transparent;
}

@media (max-width: 760px) {
  .bank-subject-grid {
    grid-template-columns: 1fr;
  }

  .bank-view {
    padding: 20px 16px 56px;
  }
}
