/* Дровер */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.3s ease;
}
.drawer-overlay.hidden {
  display: none;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.drawer-panel {
  position: relative;
  width: 100%;
  max-width: 36vw;
  height: 100vh;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 64px 20px 20px;

  @media (width < 769px) {
    max-width: none;
    margin-top: auto;
    transform: translateY(100%);

    height: 75vh;
    padding: 32px 16px;
    border-radius: 28px 28px 0px 0px;
  }
}
.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
  @media (width < 769px) {
    transform: translateY(0);
  }
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  @media (width < 769px) {
    margin-bottom: 12px;
  }
}
.drawer-title {
  font-size: 40px;
  color: #cd0c11;
  font-weight: 600;

  @media (width < 769px) {
    font-size: 20px;
  }
}
.drawer-close {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
}
.step-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.step-dot {
  flex: 1;
  flex-shrink: 0;
  width: 100%;
  height: 5px;
  border-radius: 12px;
  background: #f2f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: 0.2s;
}
.step-dot.active {
  background: #1c1c1e;
}
.step-dot.completed {
  background: #1c1c1e;
}
.step-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.step-pane.active {
  display: flex;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-height: 50vh;
  overflow-y: auto;

  @media (width < 769px) {
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }
}
.option-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #f2f3f5;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  font-weight: 600;
  @media (width < 769px) {
    font-size: 12px;
    padding: 8px 12px;
  }
}
.option-item:hover {
  background: #e2e2e2;
}
.option-item.selected {
  background: #f9c8c9;
}
.option-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
#loan-drawer-panel {
  transform: translateX(100%);
  &.open {
    transform: translateX(0);
  }

  @media (width < 769px) {
    transform: translateY(100%);
    &.open {
      transform: translateY(0);
    }
  }
}